javascript changing the get parameter without redirecting
How can I change the page URL without refreshing the page?
I find myself repeating a lot of:  mkdir longtitleproject cd longtitleproject   Is there a way of doing it in one line without repeating the directory name? I'm on bash here. How to create an OD road distance matrix in QGIS? I'm looking for the steps required to produce an origin-destination (OD) cost matrix.  What I'm looking for is a matrix of road distances. The distance matrix tool only produces euclidian distances. The QGIS Roadgraph plugin produces the shortest road distance from one origin to N destinations. What I need is a file containing distances from all origins to the N closest destinations. I have a lot of origins so repeating the analyses with Roadgraph is not an option. Thanks again.  I'm looking for a step-by-step description, starting from scratch (ie, with my 3 shapefiles: origins, destinations, road network). Is there a standard function in C that would return the length of an array? Background notebook template with spiral I am in the process of redesigning an interface with a lot of Tabular data that is previously simply used as tables that look like the 19th century. I was a bit confused whether to switch it to a Card View sort of layout and present the data in that way, or to leave it in a Tabular View itself and instead just style around it.  I would like to know what could be the better approach when it comes to User Experience and what seems more at ease to the customer as I want the product to be easier for the customer to use rather than looking complicated to them.  The users of the product would be on the financial sides of the industry so, if needed please keep that into consideration. How to show that $\lim \frac{1}{n} \sum_{i=1}^n \frac{1}{i}=0 $? Show that  $$\lim \frac{1}{n} \sum_{i=1}^n \frac{1}{i} =0 $$  I've proved that this sequence converges (it is bounded and decreasing). NOW, I need to find a sequence that is bigger than this one and goes to zero. Maybe something using geometric serie of 1/2  Thanks in advance! Is it acceptable to begin a declarative sentence with "Am"? I want to know firstly if it's grammatically correct to start a declarative sentence with "Am". For example:     Am excited about the game today.   Secondly, if it is grammatically incorrect, then I wanted to ask how much "head room" there is for the above usage. I can't think of an example now, nor find one here at english.stackexchange. However I imagine there are usages of the english language that grammatically are illegal, yet have somehow become accepted as colloquial or idiomatic perhaps. nginx location match issue auth_basic I have this configuration :  location / {     root /etc/nginx/euchet; }  location /app/ {     proxy_pass http://172.16.184.2:8080;     proxy_redirect off;     proxy_set_header Host $host;     proxy_set_header X-Real-IP $remote_addr;     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;     proxy_set_header REMOTE_ADDR $remote_addr; }   And I need to add another location with auth_basic enabled only for the request: /app/f?p=3000  I tried with rexexp:     location ~ \/appt\/f\?p=3000 {             auth_basic "Hello! Enter password";             auth_basic_user_file /etc/nginx/euchet.htpasswd;              proxy_pass http://172.16.184.2:8080;             proxy_redirect off;              proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header REMOTE_ADDR $remote_addr;     }   Nginx use previous location /app/.  I tried another way:  location ~* /euchet/f {      if ($arg_p = "4550") {         return 403;     }      error_page 403 = @hidden; }     location @hidden {             auth_basic "Hello! Enter password";             auth_basic_user_file /etc/nginx/euchet.htpasswd;              proxy_pass http://172.16.184.2:8080;             proxy_redirect off;              proxy_set_header Host $host;             proxy_set_header X-Real-IP $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header REMOTE_ADDR $remote_addr; }   And I get 403 error on f?p=3000, and 404 errors on f?p=&lt;another_number&gt;  How can I fix this problem? How to force a table into page width? Everything that I have read says that iWorks/ iMovie etc should be free for Mac users after 1 September 2013.   I already bought Pages but want Numbers and iMovie. My MacBook Pro with retina is early 2015 and I am being charged.    Why is this please? sudo: unable to resolve host   I think I need to edit the /etc/hosts file to make an entry for 127.0.1.1 PC name.  But how can I do that if I can't access sudo? It seems to have gone since I updated to 13.10.  I have tried nano, which still doesn't work. Community user id interpreted by absolute value in search When I add the picture, the word and pdf is the full page and the Latex moves to the right of the page. How can I solve this problem?  this is my work. this is my work and pdf link: https://we.tl/t-cgDSwDuu8H  I couldn't stop the pictures from sliding right. What should I do to make the image look like the original PDF file? If I reduce the scale of the picture is centered but this time it becomes very small.  Is a situation caused by page margins?  \documentclass [12pt, a4paper]{article} \usepackage{color} %\usepackage[turkish]{babel} \usepackage{graphicx} \usepackage{tabularx} \usepackage{multirow} \usepackage{graphicx} %\usepackage[pass,showframe]{geometry} %\usepackage[T1]{fontenc}  \begin{document}  \definecolor{renkbir}{RGB}{0,32,96}  \begin{tabular}{ m{8,5cm} m{6cm} } \Large{\textbf{MsdasdasdN }} \large{\textbf{\textcolor{renkbir}{Firma Adı }}} &amp;\small {Uçak Mühendisi \newline T.C No: asd \newline asd \newline asd \newline asd} \end{tabular} \ %Uçak mühendisi Tc No kısımını sağa yaslamak istedim fakat yapamadım.  \begin{center} \large{\textbf{\textcolor{renkbir}{KİŞİSEL BİLGİLER}}} \end{center}  \begin{center} \begin{tabular}{ l l r } Ad &amp; Mehm &amp; \multirow{9}{*}{\includegraphics[scale=0.15]{2.pdf}} \ Soyad &amp; asdasd \ Doğum Tarihi &amp; sanane (23 Yaşında) \ Adres &amp; asd \ Telefon &amp; asd \ Mail &amp; asd \ Sigara Kullanımı &amp; Hayır \ Ehliyet &amp; B \ Askerlik &amp; Tecilli (31.12.2020) \ \end{tabular} \end{center}  %\vspace{1cm} Burası boşluk bırakma komutu.  \begin{center} \begin{tabular}{ m{4cm} m{6cm} m{5cm} } \multicolumn{3}{c}{\large{\textbf{\textcolor{renkbir}{EĞİTİMLER}}}} \ \hline \multirow{2}{}{Üniversite(YL)} &amp; asd \newline Makine Mühendisliği \newline Özel Öğrenci / Türkçe \newline Durumu : Devam ediyor &amp; \multirow{2}{}{Eylül 2018 / } \ \hline \multirow{2}{}{Üniversite} &amp; asd \newline Uçak ve Uzay Bilimleri Fakültesi \newline Uçak asd \newline Örgün Öğretim / İngilizce \newline Durumu : Mezun &amp; \multirow{1}{}{Ekim 2013 / Haziran 2018} \ \hline \multirow{1}{}{Lise} &amp; asd \newline Anadolu Lisesi (100 / 90,02) &amp; \multirow{1}{}{Ekim 2013 / Haziran 2018} \ \end{tabular} \end{center}  \begin{center} \begin{tabular}{ m{3cm} m{4cm} m{4cm} m{4cm} } \multicolumn{4}{c}{\large{\textbf{\textcolor{renkbir}{YABANCI DİLLER}}}} \ \hline \textbf{İngilizce} &amp;\textbf{Okuma:} İyi &amp;\textbf{Yazma:} İyi &amp;\textbf{Konuşma:} Orta \ \end{tabular} \end{center}  \begin{center} \begin{tabular}{ m{5cm} m{5cm} m{5cm} } \multicolumn{3}{c}{\large{\textbf{\textcolor{renkbir}{BİLGİSAYAR BİLGİLERİ}}}} \ \hline \multicolumn{3}{l}{Donanım - Ofis Programları} % donann ofis koyu yazmak istedim yapamadım. \ Ms Excel &amp; Çok İyi &amp; +5 Yıl \ MS Word &amp; Çok İyi &amp; +5 Yıl \ Ms Powerpoint &amp; Çok İyi &amp; +5 Yıl \ \hline \multicolumn{3}{l}{Yazılım Geliştirme} % donann ofis koyu yazmak istedim yapamadım. \ Office &amp; Orta &amp; 2-3 Yıl \ Matlab &amp; Orta &amp; 2-3 Yıl \ Phyton &amp; Orta &amp; 0-1 Yıl \ Fortran &amp; Başlangıç &amp; 0-1 Yıl \ C++ &amp; Başlangıç &amp; 0-1 Yıl \ Ansys &amp; Başlangıç &amp; 0-1 Yıl \ Miktex &amp; Başlangıç &amp; 0-1 Yıl \ \hline \multicolumn{3}{l}{Bilgisayar Destekli Tasarım} % donann ofis koyu yazmak istedim yapamadım. \ SolidWorks &amp; Orta &amp; 2-3 Yıl \ AutoCAD &amp; Orta &amp; 0-1 Yıl \ \end{tabular} \end{center}  \begin{figure} \includegraphics[width=\linewidth]{2.pdf} \end{figure}  \begin{figure} \includegraphics[scale=1]{2.pdf} \end{figure}  \end{document}   Latex SS is here:  PDF SS is here: How can I determine whether a 2D Point is within a Polygon? Pie chart labels I want to create a pie chart with labels (one blank an one with percentage for the teacher, the mwe is the teachers version) so that my students have to fill the percentage in by themselves.  So far I created a pie chart using the code given in the answer here    and then I used labels from the code given in the answer here    Now I have this    The node in the violett part is the one I created manually and the other ones are implemented in the code, but I don't know what to change so that the automatic generated ones look like the one I created manually  My MWE      \documentclass[11pt]{article}   \usepackage{tikz} \usetikzlibrary{arrows}  \usepackage{xcolor}  \usepackage[utf8]{inputenc}  \definecolor{rosso}{RGB}{220,57,18} \definecolor{giallo}{RGB}{255,153,0} \definecolor{blu}{RGB}{102,140,217} \definecolor{verde}{RGB}{16,150,24} \definecolor{viola}{RGB}{153,0,153}  \makeatletter  \tikzstyle{chart}=[     legend label/.style={font={\scriptsize},anchor=west,align=left},     legend box/.style={rectangle, draw, minimum size=5pt},     axis/.style={black,semithick,-&gt;},     axis label/.style={anchor=east,font={\tiny}}, ]  \tikzstyle{pie chart}=[     chart,     slice/.style={line cap=round, line join=round, very thick,draw=white},     pie title/.style={font={\bf}},     slice type/.style 2 args={         ##1/.style={fill=##2},         values of ##1/.style={}     } ]  \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground}   \newcommand{\pie}[3][]{     \begin{scope}[#1]     \pgfmathsetmacro{\curA}{90}     \pgfmathsetmacro{\r}{1}     \def\c{(0,0)}     \node[pie title] at (90:1.3) {#2};     \foreach \v/\s in{#3}{         \pgfmathsetmacro{\deltaA}{\v/100*360}         \pgfmathsetmacro{\nextA}{\curA + \deltaA}         \pgfmathsetmacro{\midA}{(\curA+\nextA)/2}          \path[slice,\s] \c             -- +(\curA:\r)             arc (\curA:\nextA:\r)             -- cycle;         \pgfmathsetmacro{\d}{max((\deltaA * -(.5/50) + 1) ,1)}           \begin{pgfonlayer}{foreground}         \draw[*-,thin] \c -- (\midA:\r) node[above,near end, pos=\d,pie values,values of \s]{$\v\%$};         \end{pgfonlayer}               \global\let\curA\nextA     }     \end{scope} }  \newcommand{\legend}[2][]{     \begin{scope}[#1]     \path         \foreach \n/\s in {#2}             {                   ++(0,-10pt) node[\s,legend box] {} +(5pt,0) node[legend label] {\n}             }     ;     \end{scope} }   \begin{document}   \begin{tikzpicture} [     pie chart,     slice type={comet}{blu},     slice type={legno}{rosso},     slice type={coltello}{giallo},     slice type={sedia}{viola},     slice type={caffe}{verde},     pie values/.style={font={\small}},     scale=2 ]  \pie{Sommerjobs in Österreich}{52/comet,12/legno,20/sedia,16/coltello}   \legend[shift={(-1cm,-1cm)}]{{Eisverkäufer}/comet, {Schwimmbad}/legno, {Zettelverteiler}/coltello} \legend[shift={(1cm,-1cm)}]{{Kellner}/sedia}     \draw [*-,thin] (0.6,-0.2)  -- (0.7,-0.2 + 0.5ex) -- (2,0.5ex) node[above, near end]{20\%};    \end{tikzpicture}   \end{document} How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001). Proof that the Earth rotates? What is the proof, without leaving the Earth, and involving only basic physics, that the earth rotates around its axis?  By basic physics I mean the physics that the early physicists must've used to deduce that it rotates, not relativity. How do I syntax check a Bash script without running it? Is it possible to check a bash script syntax without executing it?  Using Perl, I can run perl -c 'script name'. Is there any equivalent command for bash scripts? I'm struggling to understand the difference between the standard error and the standard deviation. How are they different and why do you need to measure the standard error? Is there anything I can do about someone who has pointed their domain at my ip? This is kind of a weird request. For some reason whoever owns safeandbuy.com has pointed their domain at my IP address. The reason it's a problem is that I'm having all kinds of crawlers that are trying to crawl my site with that domain name.   Is there anything I can do about this?