I need to input a csv as parameter 1. Parameter 2 should be a dropdown displaying the various fields (the headerline) where I can select a column to use for geoprocessing.     Param1:  c:\my.csv Param2: (dropdown) select header

I have a python script that checks file path names for corresponding files in a drive location. All of the inputs were originally hard coded, and it works well enough:      import arcpy     import os     shp = r"C:\Users\dotwell\Desktop\Locations.shp"     fields = ["ZdriveLoc"]     f = open (r"C:\Users\dotwell\Desktop\ValMapsTest.txt", "w")     cursor = arcpy.da.SearchCursor (shp, fields)         for row in cursor:             Roll=str(row[0])             if not os.path.exists(Roll):             f.write(Roll + os.linesep)       f.close()   I'm trying to create an ArcGIS script tool from this, and I've only had partial success. I can use   shp = arcpy.GetParameterAsText(0)   to allow the user to select the shapefile. I'd like to then have a drop down list of the fields in that shapefile for the user to select the field that contains the path names, but I can't get it to work. Can someone show me how to generate the drop down? Here's my latest try. It works, but requires the user to type in the field name. It would also be nice for the user to designate the output text file name and location.   import arcpy import os shapefile = arcpy.GetParameterAsText(0) field = arcpy.GetParameterAsText(1) f = open (r"C:\Users\dotwell\Desktop\ValMapsTemp.txt", "w") cursor = arcpy.da.SearchCursor (shapefile, field) for row in cursor:     Roll=str(row[0])     if not os.path.exists(Roll):         f.write(Roll + os.linesep)   f.close()   Here are the parameters in my ArcGIS script tool:


Give an example of a measurable function 𝑓 and a continuous function 𝑔 so that 𝑓・𝑔 is non-measurable.

Given an example of a continuous function $\phi$ and a lebesgue measurable function $F$. both defined on $[0,1]$, such that $F\circ\phi$ is not lebesgue measurable.


Rookie asking again. I imported .SVG logo into blender to make it 3D. My idea was extrude different components and then drill the hole by boolean modifier. Obviously I must be missing something as the boolean draw only edges into other object, but did not make holes. Let see if you could see the issue from the following picture:  The edges I have selected are from bottom. Inside of those selection you can see the edges coming from boolean modifier. The same is on roof (not selected edges). Total different question is, why there were few vertexes outside of the object. There were not many <10. The edges to the vertexes are those few going down. Is there something I could change on this? At first I though this was because I forgot to fill all caps, but that (alt + f) did not solved the issue. ...or is there total different and better way of doing this.

I'm running Blender Version 2.83.0 (2.83.0 2020-06-03) on mac 10.15.5. I've been tinkering with modeling items and I can't make mesh modifier operations work for me.  I draw a path in Adobe Illustrator It looks like like the outline of seahorse. Export to SVG. Go blender. Import SVG convert to mesh extrude Boolean two cylinders  The last item want to do is break the edge with a bevel. It won't bevel. I've also tried to use the geometry tab to extrude the SVG curve and bevel it there before converting to mesh. However then it won't let me boolean the cylinders out. Any direction would be appreciated.


I'm using LyX (2.2.3), I need to use bbding:      And here is the code:  % Preview source code  %% LyX 2.2.3 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english,hebrew]{article} \usepackage[T1]{fontenc} \usepackage[cp1255]{inputenc} \usepackage{fancyhdr} \pagestyle{fancy} \setlength{\parindent}{0bp} \usepackage{wasysym}  \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \usepackage{theorem} \theorembodyfont{\upshape} \newtheorem{theorem}{\R{משפט}}[section] \AtBeginDocument{\make@lr\thetheorem}  % The following chunk fixes export with XeTeX. % It is needed because polyglossia is used by default % and \make@lr is only defined by babel. \@ifundefined{make@lr} {\def\make@lr#1{\begingroup     \toks@=\expandafter{#1}%     \edef\x{\endgroup   \def\noexpand#1{\noexpand\@number{\the\toks@}}}%   \x}}{\relax}  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \let\Square\relax \usepackage{bbding}  \makeatother  \usepackage{babel} \begin{document} \begin{center} \L{$\leadsto$} \par\end{center} \end{document}   When I remove the bbding there are no errors, but I need it...

I want to use symbols from wasysym and marvosym packages:  \usepackage{wasysym} \usepackage{marvosym}   but it gives an errors as both packages have the command of \CheckedBox. I do not want to use this command, but since both packages have it, it makes confusion for latex. How can I ignore one command to have both packages?


I have heard of lenses being described as fast that have f/stop values of f1.2 and f/2.8.  My question is why are such low f/stop lenses called fast?

It seems very counter intuitive that the amount of light let in by a lens is referred to as the lens speed. This term confused me for a while because I couldn't logically see how a speed would be associated with a particular lens, being either fast or slow.   Is there any reason why this is referred to as the speed of the lens?


is description how to find what's the current time on any Stack Exchange service. But it doesn't match with my time-zone (where I'm living now). Is there a way to change time-zone? I couldn't find it in setting. Maybe I'm missing something.

All the times seem to be in GMT. Is there a time zone setting so they will show up in my time zone?  Also will this affect the "consecutive day" badge calculations?


I read a file which have all the file names line by line which ($var) returns the file names in the directory /home/mydir .  input="/home/mydir/test/myfile" while IFS= read -r var do /home/mydir/"$var" done < "$input"   Now i want to find whether the file is in that directory for more than 5 hours in a if loop.  How to do that ?

I have a directory called /home/mydir/test A file will be sent from some other team which lands in this directory. How to find what is the time the file came to this particular directory? ( I need both time in time stamp format and normal hh:mm:ss format too ) I have to move the files to directory which is here for more than 5 hours. How to fetch  those files?


I have long had difficulty distinguishing between COULD and COULD HAVE. I have two specific examples that I'm not exactly sure of. Could you enlighten me?   She needed money so much, she could even have worked in a KFC restaurant  Jim could’ve ordered fish in the diner yesterday, but he settled for venison    First question - are both of these correct? I would assume they are, but I'm really not sure. How about their COULD'VE counterparts:  1a. She needed money so much, she could even work in a KFC restaurant 2a. Jim could order fish in the diner yesterday, but he settled for venison  In my opinion both of them sound unnatural, but I can't say why.

We say that could is sometimes the past of can. If that's true then why can't we use it in the following context.  They didn't let us. We could walk.  Instead we say:  They didn't let us. We could have walked.  But we can say:  Listen! I can hear something. I listened and I could hear something. Why not "I listened and I could have heard something"


Can anyone explain what the time complexity is for this algorithm?  for (i = 1; i <= n; i++){     for(j = 1; j <= n; j += i) {   // note: not j++         printf("Iteration %d : %d\n", i, j);        } }

I need to calculate the time complexity of the following code:  for (i = 1; i <= n; i++) {   for(j = 1; j <= i; j++)   {    // Some code   } }   Is it O(n^2)?


I exported my AI project to pdf and saw some weird white transparent lines between shape  left is from ai right one is from pdf (look closely at hearth shape)

How can I align 2 paths perfectly? No matter what I do I get a little space (gap between the 2 paths I create, and they are straight lines not as I saw in other questions with pixel problems)  An example:    Between every triangle is a little space, like in the example. It isn't obvious and it doesn't bother, but if I use the image (as an SVG or something) it is really obvious.


here is what it looks like when I switch to render view mode. This is a rendering of the default cube. I have an rx580 and an AMD Ryzen 5 3600 and 16GB of ddr4 ram, clocked at 3000MHZ. I have tried switching between different blender versions, yet still no hope. I have also change the render engine to open cl, selecting only my GPU for computing

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I have a Script(toolbox) to reorder the fields into a file geodatabse and the output is a new feature class with fields in the order specified, is there any way to replace the existing feature by the new input created?  I'm using ArcGIS 10.2 here is my script :  import os,string,sys  try:     import arcgisscripting     gp = arcgisscripting.create() except:     import win32com.client     gp = win32com.client.Dispatch("esriGeoprocessing.GpDispatch.1")   FC_In = sys.argv[1] NewOrder = sys.argv[2] FC_Out_WS = sys.argv[3] FC_Out_Name = sys.argv[4]  strFields = gp.listfields(FC_In)  strNewOrder = NewOrder  Layers = [""]  # Get Field Collection into List Fields = gp.listfields(FC_In)   NewOrder = string.split(strNewOrder,";") print Fields print NewOrder  x=0 #NewOrder enumerator  y=0 #Layers enumerator (first)  # Cycles through the input feature class creating field collections while x<len(NewOrder):     Fields.Reset()     Field = Fields.Next()     while Field:         FieldName = str(Field.name)         if x<len(NewOrder) and NewOrder[x].lower() == FieldName.lower():              Layers[y] = Layers[y] + FieldName + " " + NewOrder[x] + " VISIBLE"             x=x+1         else:             Layers[y] = Layers[y] + FieldName + " " + FieldName + " HIDDEN"           Field = Fields.Next()          if Field:             Layers[y] = Layers[y] + "; "             FieldName = str(Field.name)         else:             print Layers[y]             Layers.append("")             y=y+1             Layers[y]=""   # Use Field collections to create Layers with proper order until all fields have been used z=0 #Layers enumerator (second) LayerList = "" for Layer in Layers:     if Layer <> "":         if LayerList <> "":             LayerList=LayerList + ";"         LayerList=LayerList + "Layer" + str(z)         print LayerList         gp.MakeFeatureLayer(FC_In, "Layer" + str(z),"#","#",Layer)         gp.addmessage(gp.getmessages()+ "\n")         z=z+1   #Collect Info about Input Feature Class dsc = gp.describe(FC_In) fc_in_stype = dsc.shapetype fc_in_sr = dsc.spatialreference  # Create new empty Feature class with desired fields  try:     gp.CreateFeatureClas(FC_Out_WS,FC_Out_Name,fc_in_stype,LayerList,"#","#",fc_in_sr)     gp.addmessage(gp.getmessages()+ "\n") except:     gp.addmessage(gp.getmessages()+ "\n")  # Append Records to new feature class print FC_Out_WS + "\\" + FC_Out_Name print FC_In gp.append_management(FC_In, FC_Out_WS + "\\" + FC_Out_Name) gp.addmessage(gp.getmessages()+ "\n")  del gp

If I have a shapefile or geodatabase featureclass that has fields that I want to permanently reorder, is there a tool, script, or utility that will help me quickly accomplish this task? Generally I know you have to create a new field, then populate it with the old values, then delete the old field.  I am hoping there is something already created out there that will help with this. Assuming you don't have FME or another ETL tool available, what is the next best suggestion? This is NOT a view level change (ie- drag/drop the fields in order), but rather write out to a new shapefile or featureclass.


My code below is not generalized; it handles each line of output as a special case.  How I could get the same output using a while or for statement?  string = "Apple" i = 0  one = string[0:i+1] two = string[0:i+2] three = string[0:i+3] four = string[0:i+4] five = string[0:i+5]  print(one) print(two) print(three) print(four) print(five)   I have the following result:  A Ap App Appl Apple

In C++, I can iterate over an std::string like this:  std::string str = "Hello World!";  for (int i = 0; i < str.length(); ++i) {     std::cout << str[i] << std::endl; }   How do I iterate over a string in Python?


I am a master's student in physics trying to learn maths on my own. My classes workload is heavy and the schedule is very hectic due to which I don't get time to do mathematics.   I have done Linear algebra and differential geometry to the beginners level and now currently I am trying to learn topology from Munkres and I plan to learn Differential geometry,Real and Complex Analysis, Groups and fields and Functional Analysis.  I know this is quite a lot of work in front of me considering I am in master's and I would never finish it of along with physics but what I really need is consistency which I have found could only be gained if I follow some video lectures because reading only from books makes me feel I am in a dense forest all alone.  Are there any good video lectures or notes on the beginners to intermediate level on these topics?  Due to my inexperience any advice given would be highly appreciated.

What are the best textbooks to read for the mathematical background you need for modern physics, such as, string theory?  Some subjects off the top of my head that probably need covering:   Differential geometry, Manifolds, etc. Lie groups, Lie algebras and their representation theory. Algebraic topology.


The dupe candidate deals about suspensions in general, the essential part of this question is the increase of the network-wide suspension length from 10 years to 30. The answer to the question has nothing about this, except that network-wide suspensions are longer than 1 year.  Digging the SEDE, I've found something .  Well... 2046 won't be tomorrow, I am not sure I will live at the time.  As far I know:   Mods can give at most 1 year, and only for their site, CMs can give at most 10 years, network-wide, In the database, 9999-12-31 is last possible date, but it would require direct SQL to set up.   But Hutchinson got around 30 years. It falls into (3).  How is it possible? What could have he committed?  Maybe the system has changed, and even a >10year network-wide suspension is already possible?    Update (29-7-2018): our current record holder is . His "temporary" suspension will expire roughly as  becomes habitable again.

I ran into a user profile that states:  This account is  to cool down. The suspension period ends on Apr 27 '24 at 7:54  At first, it seemed like a somewhat longish suspension period.  Referring to  reveals:  Depending on the severity of the problem behavior — and at the complete discretion of the moderator — your account will be placed in timed suspension for anywhere from 1 to 365 days.  This indicates that temporary suspensions can last upto a year.  Additionally, the  doesn't give any other information about the timed suspension other than the link to the wiki above. I am keen to know whether the example above (wherein the account has been suspended until 2024) is a one-off case or is it a case of documentation being obsolete?


But this is the Old Bailey. He's a Lord — or she's a Lady. You may   find the wigs and the ceremonial ways that people refer to each other   strange or intimidating. I was advised. But I don't find the wigs   intimidating any more than the arcane forms of address; I find them   comic.    p6, Apple Tree Yard By Louise Doughty    My head tells me it should be "comical". My Oxford Advanced Learner's Dictionary tells me that comical is an adjective which means funny, amusing, often because it is odd or absurd.       He looked highly comical wearing that tiny hat    Merriam-Webster (which is an American English Dictionary) says  is: causing laughter especially by being unusual or unexpected. And causing laughter especially because of a startlingly or unexpectedly humorous impact. This matches The OALD's definition.     I must have looked comical in that big hat   And  provides this example:     It made me jump at first, but once I was used to it, I found them strangely comical.   The OALD says that comic is [usu attrib] making people laugh; funny. 2. [attrib] of comedy: comic opera, comic actor  However, The Chambers Dictionary tells us that comic adj. is related to comedy; raising mirth or laughter, funny, humorous while comical adj. means funny, amusing.  For  M-W has: causing laughter or amusement, funny     a comic monologue   His comic timing is impeccable.   If comic is normally used attributively and two dictionaries seem to confirm this, am I right in thinking the following sentence " I find them comic" sounds odd, or worse incorrect?  What if the phrase were the following:     I find him (the judge) comic   Would that be exactly the same?  EDIT I've read the post  but it hasn't answered my query, because that asks about the difference in meaning. The definitions are included in my post therefore I am asking about a specific sentence in a novel  and its grammaticality or appropriateness.

I am confused between these words. Dictionaries say they are similar, but I vaguely remember my schoolteacher apprising me of a difference between them. I would love if someone could elucidate.


ffmpeg -i %inputname%.%inputextension% -vf fps=1/60 %pat%\img_%04d.png echo done, check the new folder for the result  When I type this out it results with the batch file's path imbedded into the path I mentioned in the ffmpeg command. Anybody know how to not make that happen? As it's very troubling for frame separation using batch. I want to make the %0 not be recognised by batch and only FFMPEG. Please give me advice. Entire batch file: @echo off echo What path do you want for the frames to be? set /p pat=framepath:  echo What's the video's name? set /p inputname=Name:  echo What's the file extension? set /p inputextension=file extension:  IF EXIST "%inputname%.%inputextension%" (echo okay moving on && goto message) ELSE (echo there is no such file && goto bye)  :message cls echo So after checking you actually have a valid file. We will now continue with the actualy thumbnailing of your desired media. [edit the bat and remove /nobreak after this message to remove the unskippable timer] TIMEOUT /NOBREAK /T 5 goto choice  :choice cls echo So how do you want to separate your video? echo ============================================================================================================================= echo =     1. Every frame of a video [not recommended for long videos]                                                           = echo =     2. Every second of a video [not either recommended for long videos especially not avatar]                             = echo =     3. Every minute of a video [not recommended for things shorter than like 30 minutes or so unless you want stinky]     = echo =     4. Every 30 minutes of a video [not recommended for things shorter than like 2 hours or so unless you want stinky]    = echo =     5. Every hour of a video [not recommended for small videos or anything tbh just here for accessibility]               = echo ============================================================================================================================= set /p input=Choose here [1-4]:   if /i %input%=="1" goto everyframe if /i %input%=="2" goto everysecond if /i %input%=="3" goto everyminute if /i %input%=="4" goto every30minutes if /i %input%=="1" goto everyhour  :everyframe ffmpeg -i %inputname%.%inputextension% %pat%\img_%04d.png echo done, check the new folder for the result TIMEOUT /T 9999 goto bye  :everysecond ffmpeg -i %inputname%.%inputextension% -vf fps=1 %pat%\img_%04d.png echo done, check the new folder for the result TIMEOUT /T 9999 goto bye  :everyminute ffmpeg -i %inputname%.%inputextension% -vf fps=1/60 %pat%\img_%04d.png echo done, check the new folder for the result TIMEOUT /T 9999 goto bye  :every30minutes ffmpeg -i  %inputname%.%inputextension% -vf fps=1/1800 %pat%\img_%04d.png echo done, check the new folder for the result TIMEOUT /T 9999 goto bye  :everyhour ffmpeg -i  %inputname%.%inputextension% -vf fps=1/3600 %pat%\img_%04d.png echo done, check the new folder for the result TIMEOUT /T 9999 goto bye  :bye echo see you pause

(This is on NT based Windows like 2000, XP, Vista, 7)  On the command-line, the percentage characters are ignored:  wget "http://www.justitie.nl/images/Handleiding%20voor%20verwerkers%20persoonsgegevens_tcm34-3940.pdf"   So it correctly downloads this file (each %20 becomes a space):  "http://www.justitie.nl/images/Handleiding voor verwerkers persoonsgegevens_tcm34-3940.pdf"   But inside a batchfile, all the %20 are being interpreted as expanding parameter 2 (which is empty) resulting in this file to get downloaded (each %20 becomes 0):  "http://www.justitie.nl/images/Handleiding0voor0verwerkers0persoonsgegevens_tcm34-3940.pdf"   Is there a way to circumvent the percentage parameter expansion?  --jeroen


What is the intuition behind $P(A\cap B) = P(A)P(B)$, given A and B are independent events?   I saw the derivation but wasn't able to to think of it intuitively. Is there any combinatorial reasoning behind it?  I have even seen it for cases like tossing a coin and it works! But I am not convinced that it should be true always. I am looking for a strong foundation of it.

I have a good intuition that $A$ is independent of $B$ if $P(A \vert B) = P(A)$, and I see how you can easily derive from this that it must hold that $P(A,B) = P(A)P(B)$.    But the first statement is not normally taken as a definition; instead the second is.    What is the intuition, or even derivation behind defining $A$ and $B$ as independent iff $P(A, B) = P(A)(B)$?    The kind of explanation I am looking for would be one similar to that given by Jaynes for the definition of conditional probability in the first chapter of Probability: The Logic of Science, or even a Kolmogorov axiomatic explanation would help.


If two balls of equal mass m are connected by a massless rod and if a force is applied to one of the ball normal to the line joining ball and the rod then what is the final subsequent motion of the system? And can we apply angular momentum conservation here?

If I push or hit an object in space (vacuum and no gravitation) in direction what is not going trough its centroid, will it rotate or move along in straight line?   I expect that on earth it will depend on what is less difficult for the object (rotation or linear movement). So the object will do some kind of combination of both movements (rotating and also moving along the direction of impulse or force).  But how could an object "decide" what to do in space, where is not resistance?


I installed Ubuntu 14.04 alongside windows 8 for the first time yesterday, and I thought I would give it 75GB of space from my C: however, I didn't know I had to use 50GB for the installation and 16GB of swap space.  How do I give Ubuntu more space form my D: when installed already?   I'm am very new to this, so please be very specific.  Looking forward to your answers, thanks in advance

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


This is something of a converse to the theorem which says if $X$ is Hausdorff and $C$ is a compact subset of $X$, then $C$ is closed in $X$.  But I do not know if true or not.  Question: If $X$ is T$_1$ but not Hausdorff, then does $X$ necessarily have a compact subset that is not closed?

I know that in a Hausdorff space, every compact set is closed.  However, is it true that if every compact set is closed, then the space is necessarily Hausdorff?


I am new to LaTeX, just a Beginner, Basically a perl developer,  I have created a .tex file  \begin{document}  \cont{\iname{\isurname{Name1}\ifname{K. C. G.}}\iname{\isurname{Name11}\ifname{Y. Q.}}\iname{\isurname{Name111}\ifname{C.-Z.}}\ititles{Some title Text}\ipage{995}}  \end{document}   Now my need is to define the commands, and the display should come as the below >   \iname - Person Name will repeat several times \isurname - Surname of a person \ifname - First Name of a person \iname will repeat any number of times, say 1 to ...   If only one \iname found inside \cont, display should be like the below     Name1 K. C. G. Some title Text - 995.   If only two \iname found inside \cont, display should be like the below     Name1 K. C. G. and Name11 Y. Q. Some title Text - 995.   If more than two \iname found inside \cont, display should be like the below (and should come after last \iname)     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   I am able to define \iname seperated by comma, but I don't know how to write a macro to define \iname with different outputs based on the if condition,  Is it possible to define that, I am totally a beginner with LaTeX, please guide me  Thanks & Regards

I am new to LaTeX, just a beginner, basically a Perl developer.  I have created a LaTeX file  \begin{document}  \cont{\iname{\isurname{Name1}\ifname{K. C. G.}}\iname{\isurname{Name11}\ifname{Y. Q.}}\iname{\isurname{Name111}\ifname{C.-Z.}}\ititles{Some title Text}\ipage{995}}  \end{document}   Now my need is to define LaTeX commands so that the output should appear as below     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   \iname - Person Name will repeat several times \isurname - Surname of a person \ifname - First Name of a person    \iname will repeat any number of times, say 1 to ...  If only one \iname found inside \cont, display should be like the below     Name1 K. C. G. Some title Text - 995.   If only two \iname found inside \cont, display should be like the below     Name1 K. C. G. and Name11 Y. Q. Some title Text - 995.   If more than two \iname found inside \cont, display should be like the below (and should come after last \iname)     Name1 K. C. G., Name11 Y. Q. and Name111 C.-Z. Some title Text - 995.   I can define input for \iname separated by commas, but I don't know how to write a macro to define \iname with different outputs based on the if condition.  I hope to have clearly explained my doubt.


I want to install java plug-in in firefox .   I read that installing java plug-in is not secure.  EDIT1 : Can anyone please tell me why java installation is not secure, and should I install it or not.

I know very little about how Java works and its interactions with OS X, so I'm partly looking for an expert and simple description on how Java works on the Mac, and why so much press includes "fear, uncertainty, doubt" but no concrete details about how and why Java is not safe..  I want to use the Bitcoin client , but to do so I will need to install Java which over the past six months I've only heard bad things about.   So my question is: How safe is it for me to install Java on Mac OS X 10.8.3?   (The hidden question inside this question is what version / source of Java I should select if I can depend on Apple to keep Java secure.)  I understand "safeness" is a fairly difficult thing to define, but just some general advice would be greatly appreciated. Even if someone could point me in the direction of some learning materials so I can work this out for myself, that would be great.


I had to change the headings (chapter, sections, subsections...) for a journal to get a final point after the last number. Example:  1 My First Chapter  1. My first Chapter   Therefore, I added the following stuff to my preamble:  \renewcommand{\thechapter}{\arabic{chapter}.} \renewcommand{\thesection}{\thechapter\arabic{section}.} \renewcommand{\thesubsection}{\thesection\arabic{subsection}.}   The problem that I have now is, that the captions of the figures and tables, and also the references are not correct anymore because I got the additional point:  \caption{Evaluation of the arbitrary temperature profiles on $n$ random points (red)}   Will be displayed as:     Figure 2..2: Evaluation of the arbitrary temperature profiles on n random points (red)   As you can, I got the additional point between the numbers, which comes from the added lines above. Based on the feedback I got, I checked out the following thread:  , which is finally what I am searching for but the commands:  \titlelabel{\thetitle.}   Is not working within my class (scrreprt}. Doing so, I get the error message:     Undefined control sequence \section{Latex}   At the moment I do not know how to change this behavior. Any suggestion is warmly welcomed.   By the way, to all supporters and volunteers, you do a really great work.!

I wonder is there any way to change the format of section numbering from 1.1 to 1.1. ? I know this is trivial, but I really need to add one more dot after the section number. Does anybody know how to do that?  Thanks a lot


I have a plugin called selenium IDE for my firefox browser. I create some scripts using selenium to fill a web form. I wanted selenium to do run all these scripts once every hour. Unfortunately, it seems that selenium itself cannot run these scripts according to a schedule. So, I was thinking of using some other tool to click on selenium plugin and then make selenium run its scripts. Is this possible ?  I use windows 7 64 bit and firefox ver 21  Thanks.

I need to automate the pressing of the  key then pressing 5 digits then press  in Windows 7 64-bit.  I have an app that comes up on the screen and I need the "script" to press the keys.  I don't even need mouse support.  What can I use to do this?  Any examples or links?


I had a dual boot on my PC with both Ubuntu and Windows 10. I had to extend my root partition since I was running out of space.   Here are the partitions before extending /root/    After expanding /root    I faced a GRUB failure and installed boot-repair through liveUSB by following , but GRUB is still not listing Windows.  The answers to these questions didn't help either:        Here is the result for sudo update-grub:  $ sudo update-grub Generating grub configuration file ... Found linux image: /boot/vmlinuz-3.13.0-92-generic Found initrd image: /boot/initrd.img-3.13.0-92-generic Found linux image: /boot/vmlinuz-3.13.0-91-generic Found initrd image: /boot/initrd.img-3.13.0-91-generic Found linux image: /boot/vmlinuz-3.13.0-88-generic Found initrd image: /boot/initrd.img-3.13.0-88-generic Found linux image: /boot/vmlinuz-3.13.0-87-generic Found initrd image: /boot/initrd.img-3.13.0-87-generic Found linux image: /boot/vmlinuz-3.13.0-86-generic Found initrd image: /boot/initrd.img-3.13.0-86-generic Found linux image: /boot/vmlinuz-3.13.0-85-generic Found initrd image: /boot/initrd.img-3.13.0-85-generic Found linux image: /boot/vmlinuz-3.13.0-83-generic Found initrd image: /boot/initrd.img-3.13.0-83-generic Found linux image: /boot/vmlinuz-3.13.0-79-generic Found initrd image: /boot/initrd.img-3.13.0-79-generic Found linux image: /boot/vmlinuz-3.13.0-77-generic Found initrd image: /boot/initrd.img-3.13.0-77-generic Found linux image: /boot/vmlinuz-3.13.0-74-generic Found initrd image: /boot/initrd.img-3.13.0-74-generic Found linux image: /boot/vmlinuz-3.13.0-71-generic Found initrd image: /boot/initrd.img-3.13.0-71-generic Found linux image: /boot/vmlinuz-3.13.0-68-generic Found initrd image: /boot/initrd.img-3.13.0-68-generic Found linux image: /boot/vmlinuz-3.13.0-67-generic Found initrd image: /boot/initrd.img-3.13.0-67-generic Found linux image: /boot/vmlinuz-3.13.0-65-generic Found initrd image: /boot/initrd.img-3.13.0-65-generic Found linux image: /boot/vmlinuz-3.13.0-57-generic Found initrd image: /boot/initrd.img-3.13.0-57-generic Found linux image: /boot/vmlinuz-3.13.0-53-generic Found initrd image: /boot/initrd.img-3.13.0-53-generic Found linux image: /boot/vmlinuz-3.13.0-49-generic Found initrd image: /boot/initrd.img-3.13.0-49-generic Found linux image: /boot/vmlinuz-3.13.0-45-generic Found initrd image: /boot/initrd.img-3.13.0-45-generic Found linux image: /boot/vmlinuz-3.13.0-44-generic Found initrd image: /boot/initrd.img-3.13.0-44-generic Found linux image: /boot/vmlinuz-3.13.0-41-generic Found initrd image: /boot/initrd.img-3.13.0-41-generic Found linux image: /boot/vmlinuz-3.13.0-40-generic Found initrd image: /boot/initrd.img-3.13.0-40-generic Found linux image: /boot/vmlinuz-3.13.0-36-generic Found initrd image: /boot/initrd.img-3.13.0-36-generic Found linux image: /boot/vmlinuz-3.13.0-29-generic Found initrd image: /boot/initrd.img-3.13.0-29-generic Found linux image: /boot/vmlinuz-3.11.0-19-generic Found initrd image: /boot/initrd.img-3.11.0-19-generic Found linux image: /boot/vmlinuz-3.8.0-29-generic Found initrd image: /boot/initrd.img-3.8.0-29-generic Found linux image: /boot/vmlinuz-3.8.0-26-generic Found initrd image: /boot/initrd.img-3.8.0-26-generic Found linux image: /boot/vmlinuz-3.8.0-22-generic Found initrd image: /boot/initrd.img-3.8.0-22-generic Found linux image: /boot/vmlinuz-3.8.0-19-generic Found initrd image: /boot/initrd.img-3.8.0-19-generic Found linux image: /boot/vmlinuz-3.5.0-28-generic Found initrd image: /boot/initrd.img-3.5.0-28-generic Found memtest86+ image: /boot/memtest86+.elf Found memtest86+ image: /boot/memtest86+.bin done   What might be the way to add Windows to my GRUB?

I recently got a computer from school. It came with Windows 8.1 installed. I then installed another copy of Windows 8.1 (so it would use the built-in Windows Pro license) and upgraded it to Windows 10. I then installed Ubuntu alongside both Windows 8 and 10. Note that I made a separate 255MB ext2 partition for /boot. Now, when I boot the computer, I first see a GRUB prompt (I already un-hid the grub prompt 'cuz I like it that way) with Windows 8 and Ubuntu options. However, there is no Windows 10 option. If I select Ubuntu, the computer boots into Ubuntu. However, if I select the Windows 8 option, I then get sent to the Windows bootloader, where it then gives me options to boot either Windows 8 or Windows 10. (However, by this point, the computer has already loaded the kernel and all. Apparently Microsoft misunderstood the concept of a bootloader and decided that that meant "boot practically the entire system before actually showing the bootloader". Typical Microsoft.) How can I disable the Windows bootloader and add a Windows 10 option to GRUB? EDIT: Someone has answered telling me to disable the Windows bootloader. However, I still do not know how to add Windows to the GRUB OS list. Can anyone help with this? EDIT 2: After removing Windows 10 from the Windows bootloader with EasyBCD, it seemed that, after a few reboots, it would continually unhide itself and Windows 10 would reappear. However, I then later deleted Windows 10 from the list of OSes in msconfig, and it seems to have stayed deleted. However, I STILL have not managed to get Windows 10 to appear in GRUB. It's as if GRUB simply doesn't detect it. Also, I'll put this in the question so that people see it - I have tried using boot-repair, however, it has NOT helped any.


When I was about 10 years old playing with lamps, I accidentally picked up a wire completing a circuit for a lamp plugged into the wall (120 V AC U.S. standard). I'm not sure if it was the hot or neutral wire, but I had completed the wire from hand to hand. I had a shock and dropped the wire in slightly less than a second.  According to what I see online, which says milliamps can kill me, how did I survive for this long, with no burns or negative health effects? I remember immediately running up to my mother and saying I just got shocked by a house socket with a big grin on my face! (she was not happy!)

I just wanted to learn some differences between volts, amps, ohms and so forth and came up with this question. If your skin has 100k ohms resistance and the outlet is 220v wouldn't the current flowing through your body be 0.0022 amps?


I am running logistic regression on iris dataset.  I computed thetas and this is how I draw a decision boundary line.  x_values = ([min(X_train[:,0]), max(X_train[:,0])]) y_values = - (theta[0] + np.dot(theta[1], x_values)) / theta[2] plt.scatter(X_train[:, 0], X_train[:, 1], c=y_train, cmap=plt.cm.Set1, edgecolor='k') plt.plot(x_values, y_values )     I tried this, but the result is odd.   X= np.c_[ X_train, np.zeros(100) ]     theta = theta.reshape(3)  d=0  xx, yy = np.meshgrid(np.arange(np.min(X_reduced[:, 0]), np.max(X_reduced[:, 0])), np.arange(np.min(X_reduced[:, 1]), np.max(X_reduced[:, 1])))  z = (-theta[0] * xx - theta[1] * yy - d) * 1. / theta[2]  fig = plt.figure(1, figsize=(8, 6)) ax = Axes3D(fig, elev=-150, azim=110)  ax.scatter(X[:100, 0], X[:100, 1], X[:100, 2], c=y_train, cmap=plt.cm.Set1, edgecolor='k', s=40) ax.plot_surface(xx, yy, z, alpha = 0.5) plt.show()     I guess d in plane equation (ax+by+c*z = d) shouldn't be equal to 0. So I'm completely confused about this.

I am running logistic regression on a small dataset which looks like this:    After implementing gradient descent and the cost function, I am getting a 100% accuracy in the prediction stage, However I want to be sure that everything is in order so I am trying to plot the decision boundary line which separates the two datasets.  Below I present plots showing the cost function and theta parameters. As can be seen, currently I am printing the decision boundary line incorrectly.    Extracting data  clear all; close all; clc;  alpha = 0.01; num_iters = 1000;  %% Plotting data x1 = linspace(0,3,50); mqtrue = 5; cqtrue = 30; dat1 = mqtrue*x1+5*randn(1,50);  x2 = linspace(7,10,50); dat2 = mqtrue*x2 + (cqtrue + 5*randn(1,50));  x = [x1 x2]'; % X  subplot(2,2,1); dat = [dat1 dat2]'; % Y  scatter(x1, dat1); hold on; scatter(x2, dat2, '*'); hold on; classdata = (dat>40);   Computing Cost, Gradient and plotting  %  Setup the data matrix appropriately, and add ones for the intercept term [m, n] = size(x);  % Add intercept term to x and X_test x = [ones(m, 1) x];  % Initialize fitting parameters theta = zeros(n + 1, 1); %initial_theta = [0.2; 0.2];  J_history = zeros(num_iters, 1);   plot_x = [min(x(:,2))-2,  max(x(:,2))+2]  for iter = 1:num_iters  % Compute and display initial cost and gradient     [cost, grad] = logistic_costFunction(theta, x, classdata);     theta = theta - alpha * grad;     J_history(iter) = cost;      fprintf('Iteration #%d - Cost = %d... \r\n',iter, cost);       subplot(2,2,2);     hold on; grid on;     plot(iter, J_history(iter), '.r');  title(sprintf('Plot of cost against number of iterations. Cost is %g',J_history(iter)));     xlabel('Iterations')     ylabel('MSE')     drawnow      subplot(2,2,3);     grid on;     plot3(theta(1), theta(2), J_history(iter),'o')     title(sprintf('Tita0 = %g, Tita1=%g', theta(1), theta(2)))     xlabel('Tita0')     ylabel('Tita1')     zlabel('Cost')     hold on;     drawnow      subplot(2,2,1);     grid on;         % Calculate the decision boundary line     plot_y = theta(2).*plot_x + theta(1);  % <--- Boundary line      % Plot, and adjust axes for better viewing     plot(plot_x, plot_y)     hold on;     drawnow  end  fprintf('Cost at initial theta (zeros): %f\n', cost); fprintf('Gradient at initial theta (zeros): \n'); fprintf(' %f \n', grad);   The above code is implementing gradient descent correctly (I think) but I am still unable to show the boundary line plot. Any suggestions would be appreciated.    logistic_costFunction.m  function [J, grad] = logistic_costFunction(theta, X, y)      % Initialize some useful values     m = length(y); % number of training examples      grad = zeros(size(theta));      h = sigmoid(X * theta);     J = -(1 / m) * sum( (y .* log(h)) + ((1 - y) .* log(1 - h)) );      for i = 1 : size(theta, 1)         grad(i) = (1 / m) * sum( (h - y) .* X(:, i) );     end  end   EDIT:  As per the below answer by @Esmailian, now I have something like this:  [m, n] = size(x);  x1_class = [ones(m, 1) x1' dat1']; x2_class = [ones(m, 1) x2' dat2'];  x = [x1_class ; x2_class]


My question relates to the following passage/excerpt produced by a participant (an EFL learner) of my MA study:      "I forgot my laptop on the bus".     I had three raters analysing accuracy (one is a native speaker). The sentence above was the source of a discussion that has not reached an end.  According to one of the raters (native speaker) there is a syntactic issue with the sentence. The correct would be: "I left my laptop on the bus." Well, I really could not find an explanation for that.    If there is a issue I would say it is of a semantic order, but not syntactic. To make things worse I then asked a fourth rater (native speaker too) to evaluate the sentence and this last rater said the sentence is correct.

Can you forget something somewhere?  I expect that much more common is      I have left my book at home.   But, based on other languages where it is quite common (and based on the fact that I somehow feel an intention hidden under the I have left), can you also use (in general, or GB/US/CA/AU specific) the following form?     I have forgotten my book at home.   If a pupil says the first sentence (with leave) in school, will the teacher interpret it as     I have intentionally left my book at home.   or      I have accidentally left my book at home.   ?


I have run into a situation where I'd like to get my wireless working without the benefit of a monitor, by sshing in.  I have KDE on the system, have enabled autologin for one of the users and would now like to set up the wireless to automatically connect without kwallet prompting me for a password.  (That way I can ditch my ethernet cable and move my computer out of the way).  I assume that this requires me to store the password in an unencrypted file; that's just fine with me.  I've run across some ways to do that via the gui () but, for my circumstances, I need to be able to pull this off via ssh.  Would anyone know how to accomplish this?  It would be much appreciated.

So basically, I'd like to use iwconfig to connect to my wifi network when I'm not inside X. But I just don't see a way to do it in the man page. Any idea?


$$700^{1734} \mod{347}$$  I know how this could be calculated if I had $376$ in the exponent, using Fermat's theorem. But I have no idea how to approach this problem. What theorem's are appropriate to refer to?

How do I efficiently compute $a^b\bmod c$:  When $b$ is huge, for instance $5^{844325}\bmod 21$? When $b$ is less than $c$ but it would still be a lot of work to multiply $a$ by itself $b$ times, for instance $5^{69}\bmod 101$? When $(a,c)\ne1$, for instance $6^{103}\bmod 14$?  Are there any other tricks for evaluating exponents in modular arithmetic?  This is being asked in an effort to cut down on duplicates, see  and .


I often have a problem picking up what movie I should watch. So, I decided to make a simple program to randomize my pick but got stuck on the first step. I want to know how to assign Strings - that are the movie names- to an array. Here is my  unfinished code      Scanner input = new Scanner(System.in);    System.out.println("How many movies are you considering?");   int number = input.nextInt();   String[] movies = new String[number];    System.out.println("Enter movie titles...");    for(int i=1; i <= number; i++){      System.out.print(i + "- ");      movies[i] = input.next();      System.out.println();   }

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


A mass $m$ is attached to a vertical spring of elastic constant $K$ and  length $L$. The spring is supposed to be of negligible mass.  Due to the attached mass $m$  the   spring reaches a new equilibrium configuration at a length $L+x$. According to Hooke's law the spring elongation is given by $x= \frac{mg}{K}$, since the weight has to be equilibrated by the elastic force. On the other hand, by applying the  principle of energy conservation,  the initial gravitational potential energy is transformed in elastic potential energy say $mgh$ is transformed in $\frac{1}{2}Kx^2+mg(h-x)$ which leads to $mgx= \frac{1}{2}Kx^2$. The spring elongation is then $x= \frac{2mg}{K}$. It seems a contradiction. What is wrong in these arguments?

I'm a bit stuck with this situation: Suppose that an object $A$ with mass M=8 kg at 10 mt above the floor falls from rest tied to an 2 mt elastic rope, which does not exert any force since $A$ falls 2 (and I will model it as a spring with elastic constant $k$). I know it will bounce at a minimum height - doesn't matter where it is, but let it be $y_1$-, and at that moment the object decrease its mass in 3 kg, so that new mass is m=5 kg. I want to know the maximum height it will reach after bouncing, so I set up conservation of energy (assuming there is no friction due to the air). Now, which is the elongation of the spring? I mean, we measure it respect to the equilibrium position. Initially, but it changes when mass changes (it is a a higher position when $A$ weighs less). Although, if elongation is higher after losing mass, I think it implies system has more potential than before but no force has done work to change it. It seems like system has gained energy, which looks absurd.  So, what elongation should I use when I set up the eq: $$Mgy_1 + \frac{1}{2}k(y_\rm{eq}-y_1)^2 = mgy_2 + \frac{1}{2}k(\hat{y_\rm{eq}}-y_2) ^2  $$  Here some images to illustrate this situation.      Where $y_2$ will be the maximum height after bouncing. Remember $y_\rm{eq}$ is the equilibrium position when $A$ has mass M, and $\hat{y_\rm{eq}}$ is the same when $A$ has mass m.  I hope you could help me to see it more clear. Please, correct me if I'm wrong.


I've seen it used both ways, but I'm wondering what is the proper way to punctuate phrases with adverbs and words like "based".  example would be: academically-based instruction vs. academically based instruction  newly-identified disease vs. newly identified disease  Thank you.

Should I hyphenate the term 'well organised'? The context, if it matters, is the following sentence:     For this role you should be well organised and analytical with some research ability.   (I see there are other question here about hyphenation; do point me to one if this falls under a general rule, I just couldn't see it.)


If we consider the system$ \{\lnot, \leftrightarrow\}$ can we express all the connectives like $\wedge$, $\vee$ or $\rightarrow$ just by using $\lnot$ and $\leftrightarrow$ ?   Thanks in advance !

I have to prove that this set of logical operators is not functional complete -  $$ \{\lnot,\leftrightarrow\} $$  i've tried implement this set by $ \{\rightarrow,\lor\} $ which is not functional complete too, but didn't success.. thanks !


The attached photo is pulled from a Piccolo DSP reference design from TI.  They use 57.6k pull-up resistors and 2.2k pull-down resistors to allow configuration of boot pins at startup.  I've seen all sorts of values for static configurations like these, and I'm not sure why you would choose 57.6k/2.2k vs. 10k/1k, or 10k/0 (i.e. tie switch pin directly to GND).   Are the SW1 pins not shorted to GND to protect against an accidental short if the GPIO is misconfigured to be an output?  Why did they choose 57.6k/2.2k?    Another example is the write-protect pin on an EEPROM.  It can be configured via pull-up/down resistor to set a static config, but I've seen designers choose to use 330/1k/2.2k/10k/etc resistor to pull the pin to GND or VCC (even when the pin can't be misconfigured as an output).  The only reason I can think of is that this provides flexibility for some kind of automated manufacturing ICT test to pull the pin in the other direction.  For example, if the EEPROM is normally write protected, but manufacturing wants the ability to program in-circuit, then connecting the pin via 2.2k ohm resistor (instead of shorting it to VCC or GND) allows the test probe to pull the pin into write-enable mode temporarily.    What are the other considerations for choosing pull-up/down resistor values?

There are many tutorials that use a pull-up or pull-down resistor in conjunction with a switch to avoid a floating ground, e.g.        Many of these projects use a 10K resistor, merely remarking that it is a good value.  Given a a particular circuit, how do I determine the appropriate value for a pull-down resistor?  Can it be calculated, or is it best determined by experimentation?


I obtained visa to Canada for a conference in May. But I couldn't go. Got visa as B1 visitor-business multiple. Now I got an invitation from a relative in Canada to visit them. Can I use the earlier Visa which I didn't use for this?

I got a B1 visa (Visitor-Business) for Canada in 2012 when I traveled to Canada for a business trip from my company. It expires in 2015 and I'd love to visit the Canada again, but for no other purpose than traveling, visiting family.  I want to know, If I can legally travel to Canada with B1 visa without a real business need (assuming I'm honest);  I live in India, and I have B1/B2 from US and used same Visa for Business & Personal visits multiple times.


I keep on getting a null pointer exception when i am trying to update.I had tried toasting the values and its not null at all. Im stuck in here, any help would be great.  01-05 01:50:20.082 31956-31956/org.gandroid.motif E/AndroidRuntime: FATAL EXCEPTION: main                                                                     Process: org.gandroid.motif, PID: 31956                                                                     java.lang.NullPointerException                                                                         at org.gandroid.motif.Secondwcscreen$1.onClick(Secondwcscreen.java:218)                                                                         at android.view.View.performClick(View.java:4463)                                                                         at android.view.View$PerformClick.run(View.java:18770)                                                                         at android.os.Handler.handleCallback(Handler.java:808)                                                                         at android.os.Handler.dispatchMessage(Handler.java:103)                                                                         at android.os.Looper.loop(Looper.java:193)                                                                         at android.app.ActivityThread.main(ActivityThread.java:5292)                                                                         at java.lang.reflect.Method.invokeNative(Native Method)                                                                         at java.lang.reflect.Method.invoke(Method.java:515)                                                                         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:824)                                                                         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640)                                                                         at dalvik.system.NativeStart.main(Native Method)   This is the error i get when i tried updating.  Bundle b = getIntent().getExtras();                             getLastperiod = b.getString("LP");                             Date inputdate = sdf.parse(inputlastperiod);                              Date getprevdate = sdf.parse(getLastperiod);                             newcal.setTime(getprevdate);                              String prevperiod = sdf.format(newcal.getTime());                             String newperiod = sdf.format(inputdate);                               Date PP = null;                             Date NP = null;                             Integer daysbetween = 0;                             try {                                 PP = format.parse(prevperiod);                                 NP = format.parse(newperiod);                             } catch (Exception e) {                                 e.printStackTrace();                             }                              DateTime valPP = new DateTime(PP);                             DateTime valNP = new DateTime(NP);                              daysbetween = Days.daysBetween(valPP, valNP).getDays();                             String newPeriodrange=daysbetween.toString();                             Integer id = 1;                                if (newPeriodrange!=null) {                                myDB.updatePeriodrange(newPeriodrange,id);                             }   This is where my update statement lies.  public void updatePeriodrange(String newcyclerange,int id){         SQLiteDatabase dbase = this.getWritableDatabase();         String query = "UPDATE userinfo SET PERIODRANGE= "+newcyclerange+" WHERE ID='"+id+"'";          dbase.execSQL(query);     }   Then this is my databasehelper class.

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?


Is $p(x) = x^4+2x-2$ reducible in any of the following rings: $\mathbb{Q}, \mathbb{R}, \mathbb{C}, \mathbb{F_9}$ ?  How do you show this for all the individual rings?

Let $\mathbb M$ be one of the following rings: $\mathbb{R}, \mathbb{Q},  \mathbb{F_9}, \mathbb{C} $. Let $I$ be the ideal generated by $x^4+2x-2$. Is the ring $\mathbb M[x]/I$ a field for some of the above choices for $R$?   I have been trying to work my way around some problems involving ideals, but I get really confused when they get mixed with rings and fields. I'm stuck and don't know how to proceed.


I'm looking for a solution to properly disable the single view for a custom post type. Is it possible in register_post_type ?

I created a custom post type:  register_post_type('sample_post_type',array(     'labels' => array(         'name' => _x('Sample Posts', 'post type general name'),         'singular_name' => _x('Sample Post', 'post type singular name')     ),     'public' => true,     'show_in_nav_menus' => false,     'exclude_from_search' => true ));   How can i disable the single post view for this specific post type? Displaying a simple 404 is fine, or redirecting to the homepage. This is inside a plugin, so i can't create a single-sample_post_type.php file to setup an empty page.


I know "Matrix" is usually defined as any array of numbers or other mathematical objects arranged in rows and columns. But the problem is that seems not really like a rigorous mathematical definition. Cause some notions used in the definition like "Array" or "Arrangement" are ambiguous. I mean Matrix is an important concept which we use it to define other things like operators, vectors, tensors, etc, but Matrix itself is not well defined.  Can we define Matrix in terms of more fundamental notions like sets, n-tuples, maps, functions, etc? Or should we take it as a primitive notion?  Thank you in advance.

Is matrix just a rectangular array of symbols and expressions, or one can define it in a more formal way?


I have a layer with around 3000 points. I created a special print composer and I would like an Atlas that will print only pages with the selected features in the map.  Is there a way to force the Atlas to select only these pages?

My layer has more than 2900 elements, and I would like to release a map with 1 or 10 or 50 selected elements but never 2900 in the time.  I can't select them other than visually (no column to identify). Do you have an idea to output a report with only the selected elements?  I have tried the different solutions already seen on this site but nothing that allows me to release a report without saving many unnecessary layers.


The problem is this: In the render view it seems that a kind of shadow of the object remains in the object itself when you turn around the object. It's dark gray. Materials and lights stop working. After I press f12 the image is rendered but the object is rendered transparent. What can I do? I have already completely reinstalled Blender.  And after moving it a bit:  And the render:

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


I'm wondering if anyone knows a safe way to clean these two folders or even clean the Windows folder so that I can get some space back as it's eating 25% of my SSD, the entire windows folder is taking 30%    Any help would be much appreciated

A Vista virtual machine I use only has a 10 GB virtual hard disk -- and I'm worried about it running out of space over time. I used  to check for the culprits..  And the primary culprit is that /winsxs or "Windows Side-By-Side" folder.  What is the Windows Side By Side folder? Well, that's .  All of the components in the operating system are found in the WinSxS folder – in fact we call this location the component store.  Each component has a unique name that includes the version, language, and processor architecture that it was built for.  The WinSxS folder is the only location that the component is found on the system, all other instances of the files that you see on the system are “projected” by hard linking from the component store.  Let me repeat that last point – there is only one instance (or full data copy) of each version of each file in the OS, and that instance is located in the WinSxS folder.   So looked at from that perspective, the WinSxS folder is really the entirety of the whole OS, referred to as a "flat" in down-level operating systems.  This also accounts for why you will no longer be prompted for media when running operations such as System File Checker (SFC), or when installing additional features and roles. That explains why the folder starts off big, but not why it gets larger over time – the answer to that question is servicing.   In previous versions of Windows the atomic unit of servicing was the file, in Windows Vista it’s the component.  When we update a particular binary we release a new version of the whole component, and that new version is stored alongside the original one in the component store.  The higher version of the component is projected onto the system, but the older version in the store isn’t touched.  The reason for that is the third part of why the component store gets so large.  Lots of other people :  A coworker recently received his every two year work laptop refresh and was in the middle of loading his new laptop with Vista. For some reason, his hard drive C: was partitioned to only 25GB and the rest of the space reserved for a much larger drive D:. Anyway, after loading many Windows Updates, he was left with hardly any drive space left on C:, and for some reason, the WinSxS directory had ballooned to over 8GB. While I knew what the WinSxS (Windows Side-by-Side) directory was for, I wasn't quite sure why that directory would explode in size so fast with normal operating system updates.  I don't really care about having all these duplicate files for safety, but I do care about the VM exploding due to an out of disk space error. So.. can /winsxs be safely pared down in any way? ..  Administrators should not, for any reason, take it upon themselves to clean out the /winsxs directory - doing so may prevent Windows Update and MSI from functioning properly afterwards.  Preventing accidental deletion from the directory is accomplished by putting a strong security descriptor on the directory that inherits to its children.  If this /winsxs folder gets any larger, I'm going to have to re-image this virtual machine.. which I really don't want to do!


I'm trying to connect a Google Search Console property to Google Analytics.   It's supposed to be as easy as: Admin > Property Settings > Add a Search Console Site (that's been verified).  This particular site has been domain verified in Search Console. So I'm finding it's not that easy.    says that linking a domain verified search console site to analytics is not possible. You have to add the site as a URL-prefix.  My questions:   If the site has already been domain verified, do I have to first remove the domain verified site from Search Console and then re-add as a URL-prefix?  I tried simply adding the site as a URL-prefix and it did not work. Once added as a URL-prefix I see this:    So even though the site has been added as a URL-prefix, Google Analytics still won't me link to the property. The website still does not appear in Google Analytics as a Search Console property even when added as a URL-prefix. If I remove the domain, will we lose all historical data in Search Console?  Have any of you run into this issue? How have you worked around it?   I have to figure this out for a large client and don't want to drop the ball. Your help is greatly appreciated!

I'm trying to connect a domain property to a google analytics domain. But when the property I added is not in the list of properties where I can choose from.  All the other properties are. The big difference is that the newly added property is a domain property. All the others are regular properties. Is there a new way to connect this domain properties to google analytics?


Given the rules of basic arithmetic, and defining $<$ as a binary relation with:   For all $a\in\mathbb{R}$, either $a<0$, $a=0$, or $0<a$  If $0<a$ and $0<b$ then $0<a+b$ and $0<ab$ $a<b$ iff $a-b<0$   Prove that $a<b$ and $b<c$ implies $a<c$.  The difficulty seems to be that I don't have the 2nd law also for negative a and b.  Axioms: Addition is commutativeAddition is associativeFor all a, a+0=a-a+a=0 and similar for multiplication

This may be a bit of a trivial question, but can one prove the reflexive, symmetric and transitive properties of equality and the transitive property of inequality of real numbers?(and if so, how? Is there a fairly straightforward, possibly algebraic method?) i.e. Is it possible to prove that $\forall\;a, b\in\mathbb{R}$ $$a=a,$$ $$\text{if } a=b \text{ then } b=a,$$  and $$\text{if } a=b \text{ and } b=c \text{ then } a=c.$$  Also, $$\text{if } a<b \text{ and } b<c \text{ then } a<b$$ The sources that I've read so far seem to have conflicting points of view.


I writed some search function and I got a null pointer exception when I try add element to temporary list.   User :  public class User {      private Id _id;     private String number;     private String name;     private String mark;     private String model;     private List < Address > addresses;      public Id get_id() {         return _id;     }      public void set_id(Id _id) {         this._id = _id;     }      public String getNumber() {         return number;     }      public void setNumber(String user) {         this.number = number;     }      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     }      public String getModel() {         return model;     }      public void setModel(String model) {         this.model = model;     }      public String getMark() {         return mark;     }      public void setMark(String mark) {         this.mark = mark;     }      public List < Address > getAddresses() {         return addresses;     }      public void setAddresses(List < Address > addresses) {         this.addresses = addresses;     } }   Address :  public class Address {      private String name;     private Date dateFrom;     private Date dateTo;      public Date getDateTo() {         return dateTo;     }      public void setDateTo(Date dateTo) {         this.dateTo = dateTo;     }      public Date getDateFrom() {         return dateFrom;     }      public void setDateFrom(Date dateFrom) {         this.dateFrom = dateFrom;     }      public String getName() {         return name;     }      public void setName(String name) {         this.name = name;     } }   private List < User > findUsers(List < User > users, String park) {     List < User > tempList = null;     List < Address > addresses = null;     for (User user: users) {         addresses = user.getAddresses();         for (Address address: addresses) {             if (address.getName().equals(park))                 tempList.add(user);         }     }     return tempList; }   In line where tempList.add(user); is I get NPE.

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 am trying to install a WLAN driver in order to get internet access on my laptop. I can only add files to this laptop via a USB stick, there is no other way to connect to the internet using this laptop until I have a WLAN connection. As such, I cannot use repositories to install anything.   WLAN is: Dell Wireless 1390 WLAN Mini-Card BCM4311 [14e4:4311] Laptop is: Inspiron 1520 (32 bit) Ubuntu Version is: 16.04 LTS  Please can someone talk me through how to install the driver via USB. I have tried Broadcom's advice () but it assumes you already have an internet connection.

How can I install firmware-b43-installer driver if I can't connect to internet by wire?


Problem: Let $ x_n $ be a sequence defined by $x_n = \displaystyle {\sum_{k=n+1}^{ 2n}\frac{1}{k}}$. Show that $ x_n$ converge.   I can bounded $ x_n <\frac{ n}{ n+1}$, but I can't show that $ x_n$ is increasing, thus would use that es increasing and bounded then is convergent.

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?


I installed ubuntu 20.04 and I have a separate display. in the setting, there is an option that add a dock to both displays. I just tried it and it worked, now I can't undo this. when I select the option to the built-in display it won't work and automatically change back to the all-displays option.  any suggestions

I updated to Ubuntu 18.04 a few weeks ago with little to no problems until now. After an update I installed and a reboot, my sidebar (Ubuntu dock) shows on the secondary screen, which is my Laptop, while my HDMI monitor is saved as the primary and has the top bar with time, battery and so on.   How can I get the sidebar back to my primary screen?


The question:     Find all the middle fields of the splitting field of $x^4-2$ over $\mathbb{Q}$.   My attampt:  Let $E$ be the splitting field of $f(x):=x^4-2$ over $F:=\mathbb{Q}$.  The roots of $f$ are $\pm\alpha,\pm\alpha i$ where $\alpha =\sqrt[4]{2}$. I know that $$ G:=\text{Aut}(E/F)=\{\sigma^i\tau^j:0\leq i\leq 1,0\leq j\leq3\} $$ where $$  \sigma: \alpha \mapsto i\alpha\\ \tau: i\mapsto -i$$ And because $\sigma\tau\sigma=\tau$, we get $G\cong D_8$.  The subgroups of $G$ are $$\begin{align} &H_1=\{1,\sigma^2\},&&H_2=\{1,\tau\}\\&H_3=\{1,\sigma^2\tau\},&&H_4=\{1,\sigma\tau\}\\&H_5=\{1,\sigma^3\tau\},&& H_6=\{1,\tau,\sigma^2,\sigma^2\tau\}\\&H_7=\{1,\sigma\tau,\sigma^2,\sigma^3\tau\},&&H_8=\{1,\sigma,\sigma^2,\sigma^3\} \end{align}$$ The required middle fields are $K_i=E^{H_i}$.  Observe that $K_1=\mathbb{Q}(i)$ and $K_2=\mathbb{Q}(\alpha)$, but I don't think I calculate $K_i$ correctly. For example: I want to calculate $K_3$: Lex $K_3\ni x=a+\alpha b+ic$. We know $\sigma^2\tau(x)=x$ then $$a=b\alpha i\\ \Rightarrow x=b(\alpha(1+i))+ci$$ I don't know how to calculate $K_3$ from here.  Another example: Let $K_4\ni x=a+\alpha b+ci$. Then $$x=\sigma\tau(x)\\ \Rightarrow x=a+b\alpha-b({i-\alpha\over 1+i})\\ =a+{1\over 2}b(5\alpha-\alpha i-i-1)$$.  I'm not sure how to proceed and I think that's not the way to solve the question. Thanks in advence.

Okay, so I mostly worked this out, and I even created lattice diagrams as shown below. But I have a specific question about finding intermediate fields, which I will ask shortly. Let $\alpha = \sqrt[4]{2}$ and $\omega = e^{\frac{\pi}{4}i} = i$.  Then $L = \mathbb{Q}(\alpha, i)$ is the splitting field of $x^4 -2$ over $\mathbb{Q}$. Also, the Galois group $\Gamma_\mathbb{Q}(x^4 - 2) = D_8$ acts on the roots $\alpha, \alpha i, -\alpha,$ and $-\alpha i$, and is generated by rotation $\sigma$ and reflection $\tau$, where $\sigma(i) = i, \sigma(\alpha) = \alpha i$ and $\tau(\alpha) = \alpha, \tau(i) = -i$. To find the intermediate fields between $L$ and $\mathbb{Q}$, find the subgroups of $D_8$ instead with the idea that finding subgroups is easier and better understood than finding intermediate fields. Then from the subgroups, use the Galois correspondence to get all the intermediate fields. There are 10 subgroups of $D_8$ which must correspond to 10 intermediate fields.  Well, I pieced together 8 obvious candidates for intermediate fields, and in the end, I had to look up the other 2 which were $\mathbb{Q}(\alpha(1 + i))$ and $\mathbb{Q}(\alpha(1 - i))$. Those two seemed strange until I realized that $\sqrt{8\alpha^2 i} = \alpha(1 + i)$. Finally, I was able to check fixed fields to verify the exact correspondence, and come up with the diagrams. Question: Is there a systematic approach to finding and connecting up the corresponding intermediate fields once all the subgroups are known? I'm guessing, in general and maybe in this example with $D_8$, there isn't a good, canonical way to anticipate and construct the field extensions?  The structure of groups and subgroups, as stated earlier, is easier and better understood than the structure of field extensions. Maybe this makes sense because the groups are finite and have only one operation, and fields are often infinite and have two operations.  and  UPDATE: In , Richard Borcherds clearly describes how to obtain the two nonobvious intermediate fields from the subgroups. Specifically, add the roots $\alpha$ and $\alpha i$ to fix by reflection one way, and then add the roots $\alpha$ and $-\alpha i$ to fix by reflection the other way.


I'm a junior chemical engineering major who is interested in getting a PhD in chemical engineering. However, my grades in nearly all of my chemical engineering courses have been about a C and I've also made a D in one of my chemical  engineering courses. I've made Cs in one of intro chemical engineering courses focusing on mass and energy balances as well as statics,quantitative methods, and physical chemistry. I've made a D and have to retake my Properties of Materials class. Ive made As and Bs in Im planning on retaking some of these classes to improve my grades but I'm  still worried about how these grades will be precieved by a graduate admissions committee in the long run. How badly do these grades affect my chances to get into a PhD program? Do I have a chance at this point? What should someone in my situation do going forward to become a more competitive applicant for graduate school?

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I found Java's Arrays.sort() method is much slower than my simple sorting method (based on counting sort).  I wrote a program to compare running time my simple sorting technique with Java's Arrays.sort() method. I noticed my implementation runs much faster (it needs 1/3 time compared with system method).   Below is my implementation.  I keep track of all the elements in a secondary array and I copied back all the elements to the main array before return.   static void mySort(int[] num2, int n) {     double startTime, endTime;      startTime = System.currentTimeMillis();      int[] sortedData = new int[n];      for (int i = 0; i < n; i++)        sortedData[num2[i]]++;      int index = 0;     for (int i = 0; i < n; i++)        if (sortedData[i] > 0)        {           for (int j = 0; j < sortedData[i]; j++)           {              num2[index++] = i;           }        }       endTime = System.currentTimeMillis();        System.out.println("Time taken for my sort: "             + (endTime - startTime) +  " ms");  }    static void systemSort(int[] num)  {      double startTime, endTime;       startTime = System.currentTimeMillis();       Arrays.sort(num);      endTime = System.currentTimeMillis();        System.out.println("Time taken for System sort: " +                       (endTime - startTime) + " ms");  }    public static void main(String[] args)  {    int size = 50000000;   int[] origArray = new int[size];   int[] origArray2 = new int[size];    Random rn = new Random();    System.out.println("Taking " + size + " inputs randomly...");   for (int i = 0; i < size; i++)   {      origArray[i] = rn.nextInt(size);      origArray2[i] = origArray[i];   }   System.out.println("Done!");    System.out.println("\n\nFrom System sort:  ");   systemSort(origArray);    System.out.println("\n\nFrom my sort:  ");    mySort(origArray2, size); }   Here is the output:  Taking 5000000 inputs randomly...  Time taken for System sort: 652.0 ms  Time taken for my sort: 160.0 ms  Taking 50000000 inputs randomly...  Time taken for System sort: 5737.0 ms  Time taken for my sort: 2176.0 ms  If we can buy a good amount of execution time with the cost of memory (considering memory is less expensive now a days) then why not we taking advantages of it?  Any thoughts? Thank you.

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


Probably this will be so stupid to be asked, but I can't find the way to make it works and even to find the solution on Internet.  I need to concatenate 2 strings (variable STR_Prefix and string "TA+") to create a new one ("ATA+" or "BTA+"), then I have to check the value in an if-statement, but it fails, the if-statement doesn't detect the "ATA+".  But if I set the value of "STR_Action" directly to "ATA+" it works perfectly.  public void Test(boolean ok) {     String STR_Action = "";     if (ok) { STR_Prefix = "A"; }     else    { STR_Prefix = "B"; }      /* I have tried some ways to concatenate */     STR_Action = STR_Prefix + "TA+";    // Not working with the if-statement     // STR_Action = new StringBuilder(STR_Prefix).append("TA+").toString();    // Not working with the if-statement      /* But if-statement only works when I set STR_Action directly with = "ATA+" or "BTA+"; */     // STR_Action = "ATA+";    // This assign is detected by the if-statement      if (STR_Action == "ATA+")     {         Toast.makeText(getApplicationContext(), "ATA+", 0).show();     }     else if (STR_Action == "BTA+")     {         Toast.makeText(getApplicationContext(), "ATA-", 0).show();     }     else     {         Toast.makeText(getApplicationContext(), "Code not found", 0).show();     } }   Please, help :'(  Thanks in advance

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Lets say I have data which has following structure.  //map1        //map2         //map3 Fruit-------->Apple--------->Green Apple------->4                              Red Apple--------->5                              Yellow Apple------>6                              Total------------->15               Cherry-------->Red Cherry-------->5                              Green Cherry------>3                              Total------------->8 Vegetable----->Capsicum----->Green Capsicum---->5                              Red Capsicum------>7                              Yellow Capsicum--->3                              Total------------->15   In other words I have  Map<String, Map<String, Map<String, Long>>>   I want to sort the innermost map(map3) by values and the middle map(map2) by the value of entry "total" in map3.  I know that typically we can sort the map by value as follows.  import java.util.*;  public class MapUtil {  public static <K, V extends Comparable<? super V>> Map<K, V>      sortByValue( Map<K, V> map )  {     List<Map.Entry<K, V>> list =         new LinkedList<Map.Entry<K, V>>( map.entrySet() );     Collections.sort( list, new Comparator<Map.Entry<K, V>>()     {         public int compare( Map.Entry<K, V> o1, Map.Entry<K, V> o2 )         {             return (o1.getValue()).compareTo( o2.getValue() );         }     } );      Map<K, V> result = new LinkedHashMap<K, V>();     for (Map.Entry<K, V> entry : list)     {         result.put( entry.getKey(), entry.getValue() );     }     return result;   } }    But here the value is a long and not map. I am working on this problem and I think this can be a good way to learn more about maps. Any idea or suggestion about how this can be achieved?

I am relatively new to Java, and often find that I need to sort a Map<Key, Value> on the values.  Since the values are not unique, I find myself converting the keySet into an array, and sorting that array through array sort with a custom comparator that sorts on the value associated with the key.  Is there an easier way?


I want to take out a mortgage, but the value of the house is greater than $417,000, which is the amount when a mortgage becomes a Jumbo loan. I looked for more information on BankRate.com, and even tried out their calculator, but I could not find a clear and concise explanation of the down payment required for the Jumbo loan.  All the calculators I've found only ask for the loan amount and down payment percentage. They don't tell my what my owed principal would be, once the down payment is collected and the loan is initiated. If the value of the house is greater than the jumbo loan limit ($450,000), but my down payment ($60,000) takes the loan below the limit ($390,000), do I still need to get a jumbo loan?  I apologize for being redundant, because this question has already been asked, but the answer given was never accepted and didn't actually answer the question being asked. This question is located at "".

I live in an area of the United States where it would be very difficult to get a home for less than the $417,000 conforming loan limit. Unfortunately, jumbo loans seem to have a hard 20% downpayment requirement and higher interest rates (around half a percentage point higher, from what I've seen) than conforming loans.  But one thing I haven't been able to clarify is whether the $417k limit is on the price of the home or the amount to be borrowed. In other words, if the home is $450k and I put down $45k, the size of the loan is only $405k. Do I then have a conforming loan (because the amount to be borrowed is lower than $417k), or a jumbo loan (because the price of the property exceeds $417k)?   If it's the former, then is it always possible to avoid getting a jumbo by simply putting enough money down so that the loan amount falls below the limit, turning that loan into a conforming loan?


Hi! I'm new to Stack Exchange. I've been meaning to replicate this (what I can describe as) static-ish grain fill in my illustrator graphics. I've tried everything from sprinkled grain, applying a halftone fill over even blending some textured images on my artwork, but I can't seem to suitably achieve this.  Thanks for the help!

I was looking at these beautiful artworks by Karolis Strauniekas and I'm wondering how he creates the textures on the images.      It looks like a mixed combination between a "noise" effect with a "grain" something and a "je ne sais quoi" of multiple textures. I currently working in Photoshop and I'm curious to know how he goes about achieving this look.  I'm not looking to steal his "look" but I find this style very inspirational regarding the texture.   His website:


First of I apologize if this is a duplicate thread, I tried searching to no avail.  I'm currently looking to reduce the entire system DPI in Ubuntu 13.04 I work better with multiple windows and the default DPI for my laptop is a little to big.

I am trying to find and then change the screen DPI (dots per inch) setting in 12.04 and 12.10. However, I can't seem to find any app or config file that can do this. Is there any app or conf file for this?  Note that this is for 12.04+ so the following will not work:        Moreover, they are basically changing the font size, not the actual screen DPI.


I want to figure out what went wrong with my application. It is here:  I'm running it on Raspberry 3 B+ and some errors occurs: WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$2 (jar:file:/home/pi/testing/RaspberryPi-Locer-Controller/target/RaspberryPi-1.0-SNAPSHOT.jar!/lib/spring-core-4.1.6.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$2 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release  This ReflectUtils is the main problem I know that I can avoid it using this: --add-opens java.base/java.lang=ALL-UNNAMED  ,but where should I apply it.

I am getting a NoClassDefFoundError when I run my Java application.  What is typically the cause of this?


The first thing that came to mind when I saw Arrival was "I already saw that!"  I remember that I've seen a somewhat B-ish movie, I only remember the plot was similar to Arrival, a huge black monolith-like ship arrives, it is vertical, hangs in the air just like in Arrival, and they go in to investigate its secret.  That is all I can remember, I haven't really paid attention, but now I've seen Arrival I really want to find out what it was.

I remember watching this movie on TV when I was a kid. It must be around 1997-98, but I'm not sure. Of course, the movie itself must be older.  It was about a strange, otherworldly tower-like structure suddenly appearing on a desert-like place (probably somewhere around Middle-East, again not sure). It had healing powers around its surrounding area. One of the main characters had a cancer (lung cancer maybe) and when he came around this structure he was gradually healed.  I remember a specific line in the movie that goes: (Wording might not be the same.) "This thing might be what we call The God for thousands of years."  Once it was discovered, there was a military occupation around and they were arguing about whether or not to destroy while main characters were trying to save it. At some point, they were going inside the structure.  I could not find the movie. Maybe I misremember some things. Anyone have an idea?


This is a follow up on this .   In his [paper][2] under the title:Does the inertia of a body depend upon its energy-content, Einstein drives the famous $E=mc^2$ equation.   His argument can be summed up as follows:  Consider an object(like lantern,so it's not a point particle) that is at rest in a given inertial frame. It has energy that is given by $E_0$. Let it emit two beams of light carrying the same amount of energy in two opposite directions, So that the body will stay at rest(since the light will carry equal momenta in opposite directions). Let it's energy after emission be called $E_1$. Consider this same exact situation from an inertial frame that is in relative motion with respect the the frame at rest. And denote the energies of the body before and after the emission by $H_0$ and $H_1$.   He then considers the quantity: $H_0 − E_0 − (H_1 − E_1)$:  $H-E$ according to Einstein, is simply the difference in the Kinetic energy of the body up to an arbitrary additive constant $C$. So that:  $H_0 − E_0=K_0+C$,  $H_1 − E_1=K_1+C$,  $K$ is the kinetic energy of the body in the moving system.  He then states since $C$ does not change during the emission therefore:  $H_0 − E_0 − (H_1 − E_1)=K_0 -K_1$. In other words, the change in the energy of the body after the emission of light is given by the difference between the kinetic energy of the body before and after the emission. Now since the body does not change it's velocity, therefore He infers its mass has changed.   There's one part about this argument that us unsettling for me. Namely the constancy of $C$ during the emission.   If we have a macroscopic object, it's energy is given by(at least) the sum of its kinetic, internal(thermal) and potential energy.  That is: $H_0 − E_0=K_0+\Delta E_{T_0}+\Delta U_0$,          $H_1 − E_1=K_1+\Delta E_{T_1}+\Delta U_1$.  In other words the constant $C$ denotes $\Delta E_{T}+\Delta U$. Assuming the $C$ is the same before and after the emission is tantamount to assuming that both internal and potential energy of the emitting body is constant during the emission process. It's not self-evident to me at all why this should be the case. Why say, the internal energy(temperature) of the body won't change after emitting light? Einstein did not justify this assumption at all in his 1905 paper.  So Is it a justified assumption? If so, then what is the justification?

In Einstein's  Does the Inertia of a Body Depend upon its Energy content? he introduces arbitary additive constants whose purpose I'm confused about.  The paper has a frame $(x,y,z)$ where a body at rest emits plane waves of light in opposite directions, each with an energy $\frac 1 2 L$ at an angle $+\theta$, $-\theta$ to the $x$ axis where the energy of the body before and after transmission is $E_0$ and $E_1$. This process is measured in a frame $(\xi,\eta,\zeta)$ moving along $x$ with velocity $v$, where the energies of the body before and after are $H_0$ and $H_1$. Subtracting the total energy in frame $(\xi,\eta, \zeta)$ from $(x,y,z)$  $$H_0 − E_0 − (H_1 − E_1) = L\left(\frac {1} {\sqrt{1 - \frac {v^2}{c^2}}} -1\right)$$  He writes with my emphasis     The two differences of the form H − E occurring in this expression have simple physical significations. H and E are energy values of the same body referred to two systems of co-ordinates which are in motion relatively to each other, the body being at rest in one of the two systems (system (x, y, z)). Thus it is clear that the difference H − E can differ from the kinetic energy K of the body, with respect to the other system $(\xi,\eta,\zeta)$, only by an additive constant C, which depends on the choice of the arbitrary additive constants of the energies H and E   Obviously the same energy scale is used in both frames when measuring $E$ and $H$, so what's the purpose of these arbitarary additive constants?


Here is the error message:  E: Malformed entry 1 in list file /etc/apt/sources.list.d/ros-latest.list (Component)   This is what's written in my file:  deb http://packages.ros.org/ros/ubuntu $ (lsb_release -sc) main   What is wrong?

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I need to return an error on wrong http_host header. For nginx I would write the following config:  server {      ## Deny illegal Host headers     if ($host !~* ^(mydomain.com|www.mydomain.com)$ ) {         return 444;     }      location  / {         proxy_pass               http://app_server;         ...     } }   How can I do the same for Apache?  UPDATE  Although the trick with virtualhosts does work, I ended up with RewriteRule:  RewriteEngine On RewriteCond %{HTTP_HOST} !^(www\.)?example\.com$ [NC] RewriteRule ^(.*)$ - [L,R=400]

I am rebuilding an old server.  Only one of the five old sites need to go live and all five of the old sites point to the same IP address.  Unfortunately any time a request is made for one of the old sites via their own unique domain names they are passed the pages from the one site that I'm trying to make live.  I would just like the old sites to display a 404 instead of the one site that I'm actually trying to make live.  As an example:   Site 1 (192.168.0.1) [www.first.com] Site 2 (192.168.0.1) [www.second.com] Site 3 (192.168.0.1) [www.third.com]   I want to move site 1 live again.  So I turned on apache on the machine with the IP address of 192.168.0.1, with all of site 1's files in the /var/www directory.  When I browse to 192.168.0.1 or www.first.com I correctly see site 1. When I browse to www.second.com and www.third.com I also receive site 1 which is the problem.  Is there a way I can 404 any request which comes in without www.first.com?  Here is my sites-available:  NameVirtualHost *:80  LogFormat "%h %l %u %t \"%r\" %>s %b" common  <Files ~ "^\.ht">     Order allow,deny     Deny from all     Satisfy All </Files>  <Directory />   Order Deny,Allow   Deny from all   Options None   AllowOverride None   Options None </Directory>  <Directory /var/www>   Order Allow,Deny   Allow from all </Directory>  <VirtualHost *:80>         ServerName first.com         ServerAlias www.first.com         DocumentRoot /var/www         ErrorLog /var/log/first.com.err         CustomLog /var/log/first.com.log common </VirtualHost>  <VirtualHost _default_:*>         ServerName unknown         DocumentRoot /var/www_404 </VirtualHost>


I'm trying to include Arabic text in an English document (I'm a new latex user), but I can't seem to get any Arabic text to render at all, using xelatex or any kind of tex. I'm using texshop 3.51 on a mac. I can't get this basic example to work, it just displays question marks in the output pdf.  \documentclass[12pt]{article} \usepackage[utf]{arabxetex} \newfontfamily\arabicfont[Script=Arabic]{Amiri} \begin{document} \begin{arab}[voc] وَهَذِهِ فِقرَةٌ بِالعَرَبِيَة مَعَ كَلِمَة اِنكلِيزِيَة \end{arab} \end{document}     I've downloaded Amiri (and also Scheherazade and Lateef) into Fontbook, and they show up if I go Source->Font->Show Fonts in texshop. If I remove the Amiri part it still doesn't work.   Is there anything I can do? I've looked at other links here, like  and  but I can't even render any of those examples.   Thank you so much for any help! I'll love you forever if I can get this to work.


So in Euler's solution of the Basel problem he takes  $\sin x= x\left(1-\frac{x^2}{\pi^2}\right)\left(1-\frac{x^2}{4\pi^2}\right)\cdots$  well, i was playing around with it and put $ x=\frac{\pi}{2}$  After manipulating quite a bit, $$\frac{2}{\pi}=\left(1-\frac{1}{2^2}\right)\left(1-\frac{1}{(2*2)^2}\right)\cdots\left(1-\frac{1}{(2n)^2}\right)\cdots$$ after simplifying a bit$$\frac{2}{\pi}=\left(\frac{3}{4}\right)\left(\frac{15}{16}\right)\left(\frac{35}{36}\right)\left(\frac{99}{100}\right)\cdots$$  I tried evaluating LHS by hand, and the partial products slowly do decrease towards RHS, and we know that they will not decrease forever because $$\lim_{n\to\infty} \frac{n^2-1}{n^2}=1$$ so can anyone help by writing a program which can do partial sum up to high values of n and tell me if its true. PS.I am in 10th standard do if im wrong anywhere please dont explain in too complicated mathematics. thanks

How to prove the following product? $$\frac{\sin(x)}{x}= \left(1+\frac{x}{\pi}\right) \left(1-\frac{x}{\pi}\right) \left(1+\frac{x}{2\pi}\right) \left(1-\frac{x}{2\pi}\right) \left(1+\frac{x}{3\pi}\right) \left(1-\frac{x}{3\pi}\right)\cdots$$


I lost all partition hard drive (1 TB). It's completely formatted. Now it's in ext4 file system. I cannot make partition from that 1 TB. I used terminal window and tried to make it as a Linux logical volume manager, but failed.  Image showing my disks in Gparted:    Terminal window making Linux logical volume manager failed while writing:     please help me to fix this....

I would like to see a full how-to guide on how to install Ubuntu.


I'm now using mtpro2. However, I prefer the brackets from newtxmath. I think  it is more coherent with Chinese. How can I extract the brackets { and } from newtxmath? It seems to be a tremendous amount of work..    \documentclass[12pt,a4paper,openany,fleqn]{book} \usepackage[margin=2cm, top=2cm]{geometry} \usepackage[subscriptcorrection,nofontinfo,zswash,mtphrb]{mtpro2} \usepackage{amsmath} \begin{document} $\{x\mid 3x+2y<6\},~\left\{\frac{y}{x}\mid x\in\mathbb{Q},~y\in\mathbb{Q}\right\}$ \end{document}

Is there a general way to change the font of a particular symbol without switching packages?  For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to look as it does in mathabx.  How can I redefine it to appear in this way?


When I try to enable USB debugging on my Android device, I am prompted with this message:  The computer's RSA key fingerprint is: FE:35:23:34:...  I see the public key in ~/.android/adbkey.pub How can I verify that this RSA key fingerprint is correct on the computer's commandline? Can I use adb?

You should know that Android 4.2.2 (or just before) introduced RSA key checking for adb access. – The device asks now if you want to allow access.  To avoid asking every time, the computer presents an RSA key, which can be permanently accepted.  The dialog on the phone shows the RSA key fingerprint. – On Linux, the public/secret key pair is here: ~/.android/adbkey(.pub).  How can I show the fingerprint of that key file? (I’m looking for a command line to do that on the Linux system.)


If I will write something like this:  // A.h #ifndef A_h #define A_h class A { public:     void f(); };  void A::f() { } #endif //A_h   // B.cpp #include "A.h"  void foo() {     A a;     a.f(); }   // C.cpp #include "A.h"  void bar() {     A b;     b.f(); }  // main.cpp #include "B.cpp" #include "C.cpp" using namespace std;  int main() {     foo();     bar();     return 0; }   I get a linker error as such:     error LNK2005: "public: void __thiscall A::f(void)" (?f@A@@QAEXXZ)   already defined in B.obj   Why does the same problem not happen when the A class is a class template? Eventually it becomes a plain class (a non-template one) during compilation, right? For this reason, I expect the same behavior as a non-template class, i.e. a linker error.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I was ask by my daughter, "May you tell my brother to call me"? Is this the correct way to    ask this question?

Which word to use when we ask for help?  Some conditions:     We know that the person asked is able to do it. We don't know if the person asked is able to do it.


By mistake i have changed the permission of /etc and i cannot use sudo now. I cannot enter as root because it requires sudo as initial command. Ls -l /etc/sudoers  -rwxrwxrwx 1 root root 755 Oct 15 2019 /etc/sudoers  Sudo -s   sudo: /etc/sudoers is world writable  sudo: no valid sudoers source found, quitting  sudo: unable to initialize plugin  Please suggest me something.

How do I edit an invalid sudoers file? It throws the below error and it's not allowing me to edit again to fix it.  Here is what happens:  $ sudo visudo >>> /etc/sudoers: syntax error near line 28 <<< sudo: parse error in /etc/sudoers near line 28 sudo: no valid sudoers sources found, quitting


While flicking through a textbook for beginners I came across the following:     How many biscuits are there? - There's a lot!   I wonder how "there is" can be explained to a student who knows that "biscuits" is a countable noun given in the plural in the sentence.

For example:     There's two options here   or     There are two options here   I hear a lot of people say the first line (or something similar), but isn't that incorrect? Isn't it plural and therefore you should use "there are"?