Promoting and getting submissions to a new directory

I recently started a web directory and I'm trying to find people to fill it because it's basically empty. I myself can't start adding sites to it because alongside the directory my new site has 2 more services to manage and I don't want to get rid of them because I find potential in them. I managed to convince 2 businesses on facebook to add their sites to my directory and I have put the link to it in my signature in another forum. What other strategies can help to get submissions to a…

Promoting and getting submissions to a new directory

Why am I getting this error when trying to add a zfs pool to ProxMox? Am I using the wrong ID?

Am I using the wrong ID to get this error? There’s no specifics about what ID or what format, anywhere I can find.

  1. Installed ProxMox VE 5.2

  2. zpool create deadpool raidz2 /dev/sda /dev/sdb /dev/sdc /dev/sde /dev/sdf /dev/sdg log /dev/sdd zpool export deadpool zpool import 

output:

 pool: deadpool    id: 9097477361707050699 state: online ... 

  1. zpool import -d /dev/disk/by-id deadpool pvesm add zfspool 9097477361707050699 -pool deadpool 

error:

400 Parameter verification failed. storage: invalid format - storage ID '9097477361707050699' contains illegal characters 

I am getting error when I change my text selection for bold and italic text

I am trying to bold and unbold, make text italic and unitalic but I get an error when I change the selection of my text especially when my text is bold and italic. My app works fine when I just bold and unbold my text separately but when I bold and Italic my text and I change the selection then I get the following error. I am using the same code for Italic style as for bold given below. Maybe something wrong with getting the spanStart and spanEnd position but I can’t figure it out. Here is my code

lang="java">private void boldText2(){        int typeface = Typeface.NORMAL;        Spannable str = texto.getText();        int selStart = texto.getSelectionStart();        int selEnd = texto.getSelectionEnd();        StyleSpan[] styleSpans = texto.getText().getSpans(selStart, selEnd, StyleSpan.class);             for (StyleSpan styleSpan : styleSpans) {                int oldStyle = styleSpan.getStyle();                typeface = oldStyle;                int spanStart = str.getSpanStart(styleSpan);                int spanEnd = str.getSpanEnd(styleSpan);                 if (oldStyle == Typeface.BOLD_ITALIC) {                    str.setSpan(new StyleSpan(Typeface.ITALIC), spanStart, spanEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                    Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                }                if(oldStyle == Typeface.BOLD) {                    str.removeSpan(styleSpan);                    Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                }                 if (spanStart < texto.getSelectionStart()) {                    str.setSpan(new StyleSpan(oldStyle), spanStart, selStart, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                    Log.d("TAG", "spanStart < texto.getSelectionStart");                    Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                }                 if (spanEnd > texto.getSelectionEnd()) {                    str.setSpan(new StyleSpan(oldStyle), selEnd, spanEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                    Log.d("TAG", "spanEnd > texto.getSelectionEnd()");                    Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                }         }         if (typeface != Typeface.BOLD) {     Log.d("TAG", "Bolding section entered");           if (styleSpans.length > 0) {               int lastSpanEnd = 0;               for (StyleSpan styleSpan : styleSpans) {                   int oldStyle = styleSpan.getStyle();                   int spanStart = str.getSpanStart(styleSpan);                   int spanEnd = str.getSpanEnd(styleSpan);                    if (spanStart > lastSpanEnd) {                       str.setSpan(new StyleSpan(Typeface.BOLD), lastSpanEnd, spanStart, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                       Log.d("TAG", "spanStart > lastSpanEnd and is bolded 1st if condition");                       Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                   }                    lastSpanEnd = spanEnd;                   str.removeSpan(styleSpan);                     if (spanStart < texto.getSelectionStart()) {                       str.setSpan(new StyleSpan(oldStyle), spanStart, selStart, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                       Log.d("TAG", "spanStart < texto.getSelectionStart()");                       Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                   }                    if (spanEnd > texto.getSelectionEnd()) {                       str.setSpan(new StyleSpan(oldStyle), selEnd, spanEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                       Log.d("TAG", "spanEnd > texto.getSelectionEnd()");                       Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + " spanStart: " + spanStart + " spanEnd: " + spanEnd);                   }                    if (oldStyle == Typeface.ITALIC) {                       str.setSpan(new StyleSpan(Typeface.BOLD_ITALIC), spanStart, spanEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                       Log.d("TAG", "Bold and Italic");                       Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd + "spanStart: " + spanStart + " spanEnd: " + spanEnd);                   }               }                if (selEnd != lastSpanEnd) {                   str.setSpan(new StyleSpan(Typeface.BOLD), selStart, selEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);                   Log.d("TAG", "selEnd != lastSpanEnd");                   Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd);               }           }            else {               str.setSpan(new StyleSpan(Typeface.BOLD), selStart, selEnd, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);               Log.d("TAG", "Last else Bold");               Log.d("TAG", "selStart: " + selStart + " selEnd: " + selEnd);           }       }        } 

here is the error I get

java.lang.IndexOutOfBoundsException: setSpan (-1 … 14) starts before 0

Getting the output of a View aggregation into a field and compare it with another value

I have a parent entity that maintains a treshold (integer) which the children entities together cannot exceed.

I created a view on that, through aggregation, gives me the SUM of all childrens fields. So the output is a single integer value. Now I need to compare this value with the treshold value of the parent. How can I do this (probably in the process I need to store the views result into a field)?

Emails I send keep getting into recipient’s Spam folder in Gmail

I have a personal domain and I use a mail account on it (it’s not Gmail). Recently, all the emails I send (personal and business messages, not bulk) keep getting into the recipients Gmail Spam folder (I checked with several recipients).

Why is that and what can I do?

More info:

  • I checked and my domain is not in the blacklist.

  • When looking at the message in the Spam folder, it states “It’s similar to messages that were detected by our spam filter”. However, this is a personal message I wrote to someone – not a newsletter or a bulk message.

  • My sites and mail server are on a shared hosting service. But until recently I didn’t have this problem.

Thanks