I am trying to run a title command when a player right clicks a sign. Here is my command for spawning the sign (generated here):  /give @p sign 1 0 {     BlockEntityTag: {         Text1: "{\"text\":\"---------------\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"tp @s 0 66 13\"}}",         Text2: "{\"text\":\"Right click once\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"playsound entity.player.levelup master @s ~ ~ ~ 10 1\"}}",         Text3: "{\"text\":\"accepted!\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/title @s title {\\"text\\":\\"Welcome to the Server!\\", \\"bold\\":true, \\"italic\\":false, \\"color\\":\\"green\\"}\"}}",         Text4: "{\"text\":\"---------------\"}"     },     display: {         Name: "Custom Sign"     } }   However I get an error here:  {\\"t <---   I assume because of the double escape characters or nested quotes, but I tried single quotes and tried single escape characters to no avail. How would I run this command?

I'm trying to make a sign that you can right click and it will clear cacti from your inventory, then give you 18 cookies named "$100 Cookie" with the lore "$100". But when I put it in a command block and power it, the command block says this:     [04:23:51] Data tag parsing failed: Unexpected token '$' at: $100 Cookie\",Lore:[$100]}}\"}}",Text3:"{\"text\":\"iIiIiIi\",\"color\":\"light_purple\",\"strikethrough\":true,\"obfuscated\":true}",Text4:"{\"text\":\"[Sell]\",\"color\":\"dark_purple\",\"bold\":true}"   The command I'm using is:  /give @p sign 1 0 {BlockEntityTag:{Text1:"{\"text\":\"[Sell]\",\"color\":\"dark_purple\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"clear @p[name=rainbowlack,r=3] cactus 0 2304\"}}",Text2:"{\"text\":\"2304 Cacti\",\"color\":\"red\",\"clickEvent\":{\"action\":\"run_command\",\"value\":\"give @p[name=rainbowlack,r=3] minecraft:cookie 18 0 {display:{Name:\"$100 Cookie\",Lore:[$100]}}\"}}",Text3:"{\"text\":\"iIiIiIi\",\"color\":\"light_purple\",\"strikethrough\":true,\"obfuscated\":true}",Text4:"{\"text\":\"[Sell]\",\"color\":\"dark_purple\",\"bold\":true}"},display:{Name:"Custom Sign"}}   What's wrong with this command? I've tried backslashes and stuff. Can you please try to fix the command and test out your potential fix in-game? Thank you!  You'll have to change the [name=rainbowlack,r=3] parts to whatever your username is (example: [name=playerplayer123,r=3]).


I'm having some trouble with a question in my linear algebra textbook:     Let $A$ and $B$ be positive definite matrices, and let $Q$ be a unitary matrix.   Prove that if $A=BQ$, then $A=B$.   I tried to play around with the given equality, but I'm not getting any results. Tips would be appreciated:)

Given $A$ and $B$ positive-definite matrices and $Q$ unitary matrix, prove that if $A = BQ$, then $A=B$. $Q$ is unitary, so $QQ^*=I$ If $A$ and $B$ are positive-definite, than $A=A^*$ and $B=B^*$. $A^*=(BQ)^*=Q^*B^*$ $A^2=AA=AA^*=(BQ)(Q^*B^*)=B(QQ^*)B^*=BIB^*=B^2$ $A^2=B^2$. I don't know how to use the fact that $A$ and $B$ are positive-definite to finish the proof.


I want to begin 3 (not 1) in enumerate environment  My Code  \documentclass{article}  \begin{document}  \begin{enumerate}     \item Three     \item Four     \item Five \end{enumerate}  \end{document}   Thank in advance

Sometimes, I want to have enumerate lists in LaTeX start at other than the first value (1, a, i, etc.) How can I make an enumerate list start at an arbitrary value?


Given $a,b,c,d\ge 0$ and $a^2+b^2+c^2+d^2=4$ show the following holds : $$\displaystyle\frac{a}{b+3}+\frac{b}{c+3}+\frac{c}{d+3}+\frac{d}{a+3}\le 1$$ Now I tried to fully expand but that becomes too ugly. I want a non-expand proof of this fact. For some motivation I solved a three variable version which I assumed to be true and it came out to be true! That one is : $a,b,c\ge 0$ and $a^2+b^2+c^2=3$ show that : $\displaystyle \frac{a}{b+2}+\frac{b}{c+2}+\frac{c}{a+2}\le 1$. The second one is easier and I DO NOT NEED a solution of the second one. Please help me out on the first one because it is similar but not solvable by a similar method.

Question:  let $a,b,c,d\ge 0$,such $$a^2+b^2+c^2+d^2=4$$ show that $$\dfrac{a}{b+3}+\dfrac{b}{c+3}+\dfrac{c}{d+3}+\dfrac{d}{a+3}\le 1$$  My try: By Cauchy-Schwarz inequality,we have $$\sum_{cyc}\dfrac{a}{b+3}\le\sqrt{(\sum_{cyc}a^2)\left(\sum_{cyc}\dfrac{1}{(b+3)^2}\right)}$$ then we have only prove this $$\sum_{cyc}\dfrac{1}{(a+3)^2}\le \dfrac{1}{4}?$$ This is  not true,in fact, we have $$\sum_{cyc}\dfrac{1}{(a+3)^2}\ge \dfrac{1}{4}?$$ because we have $$\dfrac{1}{(a+3)^2}\ge\dfrac{5-a^2}{64}$$ this is true because $$\Longleftrightarrow \dfrac{(a-1)^2(a^2+8a+19)}{64(a+3)^2}\ge 0$$ so $$\sum_{cyc}\dfrac{1}{(a+3)^2}\ge\sum_{cyc}\dfrac{5-a^2}{64}=\dfrac{1}{4}$$ can see:  This methods is from: can  see:  By the way I have see this three variable inequality  let $a,b,c$ be non-negative numbers such that $$a^2+b^2+c^2=3$$  show that $$\dfrac{a}{b+2}+\dfrac{b}{c+2}+\dfrac{c}{a+2}\le 1$$  proof: By expanding,the inequality becomes $$ab^2+bc^2+ca^2\le abc+2$$ without loss of generality,assume that  $$\min(a,b,c)\le b\max(a,b,c)$$ then \begin{align*} 2-ab^2-bc^2-ca^2+abc&=2-ab^2-b(3-a^2-b^2)-ca^2+abc\\ &=(b^3-3b+2)-a(b^2-ab+ca-bc)\\ &=(b-1)^2(b+2)-a(b-a)(b-c)\ge 0 \end{align*} Equality occurs for $(a,b,c)=(1,1,1)$ and also for $(a,b,c)=(0,1,\sqrt{2})$ or any cyclic permutation.  so my Four-inequality  variable inequality,can use this methods $$\dfrac{a}{b+3}+\dfrac{b}{c+3}+\dfrac{c}{d+3}+\dfrac{d}{a+3}\le 1$$ $$\Longleftrightarrow a^2cd+3a^2c+3a^2d+9a^2+ab^2d+3ab^2+abc^2-abcd+3ac^2+9ac+3b^2d+9b^2+3bc^2+bcd^2+3bd^2+9bd+9c^2+3cd^2+9d^2-81\le 0$$ $$\Longleftrightarrow a^2cd+3a^2c+3a^2d+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$ $$\Longleftrightarrow a^2(cd+3c+3d)+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$ $$\Longleftrightarrow (4-b^2-c^2-d^2)(cd+3c+3d)+ab^2d+3ab^2+abc^2+3ac^2+9ac+3b^2d+3bc^2+bcd^2+3bd^2+9bd+3cd^2\le 45$$  Then  I can't  Thank you  very  much


i have a spring application and i am deploying it on tomcat7. for connection i configured jndi in server.xml here is my xml file.  <Resource auth="Container" driverClassName="oracle.jdbc.OracleDriver"             factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"              global="jdbc/MCDataSource"             initialSize="20" maxAge="7200000" maxIdle="20" maxTotal="75"             maxWaitMillis="15000" name="jdbc/MCDataSource" password="AppDB"             testOnBorrow="true" type="javax.sql.DataSource"             url="jdbc:oracle:thin:@172.19.8.159:1521/OIM.itba.gov.in" username="AppDB"             validationQuery="select 1" />   here i need some suggestions that how can i protect my username,password in production environment . i have seen so many suggestion that we can do encryption but some suggestions are like encryption is not the best way to protect because it can be decrypt it easily.one this i know that i should not pass the plan text like this here. so i just want to know what is the best approach to solve this problem.

The resource definition in tomcat's server.xml looks something like this...  <Resource     name="jdbc/tox"     scope="Shareable"     type="javax.sql.DataSource"     url="jdbc:oracle:thin:@yourDBserver.yourCompany.com:1521:yourDBsid"     driverClassName="oracle.jdbc.pool.OracleDataSource"     username="tox"     password="toxbaby"     maxIdle="3"     maxActive="10"     removeAbandoned="true"     removeAbandonedTimeout="60"     testOnBorrow="true"     validationQuery="select * from dual"     logAbandoned="true"     debug="99"/>   The password is in the clear.  How to avoid this?


I'm trying to add a row to my table video_games by using the value of a $_GET like this:  $yourname = $_GET['yourName'];  $bdd->exec('INSERT INTO video_games(name, owner, console, price) VALUES($yourname, \'Patrick\', \'PC\',45)');   But I get this error:     Unknown column $yourname in field list   I tried several other solutions like $name or name or 'name' instead of $name. But I can't have the value of $_GET to be inserted.   I have also checked other posts and I did not find any solution, yet it should be a famous question.  To make it simple, the problem is: How to put the value of a variable in an INSERT statement using the exec() function ?  Thanks.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I’ve been re-watching Star Trek: Voyager, lately. Over the first three seasons, Voyager loses multiple shuttlecraft. How many shuttlecraft does Voyager have?  Does the ship have some sort of large replication technology to instantly build new shuttlecraft as they are lost? A ship as small as an Intrepid class couldn’t have that many shuttlecraft in her shuttlebay(s).

In the episode , at the start of the episode when Voyager is in the process of a major maintenance overhaul there are at least 3 shuttles that can be seen. I have lost track of the number of times a shuttle has been destroyed. How many shuttles does Voyager have, not including The Delta Flyer?


Given an SVG drawing of a building, and 2 GPS-reference points, as well as where north is in the drawing, how can I import a building into QGIS so the 2 GPS-reference-points are at the same coordinates  ?

I have a PDF file, with a Map as a vector graphic. I want to get this into GIS. (I use ESRI's ArcGIS, but any FOSS solution is also fine).  I know that it is not possible to directly get the PDF into ArcGIS, so I was just testing various scenarios, and found that we can convert the vector graphic in the PDF to SVG using Inkscape. I was successful in doing that.  I was hoping that there might be some way of going from SVG into a vector format that ArcGIS understands.   Is this possible?


I have a project in which i am trying to sort an arrayList the ArrayList is of type ScheduleTime class i want to sort on basis of totalMinutes field package fG.Model;  public class ScheduleTime {     public String date;     public Integer hours;     public Integer minutes;     public Integer totalMinutes;          @Override     public String toString() {         return "ScheduleTime [date=" + date + ", hours=" + hours + ", minutes=" + minutes + ", totalMinutes="                 + totalMinutes + "]";     }      @Override     public boolean equals(Object anObject) {         if (!(anObject instanceof ScheduleTime)) {             return false;         }         ScheduleTime otherMember = (ScheduleTime)anObject;         return ( (otherMember.getDate().equals(this.getDate())) && (otherMember.getHours().equals(this.getHours())) && (otherMember.getMinutes().equals(this.getMinutes())));     }  }  here is the code for sorting i tried....         ArrayList<ScheduleTime> nonDuplicateSlots = new ArrayList<ScheduleTime>();                  Collections.sort(nonDuplicateSlots, new Comparator<ScheduleTime>() {             @Override             public int compare(ScheduleTime o1, ScheduleTime o2) {                 return o1.totalMinutes - o2.totalMinutes;             }         });  hence i am getting a null pointer exception..please help me with it

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have a table with hyphens in the name, and I can't change the table name so I thought backticks would help.  Unfortunally for me it failed, some googling did'nt give me any answers. How can I solve this?  ex:      $stmt = $this->_dbh->prepare(         'UPDATE `:table`         SET status = NOT status         WHERE id=:id;');       $stmt->bindParam(':table',$this->_settings['table'], PDO::PARAM_STR);     $stmt->bindParam(':id',$data['id'], PDO::PARAM_INT);     if( $stmt->execute() ){         return 'Success';     }     else{         $this->_log( $stmt->errorInfo() );         return 'Action failed.';     }   In the log, with backticks:  13:25:18    42S02 1146 Table 'db_name.'table-name'' doesn't exist   Without backticks:  13:38:14    42000 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''table-name'             SET status = NOT status             WHERE id='1'' at line 1

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


In Windows you can do  (backup and restore ACL permissions) can you do this in Linux?  And to clarify, I mean ACLs in Linux, I do not mean the default permissions modified with chmod / chown.

Is there a way to back up and restore file ownership and permissions (the things that can be changed with chown and chmod)?  You can do this .  What about access control lists?


I'm unable to fix my Ubuntu desktop (GUI only). See:      The issue is in the areas of Unity / Gnome / Xsession.  How should I debug? Which are the useful log files I can look into and post to this forum for help?

I'm getting no Dash / Launcher after I login. This started after an update through the Software updater. Please help to fix ... I've already lost a day trying different options posted on askubuntu.com. Nothing worked.  Got to the terminal via Ctl + Alt + F1 and logged-in successfully.  Here are the logs: .xsession-errors Script for ibus started at run_im. init: unity-panel-service main process (2315) terminated with status 1 init: indicator-printers main process (2459) terminated with status 1 init: unity-settings-daemon main process (2300) terminated with status 1 init: upstart-dbus-session-bridge main process (2293) terminated with status 1 init: hud main process (2304) killed by TERM signal init: indicator-bluetooth main process (2446) killed by TERM signal init: indicator-power main process (2448) killed by TERM signal init: indicator-datetime main process (2451) killed by TERM signal init: indicator-sound main process (2453) killed by TERM signal init: indicator-session main process (2483) killed by TERM signal init: indicator-application main process (2486) killed by TERM signal init: Disconnected from notified D-Bus bus   UPDATE (Jun 8, 2014):  Okay, I have reset unity, but I cannot login normally via the login screen. Steps I follow: 1. Login screen -> blank ... No dash / no launcher / No Status (Notification) Bar on top 2. Ctrl+Alt+F1 to bash terminal 3. export DISPLAY=:0 4. unity-tweak-tool --reset-unity (This does not complete, blocks on OpenGL) 5. I anyways continue to by doing: Ctrl+Alt+F7. 6. Launcher & Dash look good. But there is (a) No Status / Notification Bar on top 7. Continuing to work this way. Haven't logged out since.


I have used NEIs dump thing but that does not give meta data and the names are average at best. How can I access the item id, meta data and proper name (that you get by hovering over the item in NEI)?  I have seen a mod that does this for 1.5 but not for 1.4.7  I want this data for a table for use in my interactive sorter program

I am attempting to export a list of all item IDs, and metadata from  minecraft. I am using the FTB Unleashed pack. What I want is to write to file:  351:1 Ink Sac 351:2 Rose Red ... 368:0 Ender Pearl 369:0 Blaze Rod ... 2174:0 Naga Stone   Or something that I can convert to that with some regex etc.  NEI, and Item Resolver both only export item IDs. However this is not useful to me because some mod, heavily use the metadata value, to store a different item in the same ID space. The Vanilla Dye is an example of this.  I am coming the the conclusion I may just have to make it myself.  I would like this for computercraft fun. I many computercraft things return only the item id / metadata eg the ME Bridge and . Other computer craft mods (AE Peripheral, OpenCCsensors) do handle item names. However I am unwilling to add mods to the server. If a there is a mod I can use in single player to export all the ID, metadata and names, then I can use a computercraft program to parse it, that can run on the server. (I already have one working for ID/Name)


I received an email from Dr. Naonori Ko wondering if I'd be interested in writing up a review article for a journal called "Quarterly Physics Review". I'm skeptical of new journals, but I also want to support a competitive journal publication market.  Has anyone had any dealing with "KEI Journals" or "Knowledge Enterprises Incorporated" or published in any of their journals ()?

A colleague and I recently submitted a paper to a journal with an impressive-sounding name, the "International Journal of Artificial Intelligence and Computational Research". According to ,      IJAICR is a referred [sic] journal in the field of computer science, artificial intelligence and soft computing methods.   It was accepted two days after we submitted it. That's too fast. We were suspicious. Although the journal said that all papers are peer-reviewed, we could not see how that was done in two days. Plus, we received no comments from the reviewers. Also, the submission guidelines didn't ask for a "blind" copy (without our names or any references to who we were).   But wait, there's more.  The acceptance letter asked us to send them US$300 to publish it. We did not. We've withdrawn our submission and will submit a new version of the paper to a more reputable journal in the coming months.  How might we make a better choice of respectable journals before we submit next time?


Every question which I asked on stackoverflow I received a question that It was easy to do a php injection into my script.  I've now a example and checked some tutorials on youtube. Am I doing this right now? This is an example how I'm working now  if($user->isLoggedIn()) {     $pakuser = $user->data()->username;     $sql = $db->query("SELECT * FROM users         INNER JOIN post ON users.username = post.add         WHERE post.id = $id AND post.add = '$pakuser'")         or die(mysql_error());               if ($sql === FALSE) {      }     if($row = $sql->fetch_object())     if($row->add)     {                ?>
<a href="editpost.php?id=<?php echo htmlspecialchars($gooo->id);?>">edit this post

BEWARE OF DELETING YOUR CONTENT THERE IS NO GO-BACK
<a href="delete.php?id=<?php echo htmlspecialchars($gooo->id); ?>">Delete this post
 <?php     } }

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I am having a problem getting a graph to come out correctly.       \documentclass[journal]{IEEEtran}  \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, xmax=13, ymin=30, ymax=70, xtick={6,7,8,9,10,11,12,13}, ytick={0,10,20,30,40,50,60,70,80}, legend pos=north east, ymajorgrids=true, grid style=dashed, height=8cm, ]  \addplot[color=blue] table [x=q6, y=ms6, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q7, y=ms7, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q8, y=ms8, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q9, y=ms9, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q10, y=ms10, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q11, y=ms11, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q12, y=ms12, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q13, y=ms13, col sep = comma] {6x6_2.csv}; \legend{Makespan}  \addplot[color=red] table [x=q6, y=mft6, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q7, y=mft7, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q8, y=mft8, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q9, y=mft9, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q10, y=mft10, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q11, y=mft11, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q12, y=mft12, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q13, y=mft13, col sep = comma] {6x6_2.csv}; \addlegendentry{Mean Flow Time}  \end{axis} \end{tikzpicture   This gives me the nice graph above.  However, when the graph is made as a node, I get a messed-up graph. How do I get the graph to come out as in the first picture?  \begin{figure*} \begin{center} \begin{tikzpicture}[framed, rounded corners]  \node[](6x6_graph) { \begin{tikzpicture} \begin{axis}[     title={},     xlabel={$q$},     ylabel={Time /seconds},     xmin=6, xmax=13,     ymin=30, ymax=70,     xtick={6,7,8,9,10,11,12,13},     ytick={0,10,20,30,40,50,60,70,80},     legend pos=north east,     ymajorgrids=true,     grid style=dashed,     height=8cm, ]  \addplot[color=blue] table [x=q6, y=ms6, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q7, y=ms7, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q8, y=ms8, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q9, y=ms9, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q10, y=ms10, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q11, y=ms11, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q12, y=ms12, col sep = comma] {6x6_2.csv}; \addplot[color=blue] table [x=q13, y=ms13, col sep = comma] {6x6_2.csv}; \legend{Makespan}  \addplot[color=red] table [x=q6, y=mft6, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q7, y=mft7, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q8, y=mft8, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q9, y=mft9, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q10, y=mft10, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q11, y=mft11, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q12, y=mft12, col sep = comma] {6x6_2.csv}; \addplot[color=red] table [x=q13, y=mft13, col sep = comma] {6x6_2.csv}; \addlegendentry{Mean Flow Time}  \end{axis} \end{tikzpicture} };  \end{tikzpicture} \end{center} \end{figure*}

I noticed something strange recently when trying to use rounded corners in pgfplots: it totally ruins the plot. See below without rounded corners:    and then with rounded corners:    Here is a minimal example:  \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=newest}  \begin{document}  \begin{tikzpicture}[scale=0.8,trim axis left, trim axis right] \tikzset{every mark/.append style={scale=0.6}} \pgfplotsset{legend style={font=\footnotesize}}  \begin{axis}[   grid=both,             rounded corners,             ]     \addplot[samples=100,color=blue,very thick,smooth,domain=-10:10] {cos(x^(3))}; \end{axis} \end{tikzpicture}  \end{document}   Thanks in advance for your ideas !


If I do this find:  find ${TRIADS_DIR}/*.dc.results -path "*amblock/stats.*HEAD" -o -path "*amblock/stats.*BRIK"   then I get what I expect in STDOUT:  tp101.day1.dc.results/amblock/stats.tp101_day1+tlrc.HEAD tp101.day1.dc.results/amblock/stats.tp101_day1+tlrc.BRIK tp101.day2.dc.results/amblock/stats.tp101_day2+tlrc.HEAD tp101.day2.dc.results/amblock/stats.tp101_day2+tlrc.BRIK ...   If I add an -exec clause to link the found files:  find ${TRIADS_DIR}/*.dc.results -path "*amblock/stats.*HEAD" -o -path "*amblock/stats.*BRIK" -exec ln -s {} ${TRIADS_GROUP} \;   then it only links the BRIKs:  stats.tp101_day1+tlrc.BRIK@ stats.tp101_day2+tlrc.BRIK@ ...   Questions   What's happening? Is there a more efficient way to tell find to return .HEAD and .BRIK using a single wildcard expression? I tried things like:  find ${TRIADS_DIR}/*.dc.results -path "*amblock/stats.*{HEAD,BRIK}"   but couldn't get it to work.

When I'm using  find . -type f -name "*.htm*" -o -name "*.js*" -o -name "*.txt"  it finds all the types of file. But when I add -exec at the end:  find . -type f -name "*.htm*" -o -name "*.js*" -o -name "*.txt" -exec sh -c 'echo "$0"' {} \;  it seems it only prints .txt files. What am I doing wrong?  Note: using MINGW (Git Bash)


I'm trying to scp into a box running 12.04 32bit livecd. The machines are connected to same switch & can ping each other just fine.  I use the usual args, eg-  scp -rp 'ubuntu@192.168.1.101:/home/ubuntu/Desktop/somefiletocopy.zip' .   but keep getting connection refused on port 22.   Its my understanding port 22 is open on livecd so I cannot figure out what the problem is..   Thanks for any help with this.

I have an Ubuntu Server 10.10 32-bit in my home. I'm making SSH connections to it from my PC via Putty.  The problem is, sometimes I'm able to login seamlessly. However, sometimes it gives me an error like this: Network error: Connection refused.  Then, I dont't change anything, try to login a few times more, wait a while and try again. Sometimes I can log in, sometimes I cannot. It seems pretty random to me.  What can I do to solve this?  Edit:  And Sometimes, Putty gives Network error: Software caused connection abort error after displaying login as: text.  Here is the ping -t output:  Pinging 192.168.2.254 with 32 bytes of data: Reply from 192.168.2.254: bytes=32 time=6ms TTL=64 Reply from 192.168.2.254: bytes=32 time=65ms TTL=6 Reply from 192.168.2.254: bytes=32 time=88ms TTL=6 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=3ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64 Reply from 192.168.2.254: bytes=32 time=1ms TTL=64     I turned off firewall of router, and everything seems to work now. Except for that, I still can't enter my web server by typing external IP from my PC.


I'm in the US for 30 days and got a SIM card from Lycamobile. For some reason adding APNs doesn't work through the GUI (I add them but they never show up in the list, even after rebooting).  Instead I added the following lines to my /system/etc/apns-conf.xml, just before </apns>    <!-- BEGIN Custom APNs -->                                         <apn carrier="Lyca US" mcc="311" mnc="960" apn="data.lycamobile.com" type="GPRS" user="lmus" pass="plus" />   <!-- END Custom APNs -->     Based on MCC and MNC data from Wikipedia and the information available online in general. I also enabled Data Roaming and International Roaming. I have rebooted my phone. I am on a Samsung Galaxy S3 running the latest AOKP nightly.  However, I still get an R in my signal tray and cannot connect to the internet. Please advise - any help would be appreciated even if it a nudge in a new direction.  Cheers,  Gausie

For hardware reasons (My menu key doesn't work) I can not add an APN via settings. I read  about using sqlite and  about using code. But I need a more convenient way to do it. I need to do it using adb.


I have a really large tikz image which is difficult to fit onto one single page. My workaround was to load enumitem, but that makes my list crash:  \documentclass{beamer}  \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{svg} \usepackage{enumitem} \usepackage{tikz} \usetikzlibrary{chains, positioning, shapes.symbols} \usepackage{etoolbox} \usepackage{enumitem}   %\usepackage{gensymb} %\usepackage{siunitx}  %\sisetup {     %locale = DE,     %per-mode = symbol %}  % THEME AND COLOR SETUP \usetheme{CambridgeUS} \usecolortheme[RGB={205,0,0}]{structure} \setbeamertemplate{items}[triangle] \setbeamertemplate{sections/subsections in toc}[square]  \newcommand{\quoted}[1]{     \glqq#1\grqq } \date{27. June 2018}  \mode<presentation>{}   \tikzset{start/.style = {signal, draw=#1, fill=#1!30,          text width=16mm, text=black, minimum height=23mm, font=\tiny,          signal pointer angle=150, on chain},      cont/.style = {start=#1, signal from=west, text=black}     }  \begin{document} \beamertemplatenavigationsymbolsempty   \setlist[itemize]{leftmargin=*}  \title{MS Powerpoint and TeX} \author{Narusan}  \begin{frame}     \frametitle{Revision}         \begin{center}         \begin{tikzpicture}[         node distance = 2mm,          start chain = going right,          mylabel/.style={anchor=north west,font=\bfseries\tiny, color=black}              ]      \node[start=gray!60!white, label={[mylabel]north west:Meldebogen}] {         \begin{itemize}                  \item {\color{black}{einziger Anhaltspunkt f\"{u}r Verfahren}}                  \item \"{U}berpr\"{u}fung der Angaben schwer                                \end{itemize}                };     \node[cont=gray!60!white, label={[mylabel]north west:Anklage}] {    \begin{itemize}                     \item \color{black}{Einflussreiche Nazis konnten Anklage entgehen}                 \end{itemize}           };     \node[cont=gray!60!white, label={[mylabel]north west:Beweisaufnahme}] {                 \begin{itemize}                     \item \color{black}{Kl\"{a}ger ermittelt kaum}                     \item Persilscheine                     \item Zeitdruck                 \end{itemize}                };     \node[cont=gray!60!white, label={[mylabel]north west:Urteil}] {              \begin{itemize}                     \item\color{black}{Gerichte nicht unabh\"{a}ngig}                     \item Laiengerichte                     \item \"{o}ffentlicher Druck             \end{itemize}       };     \node[cont=darkred!80!black, label={[mylabel]north west:Revision}] {               \begin{itemize}                         \item \color{black}{Gerichte sind im Nachhinein oft nachl\"{a}ssig}                         \item Einstufung aufgrund wirtschaftlicher Bedenken                     \end{itemize}                           };           \end{tikzpicture} \end{center} \end{frame}  \end{document}

I would like to make a very compact list (e.g., itemize) in Beamer.  has been asked for an article-type document class; the answer uses the enumitem package, known to be .  My question is: How do I make the same compact list in the Beamer document class? As in the above linked question, I would like the list to have   No whitespace before list No whitespace after list No whitespace between lines Less indent before the bullet points


I'm translating some code from standard C++ to Java.  Several places utilize  std::pair<T1,T2>    more specifically  std::pair<Date,double>   Is there a standard idiomatic way to express a parameterized pair type in Java?  As one example, I'm having to use a custom type  class Observation {    LocalDate date;    double value; }   I have other cases as well where two or three things need to be returned from a function. In other languages, I would likely use pairs, triples, and other tuple entities.  I do not really mind making the needed little classes, but would like to know if I'm somewhere missing out on a Java feature.  Thanks in advance for your comments.  (P.S. I'm pretty sure that this is my first question ever posed on S.O.)

Is there a good reason why there is no Pair<L,R> in Java? What would be the equivalent of this C++ construct? I would rather avoid reimplementing my own.  It seems that 1.6 is providing something similar (AbstractMap.SimpleEntry<K,V>), but this looks quite convoluted.


On windows, when you right click then you have option to create files.  I want to do that too on Mac, how can I do that without terminal?

In Finder > Select a folder > Right click, we get a popup with an option to create a new folder:    Is there a way to add menu item New Textfile for adding a new text file?


I have asked following question on stackexchange regarding a gnuplot solution: .  The question is about using following linestyle for data plots:    Gnuplot apparently has issues by blanking-out of the underlying curves and currently there is no solution within gnuplot.  Can pgfplots plot in a similar way without this issue?

I wondered if it is possible to create a scatter plot in pgfplots with a similar style as the "pointintervalbox" option in gnuplot, i.e. a plot with points and lines, but there is a gap between the lines and the points.  Here is an :    Maybe something like this already exists but I couldn't find it because I don't really know how to describe it.  Thank you


Using tha integral representation of the reciprocal of the binomial co-efficient: $${n \choose j}^{-1}=(n+1)\int_{0}^{1} x^j (1-x)^{n-j}~ dx,~~~~(1)$$ here, we state and prove an interesting sum that $$\sum_{k=0}^{\infty} \frac{2^k}{{2k \choose k}}=2+\frac{\pi}{2}~~~~~~(2)$$ Proof: $$S=\sum_{k=0}^{\infty}  2^{k}{2k \choose k}^{-1}= \int_{0}^{1} \sum_{k=0}^{\infty} (2k+1)~ [2x(1-x)]^{k}$$ Using $\sum_{k=0}^{\infty} (2k+1)r^k=\frac{1+r}{(1-r)^2},$ we can write $$S=\int_{0}^{1} \frac{1+2x(1-x)}{(2x^2-2x+1)^2} dx =\int_{0}^{1} \left (\frac{2}{(2x^2-2x+1)^2} -\frac{1}{2x^2-2x+1} \right)dx $$ The first integral in above has been obtained by assuming $$\int \frac{2}{(2x^2-2x+1)^2}dx=\frac{Ax+B}{2x^2-2x+1},$$ then by differentiation, we find $A=2, B=-1$. $$\implies S=\left(\frac{2x-1}{2x^2-2x+1}-\tan^{-1}(1-2x)\right)_{0}^{1}=2+\frac{\pi}{2}.$$ The question is: how to prove this using other approaches?

Actually I have no idea how to begin. I tried to represent it as a product of two series or as a sum of two series but have no result with this. Any idea ?


does the -1/-1 placed on a creature trigger the effect on 'Hapatra, Vizier of Poisons'.  The section of the card which states 'When you put one or more -1/-1 counterson a creature'.

Is a +1/+1 counter I get from, say Unleash or Undying different than +1/+1 from something like  or ?


Will Crontab reload it's configuration just be editing the Crontab file? will the crontab just change After I edit the crontab file or I will have  to run some command in order to reload configuration?

I am trying to automate the refreshing of awstats for my webserver and understand that I need to use cron to set that up.  So each user has a crontab file? I was following the instructions  community/AWStats And it says to go to the file at: /etc/crontab That file already has some information in it.  Is this the main crontab file or something?  I have seen some instructions online to use the file that pops up with crontab -e. What is the proper file to use and the best way to do this? If I schedule a task as my non-root user, will it run by itself at the time interval as specified, with no issues? Will I need to restart the server after saving the cron job in the crontab file before it will start working?


I am looking to ultimately generate Impulse Response Functions and plotting them for a set of variables. These variables are all non-stationary in levels when a lag order of 5 is selected. They are also cointegrated at this order. I believe this satisfies the prerequisites to estimate a VECM, which I could then convert to VAR and generate IRFs.  My issue however, is that when I plot these impulse response functions with the above variables, the response variables do not always return to long run trend I.e. return to zero; they can continue to incline or decline after many periods. Do you have any idea why this would be the case?  In addition, I have reason to believe that a lag order or 5 is too high for my model, and k=2 would be more sufficient, however when I set the lags to 2 some variables become stationary in levels and others remain non stationary, and all are stationary in first differences. Levels are still cointegrated. In this case, can I still use the VECM, and if I use the VECM do I use the differenced variables in this estimation or input the level variables (some non-stationary, some stationary) in it? Differenced variables from VECM to IRF seem to provide responses that return to long run trend better than levels.

My final goal is to generate Impulse Response Functions in R.  I have variables that are non stationary when I set k = 5 in a Unit Root test, and they are cointegrated which to my understanding prompts the use of the VECM, from which the Vec2Var argument is used to then generate IRFs. However, my response functions from this methodology do not decay over time and mostly do not revert to the zero line.  Furthermore, I noticed that when I input first differenced variables into the VECM as opposed to level data above, response function do revert to the zero line. Therefore my first question is: 1) is it appropriate to use differenced variables in a VECM model?  Secondly, as an alternative I am considering restricting the number of lags used in the Unit Root tests so that the variables are not all non-stationary; in this case 2) would the use of VECM be void and the VAR with first differences be a more appropriate model? Again, using differenced data is giving me better response functions that revert to zero in the long run. However, 3) is it ok to use the VAR for stationary/non-stationary data in levels where these variables are still cointegrated?  Also, I am using growth rate variables, 4) should I still long transform all variables and use logs in all tests?  Thank you for the help!


My first thought is to write an interator, or maybe do some list comprehension.  But, like every 5-10 line method I write in python, someone can usually point me to a call in the standard library to accomplish the same.  How can I go from two tuples, x and y to a dictionary z?  x = ( 1, 2, 3 ) y = ( 'a', 'b', 'c')  z = { } for index, value in enumerate(y):     z[value] = x[index]  print z  # { 'a':1, 'b':2, 'c':3 }

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


Let's say I have a class like:  public static class ListFilters {     public static ulong FilesLargerThanValue { get; set; }     public static bool FilesLargerThan(FileData data)     {         return (data.Size >= ListFilters.FilesLargerThanValue);     } }   and I want to call  ListFilters.FilesLargerThanValue = 1000000; List<FileData> filteredList = pathScanner.AllFilesList.FindAll(ListFilters.FilesLargerThan);   My question is:  In .Net 2.0, would the code run faster if my ListFilters class is defined as static (and the predicate that goes to List.FindAll is static)?

I'm working on a project in C#. The previous programmer didn't know object oriented programming, so most of the code is in huge files (we're talking around 4-5000 lines) spread over tens and sometimes hundreds of methods, but only one class. Refactoring such a project is a huge undertaking, and so I've semi-learned to live with it for now.  Whenever a method is used in one of the code files, the class is instantiated and then the method is called on the object instance.  I'm wondering whether there are any noticeable performance penalties in doing it this way? Should I make all the methods static "for now" and, most importantly, will the application benefit from it in any way?


Excuse my knowledge because I am still learning to code on my own and not an expert.   I use crypt with blown fish $2a$10$, My secured password will show this for instance, $2a$10$137276602359697140be5eISqj55.fGmbUo4PEZoLRpWmxspLiWJK  As it starts with $2a$10 they will know the way I used, will it affect me? Can they->hackers even do anything with my secured password as I use random salt/key hashed and encrypted? (Rainbow tables).  Because I got scared after I saw this   Finally, last question. Heard that loops make it longer/slower to get password results during an attack but, what does it do to $hash? Maximum loop limit ? Does it have any side-affects?  for($i = 0; $i < 100000; $i++) { $hash = crypt('sha512', $hash);   }  Thanks for reading, every answer will be much appreciated. Best regards, Mr Pro Pop!

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection.  This question,   suggests that hashing multiple times may be a good idea, whereas  suggests using salt.  I'm using PHP. I want a safe and fast password encryption system. Hashing a password a million times may be safer, but also slower. How to achieve a good balance between speed and safety? Also, I'd prefer the result to have a constant number of characters.   The hashing mechanism must be available in PHP It must be safe It can use salt (in this case, are all salts equally good? Is there any way to generate good salts?)   Also, should I store two fields in the database (one using MD5 and another one using SHA, for example)? Would it make it safer or unsafer?  In case I wasn't clear enough, I want to know which hashing function(s) to use and how to pick a good salt in order to have a safe and fast password protection mechanism.  Related questions that don't quite cover my question:


Is there any significance to the pattern we get when the Roman alphabet (upon which English is based) is arranged by giving vowels a "lead" column (which I hope you will be able to see as a grid)?  For instance, are gutturals grouped together, etc?

Is there a reason behind the ordering of letters in the English alphabet? i.e. why are we taught “A,B,C,D,E,F,...,Z”? Why not “L,A,S,U,I,Z,...,C”?  I am asking this because, in some of the languages I know, I am told that the ordering of the letters in the alphabet is based on the ease with which they can be pronounced or the frequency with which they are used or depending on the part of the vocal cord that needs to be stressed to pronounce the letter.  Is there a similar rationale?  EDIT  You can see a couple of references for arrangement of letters in Sanskrit  and .


Somewhat oddly, C treats character constants as type  int  rather than type  char. For example, on an ASCII system with a 32-bit  int  and an 8-bit  char, the code  char grade = 'B';   represents  'B'  as the numerical value 66 stored in a 32-bit unit, but  grade  winds up with 66 stored in an 8-bit unit.  Please explain this lines.

In C++, sizeof('a') == sizeof(char) == 1. This makes intuitive sense, since 'a' is a character literal, and sizeof(char) == 1 as defined by the standard.  In C however, sizeof('a') == sizeof(int). That is, it appears that C character literals are actually integers. Does anyone know why? I can find plenty of mentions of this C quirk but no explanation for why it exists.


I have this command: /data modify entity @s Inventory[{Slot:-106b}] set from storage minecraft:datapack Before It's supposed to replace the offhand with the NBT in the storage minecraft:datapack Before, which has the right NBT. But it just says Unable to modify player data. How do I fix this?

I'm wondering about whether it is possible to change part of an NBT or add NBT to an item that a player is holding. My goal is to make custom enchants. For example when a player uses an item to enchant a sword they get the score "EnchantMight" 5, which would cause the next weapon they hold to get "Might V". This, in reality, would just be +5 additive damage in the NBT. I know /replaceitem would be an option, but that only works if the new item is predetermined. I hoped /data modify entity @p {SelectedItem:[{AttributeModifiers:[{AttributeName:"generic.attack_damage",Amount:5,Operation:0,UUID:[I;-120919,1237,151734,-2474],Name:"generic.attack_damage"}]}]} insert/append/merge  would work, but obviously it didn't. If anyone even just has an idea I can try out, it'd be of help. If you give a datapack related answer, please explain clearly as I don't know a lot about it.


I would like to assess the correlation between a 7-category ordinal variable (X) and a number of other variables some of which are ordinal with 3-6 categories, others are continuous and a couple are dichotomous. The dataset includes only 24 observations and lack of normality and tied observations are therefore issues to take into account.    Would it be best to use the Kendall coefficient to assess the correlation between X and each of the other variables? If so, which one (i.e. tau-a or tau-b; I know that Roger Newson favours the former)?  Would it be reasonable to use Spearman as well?  And what would be the best test to assess the correlation with each of the dichotomous variables?

In which cases should one prefer the one over the other?  I found someone who claims an advantage for Kendall, , are there other reasons?


Um trying to remove an HTML element by JQuery as follows  $('#' + divId + ' .settings_class').remove('.print_settings');   This does not throw an error or remove the html element. but the selector correctly retrieves the element.   $('#' + divId + ' .settings_class .print_settings');   How to remove an element inside a div by its class as follows?

Is there a function like document.getElementById("FirstDiv").clear()?


I came across few different ground names (digital, analog, signal, power, mecca, EM, shield, etc).   I do understand most of them - but mecca is a new one for me. Can someone please explain this mecca ground?

In  is the following diagram for a voltage booster intended for small battery powered devices    The  says GND is control/logic ground and PGND is power ground but this isn't reflected in the symbols chosen in the diagram. I'm also puzzled why the link to earth is shown on GND rather than on PGND.  From  it seems that various parts of the above circuit are to be tied to chassis ground and not to (say) digital/common/signal/control/logic ground.    Why specify chassis ground? Am I wrong in interpreting that as the metal part of an enclosure which is (usually) tied to earth through the mains electrical connection for safety purposes.  I have looked at similar questions here† but am still puzzled by the choice of symbols on the example circuit.  Why are these particular symbols used in this circuit diagram?  † Related questions


I have windows 10 home and from time to time I see a command line window popping up for less than a second. I want to find out which process is causing that. It's not very often that this window pops up so I need some tool that can run for a long time.  Does anyone have a good idea?  Regards Tobias

I keep seeing a console window pop up for a fraction of a second every couple of hours. Seems random, I can't pin it to any one particular event. Is there any way I can trap the window and see what it's doing?  I'm on Win 10, latest updates, Norton.


I'm flying with my cat as excess luggage. Luftansa says the crate needs to be 60cm L x 45cm W x 40cm H but all the crates I can find online are 41cm in height. I don't want them to deny entry to my pet on the flight at the airport, just because his crate is a cm taller than their specifications.

The Lufthansa web site  that in-cabin pets must weigh less than 8 kg (including the carrier) and the maximum dimensions of the pet's carrier are 55 cm x 40 cm x 20 cm (21.7 inches x 15.75 inches x 8 inches).    How strict are they about enforcing this limit, for soft-sided (squishable) carriers?  [cross-posted:  ]


What is the difference between ''I often listen to the radio before I go to the bed'' and ''I often listen to radio before I go to the bed''?  Why is the second one not correct? It was marked as uncorrect in a Cambridge English excercise.

Why do we say on television but say on the radio? I saw these two mentioned in Cambridge dictionary entry.     We often hear and use it both in private and in public settings and in films, on television and on the radio.


Is it possible to heal friendly undead in 5e DnD? What is the best way to do this? Any spells or class abilities ok. No magic items. Thanks!

Fifth edition seems to have removed any means of healing undead.  The positive/negative energy duality of 3rd edition seems to be gone. Negative energy spells now do necrotic damage; some undead are resistant or immune to necrotic damage, but it isn't listed as healing them. Classic negative energy spells like inflict wounds and harm don't list undead healing as a possible effect.  For zombies and skeletons it might not matter, but liches and vampires would never risk their necks if they didn't have some way to recover hit points. What is it?


The top bar of the Ubuntu Desktop appears extremelly small when I open the OS. I have already installed it again, and the problem persists. It seems to be an Ubuntu bug, how could I fix it? When I change the scale to 125% and then to 100% again, it fixes, but when I restart the PC it persists. Thank you!

So I was configuring VS code on my Notebook when suddenly I noticed that my interface font got really small on my desktop, terminal and files. I use Gnome Tweaks Tool to increase my scaling factor to 1,15 , but, even though it was active, the font stayed tiny. The solution I found was moving my scaling factor, which instantly fixed my font issue, however, every time I restart my Notebook the font gets tiny again and I have to repeat the process. I tried reseting my font configuration using this command, but had no success. gsettings reset org.gnome.desktop.interface text-scaling-factor  I also tried using the command dconf reset -f /  Finally, I tried using dconf-editor, but still had no success altering the font rendering DPI or changing the scaling factor. All of the steps I mentioned fixed my fonts temporarily, but the issue still persists when I restart my Notebook I am out of ideas and even considered getting a fresh Ubuntu install by now... My video card: NVIDIA GeForce GTX 1050 GPU


It displays as "yesterday" but today is February 20 and question's date is February 18.

Looking at , I see "asked yesterday" (which I really hate; I'd like to see an exact time specification rather than this vague one, especially in the list of questions). But it was not asked yesterday! When I hover over it to show the exact time, it shows it was actually the day before yesterday!  This snapshot was taken at 2012-03-31 15:00 UTC (plus or minus a few minutes):    Whatever different opinions you may have on the implementation, yesterday is a word with a certain meaning. Redefining it is not a good idea. At least rephrase this as "1 day ago" or something.


I saw on  site,     As you can see it is something like a $\mathbb{e}$, except that using $\mathbb{e}$ would not produce output at all.   Also the imaginary unit has the same style, can someone provide a way to reproduce it in LaTeX?  EDIT:  I'm adding two more detailed images in the hope that someone will implement a math font for these symbols

Although it is not standard notation, I quite like the fact that in Mathematica, a blackboard bold i is used to represent the imaginary unit. Apart from making it stick out, it allows me to write things such as  ,  allowing me to use the variable 'i' as an iterator in series, etc. To achieve this in LaTeX, I've made use of the bbm package (\mathbbm i), however this doesn't render as nicely as the standard AMS math \mathbb command, in fact, it looks pixellated up close:    Is there a way to achieve a nicer blackboard bold i symbol? I'm not very fond of what is offered by the packages bbold, mathbbol or dsfont packages either, I want to get something as close to AMS's \mathbb as possible.


SO i wanted to get to feel that nostalgia but i have been REALLY annoyed by an unpleasant issue. any help its hugely apreciated! My specs:   IntelCorei7-2600 3.6 GHz 8GB Ram Windows 10 pro No graphics card (hope that this its not the issue, even tho im pretty sure it can be)   Here is the error log  ---- Minecraft Crash Report ---- // Hey, that tickles! Hehehe!  Time: 11/04/19 20:14 Description: Initializing game  java.lang.IllegalStateException: GLFW error 65542: WGL: The driver does not appear to support OpenGL     at cgd.b(SourceFile:218)     at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:36)     at org.lwjgl.system.JNI.invokePPPP(Native Method)     at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1649)     at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1827)     at cgd.<init>(SourceFile:99)     at cgc.a(SourceFile:79)     at cft.am(SourceFile:439)     at cft.a(SourceFile:380)     at net.minecraft.client.main.Main.main(SourceFile:144)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Thread: Client thread Stacktrace:     at cgd.b(SourceFile:218)     at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:36)     at org.lwjgl.system.JNI.invokePPPP(Native Method)     at org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:1649)     at org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:1827)     at cgd.<init>(SourceFile:99)     at cgc.a(SourceFile:79)     at cft.am(SourceFile:439)  -- Initialization -- Details: Stacktrace:     at cft.a(SourceFile:380)     at net.minecraft.client.main.Main.main(SourceFile:144)  -- System Details -- Details:     Minecraft Version: 1.13.2     Operating System: Windows 10 (amd64) version 10.0     Java Version: 1.8.0_201, Oracle Corporation     Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation     Memory: 34848312 bytes (33 MB) / 202657792 bytes (193 MB) up to 6991118336 bytes (6667 MB)     JVM Flags: 5 total; -Xmn128M -Xmx6680M -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+UseConcMarkSweepGC     Launched Version: 1.13.2     LWJGL: 3.1.6 build 14     OpenGL: NO CONTEXT     GL Caps:      Using VBOs: Yes     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs:      Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     CPU: <unknown>

I recently got Minecraft but not from the website, I paid for a code and everything seemed ok. When I tried to play the game a thing came up saying it crashed and then a message popped up saying The game crashed whilst initializing game     Error: java.lang.IllegalStateException: GLFW error 65542: WGL: The driver does not appear to support OpenGL.


while True:     volts = adc.readADCDifferential01(4096, 8)     print volts   This works fine except that it prints out a column of voltages that quickly fills up the terminal screen. I'd rather it print the voltages side by side and fill up rows from left to right.  I tried putting a comma after the print volts but nothing shows up on the screen until I stop the program by pressing control-C. The comma does cause the voltages to be printed in rows but I need to watch the readings live instead of blindly waiting until I suspect the test is finished.  Why did adding a comma cause the program to stop showing the voltages as they are happening?

How do I force Python's print function to output to the screen?


Some characters, such as question marks and plus signs, have special meanings in regular expressions and must be preceded by a backslash if they are meant to represent the character itself. May I know which is the complete list of characters which must be preceded by a backslash ?  Is it correct to say that all non alphanumeric characters must be escaped ? And how to add a backslash to a php string , addslash() only add a slash in this few cases   single quote (') double quote (") backslash () NUL (the NUL byte)

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


(click to expand image)  The iOS app appears to be loading the wrong site icon for blog posts on the Feed.   App Version: 1.6.6.2 Device: iPhone 6 OS Version: Version 10.3.3 (Build 14G60)

Today in the feed on the Android Stack Exchange app there is a Stack Overflow blog post. This post had the site icon next to it for  rather than the proper site logo (Meta).        Stack Exchange Android App Version 1.0.73 and 1.0.74 Android 5.1 on a Moto X (2013) running stock firmware.  Same behavior on a Nexus 7 (flo) running Android 6.0 (stock).  This issue also happens on the iOS app.    The most recent featured SO blog post (as of 17 Nov) is showing up with the "edX" site logo.  The logo is seemingly randomly incorrect.


To produce an annotated reading list, I want to present the reader with two components of the list: a) a thematically sorted, annotated part b) an alphabetically sorted, non-annotated part  I use biblatex-chicago. I do note the points of an earlier  on suppressing fields. My question is how I can keep a field enabled for (a) whilst disabing it for (b)?  One option I recognise is, of course, to not work on this via fields, but annotate in the main tex file, outside of the bib-file. Ideally, I would want to use a solution that can work with fields in the bib file.

I am aware of \clearfield, \clearlist etc (cf. ) - but I'm really not sure how to apply it in this context:  Say you have a split bibliography (i.e. several calls to \printbibliography in one document). How can you filter a specific field in a bibliography item - but only in one bibliography (i.e. only in one call to \printbibliography)?  For instance, in the MWE below (compiles with pdflatex test.tex && biber test && pdflatex test.tex && pdflatex test.tex), let's say I'd like to filter urldate (i.e. urldate is not typeset) only in the first bibliography - but for the second one, the original/default behavior should be restored (i.e. urldate is typeset). How to I do that?  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @online{ctan,   title        = {CTAN},   date         = 2006,   url          = {http://www.ctan.org},   subtitle     = {The Comprehensive TeX Archive Network},   urldate      = {2006-10-01},   label        = {CTAN},   langid       = {english},   langidopts   = {variant=american}, } @misc{google,   title        = {Google},   date         = 2007,   url          = {http://www.google.com},   urldate      = {2007-10-01}, } @misc{hotmail,   title        = {Hotmail},   date         = 2008,   url          = {http://www.hotmail.com},   urldate      = {2008-10-01}, } @misc{yahoo,   title        = {Yahoo},   date         = 2009,   url          = {http://www.yahoo.com},   urldate      = {2009-10-01}, } @misc{aol,   title        = {AOL},   date         = 2010,   url          = {http://www.aol.com},   urldate      = {2010-10-01}, } @misc{altavista,   title        = {AltaVista},   date         = 2011,   url          = {http://www.altavista.com},   urldate      = {2011-10-01}, } \end{filecontents*} \usepackage[utf8]{inputenc} \usepackage[backend=biber,defernumbers=true,style=ieee]{biblatex} \bibliography{\jobname}  \begin{document}  \section{Section 1} \begin{refsection}  Citing some stuff here: first \cite{ctan}, then \cite{google}, and finally \cite{hotmail}.  \printbibliography[sorting=none,section=\therefsection,resetnumbers=true]  \end{refsection}  \section{Section 2} \begin{refsection}  Citing some stuff here: first \cite{yahoo}, then \cite{aol}, and finally \cite{altavista}.  \printbibliography[sorting=none,section=\therefsection,resetnumbers=true]  \end{refsection}  \end{document}   Output:


DropOut is a good way to reduce over-fitting in Neural Network, and I found a article on .   My question is for each epoch, we should randomly pick half of the neurons of the network, and set the weights of them to zero, and update the weights of the networks? Does it right?  Show my process  for each epoch:     randomly deactivate some neurons(in some percent) in each hidden layer     learning with mini-batch data and update the weighs of the whole-nets  get the output of weights

If you have a half page to explain dropout, how would you proceed? Which is the rationale behind this technique?


Does this sentence call for the plural verb "were" here, or the singular "was"?     Neither he nor the others were aware of it      Neither he nor the others was aware of it

According to this , if at least one of the nouns involved is plural then it should take the plural form of the verb. Otherwise, it should take the singular form of the verb. But in the last part it says not all grammars agree to those rules thus proximity rule applies. However, it doesn't explain when to apply the proximity rule and when not to use the former rules.


I am a beginner in Complex Analysis:  Question from Gamelin Complex Analysis:     If $f$ is continuous on a domain $D$ and $f(z)^N$ is analytic for some $N\in \Bbb N,$ then show that $f(z)$ is analytic too.   HINT:Use zeros of analytic function are isolated.  Attempt:  Let $z_0\in D$ then either $f(z_0)=0$ or $f(z_0)\neq 0$.  CASE I : $f(z_0)=0$.  If $f(z_0)= 0\implies f(z_0)^N=0\implies z_0$ is a zero of $f^N$ and hence $\exists r>0$ such that $f^N(z_0)\neq 0\forall 0<|z-z_0|<r$.  What should I do now?  CASE II :$f(z_0)\neq 0$.  I am totally confused how to proceed.

This is from Gamelin's book on Complex Analysis.  Problem: Show that if $f(z)$ is continuous on a domain $D$, and if $f(z)^8$ is analytic on $D$, then $f(z)$ is analytic on $D$. (I assume the intention is that $D$ is nice, i.e. open and connected)  I'm not exactly sure how to approach this. I'm guessing it has something to do with zeroes of $f$. For example, around non-zeroes, $f$ is analytic since $z^{1/8}$ is nonzero in a neighborhood. Or something along those lines. The details are eluding me.  Any help would be appreciated!


I have a tall object, casting a (sun lamp) shadow onto a plane scaled at 10,000 (dimensions 20K x 20K). But the shadow is being cut off not far behind my object (I can also see this visible limit in OGL). No matter how large I scale the ground object, the shadow is always cut off at the same place. If I view from top, the entire shadow is there!  Changing Camera > View > Clipping Start and End has NO effect. So why is the depth being cut off in my OGL and renders?

I have created a simple model here   When rendering it the end of it is cut off   How can I get the camera to render a longer distance?


I got gcd(a+b, b) = 1 but I can’t get to prove that gcd(a+b, ab) = 1 What should I do??

Let $a$ and $b$ be two integers such that $\left(a,b\right) = 1$. Prove that $\left(a+b, ab\right) = 1$.   $(a,b)=1$ means $a$ and $b$ have no prime factors in common  $ab$ is simply the product of factors of $a$ and factors of $b$.  Let's say $k\mid a+b$ where $k$ is some factor of $a$.  Then $ka=a+b$ and $ka-a=b$ and $a(k-l)=b$.  So $a(k-l)=b, \  a\mid a(k-1)$ [$a$ divides the left hand side] therefore $a\mid b$ [the right hand side].  But $(a,b)=1$ so $a$ cannot divide $b$.  We have a similar argument for $b$.  So $a+b$ is not divisible by any factors of $ab$.  Therefore, $(a+b, ab)=1$.  Would this be correct? Am I missing anything?


There is much ado about emergent gravity these days. But what's the physical basis for this entropic force? In a stretching piece of rubber the molecules of rubber provide the basis, but what is the physical basis for entropic gravity?

Recently, there was a rapid communication published in Phys.Rev.D (), titled "Gravity is not an entropic force", that claimed that , disproves Verlinde's entropic approach to gravity.  The neutrons experiment gave results consistent with the predictions of Newtonian gravity for the lowest energy state.  As I understand it, the author claims that the fact that Verlinde's entropic force comes from a thermodynamic process that is irreversible (or approximately reversible), leads to non-unitarity in the evolution of quantum systems. The non-unitarity then exponentially suppresses the eigenfunctions, predicting results very much different than the Newtonian. Thus, that experiment is in contradiction to what is expected if Verlinde's approach is correct.  My questions are,   First of all, is there anything else essential that I am missing? Is there any response to that argument? Is that a fatal problem with Verlinde's entropic approach? Is that a fatal problem for any entropic approach?   Updates on the discussion:   There is also this recent comment  Once more: gravity is not an entropic force


I know that $\sqrt{1}=\sqrt{(-1)*(-1)}$ and we can't expand $\sqrt{(-1)*(-1)}$ as $\sqrt{-1}*\sqrt{-1}$ since the later part becomes $\iota$*$\iota$ which becomes -1 which is not equals the original number we are given-$1$.  But I want to know why we can't take square root of two imaginary numbers in product to be equals the product of square roots of two imaginary numbers by distributing the square root function over the two numbers under the square root function?

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


How can I install drivers for 64-bit Atheros AR8161/8165 PCI-E Gigabit Ethernet Controller (NDIS 6.20) for Ubuntu 12.04. I dual boot Windows7/Ubuntu 12.04 drivers work for 64-bit Windows 7.  lspic -nn:  00:00.0 Host bridge [0600]: Intel Corporation Ivy Bridge DRAM Controller [8086:0154] (rev 09)  00:01.0 PCI bridge [0604]: Intel Corporation Ivy Bridge PCI Express Root Port [8086:0151] (rev 09)  00:02.0 VGA compatible controller [0300]: Intel Corporation Ivy Bridge Graphics Controller [8086:0166] (rev 09)  00:14.0 USB controller [0c03]: Intel Corporation Panther Point USB xHCI Host Controller [8086:1e31] (rev 04)  00:16.0 Communication controller [0780]: Intel Corporation Panther Point MEI Controller #1 [8086:1e3a] (rev 04)  00:1a.0 USB controller [0c03]: Intel Corporation Panther Point USB Enhanced Host Controller #2 [8086:1e2d] (rev 04)  00:1b.0 Audio device [0403]: Intel Corporation Panther Point High Definition Audio Controller [8086:1e20] (rev 04)  00:1c.0 PCI bridge [0604]: Intel Corporation Panther Point PCI Express Root Port 1 [8086:1e10] (rev c4)  00:1c.1 PCI bridge [0604]: Intel Corporation Panther Point PCI Express Root Port 2 [8086:1e12] (rev c4)  00:1c.3 PCI bridge [0604]: Intel Corporation Panther Point PCI Express Root Port 4 [8086:1e16] (rev c4)  00:1d.0 USB controller [0c03]: Intel Corporation Panther Point USB Enhanced Host Controller #1 [8086:1e26] (rev 04)  00:1f.0 ISA bridge [0601]: Intel Corporation Panther Point LPC Controller [8086:1e59] (rev 04)  00:1f.2 SATA controller [0106]: Intel Corporation Panther Point 6 port SATA Controller [AHCI mode] [8086:1e03] (rev 04)  00:1f.3 SMBus [0c05]: Intel Corporation Panther Point SMBus Controller [8086:1e22] (rev 04)  01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:0de9] (rev a1)  02:00.0 Ethernet controller [0200]: Atheros Communications Inc. AR8161 Gigabit Ethernet [1969:1091] (rev 08)  03:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 2200 [8086:0891] (rev c4)  04:00.0 System peripheral [0880]: JMicron Technology Corp. SD/MMC Host Controller [197b:2392] (rev 30)  04:00.2 SD Host controller [0805]: JMicron Technology Corp. Standard SD Host Controller [197b:2391] (rev 30)  04:00.3 System peripheral [0880]: JMicron Technology Corp. MS Host Controller [197b:2393] (rev 30)  04:00.4 System peripheral [0880]: JMicron Technology Corp. xD Host Controller [197b:2394] (rev 30)    sudo lshw -c network     *-network UNCLAIMED              description: Ethernet controller         product: AR8161 Gigabit Ethernet         vendor: Atheros Communications Inc.         physical id: 0         bus info: pci@0000:02:00.0         version: 08         width: 64 bits         clock: 33MHz         capabilities: pm pciexpress msi msix bus_master cap_list         configuration: latency=0         resources: memory:d3a00000-d3a3ffff ioport:2000(size=128)    *-network         description: Wireless interface         product: Centrino Wireless-N 2200         vendor: Intel Corporation         physical id: 0         bus info: pci@0000:03:00.0         logical name: wlan0         version: c4         serial: 9c:4e:36:14:d4:7c         width: 64 bits         clock: 33MHz         capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless         configuration: broadcast=yes driver=iwlwifi driverversion=3.2.0-23-generic firmware=18.168.6.1 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn         resources: irq:45 memory:d3900000-d3901fff    I also tried Manually configuring wired connection. Nether wired or wireless connects

I have installed Ubuntu 12.04-64 bit on my Lenovo IdeaPad laptop, and the wired Ethernet (LAN) connection doesn't work.  Running the lspci -vv | grep Atheros command from the terminal shows me I have the AR8161 Gigabit Ethernet controller:  02:00.0 Ethernet controller: Atheros Communications Inc. AR8161 Gigabit Ethernet (rev 08)   This looks like a new product whose drivers are not built into Ubuntu.  How do I install drivers to get the AR8161 working?


I'm new to Java and Android development. I'm developing an app for children, in the Java section contain some classes. One of the classes is for swapping the pages named ColorCustomSwipeAdapter, and there is another class for converting text to speech named ReadName that contain a method named speakOut, the problem starts when I try to call the method speakOut through the ColorCustomSwipeAdapter class. It throws NPE and the app crashes.  Here is the code:  ColorCustomSwipeAdapter.java  package com.example.ibrahim.toddlerssmartbook;  import android.content.Context; import android.speech.tts.TextToSpeech; import android.support.v4.view.PagerAdapter; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.RelativeLayout; import android.widget.TextView; import android.widget.Toast;  import java.util.Locale;   /**     * Created by Ibrahim on 3/19/2016.  */ public class ColorCustomSwipeAdapter extends PagerAdapter {  ReadName sayName=new ReadName() ; private int[] image_resource = {R.drawable.red,R.drawable.green,R.drawable.blue,R.drawable.pink,R.drawable.gray ,R.drawable.yellow,R.drawable.brown,            R.drawable.black,R.drawable.purple,R.drawable.orange,R.drawable.white}; private String[] color_name=   {"Red","Green","Blue","Pink","Gray","Yellow","Brown","Black","Purple","Orange","White"};  private Context ctx;   private LayoutInflater layoutInflater; public ColorCustomSwipeAdapter(MainActivity ctx){this.ctx=ctx;} @Override  public int getCount() {     return image_resources.length; }  @Override public boolean isViewFromObject(View view, Object object) {     return (view==(LinearLayout)object); }  @Override public Object instantiateItem(ViewGroup container, int position) {      layoutInflater= (LayoutInflater) ctx.getSystemService(Context.LAYOUT_INFLATER_SERVICE);       View    item_view=layoutInflater.inflate(R.layout.swipe_layout,container,false);     ImageView imageView=(ImageView)item_view.findViewById(R.id.image_view);     TextView textView=(TextView)item_view.findViewById(R.id.name);     imageView.setImageResource(image_resources[position]);     textView.setText(color_name[position]);      sayName.speakOut(color_name[position]);//The ERROR IS HERE      container.addView(item_view);     return item_view;     }      @Override     public void destroyItem(ViewGroup container, int position, Object object) {         container.removeView((LinearLayout)object);     } }   Readname.java  package com.example.ibrahim.toddlerssmartbook;  import android.content.Context; import android.speech.tts.TextToSpeech; import android.support.v7.app.AppCompatActivity; import android.widget.Toast;  import java.io.IOException; import java.util.Locale;  /**    * Created by Ibrahim on 4/7/2016. */ public class ReadName extends AppCompatActivity { private int result;  public ReadName() {    result=0; }   TextToSpeech  ttsObject=new TextToSpeech(this,new              TextToSpeech.OnInitListener(){    @Override  public void onInit(int status){  if(status==TextToSpeech.SUCCESS){ result = ttsObject.setLanguage(Locale.US); }else{ Toast.makeText(getApplicationContext(),"Feature not supported in your    device.",Toast.LENGTH_SHORT).show();    }}   });   public void speakOut(String name){   if (result == TextToSpeech.LANG_NOT_SUPPORTED || result ==    TextToSpeech.LANG_MISSING_DATA) {       Toast.makeText(getApplicationContext(), "Feature not supported in your    device.", Toast.LENGTH_SHORT).show();    } else {       ttsObject.speak(name, TextToSpeech.QUEUE_FLUSH, null);    }   }    @Override    public void onDestroy() {      if (ttsObject != null) {         ttsObject.stop();         ttsObject.shutdown();     }     super.onDestroy();  } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I'm trying to implement the appendix image, making an script in LaTeX.  After consulting some forums I obtained the next script but the dotted lines don't appear.  PS. I'm new in Latex!  \documentclass{minimal}  \usepackage{amsmath}   \usepackage{arydshln}  \begin{equation} \label{eq10}   T_6^{0} = \left [   \begin{tabular}{cccc:cc}   \cdashline{1-4}   \multicolumn{2}{:l}{1}    & 0     & 0    & \multicolumn{2}{c:} {\(p_x__{req}\)}   \\   \multicolumn{2}{:l}{0}    & -1    & 0    & \multicolumn{2}{c:} {\(p_y__{req}\)}    \\   \multicolumn{2}{:l}{0}    & 0     & -1   & \multicolumn{2}{c:} {\(p_z__{req}\)}  \\ \cdashline{1-4}   \multicolumn{2}{c}{0}     & 0     & 0    & \multicolumn{2}{c:} {1}    \end{tabular}  \right ] \end{equation} \end{document}

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square):  $$ A = \begin{bmatrix} \fbox{0} & \fbox{0} & 0 \\  \fbox{0} & \fbox{0} & 0 \\ 1 & 1 & 1 \\  \end{bmatrix}$$   But how can I outline elements of the submatrix like in the picture below? I need just a frame where some elements are located.


I got the following situation. My software operates on a database with tables autogenerated by Microsoft Dynamics NAV 2009. The database runs on an MS SQL Server 2012. We created a new table in NAV that has several datetime fields. NAV stores these to SQL Server using datetime columns (I know this tyoe should not be used today, but NAV 2009 does and I can't change that).  My software receives data from external partners and writes it into this table, so that NAV can read it and work on it. NAV only reads that table, never writes to it.  But for some reason weird things happen when storing the time values to the database. My software is a Spring Boot 5.1 application that uses Hibernate 5.3.7 for ORM. My JPA entity uses the Java 8 type Instant to map the date and time values to the database table.  @Entity @Table(name = "Nav Company$My Table") public class MyTableEntity implements Serializable {      /* some more fields here... */      @Column(name = "Our Timestamp", updatable = false, nullable = false)     private Instant ourTimestamp;      @Column(name = "Partner Timestamp", updatable = false, nullable = false)     private Instant partnerTimestamp;      /* getters and setters here */ }   When data from a partner comes in, my software reads the provided timestamp as LocalDateTime, adds timezone information to it to get a ZonedDateTime,  extracts the Instant and stores it in the database using the entity.  My logs show that the time calculation in the software is correct. The last line is the Instant that is written to the database.  2019-01-22 09:00:01 [...] : navTimestamp[LDT]: ldt =    2019-01-22T09:00:01.015597300 2019-01-22 09:00:01 [...] : navTimestamp[LDT]: zoneId = Europe/Berlin 2019-01-22 09:00:01 [...] : navTimestamp[LDT]: zdt =    2019-01-22T09:00:01.015597300+01:00[Europe/Berlin] 2019-01-22 09:00:01 [...] : navTimestamp[ZDT]: zdt =     2019-01-22T09:00:01.015597300+01:00[Europe/Berlin] 2019-01-22 09:00:01 [...] : navTimestamp[ZDT]: instant = 2019-01-22T08:00:01.015597300Z   But when I SELECT the data from the table using SQL Server Management Studio, it shows that the database stored 2019-01-22 09:00:01.017 instead of 2019-01-22 08:00:01.017 as I would have expected (remember: column type is datetime, not datetimeoffset). When NAV reads that value, it even adds another hour to convert it into local time (GMT+1), thus showing 2019-01-22 10:00:01.  So I guess somewhere between my application and the SQL Server, Hibernate does some weird things and does not transmit the UTC time stored in the Instant but instead converts it to local time first and then stores it in the database.  How can I make sure that the UTC time is stored in the database and not local time?

How can I configure JPA/Hibernate to store a date/time in the database as UTC (GMT) time zone? Consider this annotated JPA entity:  public class Event {     @Id     public int id;      @Temporal(TemporalType.TIMESTAMP)     public java.util.Date date; }   If the date is 2008-Feb-03 9:30am Pacific Standard Time (PST), then I want the UTC time of 2008-Feb-03 5:30pm stored in the database. Likewise, when the date is retrieved from the database, I want it interpreted as UTC. So in this case 530pm is 530pm UTC. When it's displayed it will be formatted as 9:30am PST.


Is there any difference between the two sides of an aluminium foil? (shiny/matte)  If so, when to use each one? For example, when covering something or when using as a pan cover to bake/cook something on top of it.

Does it make any difference when you wrap food with aluminum foil for grilling or baking or making a steam pouch whether you put the shiny side in or the shiny side out?  I've seen at least one answer to a questiong about grilling that made mention of this.


I was trying to  insert digital signature in LibreOffice writer documents. I went to file section then to digital signature. After that, I couldn't  insert my sign because the option was blank. How to do this?

I obtained a client certificate from CAcert through Firefox. I want to use that certificate to sign a document created with LibreOffice Writer.  In Writer, I click File > Digital Signatures... to get the Digital Signatures dialog which is supposed to show the list of certificates available. The list is empty.   How can I make the certificate, which I obtained via Firefox, available to Writer?


I've seen many crontab commands written this way:  */5 * * * * ~/script.sh >/dev/null 2>&1   Can someone explain what is the exact meaning of 2>&1?

There are two forms of redirection the standard output and standard error into standard output. But which one is better? and why the &> is considered the perfect?  I can't find what is the differences so that many tutorials and even bash manual state that  &> is better!   So Why shall I use &> and not 2>&1  Mainly using bash shell    EDIT: Thanks for commentors   Only >& works in csh or tcsh  In ksh only 2>&1 works.  dash use >file 2>&1 redirection only  Then which one to use to ensure my script is compatible with other systems whatever the used shells are!


suppose there is a script "/home/abc/test.go". Someone else went to another directory lets assume "/etc/random/" and executed the script "test.go".  Now I want to know from where the script was invoked.   Can anyone help me with the command to know from where the script was invoked(/etc/random/)??  I tried "lsof" but it gives the files that the script is working on and the location of the script(/home/abc/) but not from where it is invoked.  Note:- I don't want to use $pwd in the script. I am looking for a command that can just display the directory from where the mentioned script was executed(invoked).

I have a script doSmth in /usr/bin. Is it possible to get and print the directory the script was called from?  So if I call doSmth from /home/me the output will be /home/me.


Let $X_n, X$ be random variables with $X_n\xrightarrow{d} X$. Show that then     $$ \mathbb{E}\lvert X\rvert\leqslant\liminf_n \mathbb{E}\lvert X_n\rvert. $$      So let $X_n\xrightarrow{d} X$; in our lecture this means that for all bounded continious functions $f$ it is $$ \lim_n\int f\circ X_n\, d\mathbb{P}=\int f\circ X\, d\mathbb{P}.~~~~~~~~~(*) $$    I do not know, how to make the proof. Nonetheless, my first idea was, to work with Fatou's lemma, i.e. $$ \liminf_n\mathbb{E}\lvert X_n\rvert\geqslant\mathbb{E}\liminf_n\lvert X_n\rvert=\int\liminf_n\lvert X_n\rvert\, d\mathbb{P}. $$  Now I do not know how to continue (in case that this is the right start).  Maybe you can help me.  With greetings  math12

Let $X,X_n$ be random variables with $X_n\to X$ is distribution.     Show      $$ E(|X|)\leqslant\liminf_{n\to\infty} E(|X_n|). $$      I call the probability space on which $X$ and $X_n$ are defined $(X,A,P)$. Then $X_n\to X$ in distribution means $$ \lim_n \int f\, dP_{X_n}=\int f\, dP_X $$ for all bounded and continious functions $f\colon\mathbb{R}\to\mathbb{R}$, right?  Do not know how continue...


There is a U2 album on my iPhone which I didn't download & isn't on my Mac & I am unable to remove it.  I deleted all Music app storage from the phone, then re-synched with 1 playlist from iTunes on the Mac, but the album still appears on the phone under genres, artists & albums but not playlists.

I have iOS 7 and I know how to work all of it but when there was iOS 6 all music you've bought on iTunes, could be deleted from the device. Now I you remove songs that you've bought on the device stay there with the stupid iCloud download symbol. I want it to go away completely because I have duplicates of almost everyone of my songs. How will I erase all music from my phone without doing factory reset.


I'm on that question:  I tap "edit", and it brings me to that view, where Title field is empty:  I tap "Cancel", and the title is gone:  I refresh the page and the title is back.   I tried multiple times, but it only happens on that question.

First time this happens to me.  When I try to edit , the title part is immediately erased:   And when I click cancel, the title becomes invisible:     Actually, the revision history is incomplete:   It shows that the question was asked after the comments:   That's highly likely a result of an edition of the history by a moderator.    Google Chrome 62.0.3202.94 (Official Build) (64-bit) on macOS 10.13.2 (17C88).


I am not sure how to approach this question. I tried to move the limit into the sum, but that turns the result to $0$, which is incorrect.

What is the sum of the 'second half' of the harmonic series?  $$\lim_{k\to\infty}\sum\limits_{n=k+1}^{2k}{\frac{1}{n}} =~ ?$$  More precisely, what is the limit of the above sequence of partial sums?


When clients install Click Once published program, it installs to clients'  Appdata folder such as C:\Users\USERNAME\AppData\Local\Apps\{ID here}  In every update it creates new folder named by NEW id..  How do set destination folder static for every update

How do I dictate the destination folder of a clickOnce application?


Bold and italics simply aren't enough. This is especially true in the case of websites on the sciences and languages, where a lot of explanation needs to be provided. The formatting package should come with all the three options: bold and italics and underline.   Underline should be included in the formatting package of all SE sites.  My reasons for it:   When you've bolded and italicised as  much as you possibly could and still have other things to highlight, you run out of options. Overusing bold ad italics doesn't look very good. Italicising isn't a sensible alternative to underlining, since it isn't that noticeable. To set apart the most significant piece of text within a writing that's bolded and italicised all over, you need a distinct formatting.  For instance, consider this . Compare this     with this    Anyone who remotely understands style and how formatting works will agree the underline looks better and serves a very useful purpose. The major argument against the use of underline is that they can be easily confused with links. Yes, possible — but people using the computer for quite some days should easily be able to distinguish. (Even if they can't, the misunderstanding doesn't have any serious consequences. Everybody eventually gets that.) If the difference between a hyperlink and a simple underline were so foggy, HTML and MS Word wouldn't have supported underline. And besides,  in SE don't have underlines so it's highly unlikely that an average user would fail to differentiate between them.

Why is it that italic and bold formatting is available while underline is not?  I guess it is voluntary, I'm just wondering why that would be the case.


I'm trying to make a Brick Breaker game, but I'm getting a ConcurrentModificationException in this area. I use Netbeans. This is in my BlockBreakerPanel class and it has the main information for getting my code to actually work properly. Exception location has ** around it. I don't know why I get this exception and I'm wondering if it has to do with the Arraylist and if I somehow implemented it wrong. public class BlockBreakerPanel extends JPanel implements KeyListener {  ArrayList<Block> blocks; Block ball; Block paddle;  JFrame mainFrame, startScreen;  Thread thread;  void reset() {     blocks = new ArrayList<Block>();     ball = new Block(237, 435, 35, 25, "ball.png");     paddle = new Block(175, 480, 150, 25, "paddle.png");     for (int i = 0; i < 8; i++) {         blocks.add(new Block((i * 60 + 2), 0, 60, 25, "blue.png"));     }     for (int i = 0; i < 8; i++) {         blocks.add(new Block((i * 60 + 2), 25, 60, 25, "green.png"));     }     for (int i = 0; i < 8; i++) {         blocks.add(new Block((i * 60 + 2), 50, 60, 25, "yellow.png"));     }     for (int i = 0; i < 8; i++) {         blocks.add(new Block((i * 60 + 2), 75, 60, 25, "red.png"));     }      addKeyListener(this);     setFocusable(true); }  BlockBreakerPanel(JFrame frame, JFrame startScreen) {      this.mainFrame = frame;     this.startScreen = startScreen;      reset();      thread = new Thread(() -> {         while (true) {             update();             try {                 Thread.sleep(10);             } catch (InterruptedException err) {                 err.printStackTrace();             }         }     });     thread.start();  } **public void paintComponent(Graphics g) {     super.paintComponent(g);     blocks.forEach(block -> {         block.draw(g, this);     });     ball.draw(g, this);     paddle.draw(g, this); }** public void update() {     ball.x += ball.movX;          if (ball.x > (getWidth() - 25) || ball.x < 0) {         ball.movX *= -1;     }      if (ball.y < 0 || ball.intersects(paddle)) {         ball.movY *= -1;     }      ball.y += ball.movY;      if (ball.y > getHeight()) {         thread = null;         reset();         mainFrame.setVisible(false);         startScreen.setVisible(true);      }     blocks.forEach(block -> {         if (ball.intersects(block) && !block.destroyed) {             block.destroyed = true;             ball.movY *= -1;         }     });     repaint();  }  @Override public void keyTyped(KeyEvent e) {     // TODO Auto-generated method stub  }  @Override public void keyPressed(KeyEvent e) {      if (e.getKeyCode() == KeyEvent.VK_RIGHT && paddle.x < (getWidth() - paddle.width)) {         paddle.x += 15;     }      if (e.getKeyCode() == KeyEvent.VK_LEFT && paddle.x > 0) {         paddle.x -= 15;     }  }  @Override public void keyReleased(KeyEvent e) {     // TODO Auto-generated method stub  }  }

We all know you can't do the following because of ConcurrentModificationException:  for (Object i : l) {     if (condition(i)) {         l.remove(i);     } }   But this apparently works sometimes, but not always. Here's some specific code:  public static void main(String[] args) {     Collection<Integer> l = new ArrayList<>();      for (int i = 0; i < 10; ++i) {         l.add(4);         l.add(5);         l.add(6);     }      for (int i : l) {         if (i == 5) {             l.remove(i);         }     }      System.out.println(l); }   This, of course, results in:  Exception in thread "main" java.util.ConcurrentModificationException   Even though multiple threads aren't doing it. Anyway.  What's the best solution to this problem? How can I remove an item from the collection in a loop without throwing this exception?  I'm also using an arbitrary Collection here, not necessarily an ArrayList, so you can't rely on get.


In the derivation of Lagrange's equation the following identity is often used:  $$\frac{\partial \mathbf{\dot{r}}}{\partial \dot{q_j}}=\frac{\partial \mathbf{r}}{\partial q_j}$$  where $\mathbf{r}=\mathbf{r}(q_1,q_2,\dots,q_n,t)$ is the position vector of the particle and $q_j$ ($j=1,\dots,n$) are the generalized coordinates.  It is derived from the equation   $$ \mathbf{\dot{r}}=\sum_{j=1}^{n}\frac{\partial \mathbf{r}}{\partial q_j} \dot{q_j}+\frac{\partial \mathbf{r}}{\partial t}$$  by differentiating it with respect to $\dot{q_j}$.   In the process, it is claimed that $$\frac{\partial }{\partial \dot{q_j}}\left(\frac{\partial \mathbf{r}}{\partial t} \right )=0$$  because $\frac{\partial }{\partial \dot{q_j}}\left(\frac{\partial \mathbf{r}}{\partial t} \right )=\frac{\partial }{\partial t}\left(\frac{\partial \mathbf{r}}{\partial \dot{q_j}} \right )$ and $\mathbf{r}$ is independent of $\dot{q_j}$.   However I fail to understand why it's true. Let's take a simpler example: $r=r(q)$ where $q$ is some coordinate that can change with time. Suppose $r(q)=q^2$ then clearly   $$\frac{\partial }{\partial \dot{q}}\left(\frac{\partial r}{\partial t} \right ) = \frac{\partial }{\partial \dot{q}}\left(2q\dot{q} \right ) = 2q \neq 0 = \frac{\partial }{\partial t}\left(0 \right ) = \frac{\partial }{\partial t}\left(\frac{\partial r}{\partial \dot{q}} \right )$$  What am I missing?

Why is the following equation true? $$\frac{\partial \mathbf{v}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$ where $\mathbf{v}_i$ is velocity, $\mathbf{r}_i$ is the displacement, and $q_j$ is the generalized coordinate into which $\mathbf{r}_i$ is transformed. In reading further, I find that it's related to $$ \mathbf{v}_i \equiv \frac{\mathrm{d}\mathbf{r}_i}{\mathrm{d}t} = \sum_k \frac{\partial \mathbf{r}_i}{\partial q_k}\dot{q}_k + \frac{\partial \mathbf{r}_i}{\partial t} $$ I know that in transforming the virtual displacement $\delta\mathbf{r}_i$ into generalized coordinates, I can use $$ \delta\mathbf{r}_i = \sum_k \frac{\partial\mathbf{r}_i}{\partial q_k}\dot{q}_k $$ The first equation above is of course equivalent to $$\frac{\partial \dot{\mathbf{r}}_i}{\partial \dot{q}_j} = \frac{\partial \mathbf{r}_i}{\partial q_j}$$ I'm not sure why the dots vanish just like that. How do these all connect? In a non-mathematical explanation, I can understand that as $q_j$ changes, $\mathbf{r}_i$ changes as well. In the same way, as $\dot{q}_j$ changes, $\mathbf{v}_i$ changes, too. I'd like to know, mathematically, how these changes (for $\mathbf{r}_i$ and $\mathbf{v}_i$) turn out to be equal.


We currently have a crappy networking at our office, I meant that the router nor the switch cannot monitor the network. And we currently do not have any tool which can monitor this network.  So what I want to do is to monitor the network traffic of all the computers connected to this network. Something like I can see their transfer rates and things. I already tested a program called Net-Peekr, but the problem is that I need to install Net-Peeker Agents on all of the computers I want to monitor. It works fine but I cannot monitor the people who connects to our network via WiFI, because I don't have access (cannot install Agent) to those laptops or smartphones. Thats why I want a solution on which I won't have to install any agents on the PC's I want to monitor.  I saw a software long ago which does not have to use agents, which acts as a server. Like, the computer in which that software is installed needs another network card, and the switch is connected to this extra network card or so. I don't really understand that concept but if that's a solution, that's also fine.  Is it possible and what is the best solution for this?

I need to know which computer is consuming my bandwidth. Is there a tool to do this?


I put together a python script that takes the output of a command and emails it to me every morning at 8. When running it manually, it runs fine, however when my cron runs it I receive the following:  Traceback (most recent call last):   File "/root/backup-mailer.py", line 50, in <module>     backups = json.loads(subprocess.check_output(['restic', 'snapshots', '--json']))   File "/usr/lib64/python2.7/subprocess.py", line 568, in check_output     process = Popen(stdout=PIPE, *popenargs, **kwargs)   File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__     errread, errwrite)   File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child     raise child_exception OSError: [Errno 2] No such file or directory   Is it /usr/lib64/python2.7/subprocess.py that it's having issues with?  My crontab:  0       8       *       *       *       . /root/.restic-env; /usr/bin/python /root/backup-mailer.py   I know . /root/.restic-env; runs fine because I use it in another cron which is successful. I've also ran /usr/bin/python /root/backup-mailer.py which executes fine. As I say, it's only when it's ran as a cron that it fails.  Any suggestions? Thanks

This is a  about using cron & crontab.   You have been directed here because the community is fairly sure that the answer to your question can be found below. If your question is not answered below then the answers will help you gather information that will help the community help you. This information should be edited into your original question.  The answer for 'Why is my crontab not working, and how can I troubleshoot it?' can be seen below.  This addresses the cron system with the crontab highlighted.


I remember this book, at least 10 years ago, probably more.  The main character was a person who, as punishment for a crime, had their cybernetic brain enhancement disabled. (Removed?)  This was a serious punishment indeed, because the futuristic society they lived in was so advanced that it was too complicated for an unaided human brain to make sense of.  Our protagonist was unable to function normally in civilization, or even really comprehend what crime it was they had committed and why it was wrong!  Does this ring a bell for anyone?

I read a sci-fi novel 14 years ago (April/May 2003) that haven't been able to find since then.  It was in a shared book locker in a reception battalion barracks at Ft. Leonard Wood, MO.  The book was a paperback, it may have been part of a series of at least two books, and i may not have read the first (unsure).  I think the cover was blue/yellow/green or something similar in a 90's styling (slanted text, text overlayed on full cover imagery).  Seems like it was published by one of the big science fiction publishers of the 90s.  It was extreme futuristic, multiple planets.  With humans being augmented at birth or shortly after with enhanced brain implants.  These augmentations enabled extreme levels of math, and the price the parents paid for these augmentations depended on their child's future success.  I believe the primary protagonist was a female.  If I recall correctly the story included items like the protagonist's augmentation was removed, and the protagonist was mentally hampered, and then a new one inserted, but it took a while for the brain to "wire it in" or something to that sort.  I don't actually remember the plot, just the technology.  Which seems like what Neuralink is trying to accomplish, but letting the brain do the heavy lifting and letting the augmentation be "additional processing power".  The cost of the implants were extremely high, like an entire adult's lifetime income or something similarity severe.  I believe the augmentation gave the protagonist probabilistic predictive power or some other extremely cool ability.  I seem to remember that the female protagonist was tutored by a famous mathematician, and when she got her second powerful implant she had to go back to him to retrain or for assistance.


Mathematically, 50/10 = 5/1 = 0.5/0.1 etc. In all cases, the answer is 5, and the remainder should be zero - possibly with numerical noise. However, I found a very puzzling inconcistency:  In [1]: 50.0/10.0, 50.0%10.0 Out[1]: (5.0, 0.0)  In [2]: 5.0/1.0, 5.0%1.0 Out[2]: (5.0, 0.0)  In [3]: 0.5/0.1, 0.5%0.1 Out[3]: (5.0, 0.09999999999999998)  In [4]: 0.05/0.01, 0.05%0.01 Out[4]: (5.0, 1.734723475976807e-18)  In [5]: 0.005/0.001, 0.005%0.001 Out[5]: (5.0, 0.0)   Result number 3 is not consistent with the others. I get exactly the same results, down to the last digits, with python 2 and 3 on different machines with different versions of python, and different OS and hardware. What is going on?

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


<style type="text/css">             .RadWindow .rwWindowContent .radalert             {                 background-image:url("images/InfoImg.png");              }         </style>   The above code in  css file ,i want change   the background image of the above css file, when user call the Jquery costume function,I want to Change the background image of rad alert.

I have an image URL in a imageUrl variable and I am trying to set it as CSS style, using jQuery:  $('myObject').css('background-image', imageUrl);   This seems to be not working, as:  console.log($('myObject').css('background-image'));   returns none.  Any idea, what I am doing wrong?