Displaying list items via SP.ClientContext

I am currently using SP.ClientContext via JavaScript to display items from a SharePoint list. I am able to display the items via an alert or via input button onClick to display the data. However, I want it to display onLoad.

I am currently using an iframe tag to do so but it runs very slow. When I run the Dev Tool in Chrome it states “Page cannot be found” (I suspect it’s trying to locate the source and I’m not referencing the source correctly…currently using src=”DispForm.aspx” but I’m sure that’s incorrect).

Is there another way of displaying the items onLoad via JavaScript or finding the correct src reference for the iframe tag? Below is the code I am using:

    <!--iframe is slow...maybe because it's looking for DispForm.aspx?-->     <iframe style="display:none" onload="runCode()" src="/DispForm.aspx"></iframe>     <span id="Sig"></span>     <script type="text/javascript">          var itemId = GetUrlKeyValue("ID");           var targetListItem;         ExecuteOrDelayUntilScriptLoaded(Initialize, "sp.js");                       function runCode() {          var clientContext = new SP.ClientContext();           var targetList = clientContext.get_web().get_lists().getByTitle(myList');          targetListItem = targetList.getItemById(itemId);          clientContext.load(targetListItem, 'ws_x002d_sig');          clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));        }         function onQuerySucceeded() {             if (targetListItem.get_item("ws_x002d_sig")==="" || targetListItem.get_item("ws_x002d_sig")==null) {                 var prefVar= "<a href='#ws'>Sign</a>";             }             else {                 var prefVar=targetListItem.get_item('ws_x002d_sig');             }              var myObject = {                 prefObject: function() {                     return prefVar;                 }             }              x = myObject.prefObject();             document.getElementById("Sig").innerHTML = x;             //"alert works great" alert('Request succeeded. \n\nRetrieved Item is: ' + targetListItem.get_item('ws_x002d_sig'));         }         function onQueryFailed(sender, args) {          alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());        }                      </script>      <!--input button works great -->     <!--<input id="Button1" type="button" value="Run Code" onclick="runCodeWs()" />--> 

Securely displaying hidden integers with MD5

A system I’m trying to disprove security of uses the following mechanism: a 19-digit integer is hashed via the MD5 algorithm and the salt of the integer is shown in plain sight to the user before they take an irreversible action relevant to trying to guess the first 2 digits of said number.

Somehow, this screams of insecurity to me. With 10^19 possible results for each particular implementation and a 2-minute lifetime of a single entry, as well as capabilities of modern GPUs, I just don’t feel giving the okay to rolling this out.

My attempts to tackle it with a hashcat mask bruteforce with a somewhat high-end graphics card off my personal computer give very reassuring results of a time way exceeding two minutes, yet intuition seems to hint at something I’m missing.

Am I?

How long should a piece of text be before only displaying a preview of it

I am creating a desktop app, one of whose functions is to display a list of notes, which can be short or long (the longest may span 100s of lines in a box that is of similar width to the box I am currently typing in).

I have thought of 2 different ways to do this:

  1. Display in a grid a preview of each note. When a user clicks on a note in the grid, a panel to the right of the grid displays the full note (plus actions that the user can take against the note). The screenshot below is what it would look like: enter image description here

  2. Display in a grid everything. So each row in the grid would be a full note.

Which of the 2 is better, given that the notes can be rather long? Note that this is NOT a web app. It’s a desktop app written in a legacy framework.

TornadoFX – Problem displaying a modal view with ‘openWindow’

When I show a view with openWindow and the Modality.WINDOW_MODAL modifier, the first time this window behaves like a modal window, but if I close the view and open it again, it behaves like a non-modal view (access to the parent view is possible).

What could this behavior be due to?

Thanks very much.

class VentanaPrincipal: View("Ventana principal") {      private val openModalSinParametros: OpenModalSinParametros by inject()      override val root = vbox {         // Posicionar vista principal.         primaryStage.x = 10.0         primaryStage.y = 10.0         setPrefSize(400.0, 400.0)         alignment = Pos.CENTER         label {             font = Font(14.0)             textFill = Color.NAVY             text = "ESTA ES LA VENTANA PRINCIPAL"         }         button {             text = "Abrir ventana con 'openWindow' sin parĂ¡metros"             action {                 openWindowSinParametros.openWindow(modality = Modality.WINDOW_MODAL)             }         }     } } 

Displaying multiple tags in user list item together with other components

I have a page where I need to display users in a list, like this: enter image description here

In every item I will need to display many tags, there can be one or two, or much more, like ten and even more. The current look and placement can be adjusted, it can go on two lines also.

What would be a good solution from UX perspective and also how to show them visually? This also should work on smaller screens. Maybe someone worked on something similar and can give some valuable advice. Thanks!

App no longer displaying in Ubuntu Software

I need to know whether Cool Retro Term (or cool-retro-term) is showing up for other people in the Ubuntu Software application manager. Could somebody do a quick search and tell me whether it’s showing up for you?

I downloaded this terminal emulator onto my machine, but now I’m not able to find it in the application manager, and I’m wondering if it’s something I did or if the author took it down.

Custom WordPress theme not displaying posts from category

I am creating a custom WordPress theme and as far as I can remember WordPress is supposed to do the heavy lifting for filtering of post types by their category, author, etc. on it’s own. This is just an altered query from my index.php specifically for category types.

Another question… do I even need an archive.php? I thought WordPress was supposed to do all the heavy lifting as far as filtering by categories, tags, authors, etc. My index.php works great, but when I tried to go to a specific category it was showing all of my posts and not just the selected category so I tried implementing an archive.php

EDIT 1: I should have mentioned I’m not using the main loops because I’m using custom post types

archive.php

<?php /**  * @author    Mark Abel  * @package   client-name/archive  * @version   1.0  */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly get_header(); ?>  <?php get_template_part( 'partials/partial', 'sidenav' );?>  <section class="masonry__container" id="masonry__container">   <div class="masonry" id="masonry">     <?php       $  category = get_category( get_query_var( 'cat' ) );       $  cat_id = $  category->cat_ID;       $  loop = new WP_Query( array( 'post_type' => 'project', 'cat' => $  cat_id ) );       if ( $  loop->have_posts() ) :         while ( $  loop->have_posts() ) : $  loop->the_post(); ?>           <?php $  project_for = get_post_meta($  post->ID, "project_for", true); ?>           <article class="masonry__tile" data-aos="zoom-in">             <img src=<?php the_post_thumbnail_url(); ?> alt="an image" />               <div class="masonry__overlay"><div class="masonry__title">                 <?php echo get_the_title() ?>               </div>               <div class="masonry__project">                 <?php echo $  project_for ?>               </div>               <span></span>               <div class="masonry__cta"><a href="<?php echo get_post_permalink(); ?>">Click to view</a></div>               <a class="masonry__video" href="https://player.vimeo.com/video/124254859">Play video</a>             </div>           </article>         <?php endwhile;       endif;       wp_reset_postdata();     ?>   </div> </section>   </body>  <!-- Footer -->  <?php get_footer(); ?>  </html> 

partial imported by index.php

<?php /**  *  @author    Mark Abel  *  @package   client-name/partials/partial-masonry  *  @version   1.0  */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>  <section class="masonry__container" id="masonry__container">   <div class="masonry" id="masonry">     <?php       $  loop = new WP_Query( array( 'post_type' => 'project' ) );       if ( $  loop->have_posts() ) :         while ( $  loop->have_posts() ) : $  loop->the_post(); ?>           <?php $  project_for = get_post_meta($  post->ID, "project_for", true); ?>           <article class="masonry__tile" data-aos="zoom-in">             <img src=<?php the_post_thumbnail_url(); ?> alt="an image" />               <div class="masonry__overlay"><div class="masonry__title">                 <?php echo get_the_title() ?>               </div>               <div class="masonry__project">                 <?php echo $  project_for ?>               </div>               <span></span>               <div class="masonry__cta"><a href="<?php echo get_post_permalink(); ?>">Click to view</a></div>               <a class="masonry__video" href="https://player.vimeo.com/video/124254859">Play video</a>             </div>           </article>         <?php endwhile;       endif;       wp_reset_postdata();     ?>   </div> </section> 

Ubuntu Desktop Icons Displaying incorrectly

When my laptop goes to sleep and I sign back in, sometimes the desktop icons get messed up. I’ve attached a picture. Also heres some info on my version.

>> lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.3 LTS Release:    18.04 Codename:   bionic 

In the image here you can see the icons are duplicated and too large in some places. Is there some setting I can change so that this doesn’t happen?