text:
Q: what is this bullet point
* not showing up with circles? I'm trying to show some bullet point list circles on my webpage, but it doesn't seem to show, and I tried using firebug but I can't find what's wrong, I went through my whole css file, and I don't see where the problem is, i want the list to be vertical with circles!
Please can you help me, here is the code :

/* Browser resets. */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, dialog, figure, footer, header,
hgroup, nav, section {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 1em;
  font-family: inherit;
    vertical-align: baseline;
    line-height: 1.5em;
}

#fancy_ajax .note{    cursor:default; }

/* Three styles for the notes: */

.yellow{
    background-color:#FDFB8C;
    border:1px solid #DEDC65;
}

.blue{
    background-color:#A6E3FC;
    border:1px solid #75C5E7;
}

.green{
    background-color:#A5F88B;
    border:1px solid #98E775;
}

/* Each note has a data span, which holds its ID */
span.data{    display:none; }

/* Green button class: */
a.green-button,a.green-button:visited{
    color:black;
    display:block;
    font-size:10px;
    font-weight:bold;
    height:15px;
    padding:6px 5px 4px;
    text-align:center;
    width:60px;

    text-shadow:1px 1px 1px #DDDDDD;
    background:url(../img/button_green.png) no-repeat left top;
}

a.green-button:hover{
    text-decoration:none;
    background-position:left bottom;
}

.author{
    /* The author name on the note: */
    bottom:10px;
    color:#666666;
    font-family:Arial,Verdana,sans-serif;
    font-size:12px;
    position:absolute;
    right:10px;
}

#main{
    /* Contains all the notes and limits their movement: */
    margin:0 auto;
    position:relative;
    width:980px;
    height:500px;
    z-index:10;
    background:url(img/add_a_note_help.gif) no-repeat left top;
}

h3.popupTitle{
    border-bottom:1px solid #DDDDDD;
    color:#666666;
    font-size:24px;
    font-weight:normal;
    padding:0 0 5px;
}

#noteData{
    /* The input form in the pop-up: */
    height:200px;
    margin:0px 0 0 0px;
    width:350px;
}

.note-form label{
    display:block;
    font-size:10px;
    font-weight:bold;
    letter-spacing:1px;
    text-transform:uppercase;
    padding-bottom:3px;
}

.note-form textarea, .note-form input[type=text]{
    background-color:#FCFCFC;
    border:1px solid #AAAAAA;
    font-family:Arial,Verdana,sans-serif;
    font-size:19px;
        font-weight: bold;
    height:60px;
    padding:5px;
    width:300px;
    margin-bottom:0px;
}

.note-form input[type=text]{    height:auto; }

.color{
    /* The color swatches in the form: */
    cursor:pointer;
    float:left;
    height:10px;
    margin:0 5px 0 0;
    width:10px;
}

#note-submit{    margin:20px auto; }

body {
    height:100%;
    background-color: white;
    font-size: 14px;
    color: #333333;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}

/* custom selection colors */
::-moz-selection {
    color: #fff;
    color: rgba(255,255,255,.85);
    background: #ea4c88;
}

::selection {
    color: #fff;
    color: rgba(255,255,255,.85);
    background: #ea4c88;
}

/* Links */
a {
    text-decoration: none;
    color:  #19558D;
    font-size: inherit;
}

a:hover {
    text-decoration: underline;
}

a:visited {
    text-decoration: none;
    background-color: inherit;
    color: #336699;
}

a img {
    border: none;
}

/* Input fields + label */
input, textarea {
    border: 1px solid #999999;
    padding: 5px;
}

label {
    float: left;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 0pxpx;
    width: 120px;
    font-size: 22px;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}

#error {
    font-size: 14px;
}

/* Lists */
li {
    font-size: 14px;
    margin-left: 10px;
    list-style-type: circle;
    display:inline;
}

li a {
    margin-left: inherit;
}

#like_text {
    float: left;
    color: #0099CC;
    cursor: pointer;
    font-size: inherit;
}

.like_list_element {
    width: 681px;
    float: left;
    padding-top: 15px;
    margin-left: 0px;
    height: 35px;
    border-bottom: 1px solid #999999;
}

.like_list_element:hover {
    width: 681px;
    float: left;
    padding-top: 15px;
    margin-left: 0px;
    height: 35px;
    border-bottom: 1px solid #999999;
    background-color: #EDEDED;
}

.micro_avatar {
    float: left;
    width: 30px;
    height: 30px;
    margin-right: 15px;
    margin-top: -7px;
    padding: 2px;
    background-color: #ffffff;
    -moz-box-shadow: 2px 2px 4px #D1D1D1;
    -webkit-box-shadow: 2px 2px 4px #D1D1D1;
    box-shadow: 2px 2px 4px #D1D1D1;
    -moz-border-radius: 2px;
    border-radius: 2px;
}

/* "Super" headline */
h1 {
    font-weight: bold;
    font-style: italic;
    font-size: 38px;
    color: #666666;
    font-family: Georgia, "Times new roman", serif;
}

/* "Medium (bold)" headline */
h2 {
    font-size: 20px;
    font-weight: bolder;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}

/* Normal headline (used on profile page) */
.normal_headline {
    font-size: 22px;
    float: left;
    font-weight: bold;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}

/* "Standard" headline */
h3 {
    font-size: 15px;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
}

/* page structure */

/* Container - main content goes here */
#container {
    min-height: 100%;
    height:100%;
    width: 897px;
    margin-bottom: 30px;
    margin: 0 auto;
}

/* Left (main) content */
#left_content {
    float: left;
    width: 485px;
    font-size: 1em;
    padding-left: -15px;
}

ul.statuses{
    margin:10px 0;
}

ul.statuses li {
    position:relative;
    padding:15px 15px 15px 10px;
    list-style:none;
    font-size:12px;
}

div.tweetTxt{

    float:left;
    width:400px;
    overflow:hidden;
}

ul.statuses a img.avatar{
    float:left;
    margin-right:10px;
    border:1px solid #446600;
}
div.date{
    line-height:18px;
    font-size:10px;
    color:#999999;

}

.question_link{

 float:left;
font-weight: bold;
margin-left:40px;
   color:blue;

}

#answerText {

    float:left;
width:480px;
margin-left:40px;
margin-bottom: 5px;

}
#answerText ul{

    margin-left:40px;
}
#answerText li {

    list-style-type: circle;
    font-size:30px;

}
.answerActions {

    float:left;
    margin-left:40px;
    font-size:9px;

}
.thanks{
    font-weight:bold;
}
.content{
    float:left;

}
/* Used for seperating content eg. Timeline && photos */
.left_content_seperator {
    width: 485px;
    float: left;
    border-bottom: 1px solid #999999;
    margin-top: 15px;
    margin-bottom: 30px;
    height: auto;
}

/* Used in eg. postphoto.php */
.big_content_seperator {
    width: 897px;
    float: left;
    border-bottom: 1px solid #999999;
    margin-bottom: 30px;
}

/* Right side content */
.right_content {
    float: right;
    width: 200px;
    font-size: 14px;
        margin-right:80px;
}

/* Used for seperating content eg. Timeline && photos */
.right_content_seperator {
    width: 200px;
    float: right;
    margin-top: 33px;
    margin-bottom: 15px;
}

.right_content_seperator_home {
    width: 200px;
    float: right;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* For footer + header (outside the main container) */
.small_container {
    margin: 0 auto;
    width: 900px;

}

/* The bar on the top of the page */
.top_bar {
    width: 100%;
    height: 50px;
    margin-bottom: 30px;
    background:none repeat scroll 0 0 black;
}
#search {

 width: 502px;
 padding: 10px;
 height:20px;
 margin: 10px 0px 0px -30px;
 background-color:#505759;
 float:left
}

.question_box{

background: none repeat scroll 0 0 #FFFFFF;
    border-color: #CCCCCC #999999 #999999 #CCCCCC;
    border-style: solid;
    border-width: 1px;
    color: #000000;
    font: 16px arial,sans-serif;
    margin: -5px 0px 0px -5px;
    padding: 5px 8px 0px 6px;
    width:380px;
    height:25px

}
input.blur {
                color: #999;
            }
#search a {
    color: #E5E5E5;
    text-decoration: none;
        font-weight: bold;
}

#search a:hover {
    text-decoration: underline;

}
/* Logotype container */
.logotype {
    background-color:#671E1E;
    font-size: 20px;
    float: left;
        color:white;
        padding:10px;

        margin: 10px 30px 0px 0px;
}

/* The menu on the top of the page */
.top_menu {
    float: right;
    text-align: right;
    background-color: inherit;
    color: #ffffff;
    margin: 15px 0px 0px 0px;

}

.top_menu a {
    color: #E5E5E5;
    text-decoration: none;
}

.top_menu a:hover {
    text-decoration: underline;
    color: inherit;
}

/* Main content + form container on the front page */
.text_box {
    margin: 0 auto;
    margin-top: 70px;
    text-align: center;
    width: 590px;
}

/* Box for the iPhone image on the front page */
.iphone_promo {
    margin: 0 auto;
    margin-top: 70px;
    margin-bottom: 30px;
    text-align: center;
    width: 590px;
}

/* Red arrow next to the iPhone picture */
.arrow {
    margin: 0 auto;
    margin-left: 210px;
    margin-bottom: -145px;
}

/* Typography */
.small_copy {
    font-size: 12px;
}

#menu_list ul{

}
#menu_list li{

}

    .not_selected {

         -moz-border-radius: 5px 5px 5px 5px;
    background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
    background-position: left center;
    background-repeat: no-repeat;
    clear: both;
    display: block;
    font-weight: bold;
    padding: 3px 5px 3px 10px;

    color: #444444;
    cursor: default;

}
.not_selected:hover{

    background-color:lightblue;
}

.selected{

      -moz-border-radius: 5px 5px 5px 5px;
    background-image: url("http://d1vgw4v7ja2ido.cloudfront.net/-9dfe92083011731d.gif");
    background-position: left center;
    background-repeat: no-repeat;
    clear: both;
    display: block;
    font-weight: bold;
    padding: 3px 5px 3px 10px;

    background-color: #E0E0E0;
    color: #444444;
    cursor: default;

}

#menu_list li{
    margin-left: inherit;
}

.right_seperator {
    width: 200px;
    float: left;
    border-bottom: 1px dotted #999999;
    margin-top: 15px;
    margin-bottom: 10px;
    height: auto;
}

.light_gray_serif {
    font-family: Georgia, "Times new roman", serif;
    font-size: inherit;
    color: #999999;
    font-size: 14px;
}

/* Forms */
#email_form {
    width: 285px;
    height: 40px;
    font-size: 22px;
    margin-right: -1px;
    outline: none;
    font-weight: bold;
    color: #999999;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    float: left;
}

#submit_button {
    width: 295px;
    height: 52px;
    font-size: 22px;
    font-weight: bold;
    margin-left: -1px;
    cursor: pointer;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    border: 1px solid #F9AA33;
    float: right;
}

#username_form {
    width: 448px;
    height: 40px;
    font-size: 22px;
    margin-bottom: 15px;
    outline: none;
    font-weight: bold;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    float: right;
}

#password_form {
    width: 448px;
    height: 40px;
    font-size: 22px;
    margin-bottom: 15px;
    outline: none;
    font-weight: bold;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    float: right;
}

.standard_big_form {
    width: 448px;
    height: 40px;
    font-size: 22px;
    margin-bottom: 15px;
    outline: none;
    font-weight: bold;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    float: right;
}

/* Big login button */
#login_button {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    height: 52px;
    font-size: 22px;
    font-weight: bold;
    margin-left: -1px;
    cursor: pointer;
    color: inherit;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    border: 1px solid #F9AA33;
    float: right;
}

#login_button:active {
  position: relative;
  top: 1px;
}

/* Standard buttons */
.big_button {
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
    height: 52px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #333333;
    font-family: "Lucida Grande", Helvetica, Verdana, Arial, sans-serif;
    border: 1px solid #F9AA33;
    float: right;
}

.big_button:active {
  position: relative;
  top: 1px;
}

.profile_name_container {
    width: auto;
}

.follow_container {
    float: left;
    width: auto;
    margin-top: 7px;
    margin-left: 15px;
}

.follow_button {
    margin-left: 0px;
    text-align: justify;
    color: #0099CC;
    padding-left: 20px;
    padding-right: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 14px;
    background: url(../images/follow-icon.png) no-repeat 4px 6px;
}

.follow_button:hover {
    cursor: pointer;
    margin-left: -1px;
    margin-right: -1px;
    background-color: #EDEDED;
    border: 1px solid #999999;
    background-image: url(../images/follow-icon.png) no-repeat 4px 6px;
}

.unfollow_button {
    margin-left: 0px;
    text-align: justify;
    color: #0099CC;
    padding-left: 20px;
    padding-right: 4px;
    padding-top: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 14px;
    background: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}

.unfollow_button:hover {
    cursor: pointer;
    margin-left: -1px;
    margin-right: -1px;
    background-color: #EDEDED;
    border: 1px solid #999999;
    background-image: url(../images/unfollow-icon.png) no-repeat 4px 6px;
}

.push_footer {
    margin-bottom: 200px;
}

/* Footer (container) of the page */
.footer {
  float: left;
  margin-top: 30px;
  padding-bottom: 15px;
  width: 897px;
    height: 49px;
    border-top: 1px solid #999999;
}

/* "Photoblogging through events." text. */
.footer_info {
    font-size: 14px;
    float: left;
    margin-top: 15px;
}

/* The link to 'Support & Feature requests' */
.footer_link {
    font-size: 14px;
    float: right;
    margin-top: 15px;
}

/*** Colors ***/

/* Blue gradient (css gradients, #336699 is used for IE and older browsers) */
.blue_gradient {
    background: #336699;
    background: -webkit-gradient(linear, left top, left bottom, from(#0099CC), to(#336699));
    background: -moz-linear-gradient(top,  #0099CC,  #336699);
}

/* Yellow gradient (for button) #FBAA33 = orange */
.yellow_gradient {
    background: #FBAA33;
    background: -webkit-gradient(linear, left top, left bottom, from(#FBF16E), to(#FBAA33));
    background: -moz-linear-gradient(top,  #FBF16E,  #FBAA33);

}

.yellow_gradient:hover {
    background: #F6D05A;
}

/* Image design */
.photo {
    float: left;
    min-width: 200px;
    min-height: 200px;
    padding: 5px;
    margin-right: 15px;
    margin-bottom: 15px;
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    -moz-box-shadow: 4px 4px 10px #D1D1D1;
    -webkit-box-shadow: 4px 4px 10px #D1D1D1;
    box-shadow: 4px 4px 10px #D1D1D1;
}

.photo_thumbnail:hover {
    filter:alpha(opacity=60);
    -moz-opacity:0.6;
    -khtml-opacity: 0.6;
    opacity: 0.6;
}

.big_photo_container {
    text-align: center;
    width: 666px;
    margin-bottom: 15px;
}

.event_name {
    height: 20px;
    margin-right: 5px;
    width: 169px;
    float: left;
}

.trash_can {
    height: 17px;
    width: 14px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    padding-top: 3px;
    padding-left: 2px;
    float: right;
}

.trash_can:hover {
    cursor: pointer;
    margin: -1px;
    background-color: #EDEDED;
    border: 1px solid #999999;
}

/* Image design */
.big_photo {
    margin-top: 15px;
    max-width: 656px;
    padding: 5px;
    background-color: #ffffff;
    border: 1px solid #EAEAEA;
    -moz-box-shadow: 4px 4px 10px #D1D1D1;
    -webkit-box-shadow: 4px 4px 10px #D1D1D1;
    box-shadow: 4px 4px 10px #D1D1D1;
}

.profile_photo {
    float: left;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    margin-bottom: 15px;
    padding: 5px;
    background-color: #ffffff;
    -moz-box-shadow: 4px 4px 10px #D1D1D1;
    -webkit-box-shadow: 4px 4px 10px #D1D1D1;
    box-shadow: 4px 4px 10px #D1D1D1;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.profile {
    padding-top: 15px;
}

/* Heart sign */
.fav {
    margin-left: 0px;
    color: #0099CC;
    padding-left: 20px;
    padding-right: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: url(../images/heart-icons.png) no-repeat 4px 4px;
}

.fav:hover {
    cursor: pointer;
    margin-left: -1px;
    margin-right: -1px;
    background-color: #EDEDED;
    border: 1px solid #999999;
    background: url(../images/heart-icons.png) no-repeat 4px -13px #EDEDED;
}

.highlight {
    margin-left: 0px;
    color: #0099CC;
    cursor: pointer;
    padding-left: 20px;
    padding-right: 4px;
    padding-bottom: 4px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background: url(../images/heart-icons.png) no-repeat 4px -13px;
}

.highlight:hover {
    cursor: pointer;
    margin-left: -1px;
    margin-right: -1px;
    background-color: #EDEDED;
    border: 1px solid #999999;
    background: url(../images/heart-icons.png) no-repeat 4px 4px #EDEDED;
}

/* Heart sign */
.likes {
    font-size: inherit;
}

/* Views */
.views {
    padding-left: 20px;
    float: right;
}

/* Costum */

/* Removes underlines for eg. buttons */
.no_underline:hover {
    text-decoration: none;
}

/* Margins */
.small_margin_top {
    margin-top: 15px;
}

.negative_margin_top {
    margin-top: -4px;
}

.custom_margin_top {
    margin-top: 48px;
}

.no_margin_left {
    margin-left: 0px;
}
.no_margin_top {
    margin-top: 0px;
}

/* Paddings */
.no_padding_top {
    padding-top: 0px;
}

.normal_font_weight {
    font-weight: normal;
}

.photo_label {
    margin-right: auto;
    padding-left: 6px;
    text-align: left;
}

/* button basics */
  a.minibutton {
    display:inline-block;
    height:23px;
    padding:0 0 0 3px;
    font-size:11px;
    font-weight:bold;
    color:#333;
    text-shadow:1px 1px 0 #fff;
    background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
    white-space:nowrap;
    margin-right:4px;
    border:none;
    overflow:visible;
    cursor:pointer;
    text-decoration:none;
  }

  a.minibutton>span {
    display:block;
    height:23px;
    padding:0 10px 0 8px;
    line-height:23px;
    background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
  }

  a.minibutton:hover, a.minibutton:focus {
    color:#fff;
    text-decoration:none;
    text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
    background-position:0 -30px;
  }
  a.minibutton:hover>span, a.minibutton:focus>span {background-position:100% -30px;}

  a.minibutton.mousedown{background-position:0 -60px; }
  a.minibutton.mousedown>span{background-position:100% -60px; }

/* answer button */
  a.answer {
    display:inline-block;
    height:23px;
    padding:0 0 0 3px;
    font-size:18px;
    font-weight:bold;
    color:#333;
    text-shadow:1px 1px 0 #fff;
    background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 0 0 no-repeat;
    white-space:nowrap;
    margin-right:4px;
    border:none;
    overflow:visible;
    cursor:pointer;
    text-decoration:none;
  }

  a.answer>span {
    display:block;
    height:23px;
    padding:0 10px 0 8px;
    line-height:23px;
    background:url(http://github.com/images/modules/buttons/minibutton_matrix.png) 100% 0 no-repeat;
  }

  a.answer:hover, a.answer:focus {
    color:#fff;
    text-decoration:none;
    text-shadow:-1px -1px 0 rgba(0,0,0,0.3);
    background-position:0 -30px;
  }
  a.answer:hover>span, a.answer:focus>span {background-position:100% -30px;}

  a.answer.mousedown{background-position:0 -60px; }
  a.answer.mousedown>span{background-position:100% -60px; }

/* with icon */
  a.btn-download .icon {
    float:left;
    margin-left:-4px;
    width:18px;
    height:22px;
    background:url(http://github.com/images/modules/buttons/minibutton_icons.png?v20100306) 0 0 no-repeat;
  }
  a.btn-download .icon {background-position:-20px 0;}
  a.btn-download:hover .icon, a.btn-download:focus .icon {background-position:-20px -25px;}

  #profile_pic{

     padding:5px;
    border:1px #AAAAAA solid;
      float:left;
}

ul.stats{

    width:auto;
    float:left;
    display:inline;
    margin: 20px 0px 0px 0px;

}

ul.stats li{

    display:inline-block;
    text-align:left;

}
.stats_number{

    font-weight:bold;

font-size:10px;
}
 .stats_text{

    font-size:9px;
    color:#505759;
}

ul.followingBar{

    width:auto;
    float:left;

    margin: 0px 0px 0px 0px;

}
.watchingTopics{

    float:left
}

ul.followingBar li{

    display:block;
   margin: 10px 0 0 0 ;
    border-bottom:1px #999999 solid;

}

.topicFollow{
    padding-bottom:10px;
    font-weight:bold;
    float:left;
}
.related_questions{
    padding-bottom:10px;
    font-weight:bold;
}

.panel
    {
    margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5;  padding:6px; width:400px;
    display:none; float:left;
    }
    .load_comment
    {
    margin-left:50px; margin-right:50px; margin-bottom:5px; background-color:#D3E7F5; height:auto; padding:6px; width:400px; font-size:12px;
        float:left;
    }
    .flash_load
    {
    margin-left:50px; margin-right:50px; margin-bottom:5px;height:20px; padding:6px; width:400px;
    display:none;    }
        .loadplace{
            margin-top:70px;
}
<ul class="statuses">

<li>
<div id="answerText">
    <ul>
        <li>google</li>
        <li>yahoo</li>
        <li>quora</li>

    </ul>
    </div>
</li>

</ul>

A: Your style for <li> is wrong:
li {
    font-size: 14px;
    margin-left: 10px;
    list-style-type: circle;
    display: inline;
 }

should be
li {
    font-size: 14px;
    margin-left: 10px;
    list-style-type: circle;
 }

A: You attributed display:inline; to the LI tag, which explains why they're showing up horizontally instead of vertical.  Get rid of that attribute.

A: Try ensuring there are no:
list-style-type: none;
in your css file.

A: li only gets its list-style-related  styles applied if it has display: list-item

A: I found that having overflow-x: hidden; (which I had applied to *) was hiding my bullets.

A: list not display bullet points
list-style-type:none;
Hey , you may have a problem in selector for example we have this code for list

*some text

*soke text

so our css code become like this
#ls{ list-style-type: circle;}
select with id value if you have multiple list .

A: My issue was caused by:
::marker {
    content: none;
}

I was able to resolve by updating the CSS for my element to include:
li::marker {
    content: initial;
}


text:
Q: When I Click Button For Search Data in DataGridView, It Adds What I Want to Search in DataGridView Like I Said in Header When I Click Button For Search Data in DataGridView, It Adds What I Want to Search in DataGridView
Code:
    private void mtrTile_Search_Click(object sender, EventArgs e)
    {
        if (
            txtBox_TeacherName.TextLength    == 0 |
            txtBox_TeacherSurname.TextLength == 0
            )
        {
            MessageBox.Show(
                this,
                "Lütfen Bütün Kutuları Doldurunuz!",
                "UYARI!",
                MessageBoxButtons.OK,
                MessageBoxIcon.Warning
                );
        }
        else
        {
            try
            {
                con.Open();

                SqlDataAdapter sda = new SqlDataAdapter("SELECT TeacherName AS [Öğretmenin Adı], TeacherSurname AS [Öğretmenin Soyadı] FROM Teachers WHERE(TeacherName LIKE '" + txtBox_TeacherName.Text + "')AND (TeacherSurname LIKE '" + txtBox_TeacherSurname.Text + "')", con);
                sda.Fill(ds);
                DGV_Teachers.DataSource = ds.Tables[0];

                con.Close();
            }
            catch (Exception err)
            {
                con.Close();

                MessageBox.Show(
                    err.ToString(),
                    "HATA!",
                    MessageBoxButtons.OK,
                    MessageBoxIcon.Error
                    );
            }
        }
    }

Normally Like This

After Clicking Button Five Times

A: Before starting the connection, try using:
DataSet ds = new DataSet();

Or,
 DGV_Teachers.DataSource = null;
    DGV_Teachers.DataBind();

Or,
DGV_Teachers.Rows.Clear();
DGV_Teachers.Refresh();

Or,
dt.Rows.Clear();

A: How did you define the DataSet ds? Did you declare it as a global variable? Try to declare it as a local variable in the method.
Here is my test code and everything works fine.
private void Form1_Load(object sender, EventArgs e)
{
    using (SqlConnection conn = new SqlConnection(@"connection string"))
    {
        SqlDataAdapter sda = new SqlDataAdapter("Select * From Movie", conn);
        DataSet ds = new DataSet();
        sda.Fill(ds, "t1");
        this.dataGridView1.DataSource = ds.Tables["t1"];
    }
}

private void btnSearch_Click(object sender, EventArgs e)
{
    using (SqlConnection conn = new SqlConnection(@"connection string"))
    {
        SqlDataAdapter sda = new SqlDataAdapter("Select* From Movie Where Title=@Title", conn);
        sda.SelectCommand.Parameters.AddWithValue("@Title", textBox1.Text);
        DataSet ds = new DataSet();
        sda.Fill(ds);
        dataGridView1.DataSource = ds.Tables[0];
    }
}

redpajama_set_name: RedPajamaStackExchange


text:
Q: "abstinence" vs "abstention" - What's the difference? How are these two words different?
• total abstinence from strong drink
• abstention from intoxicating drinks

A: Abstinence from something refers to "intentionally avoiding something". Typically it is used for intoxicants, meat, and sex.
Abstention is a synonym of abstinence. However, this word is primarily used for abstaining from voting (such as during elections)


text:
Q: Moore - Penrose pseudoinverse of a general block matrix
How would Moore-Penrose pseudoinverse look like for a simple general
  example of a block matrix?
$$
     A_1=\begin{pmatrix}
     X & 0  \\
     0 & 0  \\
     \end{pmatrix} $$ $$
    A_2=\begin{pmatrix}
     0 & X  \\
    0 & 0  \\
     \end{pmatrix} $$
Where X is a block matrix.

I tried some online calculator  and got:
$$
    A^+_1=\begin{pmatrix}
    X^+ & 0  \\
    0 & 0  \\
    \end{pmatrix}
$$
$$
    A^+_2=\begin{pmatrix}
    0 & 0  \\
    X^+ & 0  \\
    \end{pmatrix}
$$
Where $A_i^+$ and $X^+$ denote the pseudoinverses.
But why there is the flip for $A_2$? Because of the transposition?
Is there any general formula how to deal with the block matrices like this?
On Wikipedia I just found the block matrices written in the form of $A = (X | Y)$ or the general expression for the inverse of the block matrices but I wasnt able to find out why that flip actually happened in these formulae.
And what if $X$ isn't regular or square?

A: Yes, because of the transposition.
Recall that $A^+$ is the unique matrix such that $AA^+A=A,\,A^+AA^+=A^+$ and both $AA^+$ and $A^+A$ are Hermitian. So, if $P$ is a permutation such that the product $AP$ makes sense, then $(AP)(P^TA^+)(AP)=AP,\,(P^TA^+)(AP)(P^TA^+)=P^TA^+$ and both $(AP)(P^TA^+),\,(P^TA^+)(AP)$ are Hermitian. It follows that $(AP)^+=P^TA^+$. That is, if you permute the columns of $A$, the rows of $A^+$ will be permuted too.
There is actually a special case of the more general result that $(AB)^+=B^+A^+$ when $B$ has orthonormal rows.


text:
Q: Solving a system of trigonometric equations. with NSolve Is numerical solving of the problem in the picture below even possible?

Edit: The code does not output anything, it just runs for 20min+
(eqs[p1_, p2_, p3_, p4_] =
{0 == G lk Cos[p1] + 7/2 mk g lk Cos[p1] - k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p1],
0 == G lk Cos[p2] + 5/2 mk g lk Cos[p2] - kt p2 - kt (p2 + p3) - k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p2],
0 == -3/2 mk g lk Cos[p3] - kt p3 - kt (p2 + p3) - k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p3],
0 == -1/2 mk g lk Cos[p4] - k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p4]}) //
TableForm

Edit 2:
Thank you for trying to help me. So after looking at my assignment again, i am not sure that posted equations are okay.  So I tried to simplify it. My code now is:
mk = 240; (*kg*)
G = 41200;(*N*)
Iu = 15*10^-7; (*m4*)
lk = 69/100;(*m*)
Eu = 210*10^9; (*Pa = N/m^2*)
k = 1*10^7 ;(*N/m*)
g = 981*10^-2;(*m/s^2*)
EI = Eu Iu;
P = 4;
kt = (EI/lk)(*Nm/rad*)

Equations:
Q1[\[Phi]1_, \[Phi]2_, \[Phi]3_, \[Phi]4_] =
  G lk Cos[\[Phi]1]  + 7/2 mk g lk Cos[\[Phi]1] - kt \[Phi]1 +
   kt \[Phi]2;
Q2[\[Phi]1_, \[Phi]2_, \[Phi]3_, \[Phi]4_] =
  G lk Cos[\[Phi]2] + 5/2 mk g lk Cos[\[Phi]2] + kt \[Phi]1 -
   2 kt \[Phi]2 - kt \[Phi]3;
Q3 [\[Phi]1_, \[Phi]2_, \[Phi]3_, \[Phi]4_] = - (3/2)
      mk g lk Cos[\[Phi]3] - kt \[Phi]2 - 2 kt \[Phi]3 + kt \[Phi]4;
Q4[\[Phi]1_, \[Phi]2_, \[Phi]3_, \[Phi]4_] =  - (1/2)
      mk g lk Cos[\[Phi]4] - kt \[Phi]4 + kt \[Phi]3;

And my only half successful attempt:
r = FindRoot[{
   Q1[\[Phi]1, \[Phi]2, \[Phi]3, \[Phi]4] ,
   Q2 [\[Phi]1, \[Phi]2, \[Phi]3, \[Phi]4],
   Q3 [\[Phi]1, \[Phi]2, \[Phi]3, \[Phi]4],
   Q4[\[Phi]1, \[Phi]2, \[Phi]3, \[Phi]4]}, {{\[Phi]1,
    0.001}, {\[Phi]2, 0.001}, {\[Phi]3, 0.001}, {\[Phi]4, 0.001}}]

The result that i get is not what i was expecting (3/2pi, 3/2pi, -3/2pi, -3/2pi).
Any hints ?
I tried also NSolve, Solve, Find.....
Grateful for any help.

A: Seems to be impossible to solve with NSolve. Even elimination of Sin[pi] or Cos[pi] didn't improve it.
With different starting points for FindRoot, it can be observed, that p1 and p4 alyways end in multiples of Pi/2. I can't proove this generally, but it seems plausible, since p1 and p4 only appear in  sin and cos in equations. Maybe some clever guy can show it.
Inserting only multiples of Pi/2 for p1 and p4, you can find all solutions for p2, p3 graphically as starting points for FindRoot.
(eqs[p1_, p2_, p3_, p4_] =
{0 == G lk Cos[p1] + 7/2 mk g lk Cos[p1] -
  k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p1],
0 == G lk Cos[p2] + 5/2 mk g lk Cos[p2] - kt p2 - kt (p2 + p3) -
  k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p2],
0 == -3/2 mk g lk Cos[p3] - kt p3 - kt (p2 + p3) -
  k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[p3],
0 == -1/2 mk g lk Cos[p4] -
  k 4 lk (Sin[p1] + Sin[p2] - Sin[p3] - Sin[p4]) Cos[
    p4]}) // TableForm

FindRoot[eqs[p1, p2, p3, p4] /. {G -> 1, lk -> 2, mk -> 3, g -> 4,
    kt -> 5, k -> 6}, {{p1, 1}, {p2, 1}, {p3, 1}, {p4, 1}}]

(*   {p1 -> 1.5708, p2 -> 1.13895, p3 -> 2.28885, p4 -> 1.5708}   *)

{p1, p2, p3, p4}/Pi /.
   FindRoot[eqs[p1, p2, p3, p4] /. {G -> 1, lk -> 2, mk -> 3, g -> 4,
kt -> 5, k -> 6}, {{p1, 2}, {p2, 4}, {p3, 1}, {p4, 0}}]

(*    {0.5, 1.6984, -1.66635, 1.5}   multiples of Pi   *)

{p1, p2, p3, p4}/Pi /.
   FindRoot[eqs[p1, p2, p3, p4] /. {G -> 1, lk -> 2, mk -> 3, g -> 4,
kt -> 5, k -> 6}, {{p1, 7}, {p2, 1}, {p3, 1}, {p4, 5}}]

(*   {2.5, 0.0223505, 0.565737, 1.5}   *)

Evaluate for given parameters and multiples of Pi/2. If equation yields True, it is valid for all pi. In this case no graph appears.
Solutions for p2,p3 are where all appearing graphes intersect.
Edit
Now taking into account, that overdetermined equations do not give a solution. there remain only 4 combinations.
soleqs = Select[
  Flatten[Table[{{p1, p4},
 DeleteCases[
  Evaluate[
   eqs[p1, p2, p3, p4] /. {G -> 1, lk -> 2, mk -> 3, g -> 4,
     kt -> 5, k -> 6}], True]}, {p1, 0, 2 Pi, Pi/2}, {p4, 0, 2 Pi,
  Pi/2}], 1], Length[#[[2]]] == 2 &]

ContourPlot[Evaluate[#[[2]]], {p2, 0, 2 Pi}, {p3, 0, 2 Pi},
  ContourStyle -> {Red, Green, Blue, Magenta},
  PlotLabel -> {{"p1=", #[[1, 1]]}, {"p4=", #[[1, 2]]}},
  GridLines -> Automatic, ImageSize -> 150] & /@ soleqs


text:
Q: Print pattern on a string with special character How to print only string figure with the following line :
\begin{figure}[h!]

I tried :
firstLine='\begin{figure}[h!]'
echo $firstLine | sed -n 's/\\begin{\(.*\)}/\1/p'

but returns :
figure[h!] instead of figure
It seems that issue comes from [] or ! character.

A: firstLine='\begin{figure}[h!]'
echo "$firstLine" | sed 's/.*{\(.*\)}.*/\1/'

Output:

figure

With your code (add .*):
echo $firstLine | sed -n 's/\\begin{\(.*\)}.*/\1/p'

A: This might work for you (GNU sed):
sed 's/.*{\(.*\)}.*/\1/' file

This assumes there is only one {...} expression and one line.
A more rigorous solution would be:
sed -n 's/.*\\begin{\([^}]*\)}.*/\1/p' file

However nothing would be output if no match was found.


text:
Q: Laravel 7 query builder ignoring new data I was trying to create new input to default registration form (This is similar How to add new input in register page laravel?). But SQL command created by code below don't add my new data in command.
protected function create(array $data)
{
    return User::create([
        'name' => $data['name'],
        'email' => $data['email'],
        'address' => $data['address'],
        'password' => bcrypt($data['password'])
    ]);
}

In SQL i get something like INSERT INTO "user" ("name","email","password") VALUES ... and adress is ignored.

A: Add fillable property in User Model
class User extends Authenticatable
{
    use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'address'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'email_verified_at' => 'datetime',
    ];

}


text:
Q: On a Mac what keyboard short cuts do left handed people use for copy and paste I'm right handed, but I am switching the mouse to my left hand to give my right a rest. On PC keyboards ctrl ins and ctrl del work as copy and paste, is there an equivalent on the Mac?
Update:
I thought I was asking for key switching solutions, but that's not quite what I put in the title, and the suggestions to use the existing keys has made me think. The particular problem I'm having involves the holding of the mouse making my wrist slightly bent, and the regular action of raising my hand to move the mouse in a limited area has begun to make me feel it in the wrist, a warning sign.
Regular rests can't undo over 20 years of bending, so I shall stick with the hand change. But keeping the keys unchanged might force me to leave my hand near the keyboard and not on the mouse, which might reduce the time spent bent. I shall see how it goes.
I've chosen the answer closest to my chosen action. @Arjen, your comment was closer but I can't accept it.
Thanks all

A: You could use PTH Pasteboard Pro and set up any hot key you want in its preference pane. I tested this by setting Control-Delete to paste.

A: I'm a Windows and Mac user, and I'm left-handed. I rarely use my mouse and I use my left hand for copy and paste, irrespective of the OS or which hand I'm using to control the mouse. It took too many braincells to remember two ways to do the same thing on the keyboard.
As for resting, you should be doing that every 20 minutes. It's just common sense. Stand up, walk around, focus on things further away than your screen, etc.

A: Remap Copy and Paste shortcuts on a Mac
you just remap it to something else..


text:
Q: Can a clustered index survive being moved to a different tablespace? I have a table that is initially partitioned by day. At the end of every day no more records will be added to that partition, so I cluster the index and then I then do a lot of number crunching and aggregation on that table (using the index I clustered):
CLUSTER table_a_20181104 USING table_a_20181104_index1;

After a few days (typically a week) I merge the partition for one day into a larger partition that contains all the days data for that month. I use this SQL to achieve this:
WITH moved_rows AS
(
    DELETE FROM table_a_20181104
    RETURNING *
)
INSERT INTO table_a_201811
SELECT * FROM moved_rows;

After maybe a month or too I change the tablespace to move the data from an SSD disk to a conventional magnetic hard disk.
ALTER TABLE ... SET TABLESPACE ...

My initial clustering of the index at the end of the day definitely improves the performance of the queries run against it.
I know that clustering is a one-off command and needs to be repeated if new records are added/removed.
My questions are:

*

*Do I need to repeat the clustering after merging the 'day' partition into the 'month' partition?

*Do I need to repeat the clustering after altering the tablespace?

*Do I need to repeat the clustering if I VACUUM the partition?

A: *

*Moving the data from one partition to the other will destroy the clustering, so you'll need to re-cluster after it.

*ALTER TABLE ... SET TABLESPACE will just copy the table files as they are, so clustering will be preserved.

*VACUUM does not move the rows, so clustering will also be preserved.


text:
Q: ReliableDictionary  Is there any nice way to do a IReliableDictionary<key,List> ? I would imagine that the list would not be atomic and run into concurrency issues. Is there any nice way to do this ? I could imagine it would be useful for building indexes as well. eg  IReliableDictionary<index,List<Guid>>.

A: Not just concurrency issues, but data corruption and poor replication performance as well if you're not careful. Read through this guide for a detailed explanation: https://azure.microsoft.com/en-us/documentation/articles/service-fabric-work-with-reliable-collections/
tl;dr:

*

*Every time you commit a transaction, the entire list is replicated and saved. If the list grows indefinitely, then so does replication time and cost.

*Your list better be immutable. If you make local changes directly to the list reference inside a transaction, and the transaction aborts (exception or something), your local changes will not be rolled back. If some other part of your code has a reference to the list and makes changes to the list outside of a transaction, those changes won't replicated and saved.


text:
Q: verificar si un archivo ya ah sido descargado en swift 3 Tengo un método para descargar un json desde una url y funciona correctamente, me descarga el archivo y me imprime la ruta en donde ah sido guardado, pero ahora no se como implementar un método para verificar que si el archivo ya existe, no se vuelva a descargar y si no, que entre al método para descargar, tambien quisiera cambiar la ruta de donde se guarda el archivo. Espero puedan ayudarme, Gracias.
Les dejo lo que tengo.
=========================================================================
import UIKit

class ViewController: UIViewController {

//Create URL to the source file you want to download
let fileURL = URL(string: "http://10.32.14.124:7098/Servicio.svc/getCentralesMovilJSON/")

// Create destination URL
let documentsUrl:URL =  FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first as URL!

override func viewDidLoad() {
    super.viewDidLoad()
    // Do any additional setup after loading the view, typically from a nib.

}

func descargar() {

    //agregar al destino el archivo
    let destinationFileUrl = documentsUrl.appendingPathComponent("centrales.json")

    let sessionConfig = URLSessionConfiguration.default
    let session = URLSession(configuration: sessionConfig)

    let request = URLRequest(url:fileURL!)

    let task = session.downloadTask(with: request) { (tempLocalUrl, response, error) in
        if let tempLocalUrl = tempLocalUrl, error == nil {
            // Success
            if let statusCode = (response as? HTTPURLResponse)?.statusCode {
                print("Successfully downloaded. Status code: \(statusCode)")
                print(destinationFileUrl)
            }

            do {
                try FileManager.default.copyItem(at: tempLocalUrl, to: destinationFileUrl)
            } catch (let writeError) {
                print("Error creating a file \(destinationFileUrl) : \(writeError)")
            }

        } else {
            print("Error took place while downloading a file. Error description: %@", error?.localizedDescription);
        }
    }
    task.resume()

}

}

A: estuve investigando y logre resolver mi duda, ahora ya puedo verificar si mi archivo existe, solo me manda la ruta en donde se encuentra guardado y si no, lo descarga....
aqui esta mi nuevo código
import UIKit

class ViewController: UIViewController {

override func viewDidLoad() {
    super.viewDidLoad()

 //llamar metodo para descargar json
        descargar()

}

//------------------Descargar archivo------------------------------------------------------------
func descargar() {

    //Create URL to the source file you want to download
    let fileURL = URL(string: "http://10.32.14.124:7098/Servicio.svc/getCentralesMovilJSON/")

    // Create destination URL
    let documentsUrl:URL =  FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first as URL!

    //agregar al destino el archivo
    let destinationFileUrl = documentsUrl.appendingPathComponent("centrales.json")

    //archivo existente???....................................................
    let fileExists = FileManager().fileExists(atPath: destinationFileUrl.path)

    let sessionConfig = URLSessionConfiguration.default
    let session = URLSession(configuration: sessionConfig)

    let request = URLRequest(url:fileURL!)

    // si el archivo ya existe, no descargarlo de nuevo y enviar ruta de destino.........................................................................
    if fileExists == true {
        print("archivo existente")
        print(destinationFileUrl    )
    }

// si el archivo aun no existe, descargarlo y mostrar ruta de destino..........................................................................
    else{
        print("descargar archivo")

    let task = session.downloadTask(with: request) { (tempLocalUrl, response, error) in
        if let tempLocalUrl = tempLocalUrl, error == nil {
            // Success se ah descargado correctamente...................................
            if let statusCode = (response as? HTTPURLResponse)?.statusCode {
                print("Successfully downloaded. Status code: \(statusCode)")
                print(destinationFileUrl)
            }

            do {
                try FileManager.default.copyItem(at: tempLocalUrl, to: destinationFileUrl)
            } catch (let writeError) {
                print("Error creating a file \(destinationFileUrl) : \(writeError)")
            }

        } else {
            print("Error took place while downloading a file. Error description: %@", error?.localizedDescription);
        }
        }
    task.resume()

    }}

}


text:
Q: c: check if a function is defined in main.c from external file I have a .c file (external.c) that is going to be used in several different projects:
#include <stdio.h>

void printHello() {
    printf("Hello World!\n");

    // Check if donePrinting is defined in main.c here and call it if it is
    donePrinting();
}

These different projects all have a main.c that call printHello(), but not all of them have donePrinting in them.  For example some look like this:
#include "external.h"
#include <stdio.h>

int donePrinting() {
    printf("Done printing Hello World\n");
}

int main()
{
   printHello();
   return 0;
}

while others look like this:
#include "external.h"
#include <stdio.h>

int main()
{
   printHello();
   return 0;
}

Is there a way I can check if donePrinting() exists when inside external.c?  If not what would be a work around for this?  I was thinking of defining a global variable in main.c that said if donePrinting exists or not and checking that global variable in printHello().

A: A mild form of dependency injection is what you need. Pass a pointer to the function that needs executing into printHello:
void printHello(void (*postPrintCB)(void)) {
    printf("Hello World!\n");

    // Check if donePrinting is defined in main.c here and call it if it is
    if (postPrintCB)
      postPrintCB();
}

That way, projects with a donePrinting function can call it like this:
printHello(donePrinting);

And projects without a donePrinting function can call it without:
printHello((void(*)(void))0);

You can of course typedef this thing a bit to make it easier on the eyes:
typedef void postPrintCB(void);
#define NULL_POST_PRINT_CB ((postPrintCB*)0)

void printHello(postPrintCB* callback);

A: Have a look at weak symbols
A weak symbol allows you to provide a default implementation (that possibly does nothing), that can be overwritten by your main.c if you feel the need to do so.

A: Fix it at linking
Require all projects to define donePrinting(). Just add a function that does nothing to the projects that lack it. Or provide a central definition in a separate file and the projects that need an empty definition can add that file to their build step.


text:
Q: Function Return Mechanism:Temporary object, R-Value, L-Value Analyzing the question on its low level, when a function returns a value, it is returned either in a cpu register, or in a space allocated on the stack previously by the caller.
At this point the calling function can take the value and copy it into its local variable.
int sum(int a,int b){return a + b;}

int main(){int risultato = sum(10,20);return 0;}

in this case the sum function returns the value in the EAX register. Then the main function copies the value from the eax register into a memory location on the stack.
This is what really happens.
Moving now to the abstraction of C ++, if I tried to do an operation like this:
sum (10.20) = 4;
it gives me an error.
This is because basically the function is not returning the memory location in which the value is contained, but the value itself.
Being therefore an r-value, this will not be assignable, since it is not possible to assign a value to another value.
The issue becomes completely different when the dereferencing operator * is used.
In this case, it will not be returned a value, but the memory location itself (l-value), which will therefore be assignable.
Is what I wrote correct?
Let's take now this second exemple.
class class1 {public: int i; int b; class1(int i,int b) { this->i = i;this->b = b; }};

class1 fun() { class1 c(10,5); return c; }
int main() {fun().i = 4; return 0;}

in this case the function returns an object.
If I try to execute an instruction like this:
fun (). i = 4; I always get an error.
I know that when the function is called a temporary object is created on the stack.
Returning the function an object , but not as a variable (l-value), but as a set of values, it will not be possible to assign one of these with the value 4.
The same problem also seems to exist with this statement here:
class1(10,20).i = 4;

In this case I am creating a temporary object, I don't understand why it doesn't give me the possibility to assign the object's variable i, why in this case is it  always interpreted as an r-value and not as an l-value?
I know that what I am doing has no use in practice, but it remains a purely theoretical question, which I need to understand the syntax of language correctly.
Could you comment everything I have said so far, expressing your point of view, and trying to answer the final question?

A:
Moving now to the abstraction of C ++, if I tried to do an operation like this: sum (10.20) = 4; it gives me an error. This is because basically the function is not returning the memory location in which the value is contained, but the value itself. Being therefore an r-value, this will not be assignable, since it is not possible to assign a value to another value. The issue becomes completely different when the dereferencing operator * is used. In this case, it will not be returned a value, but the memory location itself (l-value), which will therefore be assignable.
Is what I wrote correct?

Kind of.  You say

This is because basically the function is not returning the memory location in which the value is contained

But that is not what happens.  An object is returned, that object has a value.  What makes it an rvalue is that the function "returns by value" (another name for makes a temporary object).

Being therefore an r-value, this will not be assignable, since it is not possible to assign a value to another value

This is only true for built in types.  The assignment operator of built in types requires that the object being assigned to be an lvalue.  If you have a user defined type (class, struct) then you can assign to an rvalue.

In this case I am creating a temporary object, I don't understand why it doesn't give me the possibility to assign the object's variable i, why in this case is it always interpreted as an r-value and not as an l-value?

The reason is that with operator . if the object you call it on is an rvalue, then the member you access is treated as an rvalue.  Since i is a built in type, and an rvalue, you can't assign to it.

A:
I know that what I am doing has no use in practice

This is the answer to your question:

Why in this case is it always interpreted as an r-value and not as an l-value?

It's harder to implement the compiler if it needs to make this an L-Value, and since it has no use, it's not worth the trouble.
There are some things that are just for the convenience of compiler writers.

A: @NathanOliver answered the C++ abstract machine part.  I'll just add a note about how that maps to asm.

Then the main function copies the value from the eax register into a memory location on the stack.

Or not, if the optimizing compiler just keeps risultato in a register like EAX.  Or optimizes it away completely because in this case it's unused.
In abstract C every object has a memory address (except for register int foo variables), but in practice unless you disable optimization variables only have addresses if the compiler runs out of registers.
The return-value object is in EAX.
Notice that mainstream C++ calling conventions only ever return trivially-copyable objects in registers.  A non-trivial constructor or destructor will force even a struct of one member to be returned by hidden pointer, to make sure the constructor and destructor have a consistent this.  (Calling convention rules can't depend on the content of the constructor and destructor functions, just whether either is defined at all.)


text:
Q: Disable pylint message for a given module or directory Is there a way to disable Pylint's duplicate-code message just for test files? All of the tests in our project are DAMP so the duplicated code is by design. I understand we can add # pylint: disable=duplicate-code throughout our tests, but would rather add some sort of rule that says all files under a test/ folder will have this rule disabled. Is there a way to do this?
To be more specific, I'm looking for something different from a 'run it twice' solution (which is what I've already fallen back on).

A: There is the --disable or -d message control flag that can be used to selectively disable messages when called. You could therefore disable this message for all files under the test folder by running pylint on those files from within the project folder:
pylint -d duplicate-code test/

I was able to verify that I can cut out specific messages from all files in the directory, although I was not getting duplicate code errors and so could not check for that message.
You could also put this into a script that you run from your project's main directory. Something like:
#!/bin/bash
pylint src/
pylint -d duplicate-code test/

Alternatively, you could add # pylint: disable=duplicate-code to the top of each of the files for which you want to exclude these messages. It looks like that is about as far as file-wise selective exclusion flags goes for pylint.

A: It can be achieved with pylint plugin and some hack.
Assume we have following directory structure:
 pylint_plugin.py
 app
 ├── __init__.py
 └── mod.py
 test
 ├── __init__.py
 └── mod.py

content of mod.py:
def f():
    1/0

content of pylint_plugin.py:
from astroid import MANAGER
from astroid import scoped_nodes

def register(linter):
    pass

def transform(mod):
    if 'test.' not in mod.name:
        return
    c = mod.stream().read()
    # change to the message-id you need
    c = b'# pylint: disable=pointless-statement\n' + c
    # pylint will read from `.file_bytes` attribute later when tokenization
    mod.file_bytes = c

MANAGER.register_transform(scoped_nodes.Module, transform)

without plugin, pylint will report:
************* Module tmp.exp_pylint.app.mod
W:  2, 4: Statement seems to have no effect (pointless-statement)
************* Module tmp.exp_pylint.test.mod
W:  2, 4: Statement seems to have no effect (pointless-statement)

with plugin loaded:
PYTHONPATH=. pylint -dC,R --load-plugins pylint_plugin app test

yields:
************* Module tmp.exp_pylint.app.mod
W:  2, 4: Statement seems to have no effect (pointless-statement)

pylint read comments by tokenizing source file, this plugin change file content on the fly, to cheat pylint when tokenization.
Note that to simplify demonstration, here I constructed a "pointless-statement" warning, disable other types of message is trivial.


text:
Q: Setting grid in QGIS that automatically adjust its intervals? I am setting a template for multiple maps in QGIS 3 Layout and i was wondering if there is a way of automatically adjusting the grid's interval as a function of the scale of the map?
I did a bit of research here:

*

*Is there any other option to display DMS grid and graticule in QGIS Print Composer?

*How to create a reference grid in QGIS print composer?
but they seem not to answer my question.
I want to make sure that no matter the scale of my map, this template adjusts the grid. Currently, one grid may work well for a determined scale

But the grid may get quite dense if i zoom out (see numbers in the top as well)

Or useless if i zoom in

I want to define the intervals in a way that they are automatically updated as a function of the scale of the map.
How do I do this?

A: Try setting your 'Interval' to 'Fit Segment Width' in map grid properties. This will keep your grid to a defined spacing, and accommodate different scales.

A: With Qgis 3.X it's possible.
Edit the value and use the @map_scale property.


text:
Q: How to exclude designer.cs from Visual Studio file search Is there a way to exclude a particular type of .cs file when doing a search in Visual Studio 2005/8?
Example: In a refactoring scenario i might search to identify string literals in my code so that i can refactor them into constants or some such. However, *designer.cs files are full of string literals which i don't care to deal with but they show up in my search and pollute the result set.
i usually search for *.cs...
How do i ignore *.designer.cs?

A: The Microsoft Connect ticket "Find option to exclude designer generated code" indicates that filtering search by file extension won't be present in VS 2010.

A: The feature to exclude files matching a pattern has been added to Visual Studio 16.5.x
https://devblogs.microsoft.com/visualstudio/modernizing-find-in-files/

Any path or file type prefixed with the "!" character will be excluded
  from the search. For instance, you can add "!*\node_modules*" to the
  file types list to exclude any files in a node_modules folder.

A: *a.cs;*b.cs;*c.cs;*d.cs;*e.cs;*f.cs;*g.cs;*h.cs;*i.cs;*j.cs;*k.cs;*l.cs;*m.cs;*n.cs;*o.cs;*p.cs;*q.cs;*s.cs;*t.cs;*u.cs;*v.cs;*w.cs;*x.cs;*y.cs;*z.cs;*_.cs;*..cs;*ar.cs;*br.cs;*cr.cs;*dr.cs;*fr.cs;*gr.cs;*hr.cs;*ir.cs;*jr.cs;*kr.cs;*lr.cs;*mr.cs;*nr.cs;*or.cs;*pr.cs;*qr.cs;*rr.cs;*sr.cs;*tr.cs;*ur.cs;*vr.cs;*wr.cs;*xr.cs;*yr.cs;*zr.cs;*_r.cs;*.r.cs;*aer.cs;*ber.cs;*cer.cs;*der.cs;*eer.cs;*fer.cs;*ger.cs;*her.cs;*ier.cs;*jer.cs;*ker.cs;*ler.cs;*mer.cs;*oer.cs;*per.cs;*qer.cs;*rer.cs;*ser.cs;*ter.cs;*uer.cs;*ver.cs;*wer.cs;*xer.cs;*yer.cs;*zer.cs;*_er.cs;*.er.cs;*aner.cs;*bner.cs;*cner.cs;*dner.cs;*ener.cs;*fner.cs;*hner.cs;*iner.cs;*jner.cs;*kner.cs;*lner.cs;*mner.cs;*nner.cs;*oner.cs;*pner.cs;*qner.cs;*rner.cs;*sner.cs;*tner.cs;*uner.cs;*vner.cs;*wner.cs;*xner.cs;*yner.cs;*zner.cs;*_ner.cs;*.ner.cs;*agner.cs;*bgner.cs;*cgner.cs;*dgner.cs;*egner.cs;*fgner.cs;*ggner.cs;*hgner.cs;*jgner.cs;*kgner.cs;*lgner.cs;*mgner.cs;*ngner.cs;*ogner.cs;*pgner.cs;*qgner.cs;*rgner.cs;*sgner.cs;*tgner.cs;*ugner.cs;*vgner.cs;*wgner.cs;*xgner.cs;*ygner.cs;*zgner.cs;*_gner.cs;*.gner.cs;*aigner.cs;*bigner.cs;*cigner.cs;*digner.cs;*eigner.cs;*figner.cs;*gigner.cs;*higner.cs;*iigner.cs;*jigner.cs;*kigner.cs;*ligner.cs;*migner.cs;*nigner.cs;*oigner.cs;*pigner.cs;*qigner.cs;*rigner.cs;*tigner.cs;*uigner.cs;*vigner.cs;*wigner.cs;*xigner.cs;*yigner.cs;*zigner.cs;*_igner.cs;*.igner.cs;*asigner.cs;*bsigner.cs;*csigner.cs;*dsigner.cs;*fsigner.cs;*gsigner.cs;*hsigner.cs;*isigner.cs;*jsigner.cs;*ksigner.cs;*lsigner.cs;*msigner.cs;*nsigner.cs;*osigner.cs;*psigner.cs;*qsigner.cs;*rsigner.cs;*ssigner.cs;*tsigner.cs;*usigner.cs;*vsigner.cs;*wsigner.cs;*xsigner.cs;*ysigner.cs;*zsigner.cs;*_signer.cs;*.signer.cs;*aesigner.cs;*besigner.cs;*cesigner.cs;*eesigner.cs;*fesigner.cs;*gesigner.cs;*hesigner.cs;*iesigner.cs;*jesigner.cs;*kesigner.cs;*lesigner.cs;*mesigner.cs;*nesigner.cs;*oesigner.cs;*pesigner.cs;*qesigner.cs;*resigner.cs;*sesigner.cs;*tesigner.cs;*uesigner.cs;*vesigner.cs;*wesigner.cs;*xesigner.cs;*yesigner.cs;*zesigner.cs;*_esigner.cs;*.esigner.cs;*adesigner.cs;*bdesigner.cs;*cdesigner.cs;*ddesigner.cs;*edesigner.cs;*fdesigner.cs;*gdesigner.cs;*hdesigner.cs;*idesigner.cs;*jdesigner.cs;*kdesigner.cs;*ldesigner.cs;*mdesigner.cs;*ndesigner.cs;*odesigner.cs;*pdesigner.cs;*qdesigner.cs;*rdesigner.cs;*sdesigner.cs;*tdesigner.cs;*udesigner.cs;*vdesigner.cs;*wdesigner.cs;*xdesigner.cs;*ydesigner.cs;*zdesigner.cs;*_designer.cs

Hi, just copy and paste the above to "Look at these file types:"
-Steven Chong

A: Concerning Visual Studio 2019 16.5 (Preview 1) and above:
I'm very late to the party, but I did want to filter out the designer.vb files from my search recently, and I learned that the VS team updated the "Find and Replace" dialog in late 2019 (the one you get with Ctrl+Shift+F).
You can now filter out some extensions really easily: you just have to add the right string to the file type textbox:

The filters are separated by semicolon. A filter starting with an "!" is a filter against something. Here I added the following to exclude code from my designer files:
!*.designer.vb

which would translate to "Avoid files starting with 'wildcard' .designer.vb"
A very interesting improvement. Here's the associated blog post for more details. You should read through it.

A: I see it's pretty late, but looking at the number of votes and activity on this page, I'm posting my answer; maybe someone else finds it useful. Here's how you can do this in VS2010 and above:

*

*Open Package Manager Console (Tools > NuGet Package Manager > Package Manager Console). Let PowerShell initialize itself.

*Enter the following command at PowerShell Prompt:
dir -Recurse | Select-String -pattern "Your Search Word Or Pattern" -exclude "*.designer.cs"

*This will list all the occurrences of the word or pattern you've specified, including file name, line number and the text line where it was found.

Additional Notes

*

*If you want to specify multiple exclude patterns, replace "*.designer.cs" with @("*.designer.cs", "*.designer.vb", "reference.cs") or whatever other files you want to skip.

*Another good thing about it is that the search pattern supports regular expressions too.

*One downside of this solution is that it doesn't let you double-click a line in the result to open that file in Visual Studio. You can workaround this limitation through command-piping:
dir -Recurse | Select-String -pattern "Your String Or Pattern" -exclude "*.designer.vb" | sort | Select -ExpandProperty "Path" | get-unique | ForEach-Object { $DTE.ExecuteCommand("File.OpenFile", """$_""") }
This will open all the files where the string or pattern was found in Visual Studio. You can then use Find window in individual files to locate the exact instances.
Another advantage of this solution is that it works in Express versions as well, since Package Manager is included in 2012 and 2013 Express versions; not sure about 2010 though.

A: For Visual Studio 2010 try the Ultra Find extension. You can explicitly exclude extensions.

Note that the search speed depends on if you are searching the file system or the project/solution.

A: I just came across this question in my search for an answer to this very problem.
Got frustrated with VS and fell back on my trusty copy of UltraEdit and specified these options in its "Find in Files" tool:
File names/extensions to ignore in search:

    *.pdb;*.dll;*.exe;*designer.vb;*.xsd;*.xml;*.xss;*.resx;

A: A commercial option is the $29 Entrian Source Search add-in that can specify exclusion patterns

A: It really blows for an answer but here's what I did after trying 'Exclude from project' only to find that these files were also searched.
All the files I didn't want included were, fortunately, in a folder off the root called 'Archived' so ... I cut and pasted the file to my desktop.
Maybe that's why Ultra Find Extension disappeared ... developers can group all unwanted files into a a folder off the web root and just remove it while they do searches, LOL.

A: Just search files types: *.aspx.vb


text:
Q: git refuses to connect without proxy I work on a Linux system in a Windows environment. To authenticate with a NT proxy server I had setup cntlm and configured system programs to use it via setting http_proxy environment variable in the /etc/environment file.
Now I want to remove this proxy setting and have the programs connect directly.
So I unset the system environment variables:
unset http_proxy
unset HTTP_PROXY

Check ~/.gitconfig to ensure that there are no proxy entries.
Explicitly instruct git not to use any proxies:
git config --global --unset http.proxy
git config --global --unset https.proxy

Verify that no proxy is configured:
git config --system --get https.proxy
git config --global --get https.proxy
git config --system --get http.proxy
git config --global --get http.proxy

And then push to a remote repo:
git push

But git still tries to connect via proxy:

fatal: unable to access 'https://xxx@bitbucket.org/xxx.git/': Failed
  to connect to 127.0.0.1 port 3128: Connection refused

Why won't it let go off cntlm?

A: *

*use cat ~/. this will list all the files.

*use cat ~/.gitconfig this will open the contents of file.

*If you find any proxies there remove it like
[http]
    proxy = http://127.0.0.1:3128

*You can remove it by using nano ~/.gitconfig command.

*Now this command will work.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
ALSO REMEMBER to remove all the proxies like
unset http_proxy="http_proxy"
unset https_proxy=$http_proxy
unset ftp_proxy=$http_proxy
unset rsync_proxy=$http_proxy
unset HTTP_PROXY=$http_proxy
unset HTTPS_PROXY=$http_proxy
unset FTP_PROXY=$http_proxy
unset RSYNC_PROXY=$http_proxy

Remember to remove proxies from system preferences network and proxies uncheck all the check boxes now try to do.

A: The easiest check to do is:
env|grep -i proxy

The OP confirms:

I thought I had removed proxy by unset http_proxy.
  But there is a different environment variable for HTTPS which needs to be unset separately. Running env|grep -i proxy revealed that.


text:
Q: Magento 2 How to add rich snippets code on products using Schema.org tags? I am looking to add Google snippets schema organization code on product page in Magento 2.2.I have searched on forums but didn't get any exact answer.
I have implemented in Magento1 but not idea how to do same in Magento 2.
Please help me if anyone have any idea and implemented before.
Thanks,


text:
Q: onLayout is not invoked for right item when sued inside loop I render items in a loop and I need to get each item Y position so I can use scrollTo() to scroll to that position later on event.
Problem is that it seems that onLayout is not called correctly so I am getting wrong item positions.
Example items:
A,B,C,D

but I get stored position sometimes for A, sometimes for C etc.
How can I synchronise this?
this.props.list.map((item, index) => {
   return (
      <TouchableOpacity
        onLayout={(event) => {
          let {x, y, width, height} = event.nativeEvent.layout;
....

UPDATE
Here is full code. So you see I set first country index that I find in onLayout. So when I press B it should scroll to position of Bahamas but instead it sometimes scroll to Bahamas and sometimes to Barbados and sometimes to Bhutan...
const countries = ["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan"];

export default class App extends Component {

  constructor(props, context) {
    super(props, context);

    this.state = {
      currentLetter: "A",
    };

    this.sections = {}
  }

onLetter(letter) {
    this.setState({currentLetter: letter});
    if (this.sections[letter]) {
      this.scrollView.scrollTo({ y: this.sections[letter] });
    }
  }

<ScrollView ref={ref => this.scrollView = ref}>
          {
            countries.map((item) => {
              return (
                <View onLayout={(event) => {
                  var {x, y, width, height} = event.nativeEvent.layout;
                    if (!this.sections[item[0]]) {
                      this.sections[item[0]] = y;
                    }
                  }}
                  style={{backgroundColor: "#f0aabb", padding: 10, margin: 5}}>
                  <Text>{item}</Text>
                </View>
              )
            })
          }
        </ScrollView>

A: I think the onLayout doesn't go on order. So not sure if Bahamas will go first.
I think you should create a func for mapping letter and starting/pointing item, like: 'A' = 'Afghanistan', 'B' = 'Bahamas'
You can hard-code it (not recommend, just explain the idea)
dataSource = { 'Afghanistan': 'A', 'Bahamas': 'B'}
// implement this func base on your rules for title and letter
getLetterFromTitle(title) {
  return dataSource[title];
}

then onLayout
const letter = getLetterFromTitle(item);
if (letter && !this.sections[letter]) {
  this.sections[letter] = y;
}


text:
Q: Calculating hash MD5 I'm trying to use SubDB API but I'm having problems to calculate the hash of the file. Hash is composed by taking the first and the last 64kb of the video file, putting all together and generating a md5 of the resulting data (128kb). The following function, written in python, implements the hash algorithm:
def get_hash(name):
        readsize = 64 * 1024
        with open(name, 'rb') as f:
            size = os.path.getsize(name)
            data = f.read(readsize)
            f.seek(-readsize, os.SEEK_END)
            data += f.read(readsize)
        return hashlib.md5(data).hexdigest()

I'm using C++ Builder XE2 and I tried to translate this as follows:
String __fastcall MD5Hash(const AnsiString filename)
{
     String result;
     char firstbits[60*1024], lastbits[60*1024];
     char bits[120*1024];

     FILE* f = fopen(filename.c_str(), "rb");
     if(f ==NULL) {ShowMessage("Error!"); return "";}
     TIdHashMessageDigest5 *idmd5= new TIdHashMessageDigest5();
     try  {
        fread(firstbits, 60*1024, 1, f);
        fseek(f, -(long)60*1024, SEEK_END);
        fread(lastbits, 60*1024, 1, f);
        strcpy(bits, firstbits);
        strcpy(bits, lastbits);
        result= idmd5->HashBytesAsHex(RawToBytes(bits, 120*1024));
     }
     __finally    {
        delete idmd5;
     }
     fclose(f);
     return result;
}

Test file is this: http://thesubdb.com/api/samples/dexter.mp4, and it's hash value (from the algorithm above) should be ffd8d4aa68033dc03d1c8ef373b9028c. But, I can't get it right...
Delphi solution would be also OK.

A: How about trying the following code. I just changed the sizes, did the proper freads, and removed the strcpy.
String __fastcall MD5Hash(const AnsiString filename)
{
     String result;
     char bits[128*1024];

     FILE* f = fopen(filename.c_str(), "rb");
     if(f ==NULL) {ShowMessage("Error!"); return "";}
     TIdHashMessageDigest5 *idmd5= new TIdHashMessageDigest5();
     try  {
        fread(bits, 64*1024, 1, f);
        fseek(f, -(long)64*1024, SEEK_END);
        fread(&bits[64*1024], 64*1024, 1, f);
        result= idmd5->HashBytesAsHex(RawToBytes(bits, 128*1024));
     }
     __finally    {
        delete idmd5;
     }
     fclose(f);
     return result;
}


text:
Q: Error when adding a signal in quantstrat package I am new to R and am trying to create a very simple trading strategy (Buy the VIX when it's up by 2%, sell it when it's down by 2%).  I am getting an error with the add.signal command: "Error in match.names(column, colnames(data)) :
  argument "column" is missing, with no default."
I've searched everywhere and I can't seem to find the fix or understand what R is trying to tell me.  Any input would be appreciated.
require(quantstrat)

options("getSymbols.warning4.0"=FALSE) #suppress warnings
rm(list=ls(.blotter), envir=.blotter) #house cleaning, clears blotter
rm(list=ls(.strategy), envir=.strategy)#clears strategy
rm.strat(qs.portfolio)#clear the portfolio environment
rm.strat(qs.strategy)#clear the strategy environment
rm.strat(qs.account)#clear the account environment

currency("USD")
stock("VIX",currency="USD",multiplier=1)

# system settings
initDate <- '2013-12-31'
startDate <- '2014-01-01'
endDate <- '2016-04-07'
initEq <- 100000
Sys.setenv(TZ="UTC") #Timezone

getSymbols('^VIX', from=startDate, to=endDate, index.class="POSIXct", adjust=TRUE)
VIX$lagROC <- lag(round(ROC(Cl(VIX)), 4), n=1, type="discrete")
VIX$lagROC[is.na(VIX$lagROC)] <- 0

# initialize portfolio, account, orders
qs.strategy <- "qsJones"
initPortf(qs.strategy,'VIX')
initAcct(qs.strategy,portfolios=qs.strategy, initEq=initEq)
initOrders(portfolio=qs.strategy)
#create a new strategy object
strategy(qs.strategy,store=TRUE)

strat <- getStrategy(qs.strategy)

thresh1 <- (.02*-1)
thresh2 <- .02

add.indicator(strategy = qs.strategy, name = "ROC",
  arguments = list(x = quote(Cl(mktdata)), n=1), label="lagROC")
test <- applyIndicators(qs.strategy, VIX)

add.signal(qs.strategy, name="sigThreshold",
  arguments=list(column="lagROC", threshold=thresh1, relationship="lte", cross=FALSE),
  label="lt.ROCThresh1")
add.signal(qs.strategy, name="sigThreshold",
  arguments=list(column="lagROC", threshold=thresh2, relationship="gte", cross=FALSE),
  label="gt.ROCThresh2")
test <- applySignals(qs.strategy, test)

# exit when lagROC < .02
add.rule(qs.strategy, name='ruleSignal',
  arguments=list(sigcol="Cl.lt.lagROC", sigval=TRUE, replace=FALSE, orderqty='all',
                   ordertype='market', orderside='long'),
  type='exit', path.dep=TRUE)
# go long when lagROC > .02
add.rule(qs.strategy, name='ruleSignal',
  arguments=list(sigcol="Cl.gt.lagROC", sigval=TRUE, replace=FALSE, orderqty=1500,
                   ordertype='market', orderside='long'),
  type='enter', path.dep=TRUE)

applyStrategy(strategy=qs.strategy , portfolios=qs.strategy)
tail(mktdata)
mktdata["2014"]
getTxns(Portfolio=qs.strategy, Symbol="VIX")

A: Your add.signal calls create two columns: "lt.ROCThresh1" and "gt.ROCThresh2", while your add.rule calls reference columns "Cl.lt.lagROC" and "Cl.gt.lagROC" (which don't exist).
You need to either:

*

*Change the label= argument in your add.signal calls from "lt.ROCThresh1" and "gt.ROCThresh2" to "Cl.lt.lagROC" and "Cl.gt.lagROC", respectively, or

*Change the sigcol= argument in your add.rule calls from "Cl.lt.lagROC" and "Cl.gt.lagROC" to "lt.ROCThresh1" and "gt.ROCThresh2", respectively.


text:
Q: Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/ITestListener I am not an expert in java. I am trying to run a test by converting eclipse .java file in to runnable jar using export command and when I run this .jar at command prompt using $java -jar myfile.jar it shows me following error.
I would really appreciate help in resolving this issue.
Exception :
Exception in thread "main" java.lang.NoClassDefFoundError: org/testng/ITestListener
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:427)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:59)
Caused by: java.lang.ClassNotFoundException: org.testng.ITestListener
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:435)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) ... 3 more


text:
Q: Why didn't Obi-Wan counsel Luke on his affections for Leia? Luke was clearly attracted towards Leia's beauty since the first time he saw her in the holo-recording stored in R2-D2. Given how Luke was so zoned out gazing into the full holo-recording at Obi-Wan's home, it seems highly unlikely that Obi-Wan would not pick up on the emotions betraying Luke's mind.
Obi-Wan clearly knows the kinship between Luke and Leia, so why didn't he do anything about Luke's infatuation for his twin sister?

A: Despite all out of universe things, there are also some in universe things to consider.
1.) Obi wan had some bad prior existence (Anakin->Vader) when he tried to council someone about attraction and feelings.
2.) He thought that he would be there when the two siblings met. And could help sorting out all missfeelings.
3.) He didn't think he would die.
4.) It was at that moment not sure if Luke and Leia would ever meet with her having been captured by an Empire that was not known for NOT killing their enemies while in prison.
5.) He knew that at least THIS time around he had to trust the force and let things play out without trying to control them.
So all in all: He thought he had time (which he hadn't) to correct the situation if things got too strange. Furthermore he was reluctant to make the same errors as with the twins father. Additionally he had learned the lession that sometimes one has to trust in the force instead of trying to control it.
So MAYBE he would have said something if he had known he was going to die, but we can't know for sure.

A: out of universe: Leia was not written to be Luke sister until ROTJ.
Before the prequels were released it seems that Obi-Wan is not clued up on the existence of Leia, at least not when he was alive.
In Empire Strikes Back

Obi-Wan: That boy is our last hope
Yoda: There is another

Yoda seems to know at this point but not Obi-Wan (See this question)
When the prequels were released. the fact that Obi-Wan was present at the birth, and knew the name and location of Leia is a bit of a major continuity blunder. He should be more clued up as to who she is but is not.
The only explanation I can think of is that his memory is going "I don't remember owning a droid before?"

A: Another possible in-universe explanation: everything was at risk, personal attachment could bring a lot of harm (as it did in Revenge of the Sith).
Obi-Wan did not disclose to Luke the identity of his sister, as his attachment to her could betray them both to the enemy (as it did in RotJ). He did not disclose the identity of his father to him also, for a slightly different reason, but still the same - to avoid personal attachment.
Possibility of incest.. perhaps when a war is raging, it is a less significant thing to consider. Also, Luke figured out Leia's identity himself, with a subtle hint of Yoda, in RotJ.

A: What could he say?  He can't tell him at this point that they are siblings.  Also, forbidden fruit is always the sweetest, so trying to keep him away might only serve to drive him towards her.

A: Likely at this point he did not anticipate dying himself, and no expectation of going to the Death Star to rescue Leia.
Remember, the plan was to go to Alderaan and take the Death Star schematics; a fairly simple job, and not one that was likely to take them into Leia's presence. Obi-Wan's plan was presumably take the plans to the Alliance, then train Luke as a Jedi while fighting with the Alliance. There would be plenty of time to deal with emotional connections at that point.
Obi-Wan also had little reason to think that Luke was ever likely to meet Leia at that point. They were going to Alderaan, not to rescue the Princess; why break the boy's brain with knowledge he couldn't use? If Leia was already dead, which was the most likely outcome, what good would it do for Luke to know she was his sister?
When the plan changed and they ended up on the Death Star, things would've been rather weird of Obi-Wan had suddenly started telling Luke not to get attached to the beautiful woman they were going to rescue. It would've drawn attention to them, attention that neither of them needed. But then things went pear shaped, he ran into Vader, and the rest is (somewhat icky) history.


text:
Q: SSRS Export To Word Option Our WPF Application using SSRS Report.
We export SSRS report to word header logo image alignment going wrong.
SSRS report logo show in right side corner. But after export to word
logo come to center. Right side alignment missing.


text:
Q: Excel VBA Listbox displays more times than expected My macro goes through all data rows on a specific sheet.  Currently there are 6 rows.  The first row is a negative number and the 2nd row is a positive number (debit and credit).
The macro reviews each row and displays a list box for the user to make a selection.  Then it goes through the next row and does the same thing.  I'm expecting the listbox to display 6 times, once for each row of data.
The problem I'm having is that the listbox is displaying 7 times.  3 times for the first pair or records and twice for the remaining pair of records.  I can't figure out why the listbox is displaying the extra time.
Here is the code for the list box:
Private Sub ContinueButton_Click()
    If IsNull(ListBox1.Value) Then
        MsgBox " Please select the appropriate balance to continue. "
        Exit Sub
    Else
        MyIndex = 0
        MyIndex = ListBox1.ListIndex
        MyIndex = MyIndex + 1

        MyBal = ""
        MyBal = APIARArray(MyIndex, 4)

       Unload UserForm1
       UserForm1.Hide

       Sleep 750
    End If
End Sub

Private Sub UserForm_Initialize()
    UserForm1.Label1.Caption = "Please select the appropriate balance for Unit: " & vUnit

    ListBox1.ColumnCount = 4
    ListBox1.ColumnWidths = "50;50;75;50"

    Dim i As Integer

    With ListBox1
        w = 1
        i = 0

        For w = 1 To UBound(APIARArray)
            DoEvents
                .AddItem
                .List(i, 0) = APIARArray(w, 1)
                .List(i, 1) = APIARArray(w, 2)
                .List(i, 2) = APIARArray(w, 3)
                .List(i, 3) = format(APIARArray(w, 4), "#,##0.00;[Red](#,##0.00)")

            i = i + 1
        Next
    End With

    UserForm1.Height = 215
    UserForm1.Width = 348

    ListBox1.SetFocus

End Sub

This is the code that calls the ListBox:
Sub LookForBalance()

    Dim r As Integer
    Dim APIUnit As String
    r = 2

    Do Until Len(Trim(Cells(r, 1))) + Len(Trim(Cells(r, 7))) + Len(Trim(Cells(r, 9))) + Len(Trim(Cells(r, 10))) + Len(Trim(Cells(r, 11))) = 0

        DoEvents

        If Trim(Cells(r, 27)) = "A199" Then
            If Cells(r, 29) > 90 Then
                APIUnit = ""
                vUnit = ""
                vUnit = Trim(Cells(r, 11))

                If MyCntry = "A1" Then APIUnit = clsAPI.APIARSearch("WWW11", Trim(Cells(r, 11)))
                If MyCntry = "A2" Then APIUnit = clsAPI.APIARSearch("WWW12", Trim(Cells(r, 11)))

                If InStr(1, APIUnit, "ERROR") > 0 Then
                    Cells(r, 30) = "Unit Not Found"
                Else
                    If UBound(APIARArray) > 1 Then
                        Load UserForm1
                        UserForm1.Show

                        Cells(r, 30) = MyBal
                    Else
                        Cells(r, 30) = APIARArray(1, 4)
                    End If
                End If
            End If
        End If
        r = r + 1
    Loop
End Sub

There isn't much code here but I'm not sure what is going on.  Any help or suggestions to resolve this issue would be greatly appreciated.  Thanks in advance for your help.....


text:
Q: Get list of taxonomies associated with Subscribers I used this tutorial so that I would have the ability to associate categories with users. However, I changed the code so that it would show only on Subscribers profiles (not Authors like in the tutorial).
What I would like to do now is create a custom page template which shows a list of Subscribers including their avatar, first name, last name, email address and all the categories associated with that user.
This is the code I have so far, but I don't know how to call the array of categories associated with each user:
// Create the WP_User_Query object
$wp_user_query = new WP_User_Query(array (
    'role' => 'Subscriber',
    'order' => 'ASC',
    'orderby' => 'display_name'
));

// Get the results
$subscribers = $wp_user_query->get_results();

// Looping subscribers
if (!empty($subscribers)) {
    foreach ($subscribers as $subscriber)
    {
        // get all the user's data
        $user_info = get_userdata($subscriber->ID);

        //printing basic infos
        echo '
';
        echo '
';
        echo get_avatar( get_the_author_meta( $subscriber->ID ), 290 );
        echo '
';
        echo '
';
        echo ''.$user_info->first_name.' '.$user_info->last_name.'';
        echo '
user_email.'">'.$user_info->user_email.'';
        echo '
'.$user_info->description.'';
        echo '
';
        echo '
';
    }
} else {
    echo 'No Subscribers found';
}

Any help would be greatly appreciated.

A: Wasn't sure how the categories were being associated with the users so I checked the tutorial you linked to and found this:
$user_meta = get_user_meta( $user_id, USER_CATEGORY_META_KEY, true );

It'd be whatever your code's version of that line is...  so whatever you're saving the categories as in terms of user_meta, you'd call that.  But change the true to false so you get all of them instead of just one.  From there you should be able to parse all of it however you want.


text:
Q: Does BigQuery BI engine support left join or not? as per the documentation BI engine is supposed to accelerate left join
https://cloud.google.com/bi-engine/docs/optimized-sql#unsupported-features
I tried this dummy query as a view, connect to datastudio
SELECT xx.country_region,yy._1_22_20 FROM `bigquery-public-data.covid19_jhu_csse.deaths` xx
left join `bigquery-public-data.covid19_jhu_csse.deaths` yy
on xx.country_region=yy.country_region

my question is: is left join supported or not ?
bug report here : https://issuetracker.google.com/issues/154786936
Datastudio report : https://datastudio.google.com/reporting/25710c42-acda-40a3-a3bf-68571c314650
edit : it seems BI engine is still under heavy development and needs more time to be feature completed, I just materialized my view, but it has a cost, 4 small tables < 10 MB,  that change very 5 minutes cost 11 GB/ day , I guess it is worth it, Datastudio is substantially faster now, you can check it here (public report)
https://nemtracker.github.io/

A: Don't try JOINs, don't try sub SELECTs, don't do queries for BI Engine.
The best practice is to CREATE OR REPLACE a table dedicated to the dashboard you're building. Make sure to not have nested/repeated data there either. Then BI Engine will make your reports shine.
Related, check out this video I just made with the best practices for BI Engine with BigQuery:

*

*https://youtu.be/zsm8FYrOfGs?t=307


text:
Q: List Preference default value not working Android studio I am trying to set up the default value for the list preferences in my app, but I am having trouble with the default value, as when I try to run the app the default values that I chose in both list preferences are not being selected in runtime. This is my xml code:
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory app:title="@string/display_header">

        <ListPreference
            app:key="language"
            android:title="@string/language_title"
            app:summary="@string/en"
            android:entries="@array/lang_entries"
            android:entryValues="@array/lang_values"
            android:defaultValue="@string/en"
            />

        <ListPreference
            app:key="display"
            app:title="@string/display_mode_title"
            app:entries="@array/display_entries"
            app:entryValues="@array/display_values"
            app:summary="@string/automatic"
            android:defaultValue="@string/automatic"/>

    </PreferenceCategory>

</PreferenceScreen>

I tried uninstalling and reinstalling the app but it did not work. I also checked that the string names that I used in the default value are correct, and I also made sure that the default value matches the one in the string array of entries. Please help me  fix this problem

A: I think defaultValue is a number/index of the choice.
See this post.

A: I just found out that I had to replace the android:defaultValue line by app:defaultValue and I had to pass the corresponding value to the entry that would be the default value in runtime.


text:
Q: Algebra with arctanh I want to show that
$$\text{arctanh }y=a\text{ arctanh }\left(\frac{x^2-1}{x^2+1}\right)$$
leads to
$$1/x=\left(\frac{1-y}{1+y}\right)^{\frac{1}{2a}}.$$
But I don't know what to do with the constant $a$. Can someone show me the steps please?

A: Use
$$
\tanh(x)=\frac{e^{2x}-1}{e^{2x}+1}
$$
to get
$$
\newcommand{\arctanh}{\operatorname{arctanh}}
\arctanh\left(\frac{x^2-1}{x^2+1}\right)=u\implies\frac{x^2-1}{x^2+1}=\frac{e^{2u}-1}{e^{2u}+1}\implies u=\log(x)
$$
Therefore,
$$
\arctanh\left(\frac{x^2-1}{x^2+1}\right)=\log(x)
$$
Thus,
$$
\arctanh(y)=a\log(x)\implies y=\frac{x^{2a}-1}{x^{2a}+1}\implies\frac{1+y}{1-y}=x^{2a}
$$


text:
Q: Problem with Guzzle Client unable to keep same session I am currently developing a library to call the pCloud API.
So far I've been able to do what I wanted to do, but I happen to have a problem with the http client (Guzzle, Curl).
I would like to use the "fileops" methods to download a file by chunk. So far all is ok, they provide, it is method in the doc (https://docs.pcloud.com/methods/fileops/).
I can use the methods in Postman without problems, in the browser too.
That is, I get my token, then use the "file_open" method to get the file descriptor, then read a part of my file with file_pread.
But doing exactly the same thing on PHP side with Guzzle, Http Client from Symfony, or from pCloud SDK provided by pCloud (https://github.com/pCloud/pcloud-sdk-php) it doesn't work.
It reports that the file remains open as long as you stay on the same session (linked to api token), otherwise it is closed. I have a single client for all requests.
"A descriptor is only valid for the same connection. If a connection closes, all the files are also closed. You can open the same file in multiple connections." from doc
What I do in PHP (not working):
// Create instance and login client
$p = new PCloudService($_ENV['PCLOUD_EMAIL'], $_ENV['PCLOUD_PASSWORD']);
// Open file and return fd
$fileOpen = $p->fileOperationOpen((new FileOpenWithFileIdInput(12426385087, PCloudFileOperation::WRITE)));
dump($p->getUserInfo()->getAuth(), $fileOpen);
// Attemp to read 100 first bytes of file
$fileRead = $p->fileOperationRead((new FilePReadWithFileIdInput($fileOpen, 100, 0)));
// API Throw an error code "1007: Invalid or closed file descriptor."

What I do in my browser/postman (working) :
Retrieving the token with (OK) :
http://eapi.pcloud.com/userinfo?username=xxx@gmail.com&password=xxxxx&getauth=1
Result : Return the user info with the token

Retrieve the file descriptor with (OK) :
http://eapi.pcloud.com/file_open?auth=API_TOKEN&flags=0x0002&fileid=123456
Result : Return JSON with the number "fd" e.g. number : 2

Recover the first 100 bytes of my file with (OK):
http://eapi.pcloud.com/file_pread?auth=API_TOKEN&fd=2&count=100&offset=0
Result : Returns the first 100 bytes of the file.

I try to see what is the difference between Postman and my guzzle browser but I can't find it... (no cookie saved)
Here is the link to the repos: https://github.com/TheoD02/pCloud-API/blob/master/src/Service/PCloudService.php#L153
An answer from them, but does not help more, because no special support for API :
If a connection is closed, the files are also closed, this is correct.
Opening the same file in several different connections would also create several different sessions. A session has only one token.
The result you get is also correct.
You have opened the file (the same file) several times (on several sessions/ because they are different connections). The file descriptor shows the session increment for the file, while the server side gets 1, since it is the same file.


text:
Q: Unity - Show a sprite when screen is touched what I want to achieve is showing a sprite when the screen is touched by the player and make it disappear when a character reached the sprite's position, I made a pic to picture my words if I was not clear :

Thanks for your help

A: 1) To show sprite use
if (Input.touchCount > 0)
    { gameObjectToShow.SetActive(true); }

2) To disapper it: add Collider to gameObjectToShow (2D Box or Circle), make it trigger, increase radius of that Collider and use OnTriggerEnter with gameObjectToShow.SetActive(false);

A: To add previous answer:
you should raycast from you touch position:
void Update()
{
    Ray raycast = Camera.main.ScreenPointToRay(Input.GetTouch(0).position);
    RaycastHit raycastHit;
    if (Physics.Raycast(raycast, out raycastHit))
    {
        if (raycastHit.transform.GetComponent<BoxCollider2D>())
        {
            sprite.SetActive(false);
        }
    }
}


text:
Q: Fade reveal text from bottom of line break. CSS / JS So, I need to achieve a really nice fade reveal text effect. Imagine a H1 that's spread across two lines. The text would need to reveal up from the base of each line. However I'm unsure of how to do this with multi-lined text (that isn't split into separate heading tags).
Here's one I created already, however this fades everything from the bottom. Ideally I want each line to fade up from its own row.

setTimeout(function(){
  $('.ready').addClass('active');
}, 1500);
.overflow-hidden {
    overflow:hidden;
}

h1 {
  padding:0;
  max-width:500px;
  margin:0;
  font-family:sans-serif;
}

.ready {
  opacity:0;
  transform: translateY(50px);
}

.active {
  opacity:1;
  transform: translateY(0px);
}

.reveal-in {
  -webkit-transition: all 600ms ease-in-out;
  -moz-transition: all 600ms ease-in-out;
  -ms-transition: all 600ms ease-in-out;
  -o-transition: all 600ms ease-in-out;
  transition: all 600ms ease-in-out;
}

      This is text over two lines, with a really nice fade effect.

Similar to this reference -
https://basicagency.com/
Thanks guys.

A: I think you are looking for something like this:

setTimeout(function(){
  $('.ready').addClass('active');
}, 1500);
.overflow-hidden {
    overflow:hidden;
}

h1 {
  padding:0;
  max-width:500px;
  margin:0;
  font-family:sans-serif;
}

.ready {
  opacity:0;
  transform: translateY(50px);
}

.active {
  opacity:1;
  transform: translateY(0px);
}

.reveal-in {
  -webkit-transition: all 600ms ease-in-out;
  -moz-transition: all 600ms ease-in-out;
  -ms-transition: all 600ms ease-in-out;
  -o-transition: all 600ms ease-in-out;
  transition: all 600ms ease-in-out;
}
.reveal-in2 {
  -webkit-transition: all 100ms ease-in-out;
  -moz-transition: all 100ms ease-in-out;
  -ms-transition: all 100ms ease-in-out;
  -o-transition: all 100ms ease-in-out;
  transition: all 100ms ease-in-out;
}

      This is text over two lines, with
       a really nice fade effect.

A: Here you go with a solution https://jsfiddle.net/x5fgnbpx/1/

setTimeout(function(){
  $('.ready').slideDown("slow");
}, 1500);
.overflow-hidden {
    overflow:hidden;
}

h1 {
  padding:0;
  max-width:500px;
  margin:0;
  font-family:sans-serif;
}

.ready {
  opacity:1;
  display:none;
}

      This is text over two lines, with a really nice fade effect.

To achieve the same, I've used jQuery slideDown.
Hope this will help you.

A: You can use Animate.css which is quite easy to use. You can check the demo here.
All you need to do is to add a class name which is animated and your choice of animation which can be found on the link provided. You can choose slideInDown or slideInUp or more. Check and play with the demo link that I have provided.
Added a Working Fiddle


text:
Q: Can I discover new potions besides using trial and error?
Possible Duplicate:
How do I find out the additional 3 effects of ingredients?

In an answer to this question, Fabian mentions that you can discover new potions by trying out different kinds of ingredients that match together.
Are there any other ways to learn about new potions?

A: You can also find recipes, for example I lifted a couple of new recipes from the alchemists in Rifton.

A: In the alchemy tree, the Experimenter perk allows you to learn more of an ingredient's effects. Investing 3 skill perks in this perk, allows you to learn all 4 in a single tasing.
Once you know the effects of each ingredient, you mix and match the ingredients for your desired potion/poison effect.


text:
Q: Angular component property inexplicably remains "undefined" after being set in subscribe() Let me just preface this by saying yes, i'm using arrow functions to retain the scope of "this" (as far as I can tell anyway).
I have two properties on my component:
IsAdmin (boolean)
currentRole (string)
I make an api call to fetch user roles from my backend via Angular's HttpClient, and I have a callback subscribe-method which updates above mentioned properties with the result.
However, while I can assign the role value to currentRole, the other property IsAdmin remains undefined even as I assign it, and I get no error in my f12 debugger or visual studio code via the chrome plugin.
        import { Component, OnInit } from "@angular/core";
    import { AuthorizeService, IUser } from "../authorize.service";
    import { Observable } from "rxjs";
    import { map, tap } from "rxjs/operators";
    import { HttpClient } from "@angular/common/http";

    @Component({
      selector: "app-login-menu",
      templateUrl: "./login-menu.component.html",
      styleUrls: ["./login-menu.component.scss"]
    })
    export class LoginMenuComponent implements OnInit {
      isAuthenticated: Observable<boolean>;
      public userName: Observable<string>;

      IsAdmin : boolean;
      currentRole : string;

      constructor(private authorizeService: AuthorizeService, private http : HttpClient) {

      }

      ngOnInit() {
        this.isAuthenticated = this.authorizeService.isAuthenticated();
        this.userName = this.authorizeService.getUser().pipe(map(u => u && u.name));
        const endpoint = '.../api/User/User/GetRoles';

        this.authorizeService.getUser()
          .subscribe(data => {
             this.userNameSignedIn = data.name;
          });

        this.http.get<string[]>(endpoint).
          subscribe(result => {
            this.currentRole = result[0];
            console.log("this.currentRole ", this.currentRole); //prints "admin"
            this.IsAdmin == result.includes("admin");
            console.log("this.IsAdmin", this.IsAdmin); //prints "undefined"
          }, error => console.error(error));
      }
    }

Console output is as following:
logon-menu.component.ts:37 this.currentRole  admin
logon-menu.component.ts:39 this.IsAdmin undefined

What on earth is going on here? What am I doing wrong?

A: the problem in your subscribe is that you are using ==(comparison) instead of = (assignation)
          subscribe(result => {
            this.currentRole = result[0];
            console.log("this.currentRole ", this.currentRole); //prints "admin"
            this.IsAdmin == result.includes("admin"); //<-- here is an error
            console.log("this.IsAdmin", this.IsAdmin); //prints "undefined"
          },

your code should be:
          subscribe(result => {
            this.currentRole = result[0];
            this.IsAdmin = result.includes("admin");
          },