Error after executing command I have been trying to make a minigame and I need custom npc's I need them to have a name, trades and infinite trades(they never run out).  Here is the command I have been using:  /summon Villager ~ ~3 ~ {Profession:3,Career:1,CarrierLevel:100{Offers:{Recipes:[{buy:{id:"minecraft:iron_ingot",Count:5},maxUses:9999999,sell:{id:"gold_ingot",Count:1}},{buy:{id:"minecraft:barrier",Count:1},sell:{id:"minecraft:barrier",Count:1}}]},CustomName:"John Smith",CustomNameVisible:100   but it says:  [14:12:38] Data tag parsing failed: Expected '}' but got '{' at: ...ession:3,Career:1,CarrierLevel:100{&lt;--[HERE]   How should I fix it?
How do I fix 'Invalid JSON' errors? I've been at this for almost two hours and no one seems to have the same problem as I and I doubt this will be solved but I'll try anyway.  this is the code  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}},{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   this part is fine  /tellraw @p ["Would you like to teleport?",{"text":"Yes","color":"green","bold":"true","clickEvent":{"action":"run_command","value":"/tp @p ~ ~4 ~ "},"hoverEvent":{"action":"show_text","value":{"text":"Confirm"}}   it's just when I add this  ,{"text":"No","color":"red","bold":"true","clickEvent":{"action":"run_command","value":"/tellraw @p{"text":"Come back when you want to teleport"}"}}}]   Minecraft gives me the error:     Invalid JSON at line 1 column 203   I've tried to space it out and figure out what column 203 is but I can't, I don't know what I did. Anyone got any ideas?
How to concatenate multiple lines of output to one line? using underscore's “difference” method on arrays of objects How to completely disable the Windows taskbar? I've installed Taskbar eliminator, while it works most of the time, alerts being the taskbar back.  I've also installed object dock which can disable the taskbar, object dock appears during window changes.   Has anyone had any luck permanently removing, hiding the taskbar in Windows 7?  Update  I found an application that seems to be working here:    Second update  I took the leap and installed a shell replacement (). So far so good. Prove that $\phi(n) \geq \sqrt{n}/2$ So I'm trying to prove the following two inequalities: $$\frac{\sqrt{n}}{2} \leq \phi(n) \leq n.$$ The upper bound we get from simply noting that $\phi(n) = n \prod_{p | n}\left( 1 - \frac{1}{p}\right)$ and the fact that $(1 - \frac{1}{p}) \leq 1$. But how can we get the lower bound? I tried using the same expression for $\phi(n)$ but it seems to not really give me the inequality. Can you help? I am trying to install a Ralink wifi adapter in Ubuntu Desktop 14.04.  The system is not detecting the wifi.   lsusb lists the device as:  Bus 002 Device 004: ID 148f:7601 Ralink Technology, Corp.  I have the rt2800 USB driver listed in "/etc/modules"; Following some instructions on the web, I tried this command:  echo 148F 7601 | sudo tee /sys/bus/usb/drivers/rt2800usb/new_i  lsmod | grep rt2800 returns the following:  rt2800usb              26581  0  rt2x00usb              20041  1 rt2800usb rt2800lib              83150  1 rt2800usb rt2x00lib              48886  3 rt2x00usb,rt2800lib,rt2800usb mac80211              545990  3 rt2x00lib,rt2x00usb,rt2800lib crc_ccitt              12627  1 rt2800lib Volumes of n-balls: what is so special about n=5? The volume of an $n$-dimensional ball of radius $1$ is given by the classical formula $$V_n=\frac{\pi^{n/2}}{\Gamma(n/2+1)}.$$  For small values of $n$, we have $$V_1=2\qquad$$ $$V_2\approx 3.14$$ $$V_3\approx 4.18$$ $$V_4\approx 4.93$$ $$V_5\approx 5.26$$  $$V_6\approx 5.16$$ $$V_7\approx 4.72$$ It is not difficult to prove that $V_n$ assumes its maximal value when $n=5$.   Question. Is there any non-analytic (i.e. geometric, probabilistic, combinatorial...) demonstration of this fact? What is so special about $n=5$? I also have a similar question concerning the $n$-dimensional volume $S_n$ ("surface area") of a unit $n$-sphere. Why is the maximum of $S_n$ attained at $n=7$ from a geometric point of view?   note: the question has also been  for those curious to other answers. What is the relationship between size of object with distance? How does the size/length of an object vary with distance?   Is it a logarithmic relationship? exponential? linear?   I plotted a curve of the size/length of an object for different distances from the camera, and the curve looked exponential/logarithmic. I was trying to understand the reasoning behind that. When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in the stack trace. I've considered parsing the stack trace, but I am hoping to find a cleaner more explicit way, something like Assembly.GetCallingAssembly() but for methods. When will data.SE get updated data? I have a particular situation here, In March of 1997 I travelled to the US as a tourist and lived there illegally for almost 9 years. I was never arrested, or had any trouble with the law, I was never deported. I paid my taxed (had a TFN) had a job, bank account bought a house, etc. About 9 years ago I decided to leave as I was tired of living like that, not able to be legal, in fear of deportation and loosing everything. I also got married (to a person in the exact situation as me) we were able to legally migrate to Australia and now we are Australian citizens. We never returned our I-94s and in 2005 left through Mexico (walked through the border) so there are no records of us ever leaving. We have lived here in Australia for over 9 years.  OK so my question is... We have been thinking we would like to visit our friends and family back in the US now that we have a little girl. Is there any chance they won't let us in because they know we overstayed? We would be travelling with our Australian passports. Sequence of positive integers such that their reciprocals are in arithmetic progression LaTeX packages: automatic versus manual installation, and related issues I often run into problems in LaTeX with packages. I did a reinstall (MiKTeX) and it seemed to fix some issues with knowing where packages coming from or going. In general, I am not sure what should or does happen when using \usepackage command.  Is it standard that these packages are automatically pulled from the internet? Where do they go (by default)? Is there a better place to put them?  If I am troubleshooting, and if we can say packages are usually installed automatically, when, and should I ever, install packages manually? If so, where would I put them?  For instance, I believe the package easylist is installed on my computer. I was able, with some difficulty, to get into the roaming folder, looked around, and really the only package I saw, was several easylist files, such as .sty, and an associated readme file. I did a windows search for easylist, and only found one, with suffix .tpm and in the Program Files (x86)\MiKTeX 2.9\tpm folder.  My problem currently, is that I am trying to use the todonotes package. It seems to require the xcolor package. But this "can not be found". It asks to choose a place to get it. I think default was "choose random", but I just switched it to internet, and some random mirror site in country (USA). That didn't work, and I'm afraid I've now fiddled with the default settings for getting packages, which will create problems later.  Here are some other threads I have been fishing through:             In lieu of picture, I have this:    miktex-pdftex.exe: No connection could be made because the target machine actively refused it.  miktex-pdftex.exe: Data: connect failed in tcp_connect() {}======================================================================  ! LaTeX Error: File `xcolor.sty' not found.  Type X to quit or &lt;RETURN&gt; to proceed, or enter new name. (Default extension: sty)  Enter file name:    and from clipboard:    MiKTeX Problem Report Message: No connection could be made because the target machine actively refused it.  Data: connect failed in tcp_connect() Source: Libraries\MiKTeX\PackageManager\PackageManager.cpp Line: 2461 MiKTeX: 2.9 OS: Microsoft Windows 7 Home Premium Edition, 64-bit Service Pack 1 (build 7601) Invokers: explorer SystemAdmin: no PowerUser: no Root0: C:\Users\aUserName\AppData\Roaming\MiKTeX\2.9 Root1: C:\Users\aUserName\AppData\Local\MiKTeX\2.9 Root2: C:\ProgramData\MiKTeX\2.9 Root3: C:\Program Files (x86)\MiKTeX 2.9 UserInstall: C:\Users\aUserName\AppData\Roaming\MiKTeX\2.9 UserConfig: C:\Users\aUserName\AppData\Roaming\MiKTeX\2.9 UserData: C:\Users\aUserName\AppData\Local\MiKTeX\2.9 CommonInstall: C:\Program Files (x86)\MiKTeX 2.9 CommonConfig: C:\ProgramData\MiKTeX\2.9 CommonData: C:\ProgramData\MiKTeX\2.9    (from "Package Installation" window below)   The required file        tex\latex\xcolor\xcolor.sty  is missing. It is part of the following package:        xcolor  The package will be installed from:  ftp://... [Change...] The package will be installed for... I'm asking this because my HDD (Hard Disk) has 5 years, and ultimately (this year) it gave me many headaches. Many moths ago I has Windows 7 (and 10 T.P. since april) and all was good. But after a moment, instantly, all gets reversed: veeery slow, and actions which will take a tiny time, at these moment the time seems frozen (for example, instead a 1 minute boot, it turned to 5-8 minutes boot). I formatted and installed Windows every 2 months because it was the time which runs good before it gets slooww. Seeing the abuse of privacity in W10, I changed to Ubuntu 15.04 and the things lasted more in time... But again, HDD error. Click, trying to read, click, trying to read... And the upper bar (title of window/buttons of volume, language, wifi, etc.) disappeared. The left bar (where are the app's icons) was empty and the file explorer said the resource wasn't available (or something like these error). I restarted and nothing happens. I had to press CTRL+D to boot-up Ubuntu, but after hours... the same error (can't do anything except moving the mouse/cursor).  Welcome to the routine: copy files with live-cd to a pendrive, wipe HDD and install all again. And the things was calmed again... and the errors comes again. And after 2 weeks, I had to do the same. Now my PC works fine, but yesterday I heard a few "clicks" from the HDD.  Now, I remembered this  and I came to Disks and the HDD shows a new value; normally, the problematic number was "pending sectors", always changing, but now, in "irrecoverable sectors", the number is different of zero.  I never had "reallocated sectors". Now, neither. And now, while I write this lines, I've 5 "pending s." and 9 "irrecoverable s.". If this helps, the "read error rate" is 42, 5 for "write error rate".      Very well!! While I was writing "write error rate", I heard 2   clicks. And while writing this, one click more.   And 123 "CRC error rate". So, with this information: is my HDD dying? It'll last days or months? I think this problem will kill the disk in a not very far time.  The drive is a Western Digital Green 1TB-WDC WD10EARS-00Y5B1 (80.00A80) S.N.: WD-WCAV5J301610  PS: When I boot with CTRL+D, many times the system is in "RO mode"; I can't save/download files, Unity doesn't find apps when I write their name {click again, now, while I write the text} and, after a few hours, a crash like the lines above Recovering accidentally deleted files I accidentally deleted a file from my laptop. I'm using Fedora. Is it possible to recover the file? Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's     What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename?  I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine?  I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine.  So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91:  rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_%  rem Now use the timestamp by in a new ZIP file name. "d:\Program Files\7-Zip\7z.exe" a -r Code_%_my_datetime%.zip Code   I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier.  I'm using Windows Server 2003 and Windows&nbsp;XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting). Valid characters in a Java class name What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)? How do I get console output in C++ with a Windows program? limit of integral $n\int_{0}^{1} x^n f(x) \text{d}x$ as $n\rightarrow \infty$ What is a StackOverflowError? how to make winforms webbrowser control to work very similar to targeted Internet explorer