uncaught syntaxerror unexpected identifier

I am trying to make some tabs that pull a webpart from the page and place the part in the tab, using Jquery’s easyUI tabs. However, I am getting a syntax error in the following code:

    <!---->     <meta charset="UTF-8">     <link rel="stylesheet" type="text/css" href="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/themes/default/easyui.css">     <script type="text/javascript" src="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/jquery.min.js"></script>     <script type="text/javascript" src="https://projectadvocatesllc.sharepoint.com/sites/project_sb3/SiteAssets/dev_jqueryui/jquery.easyui.min.js"></script>      <script>     var tabs = ['<id MSOZoneCell_WebPartWPQ12>', '<id MSOZoneCell_WebPartWPQ13>'];      ExecuteOrDelayUntilScriptLoaded(initTabs, "sp.js");      func initTabs(){ <----uncaught syntaxerror unexpected identifier         //hide all of the webparts         for(var i=0;i<tabs.length;i++){         $  ('#' + tabs[i]).hide();         }          //show the first webpart in tab 1     }      function clickTab(id){         for(var i=0;i<tabs.length;i++){             if(tabs[i] === id){                  $  ('#' + id).show();              }else{                  $  ('#' + tabs[i]).hide();             }         }     }     </script>      <!---->       <div class="easyui-tabs" style="width:1200px;height:1000px">         <div title="Project Documents" style="padding:10px" onclick="clickTab('<id MSOZoneCell_WebPartWPQ12>')">          </div>          <div title="Project Updates" style="padding:10px" onclick="clickTab('<id MSOZoneCell_WebPartWPQ13>')">          </div>     </div> 

I am using sharepoint online if that makes a difference.

How do I resolve a non-unique HD Identifier problem?

I use a HD with a caddy adapter for saving some files. macOS attributes a unique identifier for each external drive connected. But I needed to swap my adapter for the same disk, and now it’s not mounting because the identifier is not unique:

error USBMSC Identifier (non-unique) on console.

In the past, for the same problem, I deleted the drive label/id/something – I don’t remember now – on a folder, and my drive would mount normally again when I reconnected it.

Does anyone know what it is I would have done on the folder to correct these IDs in the past?

Additional Info:

  • The disk is recognized by macOS internet recovery > Disk Utility
  • If I put the drive and try to open Disk Utility on currently installed macOS, it hangs and doesn’t load.
  • the disk is showed at command diskutil list, but fails to mount using diskutil mountDisk -t Apple_HFS /dev/disk2 /Volumes/Home
  • If I change the drive name on Internet Recovery and connect it to the macOS installed, it’s recognized on the first time, but not on a second.

It’s purely a mistake with unique id, and I know it could be resolved by deleting this id or a label, but I wasn’t able to find the article with the solution I used previously. I cannot erase the disk because it has some important files, and the drive is working normally. The problem is in the system.

SDL syntax error: identifier ‘TTF_Font’


#include <SDL.h> #include <SDL_ttf.h>   typedef struct {     TTF_Font* type;     SDL_Color color;     SDL_Rect size; } Font;  Font f_build(const char* const path, const int size, const uint32_t color, const int outline);  SDL_Texture* f_get_texture(const Font, SDL_Renderer* const rend, const int alpha, const char* str);  SDL_Rect f_calc_size(const Font, const char* const str); 


#include "Font.h" #include "Position.h"  typedef struct {     Font fill;     Font line; } Text;  Text t_build(const char* const path, const int size, const uint32_t inner, const uint32_t outer);  void t_write(     const Text, SDL_Renderer* const, const int x, const int y, const Position, const int alpha, const int line, const char* const str);  int t_puts(     const Text, SDL_Renderer* const, const int x, const int y, const Position, const int alpha, const int line, const char* const str);  int t_printf(     const Text, SDL_Renderer* const, const int x, const int y, const Position, const int alpha, const int line, const char* const fmt, ...); 

Session Identifier Cookies Only

We just had a penetration test and passed with flying colors, however one of the few recommendations we do have is that cookies should only be used for session identifiers, and that all non-session cookie information be moved to the server (or the database).

We are using ASP.Net MVC 5 …. I don’t see anywhere in the code that we are specifically doing anything with cookies (adding information).

What is the best way to go about resolving this? Should I use Fiddler or some similar tool to see what the cookies actually contain over the wire and go from there?

The difference between Subject Key Identifier and sha1Fingerprint in X509 Certificates

I have some SW that extracts certificates data and the SW utilizes OpenSSL. I am confused what is the difference between the subjectKeyIdentifier and the sha1Fingerprint. Both are hash values. My intuition is that the subjectKeyIdentifier is the hash of the public-key of the certificate and the sha1Fingerprint is the hash of the overall fields of the certificate. My research made more confused. For example, this reference says about the subjectKeyIdentifier:

This is a hash value of the SSL certificate.

This is an example of what I get from the SW:

"subjectKeyIdentifier": "A8:4A:6A:63:04:7D:DD:BA:E6:D1:39:B7:A6:45:65:EF:F3:A8:EC:A1", "sha1Fingerprint": "E6:A3:B4:5B:06:2D:50:9B:33:82:28:2D:19:6E:FE:97:D5:95:6C:CB" 

What is the difference between the two hashes? What each hash is for?

What’s the point of adding Unicode identifier support to various language implementations?

I personally find reading code full of Unicode identifiers confusing. In my opinion, it also prevents the code from being easily maintained. Not to mention all the effort required for authors of various translators to implement such support. I also constantly notice the lack (or the presence) of Unicode identifiers support in the lists of (dis)advantages of various language implementations (like it really matters). I don’t get it: why so much attention?

The specified application identifier GUID is invalid or does not exist

Im trying to install a provider hosted app. I have registered the app on /layouts/appregnew.aspx and inserted the generated clientid and client secret web.config of my provider web and then deployed it to the provider url.

I have also created a package and added it to our appcatalog

When I try to add my new addin on /_layouts/viewlsts.aspx->Add->addin and click on my app I get the error message

The specified application identifier is invalid or does not exist.

Im guessing that SP somehow checks on the registered provider host url for the client Id and that I have done something wrong on the provider side… any idea how to diagnos this further?