It's been few mounths i've been working on Vue.js, everything is great. But Now i'm dealing with a bigger problem, i've been tryng to solve since too much time :p    There is the problem :   I have a JSON file wich is located at  : /usr/local/bin/JSONTEST/ScrapMonitorFerry_2019-12-02_14-05.json  I also have a project in Vue.js in a different folder :  /usr/local/bin/MyApplication  I would like to access to the JSON file from my application and use some of the data. Even if this JSON is located in an external folder !  Do you guys have any method in mind  to do that ? Is it even possible ? ** **I've found some lead on the web but none of them got me to the wanted outcome :   -using JSONP  -using Vuex  -using Webpack  -using React or Angular   I've been looking for answer for a while, I found at how to get JSON file directly when it's located in the Application folder using Ajax :  $.ajax({ url: 'ScrapMonitorFerry_2019-12-02_14-05.json', dataType: 'json', type: 'get', async: false, //cache: false, success: function(data) {   console.log("**************LA : *************");   console.log(data);   console.log("fin 1er fction");    $(data.info).each(function(index,value) {   console.log("on affiche value :  ");   console.log(value.website_name);         });      } });   I also find out how to acces to a JSON file located in a different local folder :  using fetch method :   "use strict"; var myInit= {   method: 'GET',   headers: {     'Content-Type': 'application/json'   },   mode:'cors',   cache: 'default' };  let myRequest = new Request("./data/ScrapMonitorFerry_2019-12-02_14-05.json",myInit);  fetch(myRequest)   .then(function(resp) {     return resp.json();      })     .then(function(data) {     console.log(data);     });    Thanks for all the answers and lead you guys might right,  léo
Is there local file manipulation that's been done with JavaScript? I'm looking for a solution that can be accomplished with no install footprint like requiring .  Specifically, I'd like to read the contents from a file and write those contents to another file. At this point I'm not worried about gaining permissions and am just assuming I already have full permissions to these files.
How to deal with SQL column names that look like SQL keywords? One of my columns is called from. I can't change the name because I didn't make it. Am I allowed to do something like SELECT from FROM TableName or is there a special syntax to avoid the SQL Server being confused? Any time I am inserting new point feature in QGIS, the Feature Attribute dialog box is popping up. Is there a way to prevent it? (I am willing to insert many points at once and this pop up box slows down the process). Getting error using JMeter behind a proxy I am new to JMeter and trying to run a test from behind a corporate proxy. I read on the same from apache site and followed the same process so as to run the test. However, i am still  unable to record a test from behind the proxy.      This message always appears after pressing on 'Start' recording:     After that, I have changed apache port to 8000 as in below and made it different      This time after pressing on start was this message Adjective, if adjective: eg "pointed, if fatherly" They were pointed, if fatherly, remarks that echoed the themes he has stressed in his papacy but ones that resonated all the more in a newly renovated cathedral surrounded by the luxurious shops of Fifth Avenue. —   I'm not sure the meaning of the phrase &quot;if fatherly&quot; in the above sentence. I'm not familiar with the syntax using the structure 'adjective, if adjective'. problem with surfaces on tkz-fct i am using this wonderful tool that tkz-fct is for creating nice documents but I have a weird result from recently. This is my document :  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{calc} \usepackage{color} \usepackage{pifont}                     %pour utiliser la police Ding \usepackage[left=1.5cm,right=1.5cm,top=2cm,bottom=2cm]{geometry} %marges du document \usepackage[french]{babel} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[L]{thmbox} \usepackage{eurosym} \usepackage{enumitem}               %pour modifer itemize et enumerate \usepackage{amsmath,amsfonts,amssymb} \usepackage{mathrsfs}               %pour utiliser mathscr \usepackage{array,multirow,makecell} \usepackage{fancyhdr}               %package pour modifier les en-têtes \usepackage{fancybox}               %pour boîtes spéciales \usepackage{tikz,tkz-tab,tkz-fct} \usepackage{tikz-dependency}        %permet de créer des schemas \usepackage{sectsty}                %permet de modifier les styles des sections (voir \sectionfont l.21) \usepackage{fourier-orns} \usepackage{shadethm}               %pour theoremes en gris \setcellgapes{1pt} \makegapedcells \newcolumntype{R}[1]{&gt;{\raggedleft\arraybackslash }b{#1}}   %pour redéfinir les colonnes dans tabular \newcolumntype{L}[1]{&gt;{\raggedright\arraybackslash }b{#1}} \newcolumntype{C}[1]{&gt;{\centering\arraybackslash }b{#1}} \renewcommand{\thesection}{\Roman{section}} %permet de changer la numérotation en chiffres romains des sections \newshadetheorem{defi}{Définition}  %crée un nouveau type de théorème \newshadetheorem{thm}{Théorème} \newshadetheorem{ppte}{Propriété} \sectionfont{\sectionrule{3ex}{3pt}{-1.5ex}{1pt}} %mettre un trait de séparation dans les sections (package sectsty) \pagestyle{fancy} %style en-têtes \lhead{} %en-tête gauche \chead{Lois à densité} %en-tête centrale \rhead{T\up{ale}} %en-tête droite \begin{document} \begin{tikzpicture}      \tkzInit[xmin=-4,xmax=4,ymax=1]      \tkzDrawX[label={},noticks]      %\tkzDrawY      \tkzFct[domain=-2:2]{exp(-x**2)}      \tkzDrawArea[color=blue, domain = -0.5:1]      \tkzText(-1,0.75){$\mathscr{C}_{f}$} \end{tikzpicture} \end{document}   But from now, it doesn't produce the result I would like as the surface start from the point (-0.5,f(-0.5)) and not as an integral from -0.5 to 1. This is a picture of the result :   Which is obviously not what I would like and this extends now to all my "old" docs which were "normal" before. I don't think I have done anything special except updating my Tex distribution ... If someone has an idea ?? How can I see my progress for different badges? 'took several years to be built' or 'took several years to build' – which one is correct? Which one of these sentences is correct?  The palace took several years to build.  or  The palace took several years to be built.  I heard the first one while I was watching Discovery Channel and I think it is not correct because the palace did not build on its own – someone had to build it. So the passive form seems the correct sentence. Why won't my computer go to sleep automatically? Windows 8 is set to sleep after 30 mins, and it used to work, but recently it's started refusing to sleep. (I can still manually ask it to go to sleep without any issue.)    I was having issues a while ago, but it was with my network adapter. That's since been disabled, so it's definitely not that:    I've checked to see what devices are able to wake up my machine, but it only appears to be my mouse:    Which is odd, because I haven't recently changed my mouse, and more confusing still: The monitor does go to sleep just fine. If it was actually the mouse keeping my system awake, I'm pretty sure the monitor wouldn't go to sleep.  I've checked my Wake Timers, and nothing:    I've also checked my existing requests...  UPDATE: I found something. What to do with it, I don't know...    Note: Even when /requests says that there's "NONE" under every category, my machine still won't sleep(!).    In short: How can I tell what's preventing my computer from Sleeping?    UPDATE: Ok, so I now have a few more pieces of the puzzle. I came back to my computer and it was ASLEEP! Lawks! It seems that the only times it doesn't sleep is if VLC Player is open, even if a video isn't actually playing.  UPDATE UPDATE: Ok, so it won't sleep sometimes when VLC Player ISN'T running, either. Bah! How to store date/time and timestamps in UTC time zone with JPA and Hibernate How to make Biber also print the debug information in the log file? I've switched from BibTeX to Biber and I was struggling with some errors.  During those problems (see  and  ) I noticed that other users seem to get a more detailed output in the log file (see e. g. ).  I also tried to run biber --tool --debug myreferences.bib, but I'm still missing those details (like the problematic source text for a FATAL error)  example of my current project  command: biber -tool --debug references.bib   INFO - This is Biber 1.9 running in TOOL mode INFO - Config file is '/Users/mbg4/.biber.conf' INFO - Logfile is 'references.bib.blg' INFO - DEBUG mode: all messages are logged to 'references.bib.blg' INFO - Looking for bibtex format file 'references.bib' INFO - Decoding LaTeX character macros into UTF-8 INFO - Found BibTeX data source 'references.bib' WARN - Datamodel: Entry '2005' (references.bib): Invalid format '2005/12//' of date field 'date' - ignoring WARN - Datamodel: Entry '2002a' (references.bib): Invalid format '2002/12//' of date field 'date' - ignoring WARN - Datamodel: Entry 'Ferri2009' (references.bib): Invalid format '2009/3/25/' of date field 'date' - ignoring WARN - Datamodel: Entry 'Klein2005' (references.bib): Invalid format '2005/9//' of date field 'date' - ignoring WARN - Range field 'pages' in entry 'Prochazaka1983' is malformed, skipping WARN - Datamodel: Entry '2006b' (references.bib): Invalid format '2006/2//' of date field 'date' - ignoring WARN - Datamodel: Entry 'Lu2001a' (references.bib): Invalid format '2001/6/15/' of date field 'date' - ignoring WARN - Datamodel: Entry 'Schubert2002' (references.bib): Invalid format '2002/9//' of date field 'date' - ignoring WARN - Datamodel: Entry 'N.N.c' (references.bib): Invalid format 'Apr\,2003' of date field 'urldate' - ignoring FATAL - Caught signal: SEGV Likely your .bib has a very bad entry which causes libbtparse to crash:    how I'd like it to look like (the FATAL - Caught signal: SEGV line):  [496] bibtex.pm:1029&gt; DEBUG - Parsing namestring 'Coyle, ,Thomas W.' [496] bibtex.pm:94&gt; FATAL - Caught signal: SEGV   Used software   TeXLive 2014 on MacOS X  biblatex v2.9a biber 1.9 how to sort file by DD-MM-YYYY dates in a file containing :  ... 18-11-2018:othercharacters 10-11-2018:othercharacters 03-10-2018:othercharacters 30-10-2018:othercharacters 27-09-2018:othercharacters 03-12-2018:othercharacters ...   the command :  sort -t- -k2 -k1    does not sort by date, what am I missing ? When I entered the -al attribute with the  command, I got the following:  anupam@JAZZ:~/blog$ ls -al total 76 drwxrwxr-x 13 anupam anupam 4096 Aug 28 21:45 . drwxr-xr-x 34 anupam anupam 4096 Aug 28 20:52 .. drwxrwxr-x  8 anupam anupam 4096 Aug 28 12:19 app drwxr-xr-x  2 anupam anupam 4096 Aug 28 12:19 bin drwxrwxr-x  5 anupam anupam 4096 Aug 28 12:19 config -rw-rw-r--  1 anupam anupam  154 Aug 28 12:19 config.ru drwxrwxr-x  3 anupam anupam 4096 Aug 28 12:37 db -rw-rw-r--  1 anupam anupam 1339 Aug 28 12:19 Gemfile -rw-rw-r--  1 anupam anupam 2871 Aug 28 12:19 Gemfile.lock drwxrwxr-x  7 anupam anupam 4096 Aug 28 21:45 .git -rw-rw-r--  1 anupam anupam  466 Aug 28 12:19 .gitignore drwxrwxr-x  4 anupam anupam 4096 Aug 28 12:19 lib drwxrwxr-x  2 anupam anupam 4096 Aug 28 12:29 log drwxrwxr-x  2 anupam anupam 4096 Aug 28 12:19 public -rw-rw-r--  1 anupam anupam  249 Aug 28 12:19 Rakefile -rw-rw-r--  1 anupam anupam  478 Aug 28 12:19 README.rdoc drwxrwxr-x  8 anupam anupam 4096 Aug 28 12:19 test drwxrwxr-x  6 anupam anupam 4096 Aug 28 12:33 tmp drwxrwxr-x  3 anupam anupam 4096 Aug 28 12:19 vendor   What does each column mean, and what does the total 76 signify here? Google Chrome is not starting I've just installed Ubuntu 16.04 LTS on dual boot. I've looked for many solutions and tried them all but Chrome never starts; the logo appears on the left but no window opens.  I downloaded the deb file on google chrome website and installed it through Ubuntu Software, but it doesn't start.   I have tried installing it through the command line with   sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb sudo apt-get install -f   I have checked with uname -a and my system is 64 bit. I have also tried gdebi with the same result.   My repository universe is up to date.  I only have one display in settings>displays> so I can't turn off built-in display nor check the mirror display (I read it could be the problem as I also have a graphic card but it seems it is not in my case).  Here is what I get in the command line when I try to run Chrome from it ( the message is the same, whatever the method I used to install Chrome):  ~$ google-chrome [11831:11831:1122/114854.195473:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195493:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195508:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195515:ERROR:process_singleton_posix.cc(280)] Failed to create /home/basil/.config/google-chrome/SingletonLock: Permission denied (13) [11831:11831:1122/114854.195538:ERROR:process_singleton_posix.cc(433)] readlink failed: Permission denied (13) [11831:11831:1122/114854.195564:ERROR:process_singleton_posix.cc(256)] readlink(/home/basil/.config/google-chrome/SingletonLock) failed: Permission denied (13) [11831:11831:1122/114854.195622:ERROR:chrome_browser_main.cc(1498)] Failed to create a ProcessSingleton for your profile directory. This means that running multiple instances would start multiple browser processes rather than opening a new window in the existing process. Aborting now to avoid profile corruption. [11831:11868:1122/114854.209297:ERROR:browser_gpu_channel_host_factory.cc(108)] Failed to launch GPU process.   Any new approach will be much appreciated Show that $\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0)$. Suppose $f$ is Riemann integrable on $[0,1]$ and continuous at 0. Show that $$\lim\limits_{a \to 0^+} \int^1_0 ax^{a−1}f(x)dx=f(0).$$   Can anyone share some insight on this one? I have no idea where to begin. Maybe a substitution? So I get a square matrix $A$ is idempotent when $A^2 = A$.  How can you prove that if $A$ is an $n \times n$ matrix that is idempotent and invertible, then  $A = I$??  I'm quite confused on this.  Any help much appreciated, Thanks. in bash I have some jobs running, in background. They are always producing random irrelevant error messages that pollute the terminal. I am not always so prompt to start them with the 2&gt;&amp;1 &gt; /dev/null redirect. How can I redirect the output when they are already running? Does there exist a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$ such that $\mathbf{A}^{2}=-\mathbf{I}$? Is it possible for a matrix $\mathbf{A}\in\mathbb{R}^{3\times3}$,  $$\mathbf{A}^2=-\mathbf{I}$$  I know that It is possible for $2\times2$ matrix, but is it possible for $3\times3$ matrix ? Read integers from external data file to document programming code in LaTeX I am attempting to document my MATLAB programming code in LaTeX. For  this, I use the mcode package, which defines the MATLAB lstlisting  environment. With the commands  \newcommand{\mfileMain}{main.m} \newcommand{\mfileMainFirstNumber}{\mfileMainFirstLine} \newcommand{\mfileMainFirstLine}{26} \newcommand{\mfileMainLastLine}{33} \lstinputlisting[firstnumber=\mfileMainFirstNumber,                  firstline=\mfileMainFirstLine,                  lastline=\mfileMainLastLine]{\mfileMain}   I set the firstnumber, firstline and lastline parameters and use  them to import a piece of MATLAB code into the LaTeX document with  \lstinputlisting. However, when I add some code before the  \mfileMainFirstLine, in this case 26, the code is shifted and the  documentation is ruined. To fix this, I would have to update the line  numbers.  I am trying to fix this issue by adding 'tracers' to my MATLAB  program. I use the commands  filename=['lstinputlisting_line_numbers_' mfilename '.txt']; fileID=fopen(filename,'w');   to create a text file in which I store the line numbers for which the  code is documented using the command  dbstack_eval=dbstack;fprintf(fileID,[num2str(dbstack_eval.line+1) '\n']);   . This results in a text file lstinputlisting_line_numbers_.txt with  content for instance like  53 62 75 91   in case I want to document four parts of the MATLAB program main.m.  What I want to do from here is simply use this line number data in the  \lstinputlisting commands. Perhaps it is possible to store the line  numbers in the \newcommands{}{}, or perhaps there is a better, more  elegant way of doing it. In this way, the line numbers would update  automatically in case I add new lines of code. Consequently, my LaTeX  document would still be okay, saving me a lot of time not having to  update the line numbers myself.  A minimum working example could look like the following. The LaTeX file  main.tex would have the content  \documentclass[a4paper]{article} \usepackage[framed,numbered]{mcode}  % Data for the 'lstinputlisting' environments. \newcommand{\mfileMain}{main.m} \newcommand{\mfileMainFirstNumberA}{\mfileMainFirstLineA} \newcommand{\mfileMainFirstLineA}{WHAT SHOULD I PUT HERE?} \newcommand{\mfileMainLastLineA}{WHAT SHOULD I PUT HERE?} \newcommand{\mfileMainFirstNumberB}{\mfileMainFirstLineB} \newcommand{\mfileMainFirstLineB}{WHAT SHOULD I PUT HERE?} \newcommand{\mfileMainLastLineB}{WHAT SHOULD I PUT HERE?}  \begin{document}     In the code     \lstinputlisting[firstnumber=\mfileMainFirstNumberA,                      firstline=\mfileMainFirstLineA,                      lastline=\mfileMainLastLineA]{\mfileMain}     we calculate the ....       And in the code     \lstinputlisting[firstnumber=\mfileMainFirstNumberB,                      firstline=\mfileMainFirstLineB,                      lastline=\mfileMainLastLineB]{\mfileMain}     we calculate the..... \end{document}   . The MATLAB file main.m would have the content  %% Line number output.  filename=['lstinputlisting_line_numbers_' mfilename '.txt']; fileID=fopen(filename,'w');  dbstack_eval=dbstack;fprintf(fileID,[num2str(dbstack_eval.line+1) '\n']);     %% Input to be specified by user.  alpha=10; % PDE parameter. x_s=0; % Starting coordinate. x_e=1; % End coordinate. N_n=1e2+1; % (N)umber of (n)odes. N_ip=2; % (N)umber of (i)ntegration (p)oints.  dbstack_eval=dbstack;fprintf(fileID,[num2str(dbstack_eval.line+1) '\n']);     fclose(fileID); % Close the file 'fileID'. How to perform a true GIS clip of polygons layer using a polygon layer in R? I would like to do a true GIS Clip in R of soils polygons using a series of single boundary polygons, but I cannot find an R function to properly do it. It should work just like the clip function in ESRI's ArcMap. I've tried the over method in sp package but it doesn't seem to work for polys over polys.   One suggestion was to use the gIntersection in rgeos package as a clip using the following code:  #------------------------------------ library(rgeos) library(maptools)  #Read layers as SpatialPolygonsDataFrame (both the same Albers projection) Soils_poly = readShapePoly("Soils_polygons")  #Note - Has 400 polygons clipper_poly = readShapePoly("clipper_polygon")  #Note - Has 1 polygon  #Try gintersection as clip  Clipped_polys = gIntersection(Clipper_Tile_poly, Soils_poly)  #-----------------------------------   This takes 5 minutes to run (way too slow) and errors with this:     Error in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_not_poly, "rgeos_intersection") :      TopologyException: no outgoing dirEdge found at -721459.77681285271 2009506.5980877089   I also tried this code to check for overlap:  gIntersects(Clipper_Tile_poly, Soils_poly)   and the result was TRUE. clip function in ESRI ArcMap works fine for this data.   Anyone knows of an R function to properly do a clip on spatial polygons using spatial polygons? Network reputation graph becomes nervous when clicking quickly, backs away slowly