Adding a content editor web part (which reference a .txt file) will break my list view inside mobile devices

I am working on a SharePoint 2013, and i have a team site collection which have the mobile browser view feature enabled. now inside the team site i have around 10 lists which are working well when accessed from mobile devices. except for one list view which i have edited its page (from setting >> Edit Page), and i add a content Editor web part which reference a .txt file. the .txt file have the following HTML:-

<img src="/Resources/Matrix.png" alt="Risk Matrix" style="width:854px;height:258px;">  

enter image description here

Now the list view page which is referencing the above content editor, will have the image added correctly inside non-mobile devices screens. but the problem is that when i access the list view from mobile devices i got the error:-

enter image description here

now if i remove the content editor web part the page will work well inside the mobile screens. so my question is how i can overcome this problem? i am thinking if any of these approaches can be achieved :-

  1. either to allow my content editor web part to work on mobile devices. in other words to force the image to be shown inside mobile screens .
  2. the other option is if i can force sharepoint to bypass the content editor web part on mobile devices.

seems strange to me as sharepoint 2013 claim that it is mobile supported,, and i am adding a built-in web part of type content editor,, so how come this is not not working on mobile devices ?? Thanks

EDIT

now here is the full table which i am rendering as an image:-

enter image description here

and here is how it will look like on mobile devices when i deactivate the mobile browser view feature:-

enter image description here

Potential Risks Using Reference Code Based Authentication For Web Based Application Form That Contains SSN [migrated]

I’m currently building a web based membership application form that will require a user to enter an SSN and other identifiable information. Part of the requirements of the membership application is to allow a user to be able to resume their application and pre-fill of the information they already entered into the form fields. The stakeholders do not want to burden the user with a username and password. We have come up with the following alternative authentication method.

A user can start an application and click a button to “Save” their application. When they click “Save” an email is sent to them and they receive a 6 character alpha numeric reference code.

To “resume” the application the user must then enter the 6 character reference code as well as their birth date, last name, and last four digits of their SSN.

My question is, on a scale of 1 to 10 what would the risk factor in allowing a user to authenticate in this manner. What is the probability that someone could load someone else’s application if they brute force attacked the web based form. And if the risk scale is high, then what can I do to increase the security on this form. I can’t implement a password system and the reference code needs to be simple enough that someone could over the phone present the code to a customer service agent.

Additional Security:

Reference Codes will expire after 1 week on non-use. Reference Codes will expire once the form has been submitted. The web application is using HTTPS and TLS to transfer the data.

About 200 applications will be submitted per week, so around a max of around 200 applications might have active reference codes in a given week.

Potential Risks Using Reference Code Based Authentication For Web Based Application Form That Contains SSN

I’m currently building a web based membership application form that will require a user to enter an SSN and other identifiable information. Part of the requirements of the membership application is to allow a user to be able to resume their application and pre-fill of the information they already entered into the form fields. The stakeholders do not want to burden the user with a username and password. We have come up with the following alternative authentication method.

A user can start an application and click a button to “Save” their application. When they click “Save” an email is sent to them and they receive a 6 character alpha numeric reference code.

To “resume” the application the user must then enter the 6 character reference code as well as their birth date, last name, and last four digits of their SSN.

My question is, on a scale of 1 to 10 what would the risk factor in allowing a user to authenticate in this manner. What is the probability that someone could load someone else’s application if they brute force attacked the web based form. And if the risk scale is high, then what can I do to increase the security on this form. I can’t implement a password system and the reference code needs to be simple enough that someone could over the phone present the code to a customer service agent.

Additional Security:

  • Reference Codes will expire after 1 week on non-use.
  • Reference Codes will expire once the form has been submitted.
  • The web application is using HTTPS and TLS to transfer the data.

About 200 applications will be submitted per week, so around a max of around 200 applications might have active reference codes in a given week.

How do I reference a library fragment from a main raml file?

I have a main raml file, and I have a library fragment file. The fragment file contains all of my data types. I want to reference this fragment from the main file, but I am getting an “Unresolved reference” error stating that my fragment file can’t be found.

I’ve published the fragment to exchange, and I have made it an exchange dependency in the main raml file. I am also positive that the fragment file name is not misspelled.

Here’s my raml code:

    #%RAML 1.0 title: My API Specification version: 1.0  securitySchemes:   basic:     description:        This API supports Basic Authentication     type: Basic Authentication  securedBy: [basic]  uses:   myLib: dataTypes.raml 

How to reference VB6 dll from NodeJS project?

I’m trying to reference vb6 dll from NodeJS:

var http = require('http'); var ffi = require('ffi'); var ref = require('ref'); var int = ref.types.int;  var libAdd = ffi.Library('./Project1.dll', {   'AddNumbers': [ int, [ int, int] ] });  http.createServer(function (req, res) {   res.writeHead(200, {'Content-Type': 'text/html'});   res.write(libAdd.AddNumbers(1985, 6784));  }).listen(8080); 

but I’m getting the error: Dynamic Symbol Retrieval Error: Win32 error 127

How should I reference

I want to display a blank field in the calculated column if both the reference fields are blank

I want to display a blank field in the calculated column if both the reference fields are blank, but sharepoint displays the date as 30-Dec-1899

Formula used in Calculated column:

=IF(ISBLANK([Actual Release Date]),TEXT([Forecast Release Date],"dd-mmm-yyyy"),TEXT([Actual Release Date],"dd-mmm-yyyy")) 

Undefined reference when using SDL_ttf

I am having issues with SDL_ttf, I am new in this type of library so the code below is from https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.15.tar.gz -> showfont.c

/*   showfont:  An example of using the SDL_ttf library with 2D graphics.   Copyright (C) 2001-2019 Sam Lantinga <slouken@libsdl.org>    This software is provided 'as-is', without any express or implied   warranty.  In no event will the authors be held liable for any damages   arising from the use of this software.    Permission is granted to anyone to use this software for any purpose,   including commercial applications, and to alter it and redistribute it   freely, subject to the following restrictions:    1. The origin of this software must not be misrepresented; you must not      claim that you wrote the original software. If you use this software      in a product, an acknowledgment in the product documentation would be      appreciated but is not required.   2. Altered source versions must be plainly marked as such, and must not be      misrepresented as being the original software.   3. This notice may not be removed or altered from any source distribution. */  /* A simple program to test the text rendering feature of the TTF library */  #include <stdlib.h> #include <stdio.h> #include <string.h>  #include "SDL2/SDL.h" #include "SDL_ttf.h"  #define DEFAULT_PTSIZE  18 #define DEFAULT_TEXT    "The quick brown fox jumped over the lazy dog" #define WIDTH   640 #define HEIGHT  480  #define TTF_SHOWFONT_USAGE \ "Usage: %s [-solid] [-shaded] [-blended] [-utf8|-unicode] [-b] [-i] [-u] [-s] [-outline size] [-hintlight|-hintmono|-hintnone] [-nokerning] [-fgcol r,g,b,a] [-bgcol r,g,b,a] <font>.ttf [ptsize] [text]\n"  typedef enum {     TextRenderSolid,     TextRenderShaded,     TextRenderBlended } TextRenderMethod;  typedef struct {     SDL_Texture *caption;     SDL_Rect captionRect;     SDL_Texture *message;     SDL_Rect messageRect; } Scene;  static void draw_scene(SDL_Renderer *renderer, Scene *scene) {     /* Clear the background to background color */     SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);     SDL_RenderClear(renderer);      SDL_RenderCopy(renderer, scene->caption, NULL, &scene->captionRect);     SDL_RenderCopy(renderer, scene->message, NULL, &scene->messageRect);     SDL_RenderPresent(renderer); }  static void cleanup(int exitcode) {     TTF_Quit();     SDL_Quit();     exit(exitcode); }  int main(int argc, char *argv[]) {     char *argv0 = argv[0];     SDL_Window *window;     SDL_Renderer *renderer;     TTF_Font *font;     SDL_Surface *text = NULL;     Scene scene;     int ptsize;     int i, done;     SDL_Color white = { 0xFF, 0xFF, 0xFF, 0 };     SDL_Color black = { 0x00, 0x00, 0x00, 0 };     SDL_Color *forecol;     SDL_Color *backcol;     SDL_Event event;     TextRenderMethod rendermethod;     int renderstyle;     int outline;     int hinting;     int kerning;     int dump;     enum {         RENDER_LATIN1,         RENDER_UTF8,         RENDER_UNICODE     } rendertype;     char *message, string[128];      /* Look for special execution mode */     dump = 0;     /* Look for special rendering types */     rendermethod = TextRenderShaded;     renderstyle = TTF_STYLE_NORMAL;     rendertype = RENDER_LATIN1;     outline = 0;     hinting = TTF_HINTING_NORMAL;     kerning = 1;     /* Default is black and white */     forecol = &black;     backcol = &white;     for (i=1; argv[i] && argv[i][0] == '-'; ++i) {         if (strcmp(argv[i], "-solid") == 0) {             rendermethod = TextRenderSolid;         } else         if (strcmp(argv[i], "-shaded") == 0) {             rendermethod = TextRenderShaded;         } else         if (strcmp(argv[i], "-blended") == 0) {             rendermethod = TextRenderBlended;         } else         if (strcmp(argv[i], "-utf8") == 0) {             rendertype = RENDER_UTF8;         } else         if (strcmp(argv[i], "-unicode") == 0) {             rendertype = RENDER_UNICODE;         } else         if (strcmp(argv[i], "-b") == 0) {             renderstyle |= TTF_STYLE_BOLD;         } else         if (strcmp(argv[i], "-i") == 0) {             renderstyle |= TTF_STYLE_ITALIC;         } else         if (strcmp(argv[i], "-u") == 0) {             renderstyle |= TTF_STYLE_UNDERLINE;         } else         if (strcmp(argv[i], "-s") == 0) {             renderstyle |= TTF_STYLE_STRIKETHROUGH;         } else         if (strcmp(argv[i], "-outline") == 0) {             if (sscanf (argv[++i], "%d", &outline) != 1) {                 fprintf(stderr, TTF_SHOWFONT_USAGE, argv0);                 return(1);             }         } else         if (strcmp(argv[i], "-hintlight") == 0) {             hinting = TTF_HINTING_LIGHT;         } else         if (strcmp(argv[i], "-hintmono") == 0) {             hinting = TTF_HINTING_MONO;         } else         if (strcmp(argv[i], "-hintnone") == 0) {             hinting = TTF_HINTING_NONE;         } else         if (strcmp(argv[i], "-nokerning") == 0) {             kerning = 0;         } else         if (strcmp(argv[i], "-dump") == 0) {             dump = 1;         } else         if (strcmp(argv[i], "-fgcol") == 0) {             int r, g, b, a = 0xFF;             if (sscanf (argv[++i], "%d,%d,%d,%d", &r, &g, &b, &a) < 3) {                 fprintf(stderr, TTF_SHOWFONT_USAGE, argv0);                 return(1);             }             forecol->r = (Uint8)r;             forecol->g = (Uint8)g;             forecol->b = (Uint8)b;             forecol->a = (Uint8)a;         } else         if (strcmp(argv[i], "-bgcol") == 0) {             int r, g, b, a = 0xFF;             if (sscanf (argv[++i], "%d,%d,%d,%d", &r, &g, &b, &a) < 3) {                 fprintf(stderr, TTF_SHOWFONT_USAGE, argv0);                 return(1);             }             backcol->r = (Uint8)r;             backcol->g = (Uint8)g;             backcol->b = (Uint8)b;             backcol->a = (Uint8)a;         } else {             fprintf(stderr, TTF_SHOWFONT_USAGE, argv0);             return(1);         }     }     argv += i;     argc -= i;      /* Check usage */     if (!argv[0]) {         fprintf(stderr, TTF_SHOWFONT_USAGE, argv0);         return(1);     }      /* Initialize the TTF library */     if (TTF_Init() < 0) {         fprintf(stderr, "Couldn't initialize TTF: %s\n",SDL_GetError());         SDL_Quit();         return(2);     }      /* Open the font file with the requested point size */     ptsize = 0;     if (argc > 1) {         ptsize = atoi(argv[1]);     }     if (ptsize == 0) {         i = 2;         ptsize = DEFAULT_PTSIZE;     } else {         i = 3;     }     font = TTF_OpenFont(argv[0], ptsize);     if (font == NULL) {         fprintf(stderr, "Couldn't load %d pt font from %s: %s\n",                     ptsize, argv[0], SDL_GetError());         cleanup(2);     }     TTF_SetFontStyle(font, renderstyle);     TTF_SetFontOutline(font, outline);     TTF_SetFontKerning(font, kerning);     TTF_SetFontHinting(font, hinting);      if(dump) {         for(i = 48; i < 123; i++) {             SDL_Surface* glyph = NULL;              glyph = TTF_RenderGlyph_Shaded(font, i, *forecol, *backcol);              if(glyph) {                 char outname[64];                 SDL_snprintf(outname, sizeof(outname), "glyph-%d.bmp", i);                 SDL_SaveBMP(glyph, outname);             }          }         cleanup(0);     }      /* Create a window */     if (SDL_CreateWindowAndRenderer(WIDTH, HEIGHT, 0, &window, &renderer) < 0) {         fprintf(stderr, "SDL_CreateWindowAndRenderer() failed: %s\n", SDL_GetError());         cleanup(2);     }      /* Show which font file we're looking at */     SDL_snprintf(string, sizeof(string), "Font file: %s", argv[0]);  /* possible overflow */     switch (rendermethod) {     case TextRenderSolid:         text = TTF_RenderText_Solid(font, string, *forecol);         break;     case TextRenderShaded:         text = TTF_RenderText_Shaded(font, string, *forecol, *backcol);         break;     case TextRenderBlended:         text = TTF_RenderText_Blended(font, string, *forecol);         break;     }     if (text != NULL) {         scene.captionRect.x = 4;         scene.captionRect.y = 4;         scene.captionRect.w = text->w;         scene.captionRect.h = text->h;         scene.caption = SDL_CreateTextureFromSurface(renderer, text);         SDL_FreeSurface(text);     }      /* Render and center the message */     if (argc > 2) {         message = argv[2];     } else {         message = DEFAULT_TEXT;     }     switch (rendertype) {         case RENDER_LATIN1:             switch (rendermethod) {             case TextRenderSolid:                 text = TTF_RenderText_Solid(font, message, *forecol);                 break;             case TextRenderShaded:                 text = TTF_RenderText_Shaded(font, message, *forecol, *backcol);                 break;             case TextRenderBlended:                 text = TTF_RenderText_Blended(font, message, *forecol);                 break;             }             break;          case RENDER_UTF8:             switch (rendermethod) {             case TextRenderSolid:                 text = TTF_RenderUTF8_Solid(font, message, *forecol);                 break;             case TextRenderShaded:                 text = TTF_RenderUTF8_Shaded(font, message, *forecol, *backcol);                 break;             case TextRenderBlended:                 text = TTF_RenderUTF8_Blended(font, message, *forecol);                 break;             }             break;          case RENDER_UNICODE:         {             Uint16 *unicode_text = SDL_iconv_utf8_ucs2(message);             switch (rendermethod) {             case TextRenderSolid:                 text = TTF_RenderUNICODE_Solid(font, unicode_text, *forecol);                 break;             case TextRenderShaded:                 text = TTF_RenderUNICODE_Shaded(font, unicode_text, *forecol, *backcol);                 break;             case TextRenderBlended:                 text = TTF_RenderUNICODE_Blended(font, unicode_text, *forecol);                 break;             }             SDL_free(unicode_text);         }         break;     }     if (text == NULL) {         fprintf(stderr, "Couldn't render text: %s\n", SDL_GetError());         TTF_CloseFont(font);         cleanup(2);     }     scene.messageRect.x = (WIDTH - text->w)/2;     scene.messageRect.y = (HEIGHT - text->h)/2;     scene.messageRect.w = text->w;     scene.messageRect.h = text->h;     scene.message = SDL_CreateTextureFromSurface(renderer, text);     printf("Font is generally %d big, and string is %d big\n",                         TTF_FontHeight(font), text->h);      draw_scene(renderer, &scene);      /* Wait for a keystroke, and blit text on mouse press */     done = 0;     while (!done) {         if (SDL_WaitEvent(&event) < 0) {             fprintf(stderr, "SDL_PullEvent() error: %s\n",                                 SDL_GetError());             done = 1;             continue;         }         switch (event.type) {             case SDL_MOUSEBUTTONDOWN:                 scene.messageRect.x = event.button.x - text->w/2;                 scene.messageRect.y = event.button.y - text->h/2;                 scene.messageRect.w = text->w;                 scene.messageRect.h = text->h;                 draw_scene(renderer, &scene);                 break;              case SDL_KEYDOWN:             case SDL_QUIT:                 done = 1;                 break;             default:                 break;         }     }     SDL_FreeSurface(text);     TTF_CloseFont(font);     SDL_DestroyTexture(scene.caption);     SDL_DestroyTexture(scene.message);     cleanup(0);      /* Not reached, but fixes compiler warnings */     return 0; }  /* vi: set ts=4 sw=4 expandtab: */ 

And when I build in CodeBlocks it gives me the following build log:

g++ -L/usr/lib -o bin/Debug/a obj/Debug/main.o  -lSDL2 -lSDL2_ttf -lSDL2 -lSDL2_ttf   /usr/lib/libSDL2_ttf.so: undefined reference to `SDL_RWclose' /usr/lib/libSDL2_ttf.so: undefined reference to `SDL_RWread' /usr/lib/libSDL2_ttf.so: undefined reference to `SDL_RWtell' /usr/lib/libSDL2_ttf.so: undefined reference to `SDL_RWseek' /usr/lib/libSDL2_ttf.so: undefined reference to `SDL_RWsize' collect2: error: ld returned 1 exit status