Creating responsive 3 x 3 gallery box

Hello I am trying to create a flex grid which has 3 by 3 image gallery which is responsive,

Currently this is going on a wordpress page and this is the code to my image using openseadragon.
So I need this image:
SEMrush

<div id=”materials-0158″ class=”suarrmaterials-zoomable-image” style=”height:460px; width:310px;” data-image=”2020/05/DSC_0158-1.jpg”></div>

to appear three times next to each other and three on the bottom, I will update the images and add more image boxes once i get the correct layout.

Thank you.

 

How can one customise library search results from the header search box?

As announced by Microsoft and discussed in this answer, the search box in the command bar has been removed from document libraries, leaving the header bar as the only place with a search box.

SharePoint library screenshot

When launching a search from this bar, the search results appear in the same view (rather than the Microsoft Search view, which only appears if the “Expand search to all items in this site” link at the bottom is clicked”). The page that’s opened appears to be the view with a query string appended – e.g. https://sitename.sharepoint.com/sites/groupname/Test/Forms/AllItems.aspx?view=7&q=searchterm

SharePoint library search results

I’d like to customise the results to promote particular content types.

I’ve tried so far:

  • adding a new result source and setting it as the default in the Microsoft 365 Admin Center
  • adding a query rule in the site settings

Nothing has had any impact so far on the results that appear. What settings need to be altered to have an effect on these results?

seo – Sitelink search box does not appear on Google after adding JSON-LD SearchAction to my site yesterday

I added the JSON-LD code to my site but search bar did not appear. What is the reason for this? am i doing something wrong?

 <script type="application/ld+json">
        {
        "@context": "https://schema.org",
        "@type": "WebSite",
        "url": "https://www.example.com/",
        "potentialAction": {
        "@type": "SearchAction",
        "target": "https://www.example.com/search?term={search_term_string}",
        "query-input": "required name=search_term_string"
        }
        }
    </script>

javascript – Popup box after user select certain values in a few dropdown menu fields

I have a multi-step signup form with multiple fields. Relevant to this question are fields asking for the user’s country, whether they are employed/earn a steady salary and if they would like to pay for services in installments or upfront.

I would like to show a popup page in cases where the user selects the country as Nigeria, indicates that they are employed and that they would like to pay for services in installments.

So the popup form would occur the moment the person selects yes to wanting to pay in installments after having selected Nigeria as a country and indicating that they are employed.

Here is my html and what I have tried:

    <div class="row">
        {% if form.errors %}
            <div class="alert alert-error">
                <ul>
                    {% for error in form.non_field_errors %}
                        <li>{{ error }}</li>
                    {% endfor %}
                </ul>
            </div>
        {% endif %}
    </div>
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <!--  -->
            <form  id="msform" method="post" action="" > 
                {% csrf_token %}
                <input type="hidden" name="next" value="{{ next }}" class="form-control">
                <ul id="progressbar">
                    <li>More about you</li>
                    <li>Contact Details</li>
                </ul>
                <fieldset>
                    <h2 class="fs-title">More about you</h2>
                    {{form.city}}
                    <br>
                    <select name='country' required class="form-control my-2">
                        <option value="" disabled selected hidden>Country</option>
                        {% for value, name in form.fields.country.choices %}
                            <option value="{{value}}">{{name}}</option>
                        {% endfor %}
                    </select>
                    <input type="button" name="previous" class="previous action-button-previous" value="Previous" />
                    <input type="button" name="next" class="next action-button" value="Next" />
                </fieldset>
                <fieldset>
                    <h2 class="fs-title">Contact Details</h2>
                    <select name='installments' required class="form-control my-2">
                        <option value="" disabled selected hidden>Would you like to pay the $350 fee upfront or in installments?</option>
                        {% for value, name in form.fields.installments.choices %}
                            <option value="{{value}}">{{name}}</option>
                        {% endfor %}
                    </select>
                    <input type="button" name="previous" class="previous action-button-previous" value="Previous" />
                    <input type="submit"  class="submit action-button" value="Sign Up" />

                </fieldset>
            </form>
        </div>
    </div>
    {% endblock %}
{% block mainjs %}
{% endblock mainjs %}
{% block extrajs %}
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js'></script>
<script >

//jQuery time
var current_fs, next_fs, previous_fs; //fieldsets
var left, opacity, scale; //fieldset properties which we will animate
var animating; //flag to prevent quick multi-click glitches

$(".next").click(function(){
    if(animating) return false;
    animating = true;

    current_fs = $(this).parent();
    next_fs = $(this).parent().next();

    //activate next step on progressbar using the index of next_fs
    $("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");

    //show the next fieldset
    next_fs.show(); 
    //hide the current fieldset with style
    current_fs.animate({opacity: 0}, {
        step: function(now, mx) {
            //as the opacity of current_fs reduces to 0 - stored in "now"
            //1. scale current_fs down to 80%
            scale = 1 - (1 - now) * 0.
      ;
            //2. bring next_fs from the right(50%)
            left = (now * 50)+"%";
            //3. increase opacity of next_fs to 1 as it moves in
            opacity = 1 - now;
            current_fs.css({
        'transform': 'scale('+scale+')',
        'position': 'absolute'
      });
            next_fs.css({'left': left, 'opacity': opacity});
        }, 
        duration: 800, 
        complete: function(){
            current_fs.hide();
            animating = false;
        }, 
        //this comes from the custom easing plugin
        easing: 'easeInOutBack'
    });
});

$(".previous").click(function(){
    if(animating) return false;
    animating = true;

    current_fs = $(this).parent();
    previous_fs = $(this).parent().prev();

    $("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active");
    previous_fs.show(); 
    current_fs.animate({opacity: 0}, {
        step: function(now, mx) {
            scale = 0.8 + (1 - now) * 0.2;
            left = ((1-now) * 50)+"%";
            opacity = 1 - now;
            current_fs.css({'left': left});
            previous_fs.css({'transform': 'scale('+scale+')', 'opacity': opacity});
        }, 
        duration: 800, 
        complete: function(){
            current_fs.hide();
            animating = false;
        }, 
        easing: 'easeInOutBack'
    });
});

$(".submit").click(function(){
    return true;
})
</script>
<script>
    $("#installments").bind("change", function() {
        var value = this.value;
        switch (value) {
            case "installments":
            window.open("https://www.google.com/", "Google");
            break;
            }
    });
</script>
{% endblock extrajs %}

web application – Is running bash script that is taking arguments from site dialog box a good idea?

I’m building a site that will use youtubeAPI to keep track of playlist changes.
In order for 3rd party to use it I would supply a dialog box in which user would type his/hers playlistID – this would be read and then put as an argument into bash script that in turn runs curl/python scripts to connect with API (ran on my machine) and another bash script that would mkdirs on my disk.

Does this potentially endanger me/my files somehow ?
Can someone input some magic command that would do “rm * -f” or similar malicious endeavor ?
Should I use some external server instead of my machine ?

I know nothing about security, Ive read few topics here but didnt find similar problem.

android studio – Alertdialog box showing adapter data

i had created a project in which i am using multiple edittext and one button on button click it shows some specific data in my custom recyclerview till here it works fine.
Now i want to show all data which the user entered in my multiple edittext,so i created a custom alertdialobox class in which when user click a recyclerview custom item its showing all data in alertdailog box i am not able to set values in alertdialog box view.

// its the main method in my main class where it adds my data to recycler view adapter

 public void final_step() {

            recyclerView = findViewById(R.id.recycler_view_last1);


            mAdapter1 = new Land_adapters(last_Year1,context);

            recyclerView.setHasFixedSize(true);
            RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getApplicationContext());
            recyclerView.setLayoutManager(mLayoutManager);
            recyclerView.setItemAnimator(new DefaultItemAnimator());

            recyclerView.setAdapter(mAdapter1);
            recyclerView.addOnItemTouchListener(new RecyclerTouchListener(getApplicationContext(), recyclerView, new RecyclerTouchListener.ClickListener() {
                @Override
                public void onClick(View view, int position) {

                    alert_box.startLoadingDialog();

    // Here I want that my alerbox have 6 text which should be shown according to postion seleted of recycler


                }

                @Override
                public void onLongClick(View view, int position) {

                }
            }));


            Land_list last_year1 = new Land_list(land_acre, land_kanal, village_selected1, land_marla, district_selected1, teshil_selected1, block_selected1);
            last_Year1.add(last_year1);
            mAdapter1.notifyDataSetChanged();

}

//Adapter of my Recycler view

public class Land_adapters extends RecyclerView.Adapter<Land_adapters.Myviewholder> {
    private List<Land_list> Land_list;
    Context context;

    public class Myviewholder extends RecyclerView.ViewHolder {
        public TextView acre1, marla1, kanal1,village_anme,district_name1,s_no1;

        public Myviewholder(View view) {
            super(view);

            village_anme = view.findViewById(R.id.land__view);
            district_name1 = view.findViewById(R.id.land_district_view);
            s_no1  = view.findViewById(R.id.land_sn0_view);
        }
    }

    public Land_adapters(List<Land_list> land_list, Context context) {
        this.Land_list = land_list;
        this.context = context;
    }



    @NonNull
    @Override
    public Land_adapters.Myviewholder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View itemView = LayoutInflater.from(parent.getContext())
                .inflate(R.layout.land_list, parent, false);

        return new Myviewholder(itemView);   }

    @Override
    public void onBindViewHolder(@NonNull Myviewholder holder, int position) {
        final Land_list current_year= Land_list.get(position);

        holder.district_name1.setText(current_year.getDistrict_name());
        holder.village_anme.setText(current_year.getVillage_name());
        holder.s_no1.setText(String.valueOf(position+1));
    }

    @Override
    public int getItemCount() {
        return Land_list.size();
    }
}

// pojo class of my recyclerview

public class Land_list {
    private String acre,kanal,marla,village_name,district_name,teshil_name,block_name;
    private int s_no;

    public Land_list(String acre, String kanal,  String village_name, String marla , String district_name, String teshil_name, String block_name){
        this.acre = acre;
        this.kanal = kanal;
        this.village_name = village_name;
        this.district_name = district_name;
        this.marla = marla;
        this.block_name = block_name;
        this.teshil_name = teshil_name;
    }

    public String getTeshil_name() {
        return teshil_name;
    }

    public Land_list setTeshil_name(String teshil_name) {
        this.teshil_name = teshil_name;
        return this;
    }

    public String getBlock_name() {
        return block_name;
    }

    public Land_list setBlock_name(String block_name) {
        this.block_name = block_name;
        return this;
    }

    public String getAcre() {
        return acre;
    }

    public Land_list setAcre(String acre) {
        this.acre = acre;
        return this;
    }

    public String getKanal() {
        return kanal;
    }

    public Land_list setKanal(String kanal) {
        this.kanal = kanal;
        return this;
    }

    public String getMarla() {
        return marla;
    }

    public Land_list setMarla(String marla) {
        this.marla = marla;
        return this;
    }

    public String getVillage_name() {
        return village_name;
    }

    public Land_list setVillage_name(String village_name) {
        this.village_name = village_name;
        return this;
    }

    public String getDistrict_name() {
        return district_name;
    }

    public Land_list setDistrict_name(String district_name) {
        this.district_name = district_name;
        return this;
    }

    public int getS_no() {
        return s_no;
    }

    public Land_list setS_no(int s_no) {
        this.s_no = s_no;
        return this;
    }
}

custom alertdialog box class

    public class Alertbox_dialog {
        private Activity activity;
        private AlertDialog dialog;
        private List<Land_list> last_Year1 = new ArrayList<Land_list>();

        Alertbox_dialog(Activity myActivity){
            activity = myActivity;
        }

        void startLoadingDialog(){
            AlertDialog.Builder builder = new AlertDialog.Builder(activity);


            LayoutInflater inflater = activity.getLayoutInflater();

           View dialogView = inflater.inflate(R.layout.alertbox_recycler, null,false);

//THESE ARE THE TEXT VIEW WHERE I WANT TO SHOW SPECIF ITEMS AT SPECIF POSTION IN RECYCLER 
            TextView dist= dialogView.findViewById(R.id.alert_text_dist);
            TextView teshil= dialogView.findViewById(R.id.alert_text_teshil);
            TextView block= dialogView.findViewById(R.id.alert_text_block);
            TextView village= dialogView.findViewById(R.id.alert_text_village);
            TextView acre= dialogView.findViewById(R.id.alert_text_acre);
            TextView kanal= dialogView.findViewById(R.id.alert_text_kanal);
            TextView marla= dialogView.findViewById(R.id.alert_text_marla);



            builder.setView(dialogView);


            builder.setCancelable(false);

            dialog = builder.create();
            dialog.show();
        }
    }

$0.49 Email Box ⚡ Secured Email System for Enterprises ⚡ Integrate with Outlook, Thunderbird, iMail

Cenchu is a brand new website hosting company based in India. Our Email Services are not just cheap but feature rich and reliable. We have crafted our email services with care and utmost security from viruses and SPAM.

✔ Can be integrated with any Email Clients of your choice (Including Outlook, Thunderbird, Gmail for Android, iMail, etc.,)

✔ Comes with a responsive Webmail portal. You can use this webmail from any device of your choice.

✔ SSL Encrypted. Allows you to send emails on SSL/TLS protocol.

✔ 24×7 Support from Experts who have decades of experience in web hosting.

✔ 99.99% Uptime Guarantee with SLA – Your application will stay online forever without issues.

✔ Free Antivirus, Anti-Malware and Anti-Spam System

Pricing:
———

MICRO-BOX

========

1GB Space per user

Integratable with almost 99% of applications and email-clients

SMTP, IMAP & POP3 Protocols

24/7 Support from Engineers

Free SSL Certificate

Use your own domain (ie., joe@yousite.com)

========
$0.49 Per Month (5 Mailbox Minimum Order. Billed Annually)
Buy Now: https://billing.cenchu.net/link.php?id=10

BASIC-BOX

========

5GB Space per user

Integratable with almost 99% of applications and email-clients

SMTP, IMAP & POP3 Protocols

24/7 Support from Engineers

Free SSL Certificate

Use your own domain (ie., joe@yousite.com)

========
$0.49 Per Month (5 Mailbox Minimum Order. Billed Annually)
Buy Now: https://billing.cenchu.net/link.php?id=11

STANDARD-BOX

========

10GB Space per user

Integratable with almost 99% of applications and email-clients

SMTP, IMAP & POP3 Protocols

24/7 Support from Engineers

Free SSL Certificate

Use your own domain (ie., joe@yousite.com)

========
$0.49 Per Month (5 Mailbox Minimum Order. Billed Annually)
Buy Now: https://billing.cenchu.net/link.php?id=12

Our plans don’t suit your needs? We can always create a custom plan for the best suit! Do let us know if you need anything more or less.

Frequently Asked Questions:

——————————–

What payment methods do you accept?

We accept PayPal for international customers. For India based customers, we do accept all major wallets, UPI, NEFT, IMPS, net-banking, credit & debit cards.

Is this Email Service compliant with government regulations?

Our Professional Email Service is hosted on a PCI-DSS Compliant Server Environment. HIPAA and any other compliance can be attained upon request. Whatever your compliance requirement is, get in touch with our Sales team for further discussion.

How does the billing work?

We allow you to pay for an year upfront. If you’re making a bulk enterprise order, and if you need more than 1,000 email boxes, you’ll be able to pay on a monthly billing cycle.

What happens when I outgrow my space allocation?

When you outgrow the space, you’ll have 2 options. One is to upgrade your plan and adding more GBs of space to it for a minimal cost or you can choose to delete your old emails to save space.

We’re always here to assist. Any question you might have, get in touch with us for answers. We love helping people.

See you on board!

Naveen Kumar.

Number of points in a lattice and an oblong box

I have a very simple question in geometry of numbers. (It is a slight modification of Counting points on the intersection of a box and a lattice .) There’s a bound I can easily prove, and it’s good enough for my purposes, but it may be embarrassingly suboptimal.

Let $S = (N_1,2N_1) times dotsb times (N_n,2 N_n)$. Define the lattice $L$ as the preimage of
$r_1 mathbb{Z}_1 times dotsb r_n mathbb{Z}_n$ under an affine linear map $vec{v} mapsto A vec{v} + vec{b}$, where $r_igeq M$ are integers and $A={a_{i,j}}$ is a non-singular $n$-by-$n$ matrix such that $a_{i,j}in mathbb{Z}$, $|a_{i,j}|leq C$. How do you bound the number of points $|Scap L|$ in $Scap L$?

It is simple to show (chopping $A S$ into hypercubes of side $M$) that
$$|Scap L| leq (4 C m)^m prod_{i=1}^m frac{N_i}{M}.$$
How much better can one do? Can one replace $(4 m)^m$ by $2^m m!$, say? Or (much more ambitiously) $prod_{i=1}^m N_i/M$ by $prod_{i=1}^m N_i/r_i$?

(It would be interesting, for starters, to
combine the argument above with Davenport’s Lemma (as in Counting number of points on a lattice in a hypercube), but doing so in such a way as to obtain a real improvement doesn’t seem obvious.)

Sunshine Webhost – Shared and Reseller hosting in Sydney, Australia – Low End Box

Sunshine Webhost has submitted their shared web hosting and reseller hosting packages to Low End Box and we decided to feature them for their first time! What we find interesting about these shared and reseller offers is that they are hosted in Sydney, Australia, which is a part of the world that is still reasonably undeserved by Low End Box offers — pricing there is just considerably higher for bandwidth and servers/colocation so when we do see an offer that conforms to our pricing guidelines it’s very interesting to us!

As always, if you purchase from them, please comment below about your experience!

Their ToS/Legal Docs are published on their website for review. They accept PayPal, Credit/Debit Card, and Bank Transfer as payment methods.

Here’s what they had to say: 

“SunshineHost was formed by a group of passionate people who are tired of the high web hosting prices in Australia and NZ. Since day one, we have one goal in mind: to provide reliable and affordable web hosting plans to everyone and anyone. We offer really competitive pricing that can stand out in the entire web hosting industry. We have a group of intelligent customer support agents who are able to handle customers’ queries with ease. We ensure that every website hosted on our server is secured and always online with our 99% uptime guarantee. We also make sure that our servers and software keep up with the industry’s standard.”

Here are the offers: 

Starter Shared

  • 1GB SSD Disk Space

  • 10GB Monthly Transfer

  • Unlimited Databases

  • 5 Domains

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$5.99/year (~US$3.58)

  • (ORDER HERE)

Silver Shared

  • 2GB SSD Disk Space

  • 25GB Monthly Transfer

  • Unlimited Databases

  • 10 Domains

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$9.99/year (~US$5.96)

  • (ORDER HERE)

Gold Shared

  • 10GB SSD Disk Space

  • 200GB Monthly Transfer

  • Unlimited Databases

  • Unlimited Domains

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$39.99/year (~US$23.87)

  • (ORDER HERE)

Bronze Reseller

  • 10GB SSD Disk Space

  • Unlimited Monthly Transfer

  • Unlimited Databases

  • Unlimited Sub-Accounts

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$4.99/month (~US$2.98)

  • (ORDER HERE)

Silver Reseller

  • 20GB SSD Disk Space

  • Unlimited Monthly Transfer

  • Unlimited Databases

  • Unlimited Sub-Accounts

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$7.99/month (~US$4.77)

  • (ORDER HERE)

Gold Reseller

  • 30GB SSD Disk Space

  • Unlimited Monthly Transfer

  • Unlimited Databases

  • Unlimited Sub-Accounts

  • Free SSL Certificates

  • DDoS Protection Included

  • Softaculous Script Installer

  • OpenLiteSpeed Web Server

  • DirectAdmin Control Panel

  • NZ$10.99/month (~US$6.56)

  • (ORDER HERE)

Read more to check out their network information and node specs.

Remember to leave comments if you are a customer!

NETWORK INFO:

Datacenter Name – Sydney, NSW, Australia
Test IPv4: 139.99.231.160
Test file: https://speedtest.ssdns.us/100MB.bin

 

Host Node Specifications:

  • Intel Xeon CPU E3-1245 v5 @ 3.50GHz
  • 32GB RAM
  • 2x 480GB SSDs
  • 100Mbps uplink

Please let us know if you have any questions/comments and enjoy!

Get cheap VPS deals in your Facebook feed – Low End Box


In March we updated everyone that we are now actively using Facebook again. Now we’re just sending a reminder that if you want to see amazing and cheap VPS, dedicated server, VPN and web hosting deals in your Facebook feed you should totally follow us now. You can find our page here. From time to time we will be posting exclusive content on Facebook and running promotional give-aways and other exciting stuff.

As always, thanks for being a part of our community!