I am trying to write a python tkinter program that calculates time in seconds of a set number of beats at a certain bpm.  Anyways i am having a hard time using the tkinter enters as float variables.  I am wanting some suggestions on how to make my code work.  I am an beginner programmer so my code is prolly kinda shaky, Thanks.  Here is my code...  window = Tk() window.title( 'Bpm Timeslicer' )   intro = Label(window, text='Enter a Bpm and enter a number of beats,      and the program will calculate sample time in seconds') bpmL = Label(window, text='BPM') bpmIn = Entry(window) beatsL = Label(window, text='Number of beats') beatsIn = Entry(window) timeOut = Label(window, text='Time:')    def run():      bpm = bpmIn.get()     beats = beatsIn.get()     bpm = float(bpm)from tkinter import *      beats = float(beats)     time1 = float(0)     min = 0     perc = 0      perc = beats / bpm     time1 = min * perc      timeOut = Label(window, time1)  btn_run = Button( window, text = 'Run', command=run ) btn_end = Button( window , text = 'Close', command=exit )   intro.pack() bpmL.pack() bpmIn.pack() beatsL.pack() beatsIn.pack() timeOut.pack() btn_run.pack() btn_end.pack()   window.mainloop()

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.


I have been asked to show that for any natural number $n$, $(7n+30)(13n+7)(n+2)$ is divisible by 6. I can show that this function is congruent to $n(n+1)(n+2)$. I noticed that this function is the sequence of tetrahedral numbers multiplied by 6 which already proves it but I have been told by a tutor that introducing a sequence that is not discussed in the course is insufficient. I am not sure if I am able to use induction as the question only asks for me to use congruences to show that it is divisible by 6. I would like to know if this is possible without induction in a way that specifically uses modulo congruence techniques.

If $8q,8q+1,8q+2$ are consecutive positive integers, then prove that at least one among them is a multiple of $3$.  One proof is that by expressing $8q=3m+r$. Is there any other way of doing it without taking $8q=3m+r$?


here is my code which is not working in windows.what should i use in place of fork  import os  print("Process id before forking: {}".format(os.getpid()))  try:     pid = os.fork() except OSError:     exit("Could not create a child process")  if pid == 0:     print("In the child process that has the PID {}".format(os.getpid()))     exit()  print("In the parent process after forking the child {}".format(pid)) finished = os.waitpid(0, 0) print(finished)

How do I implement some logic that will allow me to reproduce on Windows the functionality that I have on Linux with the fork() system call, using Python?  I'm specifically trying to execute a method on the SAPI Com component, while continuing the other logic in the main thread without blocking or waiting.


I was asked the above question in an interview and interviewer is very certain of the answer. But i am not sure. Can anyone help me here?

8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer?


In prehistoric times, dinosaurs were so massive that archeologists wonder how they were not crushed under their own weight.  Could the Earth rotate fast enough to make everything considerably lighter and retain an atmosphere?  Could the slowing of the rotation cause extinction among the larger animals in the future if an asteroid hit the Earth at such angle as to slow its rotation?  Update: This question did not do well here and I have written it here. Both answers were up voted by me.

When dinosaurs roamed the Earth was the Earth rotating faster creating less gravity to allow for their size? How fast could have the Earth spin and be slowed down by an asteroid to the current rotational speed not completely wiping all life out?  How much would 100 kg weigh then?  With the asteroid the opposite direction of the Earth's rotation unlike the moon's hard interior that the asteroid would just punch through the crust into the mantle allowing the Earth not to instantly be affected by the change in rotation. Also it was theorized that the moon was a large piece of the Earth liquid mantle removed by an asteroid.


I have recursively changed owner and group of /var to root:root. I have mistakenly ran following command while standing in /var. I thought I was in /var/www,  sudo chown root:root . R   Now many things are stopped working, my system was fresh, only LAMP was installed. Now what should I do? Reinstall my system or is there any way to change owner and group to default state?  It is Debian 8 with LXDE.

I accidentally changed /var owner/group to my username and then changed it back to root, but not all the /var folders' owners are root, so is there anyway to change back owner/group of files/folders to default state?  Or at least those files/folders that are created by packages?


I have a string (without spaces) which I need to split into a list with items of equal length. I'm aware of the split() method, but as far as I'm aware this only splits via spaces and not via length.  What I want to do is something like this:  string = "abcdefghijklmnopqrstuvwx" string = string.Split(0 - 3) print(string)  >>> ["abcd", "efgh", "ijkl", "mnop", "qrst", "uvwx"]   I have thought about looping through the list but I was wondering if there was a simpler solution?

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


Replacing square brackets is not a problem, but the problem is with replacing commas, replace(",", "") , because it does it with all commas in my table and i need to delete only those which appears because of  Arrays.toString()  System.out.println( Arrays.toString( product ).replace("[", "").replace("]", "").replace(",", ""));   If there is no way of do that, maybe there are other ways to print my array, like string builder...etc? but i am not sure how to use it

While working in a Java app, I recently needed to assemble a comma-delimited list of values to pass to another web service without knowing how many elements there would be in advance. The best I could come up with off the top of my head was something like this:  public String appendWithDelimiter( String original, String addition, String delimiter ) {     if ( original.equals( "" ) ) {         return addition;     } else {         return original + delimiter + addition;     } }  String parameterString = ""; if ( condition ) parameterString = appendWithDelimiter( parameterString, "elementName", "," ); if ( anotherCondition ) parameterString = appendWithDelimiter( parameterString, "anotherElementName", "," );   I realize this isn't particularly efficient, since there are strings being created all over the place, but I was going for clarity more than optimization.  In Ruby, I can do something like this instead, which feels much more elegant:  parameterArray = []; parameterArray << "elementName" if condition; parameterArray << "anotherElementName" if anotherCondition; parameterString = parameterArray.join(",");   But since Java lacks a join command, I couldn't figure out anything equivalent.  So, what's the best way to do this in Java?


When I've already started an application with a normal user account, at some point I may face that the program actually requires an elevated privilege for some operation.  Closing and restarting the program, depending on its design and the operation state, is not always convenient and in some situations it could mean data loss.  Is there a way to grant elevated privileges for an already running program (one that does not have a self-elevating feature built-in) during its run time?  edit note that my user is an Administrator.

Sometimes you may open a program that you want to run as an administrator, but you may already have opened it not as an administrator. Is it possible to elevate the privileges of an already running program in Windows 7 or do I have to close and restart as admin?


I need to prove this inequality by using induction: $(\frac{1}{\sqrt1} + \frac{1}{\sqrt2} + \dots + \frac{1}{\sqrt{n}} > \sqrt{n}$ for $n\geq2$.  $$\sum\limits_{i=1}^n\frac1{\sqrt i}>\sqrt n$$  I easily get by the base case for $n=2$, you get $2 > 1/4$, which is true. Then you make the assumption to be true for $(1/\sqrt1) + (1/\sqrt2) + (1/\sqrt3) +...+ (1/\sqrt n)) > \sqrt n$  And then you have to prove for $(1/\sqrt1) + (1/\sqrt2) + (1/\sqrt3) +...+ (1/\sqrt n ) + (1/\sqrt{n+1}) > \sqrt{n+1} .$  I don't know where to go from here. any help would be appreciated. Thank you.

Proove by the Complete Induction for every $n\in \mathbb{N}, n \geq 1$ $$\frac{1}{\sqrt{1}} + \frac{1}{\sqrt{2}} + \frac{1}{\sqrt{3}} + ... + \frac{1}{\sqrt{n}} > \sqrt{n}$$.  I know only the basis - $\frac{1}{\sqrt{1}} \geq \sqrt{1}$.  But, I dont know how to do the change from the regular induction to the induction of Set theroy(Complete Induction).


How to increase the space between two columns in a multicol?    \documentclass{article}  \usepackage{lipsum} \usepackage{multicol}  \begin{document}  \begin{multicols}{2} \lipsum[1-2] \end{multicols}  \end{document}

I'm using the multicol package for my columns. So far, I have \setlength\columnsep{10pt} in the preamble to set the default column separation. But for one particular page, I'd like to set the columnsep to 30pt.  I wasn't able to get it to work by inserting a new \setlength at the start of the page.  Here's an example:  \documentclass{article} \usepackage{blindtext} \usepackage{multicol} \setlength\columnsep{10pt} % This is the default columnsep for all pages \begin{document}  \begin{multicols*}{2} \blindtext  \newpage \setlength\columnsep{30pt} % I want the columnsep to be wider only on this page. Right now, nothing happens. The default 10pt is still being used. \blindtext \columnbreak \blindtext  \newpage \blindtext  \end{multicols*} \end{document}   Any help would be appreciated.


For some reason the graphics is rendered above the text. I'm using xelatex (with Chinese characters).  The relevant Chinese latex compiled using xelatex is on pastebin as for some reason stackexchange won't let me post some Chinese characters.    It probably has something to do with the trimming being faulty. Any help would be much appreciated.    EDIT:  Removing all the other unnecessary packages, removing sections and substituting the Chinese characters with English:  \documentclass{article} \usepackage[margin=0.5in]{geometry} \usepackage{graphicx}      \begin{document}  AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA \begin{figure}[h!] \includegraphics[trim={4cm 8cm 4cm 5.5cm},clip,height=8cm]{BotnetFamPie} \end{figure}  \end{document}   Screenshot:    Without the trim and clip:

In pdflatex I'm used to clip graphics using something like this:  \includegraphics[trim=14mm 0mm 14mm 0mm,clip,width=1.2cm]{image.jpg}   When I attempt this in XeLaTeX, no clipping occurs and I get a warning:     Package xetex.def Warning: No clipping support in XeTeX yet   It is obvious, that I could clip the image with a separate tool outside TeX, but for several reasons I would like to do this automatically from inside TeX (e.g. when migrating large old documents to XeTeX without messing around with the files)  Two questions:   Is there any workaround I should be aware of to do the clipping automatically during the TeX run? E.g. by replacing \includegraphics by something else (TikZ?) Does anyone know if someone is working on clipping from inside XeTeX? Maybe there is a beta I could try?


I am doing a simple program in python for my class, and I basically have it down except I can't figure out how to make the dollar sign appear right next to the sum without leaving a space. This is my code:  item1 = input("Enter price of first item: $"); item2 = input("Enter price of second item:$"); item3 = input("Enter price of third item: $"); total = (item1 + item2 + item3); print("The total of the three items is:$", total);

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


Whenever I install something I get one of two things   $ sudo apt-get install netflix-desktop   will result in  Reading package lists... Done Building dependency tree  Reading state information... Done E: Unable to locate package netflix-desktop'   or   $ sudo apt-get install -fy    will result in  Errors were encountered while processing: apache2 cups-daemon mysql-server-5.7 bluez cups-core-drivers cups bluez-cups mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   I'm sure that those particular applications are corrupted but I have no idea on how I should remove/replace/repair.   EDIT This is the start of the full output - there's about 140k characters of   .depend.start .depend.boot .depend.stop .depend.start   etc.etc.etc.  $ sudo apt-get install -fy Reading package lists... Done Building dependency tree        Reading state information... Done 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade. 8 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up apache2 (2.4.18-2ubuntu3.4) ... insserv: warning: script 'K20.depend.start' missing LSB tags and overrides insserv: warning: script 'K20.depend.boot' missing LSB tags and overrides insserv: warning: script 'K20.depend.stop' missing LSB tags and overrides insserv: There is a loop between service plymouth and urandom if started insserv:  loop involving service urandom at depth 4 insserv:  loop involving service hwclock at depth 3 insserv: There is a loop between service .depend.start and udev if started insserv:  loop involving service udev at depth 1 insserv: There is a loop at service .depend.start if started insserv: There is a loop at service plymouth if started insserv:  loop involving service networking at depth 6 insserv:  loop involving service mountdevsubfs at depth 3 insserv:  loop involving service mountkernfs at depth 1 insserv: Starting .depend.start depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting .depend.boot depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting .depend.stop depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting .depend.start depends on plymouth and therefore on system facility `$all' which can not be true!

I am seeing  errors while trying to install Inkscapeor install any software for that matter.   When I try to use sudo apt-get install language-pack-en-base it shows the same  .   I also tried sudo dpkg-reconfigure locales and then tried to installInkscape - but it is not working.  abhilash@abhilash-Inspiron-3542:~$ sudo apt-get install inkscape [sudo] password for abhilash:  Reading package lists... Done Building dependency tree        Reading state information... Done The following additional packages will be installed:   gawk libgsl2 libgtkmm-2.4-1v5 libgtkspell0 libimage-magick-perl   libimage-magick-q16-perl libmagick++-6.q16-5v5 libwmf-bin python-numpy   transfig Suggested packages:   gawk-doc pstoedit dia | dia-gnome libsvg-perl libxml-xql-perl   python-uniconvertor ruby gsl-ref-psdoc | gsl-doc-pdf | gsl-doc-info   | gsl-ref-html imagemagick-doc gfortran python-dev python-nose   python-numpy-dbg python-numpy-doc xfig The following NEW packages will be installed:   gawk inkscape libgsl2 libgtkmm-2.4-1v5 libgtkspell0 libimage-magick-perl   libimage-magick-q16-perl libmagick++-6.q16-5v5 libwmf-bin python-numpy   transfig 0 upgraded, 11 newly installed, 0 to remove and 158 not upgraded. 8 not fully installed or removed. Need to get 0 B/16.9 MB of archives. After this operation, 107 MB of additional disk space will be used. Do you want to continue? [Y/n] y Setting up util-linux (2.27.1-6ubuntu3.3) ... insserv: warning: script 'K01runlcactivator' missing LSB tags and overrides insserv: warning: script 'runlcactivator' missing LSB tags and overrides insserv: There is a loop between service plymouth and procps if started insserv:  loop involving service procps at depth 2 insserv:  loop involving service udev at depth 1 insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true!     insserv:  loop involving service networking at depth 4 insserv: There is a loop between service plymouth and urandom if started insserv:  loop involving service urandom at depth 4 insserv:  loop involving service mountdevsubfs at depth 2 insserv: There is a loop at service runlcactivator if started insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: There is a loop between service runlcactivator and dns-clean if started insserv:  loop involving service dns-clean at depth 1 insserv: Starting runlcactivator depends on plymouth and therefore on system facility `$all' which can not be true! insserv: exiting now without changing boot order! update-rc.d: error: insserv rejected the script header dpkg: error processing package util-linux (--configure):  subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing:  util-linux E: Sub-process /usr/bin/dpkg returned an error code (1) abhilash@abhilash-Inspiron-3542:~$    I have been told -      the problem is that you are stuck at the boot sequencing.    I see when I viewed the file [runlcactivator]  Now please suggest how do I "completely purge the program and scripts from /etc/init.d/ and /etc/rc? files." - as is suggested in the answer? What is the command line to do this?   I am not familiar with codes, so if instructions are specific I can just follow them as it is. Thanks for helping!


I wanted to create a Swing GUI , in which there should be a text which in event handling works as a JButton. import javax.swing.*; import java.awt.*; import java.awt.event.*; class Gui implements ActionListener { JFrame jf=new JFrame("Link"); JLabel jl=new JLabel("CLICK HERE"); Gui() { jf.setSize(400,400); jf.setVisible(true); jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE); jf.setLayout(null); Font f=new Font("Arial",) jl.setBounds(50,50,100,50); jf.add(jl); jl.addActionListener(this); } public void actionPerformed(ActionEvent ae) { JOptionPane.showMessageDialoge(null,"Clicked in link"); } public static void main(String arg[]) { new Gui(); } }  How can I create a text into a link in a Java Swing GUI? Please suggest a proper code.

What is the best way to add a hyperlink in a JLabel? I can get the view using html tags, but how to open the browser when the user clicks on it?


I'm trying to run a game which need to be run under a 32-bit prefix (due to component needed).  I succeeded in creating the folder; the problem is as I'm setting up the program POL installed it as default in a automatically-generated wine prefix (64-bit due to my config).  How can I install my game in a pre-existing prefix? Or Maybe did I miss a step and you can choose it during the installation but I did not find it?  I can choose either the 32 or 64 before the installation using POL but then when I try to add components to it I get something like unable to set it in a 64-bit virtual drive.

How do I create a 32-bit Wine prefix on Ubuntu 12.04 64-bit?


I was browsing some questions in Chemistry Stack Exchange. Many of the questions were relevant to me but either they had no answers or outdated ones. So I wanted to start a bounty on them. But this feature is not shown in the app. How can I use it in a mobile app?

(There is an  from , but none for Android, so here goes)    I was happy to see  and wanted to award a bounty. But the SE app for Android doesn't provide a button for adding bounties. Can you please give me a button to add bounty to a post using the app?   Please add this button, using the browser to add the bounty reduces the happiness.


I'm not sure exactly what it's called, but I would like to draw the line after an integral has been "solved," showing limits of integration, like so:     There is a line with a 9 above and 1 below.

I was having some thought about what would be the syntax to make the end point evaluation of derivatives or integrals. Such as making the | with the two end points of evaluation on the top an bottom of the line. Any suggestions would be wonderful.


I need help with a dynamic pivot query. I would like to modify the column name (alias) but I can't get it done in the pivot. Please help. The query itself works perfectly but the username contains the domain\username format. I am trying to drop the "domain\" portion. I cannot control what is in or inserted in the database nor can I make any structure changes. I have tried "replace(x,'domain\','') but again, I can't get it to work in the pivot.  Here is what I have data table:  requestID dateClosed              closedby --------- ----------------------- ----------- 1         2016-06-12 10:34:09.000 DOMAIN\Joe 2         2016-06-12 23:35:09.000 DOMAIN\Bill 3         2016-06-12 08:02:09.000 DOMAIN\Matt 4         2016-06-13 21:46:09.000 DOMAIN\Joe 5         2016-06-13 17:34:09.000 DOMAIN\Bill 6         2016-06-14 16:39:09.000 DOMAIN\Matt 7         2016-06-14 12:38:09.000 DOMAIN\Joe 8         2016-06-14 12:37:09.000 DOMAIN\Bill 9         2016-06-15 11:36:09.000 DOMAIN\Matt 10        2016-06-16 10:35:09.000 DOMAIN\Joe 11        2016-06-13 10:35:09.000 DOMAIN\Bill 12        2016-06-15 21:46:09.000 DOMAIN\Joe 13        2016-06-15 21:47:09.000 DOMAIN\Joe 14        2016-06-15 21:48:09.000 DOMAIN\Joe   Here is my ouput after PIVOT  date                    DOMAIN\Bill DOMAIN\Joe  DOMAIN\Matt ----------------------- ----------- ----------- ----------- 2016-06-12 00:00:00.000 1           1           1 2016-06-13 00:00:00.000 2           1           0 2016-06-14 00:00:00.000 1           1           1 2016-06-15 00:00:00.000 0           3           1 2016-06-16 00:00:00.000 0           1           0   I need to remove the "Domain\" portion from the column alias. Replace() didn't work for me. SQl v2012  Here is my query  --dynamic pivot declare @cols as nvarchar(max),     @query as nvarchar(max)  set @colS = STUFF((SELECT DISTINCT ',' + QUOTENAME(r.closedby)     from MYRequests r     where r.dateclosed > getdate()-30     for XML path(''), type     ).value('.','NVARCHAR(MAX)'),1,1,'')  SET @QUERY = 'select * from (     select      DateAdd(Day, DateDiff(Day, 0, dateclosed), 0) as [date],     closedby     from MyRequests     where DateAdd(Day, DateDiff(Day, 0, dateclosed), 0) > getdate()-30     )     as s PIVOT     (count(closedby) for [closedby] in       ('+ @cols + '))     as PVT '  execute(@query)   Here is sample filler data:  create table MYRequests     ([requestID] smallint,     [dateClosed] datetime,     [closedby] varchar(50));  Insert into MyRequests     ([requestID], [dateclosed], [closedby]) values     (1,'20160612 10:34:09 AM','DOMAIN\Joe'),     (2,'20160612 11:35:09 PM','DOMAIN\Bill'),     (3,'20160612 08:02:09 AM','DOMAIN\Matt'),     (4,'20160613 09:46:09 PM','DOMAIN\Joe'),     (5,'20160613 05:34:09 PM','DOMAIN\Bill'),     (6,'20160614 04:39:09 PM','DOMAIN\Matt'),     (7,'20160614 12:38:09 PM','DOMAIN\Joe'),     (8,'20160614 12:37:09 PM','DOMAIN\Bill'),     (9,'20160615 11:36:09 AM','DOMAIN\Matt'),     (10,'20160616 10:35:09 AM','DOMAIN\Joe'),     (11,'20160613 10:35:09 AM','DOMAIN\Bill'),     (12,'20160615 09:46:09 PM','DOMAIN\Joe'),     (13,'20160615 09:47:09 PM','DOMAIN\Joe'),     (14,'20160615 09:48:09 PM','DOMAIN\Joe')      select * from myrequests   Please help.

I have a table to store StudentID, SubjectID, ObtainedMarks. Now I have to create a pivot table to show studentID and obtainedMarks in different subject. Number of subject may differ. I could generate pivot table for fixed subjectID like    SELECT * FROM (SELECT StudentID, SubjectID, ObtainedMarks from [Exam].[ObtainedMarkEntry]) as InvoiceResult PIVOT (     sum(ObtainedMarks) for [SubjectID] in  ([1],[2],[3],[4]) )as finalResult   This works but problem is 1,2,3 is not static it should come from same table   So I did something like   declare @minvalue int, @maxvalue int declare @myArray varchar(max) set @MyArray=''  select RowID=IDENTITY(int, 1,1), SubjectID into #tempSubject from [Exam].[ObtainedMarkEntry] select * from #tempSubject set @minvalue = (select min(RowID) from #tempSubject) set @maxvalue = (select max(RowID) from #tempSubject) while (@minvalue<=@maxvalue) begin     declare @sid nvarchar(10)     set @sid=(select SubjectID from #tempSubject where RowID=@minvalue)     set @myArray= @myArray + '[' + @sid + '], '      set @minvalue= @minvalue+1 end set @myArray= SUBSTRING(@myArray,0,len(@myArray)) drop table #tempSubject  declare @q as nvarchar(max) SELECT * FROM (SELECT StudentID, SubjectID, ObtainedMarks  from [Exam].[ObtainedMarkEntry]) as InvoiceResult PIVOT (     sum(ObtainedMarks) for [SubjectID] in  (@myArray) )as finalResult   Now I am getting error at in(@myArray) can't I assign variable in this section.


How can I create a site using custom web template using c# and templates name and id in SharePoint 2013 ? I don't want to use web template title.

I want to programmatically create a site using custom web templates in sharepoint 2010.  In 2007 I used to get a   SPWebTemplate template = site.GetCustomWebTemplates(LCID)[number];   and used this SPWebTemplate in  SPWeb newSite = web.Webs.Add(url, title, description, LCID, template, true, false);   This worked quite well for 2007. But in 2010 the site templates are saved into the solution store  SPSite.Solutions   which only returns SPUserSolution objects and not SPWebTemplates.  So my question is: How can I programmatically create sites using the site templates from the solution store.    UPDATE: I tried to use  SPWeb newSite = web.Webs.Add(url, title, desc, LCID, templateName, true, false);   where templateName is a string like '{Template-GUID}#TemplateName', but it still does not work. It throws the following error:  Critical error: File or arguments not valid for site template '{4a2d8952-a0af-49a6-8f55-46a59c8d68a2}#CustomerSiteTemplate'. Parameter name: WebTemplate    Any other ideas how to create a site based on a SPWebTemplate?


I asked something similar and didn't get the clarity I was seeking, so I will be more concise. If I craft a 1st level Pearl of Power at CL 1, and it gets hit with a targeted , what is it's caster level for the check? Is it 1, as that was the chosen CL at time of crafting, or is it 17, the listed CL for a Pearl of Power of any level?

Is an item's Caster Level the Minimum Required Caster Level?  For example a  has a CL of 9th     Aura moderate conjuration; CL 9th   Does that mean a creator has to have a Caster Level of 9?


I got array list of strings, how could I reduce them to hash map  Input: [a, b, a, a, c, x]  Output: {(a: 3), (b: 1), (c: 1), (x: 1)}  PS. I searched for this. I need to do that with reduce not with frequency counting as in other questions, because my question is a simplified real task.

I have an ArrayList, a Collection class of Java, as follows:  ArrayList<String> animals = new ArrayList<String>(); animals.add("bat"); animals.add("owl"); animals.add("bat"); animals.add("bat");   As you can see, the animals ArrayList consists of 3 bat elements and one owl element. I was wondering if there is any API in the Collection framework that returns the number of bat occurrences or if there is another way to determine the number of occurrences.  I found that Google's Collection Multiset does have an API that returns the total number of occurrences of an element. But that is compatible only with JDK 1.5. Our product is currently in JDK 1.6, so I cannot use it.


I am using latest Ubuntu version. I'm having 64-bit system. When I run sudo apt-get update I get the below errors at the end of the result.  ... Get:79 http://us.archive.ubuntu.com precise/universe Translation-en [3,341 kB]  Get:80 http://us.archive.ubuntu.com precise-security/main i386 Packages [848 kB] Ign http://us.archive.ubuntu.com precise/main Translation-en_IN                 Ign http://us.archive.ubuntu.com precise/multiverse Translation-en_IN           Ign http://us.archive.ubuntu.com precise/restricted Translation-en_IN           Ign http://us.archive.ubuntu.com precise/universe Translation-en_IN             Fetched 30.0 MB in 13min 1s (38.4 kB/s)   W: GPG error: http://extras.ubuntu.com precise Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16126D3A3E5C1192 W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead.   I am not able to find the mistake I am making. I am not familiar with this command line. Please someone help me rectifying this.  thanks

I am using Google Chrome 48.0 32-bit. Today when I launched Google Chrome, I got this message:    This computer will soon stop receiving Google Chrome updates because this Linux system will no longer be supported   I thought Ubuntu 14.04 is supported for five years, what's exactly happening here?  And on 64-bit Ubuntu, I get an error from Update Manager and apt-get update:  Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)   Some index files failed to download.   They have been ignored, or old ones used instead.


I've produced a map in QGIS, with various shapefile layers.  I want to share this with a colleague.  If I send him everything, keeping the same file structure, will it open ok on his machine?

In my project, I use a lot of geodata from different directories. Now I want to give the QGIS project to a colleague (eg on a CD).  Is it possible to copy the shapes from different directories automatically to one directory?


my question as the title said, should I install Ubuntu (14.04.2 LTS) now ? Or should I wait for the 15.04 ?  Thanks for answering!

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


I would like to insert the below image in the right of the text. Just as in the below picture:    The image I would like to insert is    The sample code of my LaTex is  % \documentclass{beamer} \usecolortheme{beaver} \usefonttheme{structurebold} \title{Project 1: EM algorithm}  \usepackage{parskip,listings,dsfont,bbm,geometry,parskip,xcolor,latexsym} \usepackage{graphicx,amsmath,amssymb,mathtools,amsthm,array,wrapfig}  \begin{document}    \frame{ \frametitle{Single Imputation by \textbf{ImputeTestData} package}  With \textbf{ImputeTestData} package, method EM is used:  \begin{itemize} \item Execution time: $28.93$ sec \item Estimated bias : $-2.217083e -03$ \item Estimated variance: $2.179828e -07$ \end{itemize}  However, all filled missing values are rounded so we have the same results for both default setting or add prior from complete data.  If we use $waget$ instead $lwaget$, the result is different and better for data set using the prior data.}  \end{document}   Could you please help me insert the picture to the right of the text in LaTex?  Thank you so much!

I can't get my code to do what I want. I'm working in beamer and I want to position my figure on the left side of the frame and the text next to it, but I would like to work with alineas in my text. Here's my latest attempt:  \documentclass{beamer}   \usetheme{Madrid}    \usepackage[dutch]{babel}   \usepackage{curvedarrows}   \usepackage{cutwin}   \usepackage{lipsum}   \usepackage[3D]{movie15}   \def\leq{\leqslant}   \def\geq{\geqslant}     \title{De regel van Horner: \\ Een vleugje geschiedenis}   \date{}    \begin{document}  \addtocounter{framenumber}{-1}    \begin{frame}[plain]     \titlepage   \end{frame}    \begin{frame}          \begin{tabular}{cl}              \includegraphics[height=5cm, width=3.5cm]{horner} & bla bla       *here I want to start a new alinea, so in my second column* bla bla            \end{tabular}       \end{frame}  \end{document}


the irls R function carries out Iteratively Re-weighted Least Squares algorithm (Source: ). One of the argument that can be passed in the irls function is the offset. According to the website above, offset is defined as: "this can be used to specify an a priori known component to be included in the linear predictor during fitting. This should be 0 or a numeric vector of length equal to the number of cases" Which I am not so sure what it means (could be something really simple, but I am not sure). What is the argument offset for in this R function? Thank you,

Does anybody know why offset in a Poisson regression is used? What do you achieve by this?


I locked myself out of my iPhone, I don't know my password... it isn't disabled, but when I try to connect to iTunes I get this message: "To allow access, please respond on iPhone". I can't respond on my iPhone because I cannot get into it! Someone help me please. I've been trying to do this for over 3 hours and nothing is working!

A friend asked me to help her with her old iPhone 4 (she has upgraded to a 7). When I turn it on, it says, "iPhone is disabled" and "connect to iTunes."  When I do so, iTunes reports that it is locked with a passcode, and that I need to type that in to continue. However, the iPhone does not display a keypad or allow any sort of input.  Apple suggests the only solution is a wipe, but this will lose all of her photos.  Can photos be retrieved (at a minimum) from a disabled iPhone 4?


Suppose I have two noisy measurements of a state (e.g. a radar detecting the position of an object). I model each measurement as a normal distribution, and I know the mean and variance of each measurement (each measurement has its own variance). I want to take two of these measurements, and find the expected true state.  Now, I know that the mean of two normal distributions is just the average of the two means. However, I am puzzled by the intuition behind this when I consider my problem.  Below is a plot of two noisy measurements (red and blue), and the average of their means (green):    The red measurement has a mean of 10 and a standard deviation of 20. The blue measurement has a mean of 2 and a standard deviation of 0.1. So, the average of the two means is 6, which is the green line.  But looking at this plot, it seems very strange that the expected state (green) is not much closer to the blue measurement, given that the red measurement is so uncertain and the blue measurement is very certain. So the expected state seems to be completely independent of the uncertainty in each measurement.  If I were to take this to the extreme, then the red measurement could have an infinite standard deviation, and would effectively be a uniform distribution. And the average of the two means would be nowhere near the blue measurement; it would be dominated by the red measurement, even though the red measurement actually contributes nothing due to its infinite uncertainty.  Am I misunderstanding how to fuse two noisy distributions?  Is there a better way to fuse the distributions that would make the average make better use of the measurement uncertainties?  Thanks!

I have a large set of data points of the form (mean, stdev). I wish to reduce this to a single (better) mean, and a (hopefully) smaller standard deviation.  Clearly I could simply compute $\frac{\sum data_{mean}}{N}$, however this does not take in to account the fact that some of the data points are significantly more accurate than others.  To put it simply, I wish to preform a weighted average of these data points, but do not know what the weighting function should be in terms of the standard deviation.


I am trying to change the color of every button EXCEPT the button clicked. This code works if I change it to only the button clicked changing its color. However, when I change the to the desired result I get a java.lang.NullPointerException error. New To Java not sure how to tackle these errors. Thanks. public class Hw2 {      static JButton buttons[] = new JButton[8];     static Random rand = new Random();     public static void main(String[] args) {         //deleted non useful code                  for(JButton button: buttons) {             button = new JButton("Click Me");             button.setBounds(0,0,50,50); //initialize and set bounds                          button.setOpaque(true); //show color and randomly pick             button.setBackground(new Color(rand.nextInt(256),                                            rand.nextInt(256),                                             rand.nextInt(256)));             button.setBorderPainted(false);                          AnotherHandler bh =new AnotherHandler(button); // add event listener             button.addActionListener(bh);                          panel.add(button);         }              }          static class AnotherHandler implements ActionListener{         JButton button;         AnotherHandler(JButton buttonP){             button=buttonP;         }         @Override         public void actionPerformed(ActionEvent e) {             for (JButton but : buttons) {                 but.setBackground(new Color(rand.nextInt(256),                                             rand.nextInt(256),                                              rand.nextInt(256)));             }         }     } }

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 want to call javascript function (on click()) which is inside Iframe  <a onclick="abc();" href=# >Call Function which is inside Iframe </a>  <iframe id=myFrame>    <script>      function abc(){          alert("I am inside Iframe");      }     </script> </iframe>   It will be better if there is solution in JQuery.  Thank you

Basically, I have an iframe embedded in a page and the iframe has some  routines I need to invoke from the parent page.  Now the opposite is quite simple as you only need to call parent.functionName(), but unfortunately, I need exactly the opposite of that.  Please note that my problem is not changing the source  of the iframe, but invoking a function defined in the iframe.


I have an asp.net page containing several Text Boxes and 2 buttons; Search and Reset.  When the user presses the enter key, the search should execute without the user having to click the Search button.  I am using VS 2010 C#.  This is my code below:  <fieldset  >         <legend class="ui-widget-header ui-corner-all">Case Search Criteria</legend>

                           <wuc:CustomLabel ID="lblCaseNumber" runat="Server" AssociatedControlID="txtSearchByCaseNumber" Text="Starting/Exact Case Number:" />             <asp:TextBox ID="txtSearchByCaseNumber" runat="server" />                 <acTkt:FilteredTextBoxExtender ID="ftbCaseNumber" runat="server" FilterType="Custom" FilterMode="ValidChars" ValidChars="1234567890" TargetControlID="txtSearchByCaseNumber" />

                           <wuc:CustomLabel ID="lblCaseNumber2" runat="Server" AssociatedControlID="txtSearchByEndingCaseNumber" Text="Ending Case Number :" />             <asp:TextBox ID="txtSearchByEndingCaseNumber" runat="server" />                 <acTkt:FilteredTextBoxExtender ID="ftbEndingCaseNumber" runat="server" FilterType="Custom" FilterMode="ValidChars" ValidChars="1234567890" TargetControlID="txtSearchByEndingCaseNumber" />

                            <wuc:CustomLabel ID="lblSSN" runat="Server" AssociatedControlID="txtSearchBySSN" Text="Employee SSN:" />             <asp:TextBox ID="txtSearchBySSN" runat="server" />                                                             <wuc:DynamicValidators ID="dvalSSN" runat ="server"  EntityName="SSN"                                   ControlAssociatedID="txtSearchBySSN"                                         MaskType="SSN" IsApplyMask="true" IsRequired="false" />

                            <wuc:CustomLabel ID="lblSearchByFirstName" runat="Server" AssociatedControlID="txtSearchByFirstName" Text="Employee First Name:" />             <asp:TextBox ID="txtSearchByFirstName" runat="server"  MaxLength="100" />

                           <wuc:custombutton id="btnSearch" runat="Server" text="Search" disableonsubmit="true" data-button="true"   />                  <wuc:custombutton id="btnReset" runat="Server" text="Reset"  causesvalidation="false" data-button="true" />
    Thanks.

I have 3 buttons in a form. One of them is the submit button. How can I make it the default button to be clicked when I press the enter key. Is there a property for this?


I am concerned about something. I would like to install a Password manager called , it's a free and open source community maintained version of KeepassX. I am debating whether to use the .AppImage or the .snap package for the installation process found on their downloads page.       I've successfully downloaded and verified the .AppImage package. I thought I remember seeing an article that said that .snap packages are automatically verified when downloaded and installed on your system. Is this true? I understand that .AppImage packages do not require root access to run. Snap packages however do. I also heard that .snap packages are dying and are not very popular since Unity 8 died. Which one is more secure? Does Canonical maintain and review .snap packages? Which one is better in your opinion? I have barely used both of these. I've only downloaded and used a .AppImage and .snap package once so I'm not too familiar or an expert when it comes to these types of packages. I would like to know the difference and pros and cons of these two types of packages security wise. Thanks!

I have been getting this question lately from students and although I have a lot of information to offer, I have not found a source that I can point people to where they can read an update answer (I have found a lot of misinformation and obsolete information). So, some of the questions I have for package formats like snap, appimage, flatpak and others in this evolution of universal packaging systems are:   Who created the package format? What features does it offer? What features are unique to it? (That the others do not yet have) Who supports it? What Distributions use it? What focus does the package have? (For Desktop, Clouds, Mobile, etc..) Which are more actively developed?


Here I have a function sum() of type float that takes in a pointer t of type float and an integer size. It returns the sum of all the elements in the array. Then I create two arrays using that function. One that has the BIG value at the first index and one that has it at the last index. When I return the sums of each of those arrays I get different results. This is my code:  #include <stdlib.h> #include <stdio.h>  #define N     1024 #define SMALL 1.0 #define BIG   100000000.0  float sum(float* t, int size) {        // here I define the function sum()   float s = 0.0;   for (int i = 0; i < size; i++) {     s += t[i];   }   return s; }  int main() {   float tab[N];   for (int i = 0; i < N; i++) {     tab[i] = SMALL;   }    tab[0] = BIG;   float sum1 = sum(tab, N);            // initialize sum1 with the big value at index 0   printf("sum1 = %f\n", sum1);    tab[0] = SMALL;   tab[N-1] = BIG;   float sum2 = sum(tab, N);            // initialize sum2 with the big value at last index   printf("sum2 = %f\n", sum2);    return 0; }   After compiling the code and running it I get the following output:  Sum = 100000000.000000 Sum = 100001024.000000   Why do I get different results even though the arrays have the same elements ( but at different indexes ).

Imagine you have a large array of floating point numbers, of all kinds of sizes. What is the most correct way to calculate the sum, with the least error? For example, when the array looks like this:  [1.0, 1e-10, 1e-10, ... 1e-10.0]   and you add up from left to right with a simple loop, like  sum = 0 numbers.each do |val|     sum += val end   whenever you add up the smaller numbers might fall below the precision threshold so the error gets bigger and bigger. As far as I know the best way is to sort the array and start adding up numbers from lowest to highest, but I am wondering if there is an even better way (faster, more precise)?  EDIT: Thanks for the answer, I now have a working code that perfectly sums up double values in Java. It is a straight port from the Python post of the winning answer. The solution passes all of my unit tests. (A longer but optimized version of this is available here )  /**  * Adds up numbers in an array with perfect precision, and in O(n).  *   * @see http://code.activestate.com/recipes/393090/  */ public class Summarizer {      /**      * Perfectly sums up numbers, without rounding errors (if at all possible).      *       * @param values      *            The values to sum up.      * @return The sum.      */     public static double msum(double... values) {         List<Double> partials = new ArrayList<Double>();         for (double x : values) {             int i = 0;             for (double y : partials) {                 if (Math.abs(x) < Math.abs(y)) {                     double tmp = x;                     x = y;                     y = tmp;                 }                 double hi = x + y;                 double lo = y - (hi - x);                 if (lo != 0.0) {                     partials.set(i, lo);                     ++i;                 }                 x = hi;             }             if (i < partials.size()) {                 partials.set(i, x);                 partials.subList(i + 1, partials.size()).clear();             } else {                 partials.add(x);             }         }         return sum(partials);     }      /**      * Sums up the rest of the partial numbers which cannot be summed up without      * loss of precision.      */     public static double sum(Collection<Double> values) {         double s = 0.0;         for (Double d : values) {             s += d;         }         return s;     } }


I am going to make a rusty nut. Some portion of it is still glossy, but most of them are covered with rust.  Now for rust I have an image. I want to paint normal map, bump map and specular map manually in Blender.   Previously I used insane bump plugins in Gimp to make those maps. But I noticed that using those maps in Blender nodes doesn't look that great. No matter how much I try. So I am planning to draw everything manually in Blender. And it is justified because I might need custom adjustment.  How to draw Normal map, Specular map and bump map manually in Blender?

How can I draw (not bake) normal map over my model, like a texture in texture paint mode? Render cycles.  Thank you in advance!


How to find (as grouped) the directory who is taking all the disk spaces?  # df -h Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        60G   54G  6.4G  90% / devtmpfs        1.4G     0  1.4G   0% /dev tmpfs           1.4G     0  1.4G   0% /dev/shm tmpfs           1.4G  161M  1.3G  12% /run tmpfs           1.4G     0  1.4G   0% /sys/fs/cgroup tmpfs           285M     0  285M   0% /run/user/0   It does not help to see /dev/vda1 is 90%, how to check which directories having the largest disk reserve?  example:  /var/log/httpd    20GB /var/log/pluto    10GB /var/log/syslog    5GB /var/log/tcpdump   1GB /...              restGB

What is the command to find out how much disk space is being used/remaining?


I have a content type called companies In this cck I have an Image field and user can add more than one image  I want to make a form programmatically that will display all images in a grid and under each image a button to delete it  Is there is a way to delete it from the node (this specific image only or I should make node_load to get all fields and then check for all images and node_save the node again)

What's the proper way to programmatically delete one specific field entry for a multi-entry field from one specific entity? (that's specific fields and specific entities, not field types or instances and entity types)  Here's some possibilities I've looked into which don't work:   Loading the entity with entity_load(), setting the field entry to =null or =array(), then saving with field_attach_update(). It's the closest I've found but it leaves a zombie null field entry in the database which shows up as a blank row on forms until the form is saved and hook_field_is_empty() can kick in (hook_field_is_empty() is configured such that =null or =array() will flag as empty). Loading the entity with entity_load(), unsetting the field entry by key, then saving with field_attach_update(). This seems to do nothing - it seems that Drupal interprets the entry not being there as a sign to not modify it. (strangely I also sometimes get maximum query time expiration timeouts when trying this approach) field_attach_delete() - this is much too blunt: it kills all fields for the entity field_purge_data() - better, but still too blunt: it kills all entries of the field, not specific entries   So to clarify, I've got code that finds (and loads) an entity which has a field that has multiple entries, and finds a specific entry on that field that needs to be removed. I want to remove that entry completely, without touching any other entries or any other fields on the entity.


A few months ago I received the following notification on Google Webmaster for a website I look after.     Unnatural links to your site—impacts links Google has detected a   pattern of unnatural artificial, deceptive, or manipulative links   pointing to pages on this site. Some links may be outside of the   webmaster’s control, so for this incident we are taking targeted   action on the unnatural links instead of on the site’s ranking as a   whole. Learn more.   The question here is, should we actively attempt to  these links given that the action is seemingly targeted to just a bunch of keywords? I've downloaded the inbound links sample from Google Webmaster and so far I've been through the disavow and  process 6 times, each taking 2-3 weeks only to be supplied just 2 more links that Google don't approve of. At this rate it will take me the rest of my natural life to cleanup all these spammy links!  It seems disavowing is futile as they haven't implemented broad actions against the website as a whole and (from what I can gather) have already nullified the value of those offending links. Under the quoted statement above however is a reconsideration request button that seems to imply I should be actively doing something here?  UPDATE 14th October --  I have since created a small .NET application that you can feed the CSV sample links file into from Google Webmaster. What this tool does is crawl all the links and looks for specific linking patterns as per some configurable match strings.  I realised that many of the links that Google are taking issue with were created by a rogue SEO firm we hired several years ago. All the links are appended with 1 of 5 different descriptions. The application I built uses some regexes to isolate any link sources with these matching appendages and automatically builds the disavow txt file.  In the end it had to come down to an algorithm as manually disavowing links on this scale would take weeks!  I will post the app here once I've cleaned it up.

Google is out with much awaited feature. But out of 100's of domains giving backlink to my site I want to simply find the spammy ones and disavow domain-wise using "domain:" feature.  I'm looking for a tool wherein I'll feed list of domains and then it should tell me a domain's spammy-ness in a scale.  Currently I'm trying Netpeak Checker.  Any suggestions?


Would a particular type of polysaccharide be better at coagulation than another? For example, would the presence of cellulose in a bio-coagulant be more effective at coagulation than the presence of starch or glycogen? I would like to know as I am doing an experiment about it and since nobody has done this before, I don't know whether having a higher concentration or ratio of a certain polysaccharide in a bio-coagulant compared to other polysaccharides will have an effect on coagulation efficiency?

In an experiment, I used plantain peels (with a very high starch content and very little cellulose) and grapefruit peels (with a very high cellulose content and no starch) as coagulants (ensuring that I used equal masses of each peel) to improve the turbidity of water contaminated with wood chips and kaolin. Although the grapefruit was able to remove turbidity, I found that the plantain worked better. By the way, the same amount of cellulose was present (50%) in the grapefruit peels as starch present (50%) in the plantain peels. However, I can't work out why a coagulant concentrated with starch is more effective at lowering the turbidity of water compared to a coagulant concentrated with cellulose? Essentially, I don't know why starch helps more than cellulose with coagulation. Help would be much appreciated :)  If you use this link, you will find the method I used under "Preparation of Bio-flocculant" to turn the peels into coagulants: akademiabaru.com/doc/progeeV1_P47_56.pdf. To summarize, I dried them in an oven and turned them into very fine powder.  Search this up and you'll find previous experiments using polysaccharides (i.e. starch and cellulose) for coagulation: Chapter 2 Mechanistic Insight into the Coagulation Efficiency of Polysaccharide-based Coagulants


I have rather unfortunately managed to remove the majority of my start page tiles from Windows 8.1 after running CCleaner.  The tiles on the home page were almost entirely removed, and less than half of the tiles present on the Apps page are still there.  This is the first time I have used it on a Windows 8 machine, and I was not expecting this behaviour. It looks as though I have enabled some options that have cleared down all the existing shortcuts, but this can be resovled manually.  After running SFC, a number of applications have returned to the Apps page, many are still missing. Most notably, Visual Studio 2013 and the Microsoft SQL administrator and associated programs. I cannot attach these to the home page.  I need to find a way to force windows to scan through all my installed programs, and to rebuild the tiles on the Apps page for any EXEs found.  I know that these applications are still installed, as I can launch them from their installation directory. For my most used applications, I have re-pinned them manually, but there are a number of other programs which are used less frequently via the text search from the start page, and without tiles on the Apps page, the Search does not find the application.

I had problems launching windows 8, every time I start the PC, it hands in the start menu, and I can't do anything (Open desktop or any other application), so I booted in linux, and i cleared the windows 8 registry Rundirectory, and i cleared theC:\ProgramData\Microsoft\Windows\Start Menu`, well it helped, and i can now open windows, but all the application and tiles in windows start menu, are disappeared, i can't even do a search in the start menu, and i couldn't do a restore cause i had no restore point :(.   any idea how to fix this?


Question: let $\Gamma$ be the unit circle $\{e^{i\theta}| 0\leq \theta \leq 2\pi\}$. Calculate the integral $\int_{\Gamma} \frac{e^{kz}}{z} dz$ and hence evaluate the integral $\int_{0}^\pi e^{k \cos \theta} \cos(k \sin \theta) d\theta$.  My answer: The first one is easy to evaluate you simply look at the function $\frac{e^{kz}}{z}$ and notice that it has a simple pole at 0 and the residue is 1 so the integral is $  2\pi i$. The solution to the next part evades me. So clearly we have to convert the first integral into a form of the second but how?

I am trying to solve a question from my complex analysis test that I didn't manage to do during the test in order to practice for the next exam.  The problem is as follows:      Calculate $\int_{0}^{\pi}e^{a\cos(\theta)}\cos(a\sin(\theta))\,  d\theta$   Where the method used should be using complex analysis.  What I tried:  I have noticed $$e^{a\cos(\theta)}\cos(a\sin(\theta))=Re(e^{acis(\theta)})$$ where $cis(\theta):=\cos(\theta)+i\sin(\theta)$  Hence the integral is $$\int_{0}^{\pi}Re(e^{a(\cos(\theta)+i\sin(\theta))}\, d\theta$$  I did the change of variables: $z=ae^{i\theta}$, $dz=iae^{i\theta}\, d\theta\implies d\theta=\frac{dz}{iz}$.  When $\theta=0$ we have that $z=a$ and when $\theta=\pi$ we get $z=-ia$   and so I wrote that the integral is  $$\int_{a}^{-ia}Re(e^{z})\,\frac{dz}{iz}$$  Now I don't understand how I got $e^{z}$, which seems wrong to me, but what the checker actually marked in red and wrote a question mark by were the integration limits: $a,-ia$ .  Can someone please help me understand what was wrong with what the integration limits, and how to actually solve this integral ?   Any help is greatly appreciated!


Here is what I get  Ign http://ppa.launchpad.net trusty InRelease Ign http://archive.ubuntu.com trusty InRelease Ign http://ppa.launchpad.net trusty InRelease Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B] Get:2 http://dl.google.com stable InRelease [1.487 B] Get:3 http://archive.ubuntu.com trusty Release [58,5 kB] 42% [2 InRelease gpgv 1.487 B] [3 Release 23,0 kB/58,5 kB 39%]  [Waiting for heaSplitting up /var/lib/apt/lists/partial/dl.google.com_linux_chrome_deb_dists_stabIgn http://dl.google.com stable InRelease        E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)   I tried to remove chrome and reinstall it again but the problem does not seem to be from there.

I can use my mobile broadband to access Internet with Firefox but when I want to install any package from terminal or make 'apt-get update' command I got the following error:  got 'NODATA' (does the network require authentication?)   apt-get update output:  Get:1 extras.ubuntu.com trusty InRelease [213 B] 98% [1 InRelease gpgv 213 B] [Connecting to archive.ubuntu.com] Splitting up /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_trusty_InRelease into data Ign extras.ubuntu.com trusty InRelease E: GPG error: extras.ubuntu.com trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)    output of `cat /var/lib/apt/lists/partial/extras.ubuntu.com_ubuntu_dists_trusty_InRelease  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>404</title> <meta http-equiv="Cache-Control" content="no-cache"/> </head> <body> <p> Not Found </p> </body> </html>   output of wget:  wget -O - http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease  --2014-06-01 09:23:35--  http://extras.ubuntu.com/ubuntu/dists/trusty/InRelease Resolving extras.ubuntu.com (extras.ubuntu.com)... 91.189.92.152 Connecting to extras.ubuntu.com (extras.ubuntu.com)|91.189.92.152|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 213 [text/html] Saving to: ‘STDOUT’   0% [                                       ] 0           --.-K/s              <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>404</title> <meta http-equiv="Cache-Control" content="no-cache"/> </head> <body> <p> Not Found  </p> </body> </html>


I play in 1.5.2, and right now I'm working on using commands. I see that there's a /testfor command when I write /help, but what does this even mean? What is it and how do I use it? Edit: This question is not a copy: 1.5.2 commands could very possibly be different than the latest version.

I found the /testfor command today in Minecraft, but when I use it in a command block it says     Usage: /testfor <player>   and when I do that it then says     /testfor must be used by command blocks with an analog output.   What does that mean and how can I use the command?


Find the eigenvectors and eigenvalues for this linear operator  $A:M_{n\times n }\mapsto M_{n\times n}$ defined with $A(X)=X^{T}$  How does the matrix of this linear operator look like?

Define $T : M_{n×n}(\mathbb{R}) → M_{n×n}(\mathbb{R})$ by $T(A) := A^t$.   I know that the corresponding eigenvalues are $+1$ and $-1$, but I'm not sure how to find the eigenvectors of this transformation, in the case of a $2\times 2$ matrix it's simple, but not in the general case.


I've noticed lately that my son's photo's are appearing in my album.  We've both had iPhones and shared my ID for years now so i can only assume something has changed within the software. We both have iPhone 7's.   How can i make it so we can't see each others photos but can still have our own and back them up to the cloud as we used to?

My daughter and I both have apple phones and up until about 1 month ago she was always logged in on her device using my apple id.    I am trying to find out does this give her access to make any changes on my phone (not necessarily on purpose or even knowingly).  Specifically, under contacts, where my name is listed, right under my last name was listed a nick name that I didn't put there.  Could she have some how on her phone updated my either her name and it transferred over to my name because of the sharing issue?  Or if she was talking to Siri and she asked Siri to call her something, could that have updated to both her name and to mine?    I'm trying to figure out how it got there when I didn't put it there, or how to avoid that problem in the future.


Earth isnt a perfect but has bulges because of its spinning. What actually creates the bulges? Is the same reason that makes a liquid have v shape in a rotational tube?

I made a naive calculation of the height of Earth's equatorial bulge and found that it should be about 10km.  The true height is about 20km.  My question is: why is there this discrepancy?  The calculation I did was to imagine placing a ball down on the spinning Earth.  Wherever I place it, it shouldn't move.  The gravitational potential per unit mass of the ball is $hg$, with $h$ the height above the pole-to-center distance of the Earth (call that $R$) and $g$ gravitational acceleration.  Gravity wants to pull the ball towards the poles, away from the bulge.  It is balanced by the centrifugal force, which has a potential $-\omega^2R^2\sin^2\theta/2$ per unit mass, with $\omega$ Earth's angular velocity and $\theta$ the angle from the north pole.  This comes taking what in an inertial frame would be the ball's kinetic energy and making it a potential in the accelerating frame.  If the ball doesn't move, this potential must be constant, so  $$U = hg - \frac{(\omega R \sin\theta)^2}{2} = \textrm{const}$$  we might as well let the constant be zero and write  $$h = \frac{(\omega R \sin\theta)^2}{2g}$$  For the Earth,   $$R = 6.4*10^6m$$  $$\omega = \frac{2\pi}{24\ \textrm{hours}}$$  $$g = 9.8\ m/s^2$$  This gives 10.8 km when $\theta = \pi/2$, so the equatorial bulge should be roughly that large.    , the Earth is 42.72 km wider in diameter at the equator than pole-to-pole, meaning the bulge is about twice as large as I expected.  (Wikipedia cites diameter; I estimated radius.)  Where is the extra bulge coming from?  My simple calculation uses $g$ and $R$ as constants, but neither varies more than a percent or so.  It's true the Earth does not have uniform density, but it's not clear to me how this should affect the calculation, so long as the density distribution is still spherically-symmetric (or nearly so).  (Wikipedia also includes , without derivation, that agrees with mine.)


I got an idea to build a lizardfolk sun soul monk for some cool RP with praise the sun, sunrays from reptile jaws and stuff. But then I see bite can be used as unarmed attack. From this point I have several questions about Martial Arts and Bite's interaction:   Can I use Bite instead of any unarmed attack? For example two additional bites in flurry of blows.  How does it work with Martial Arts dice? Will bite dice be similar to MA  dice? If yes, its means both sides (downgrade to d4 on low levels and get  d8 later)? How does this affect the Hungry Jaws Trait? Can I bite with Dex? Is it possible to use Bite as a bonus action?

I'm gonna be playing my very first D&D game pretty soon and I'm really excited. I'm playing a Lizardfolk monk, and I just finished my character sheet, but I was confused about something.  We're starting out at level 2. At level 2, the monk gets the Martial Arts feature, which lets them use a bonus action to make an unarmed strike. However, the Lizardfolk has a bite attack that can be used to make an unarmed strike that does 1d6 + Strength mod piercing damage.  Am I allowed to use my Bite as my lizardfolk monk's bonus-action unarmed strike? Or is that not allowed, since that's some different ability or something?


We have that $R$ is a UFD. Now, I'm trying to show that any prime ideal $P$ of $R[x]$ that intersects $R$ trivially is a principal ideal.   I'm trying to show that P has height $1.$ Is this true that P has height $1$? But I cannot prove this. If that is the case, then I can easily prove that P is in fact a principal ideal. Any suggestions would be highly appreciated. Thank you.

Let $R$ be an integrally closed domain. Let $P$ be a prime ideal of $R[x]$ with the property that $P\cap R=\left\{ 0\right\} $ and $P$ contains a monic polynomial. Prove that $P$ is principal.   Help me a hint to prove.  Thank for any insight.


I currently have my laptop running on windows 7. I plan on adding XP and keeping permanently disconnected from the internet to run some old games/programs (My pc doesn't have much ram so vm's are not good). I found a guide on dual booting but when I boot from the XP CD I immediately get a BSOD I am able to get into win 7 easily but not into the installer. I also wish to add ubuntu any advice would be appreciated.

Recently I got a virus on my computer that completely wiped the hdd. I am trying to install windows xp to this: DV7-636bus laptop from HP, and I get the following BSOD:  A problem...............and Then Select Safe Mode.  Technical Information:  ***STOP: 0x0000007E (0xC0000005,0xF73B9D66,0xF78D1EA0,0xF78D1B9C)  acpi.sys - Address F72B9D66 base at F73AE000, Datestamp 480252b1   Does any one know of a solution for this?


Hi I have a problem which drives me crazy. I installed Ubuntu 18.04 recently and when I read some PDF documents and want to switch from one to another I always have to click 3 times: 1. rightclick on document viewer 2. "all the windows" 3. the PDF I want to select. This is horrible. I have already tried different settings in dconf but nothing worked. I want it to be like in Windows 10 where you hover over an icon and it gives you a preview of the windows. PLEASE HELP! :)

I would like to switch between windows using the scroll wheel of the mouse over each app icon in Ubuntu dock, as we could do in Unity, but apparently this doesn't work in Ubuntu 17.10. Is there a way to enable it?   Related:


Every thing is matter So In which state of matter fire will be considered? I haven't get it's proper answer.

Im confused about fire. The way I see it :   Heat creates (kinetic) energy in mass and this creates stronger vibrations of atoms. When those vibrations are strong enough the electrons interact stronger due to electromagnetic forces. This causes the electrons to fly away. This is the creation of a plasma and the direction of most electrons is the direction of the flame. the shape and heat of the flame depends mainly on the amount of electrons and their velocity ( apart from the source of heat and the considered gas and solid material) the electrons move freely ( but not random ) in the flame. there is a chemical reaction going on that usually produces smoke or such. the entropy increases in all the above 6 steps and the process is repeated. the electromagnetic energy is converted into kinetic energy of the electron and conductivity in the plasma (flame). the moving electrons create an electromagnetic field.   That is more or less how I see it. What steps are ok ?  And the main question , why is there light involved ?  I mean why cant we just have kinetic energy of the electrons and a changing magnetic field ? Why are there photons ? If the electrons are in a high energy state why cant they just move faster instead of emitting a photon ???  Why is the light usually visible ? is that because of our structure of air ?  If the light is an electromagnetic wave why does the flame go up ? does that imply all electromagnetic waves go up ?? But electromagnetic waves are not influanced by gravity or buoyancy are they ??  What is the final destiny of the electrons and photons if the heat is gone ??  I am puzzled by this.


There are hundreds of url on my website  showing status Crawled - currently not indexed and Discovered - Currently not indexed. After submitted several times and waiting for months, these urls still not getting indexed by Google. Content on the site is unique. How to fix this problem.

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


I noticed on  page all of the gravatars are loaded from imgur using http instead of https, is there a reason for this or is it a bug?

Stack Overflow has HTTPS in some places! However, this breaks most existing image links. Could those be made protocol-relative, or react to the requesting protocol, or just always use HTTPS?  The same applies to .sponsor-tag-img.


Using Ubuntu 14.04, was trying to set simply JAVA PATH (that is where the saga began) now my system seems totally corrupted.   I initially edited the PATH in etc/environment (that is where my PATH seems to be) and also added a line export JAVA_HOME.   PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/jdk1.8.0_111/bin" export JAVA_HOME=/opt/jdk1.8.0_111    This seemed to work till it did not. It did not work seemingly because of some old versions of JVM that were conflicting/confusing.   Based on forum wisdom I edited .bashrc  export JAVA_HOME= /opt/jdk1.8.0_111 export  PATH= $PATH:$JAVA_HOME/bin    Probably there was some syntax error (or something).   Now I am getting all kinds of errors when I open a terminal:  bash: export: `=': not a valid identifier bash: export: `/opt/jdk1.8.0_111': not a valid identifier bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/jdk1.8.0_111/bin:/opt/jdk1.8.0_111/bin': not a valid identifier   Note: Duplicate jdk in path - this likely is because PATH both in .bashrc and environment.  Now I am unable to find/edit either etc/environment or .bashrc  @ubuntu:~$ sudo gedit /etc/environment bash: sudo: No such file or directory @ubuntu:~$ sudo gedit ~/.bashrc bash: sudo: No such file or directory   Fixed this above issue Thanks @muru   My core problem seemingly is caused by multiple java versions but I have only JAVA version  $ sudo update-alternatives --config java update-alternatives: error: no alternatives for java   My program is not finding JAVA_HOME  $ sudo service dse start Java executable not found (hint: set JAVA_HOME)     $ echo JAVA_HOME JAVA_HOME ~$ java -version java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14)   Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)  What do I do now?

I'm trying to setup cocos2dx in Ubuntu 14.04 LTS but after setting the environmental variables (in .bashrc) I start getting this error:  bash: export: dev/cocos2d-x-3.2/tools/cocos2d-console/bin': not a valid identifier  bash: export:/home/john/android': not a valid identifier  bash: export: dev/android-ndk-r10b': not a valid identifier  bash: export:dev/adt-bundle-linux-x86_64-20140702/sdk': not a valid identifier   And I don't know what to do to fix it.


I have a Student class that extends a Person class. I do not have an equals method inside of my super class, just the two in my subclass as shown in the image. I am trying to understand the runtime behavior of my 2nd, 3rd and 4th print statements. Statement 1 calls the equals method that takes a student parameter, which makes sense as both objects being compared are declared type Student. However, statement 2 calls the equals method which takes a person parameter while the last 2 statements call the equals method in the Object class. Can somebody explain why is this so when Java is dynamically typed and the actual runtime object is always a Student. Apologies for any errors in advance! I'm new here and new to Java. I'm not too concerned with the output of each method just which one is being called and why. public boolean equals(Student s) {     System.out.println("inside student equals");     return true; }  public boolean equals(Person p) {     System.out.println("inside person equals");     return false; }  public static void main(String[] args) {     Student s1 = new Student("John", "1", 10, 1.0, 10);     Student s2 = new Student("John", "1", 10, 1.0, 10);      Person s3 = new Student("John", "1", 10, 1.0, 10);     Person s4 = new Student("John", "1", 10, 1.0, 10);      System.out.println(s1.equals(s2)); // 1     System.out.println(s1.equals(s3)); // 2      System.out.println(s3.equals(s4)); // 3     System.out.println(s3.equals(s1)); // 4 }   Output:     inside student equals     true     inside person equals     false     false     false

I ran into an interesting (and very frustrating) issue with the equals() method today which caused what I thought to be a well tested class to crash and cause a bug that took me a very long time to track down.   Just for completeness, I wasn't using an IDE or debugger - just good old fashioned text editor and System.out's. Time was very limited and it was a school project.  Anyhow -   I was developing a basic shopping cart which could contain an ArrayList of Book objects. In order to implement the addBook(), removeBook(), and hasBook() methods of the Cart, I wanted to check if the Book already existed in the Cart. So off I go -  public boolean equals(Book b) {     ... // More code here - null checks     if (b.getID() == this.getID()) return true;     else return false; }   All works fine in testing. I create 6 objects and fill them with data. Do many adds, removes, has() operations on the Cart and everything works fine. I read that you can either have equals(TYPE var) or equals(Object o) { (CAST) var } but assumed that since it was working, it didn't matter too much.  Then I ran into a problem - I needed to create a Book object with only the ID in it from within the Book class. No other data would be entered into it. Basically the following:  public boolean hasBook(int i) {     Book b = new Book(i);     return hasBook(b); }  public boolean hasBook(Book b) {     // .. more code here     return this.books.contains(b); }   All of a sudden, the equals(Book b) method no longer works. This took a VERY long time to track down without a good debugger and assuming the Cart class was properly tested and correct. After swaapping the equals() method to the following:  public boolean equals(Object o) {     Book b = (Book) o;     ... // The rest goes here    }   Everything began to work again. Is there a reason the method decided not to take the Book parameter even though it clearly  was  a Book object? The only difference seemed to be it was instantiated from within the same class, and only filled with one data member. I'm very very confused. Please, shed some light?


Let $f: \mathbb{R} \rightarrow \mathbb{R}$ be some Lipschitz function, and assume $x(t)$ satisfies $$x'(t) \leq f(x(t))\ {\rm with }\ x(0) = a$$ Let $y(t)$ be the unique solution to $y'(t) = f(y(t))$ with $y(0)=a$, does it then hold that $$x(t) \leq y(t)$$ for all $t\geq 0$?

Here is something I'm trying to prove:     Conjecture: Suppose $f'(x) \leq \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.   It definitely seems like it should be true, and I don't think we even need continuity of $\phi$.  (Edit: a user has correctly pointed out that we should require $\phi$ be locally Lipshitz in the first variable, uniformly with respect to the second variable. Let's add that assumption.)   I can prove it in the case that the inequality is strict. I'll place my proof below the fold. How can I extend it to weak inequality?  If it's wrong, I'd love to see a counterexample. A reference is fine; I have the book by Teschl, for example.  A similar question with stronger assumptions was asked .     Proposition: Suppose Suppose $f'(x) < \phi(f(x), x)$ and $f(a)=\alpha$. Suppose $g'(x)=\phi(g(x),x)$ and $g(a)\geq \alpha$. Then $f(x)\leq  g(x)\,\,\forall x$.  Proof: Suppose not. Suppose WLOG there is a $b>a$ such that $f(b)>g(b)$. Let $c:=\inf \{x>a:f(x)>g(x)\}$. By definition of the derivative we have $f'(c)\geq g'(c)$, a contradiction, since $f'(c)<\phi(f(c),c)=\phi(g(c),c))=g'(c)$.


How do I solve equations of the form $kx=e^x$ for $x$?  E.g. how would I solve $3x=e^x$?    I have tried using logs  $$ \begin{align*} 3x&=e^x \\ \ln3x&=x\\ \ln3+\ln{x}&=x\\ x-\ln{x}&=\ln3 \end{align*} $$  but it doesn't look like this is going to get me anywhere.

If I want to solve the equation $4x = e^x$, is there a way to solve for $x$ without graphing and looking for intersection?


If $n>1$, can $2^n-1$ be a power of $n$? I have tried some modular arithmetic but there is probably an easy solution that I am missing.

Here is a problem which i have not been able to do for quite sometime.   For $n \geq 2$, show that $n \nmid 2^{n}-1$.   I have thought of proving this in two ways: One by using induction which didn't actually work. Next by Fermat's little theorem we have $2^{p-1} \equiv 1 \ (\text{mod} \ p)$, which actually says that for $p \mid 2^{p}-2$. But i couldn't proceed more than this. Any ideas by which i can actually solve the problem?


With the auth-user-pass filename option is it possible to create a plain text file with username and passphrase.  Is it possible to have the username and passphrase directly in the client.conf?

I'm setting up OpenVPN on PfSense 2.0, and now i wonder if should use the "auth-user-pass" option, set an passphrase on the openssl keys or both.  Both require an extra password beside of the valid certificat, but i don't know if one method is more secure than the other.  It seems that only the "auth-user-pass" method is directly supported in the PfSense web-interface, so that using a passhrase would mean an extra step (adding the passphrase with the openssl command) for each certificate.


If $x$ is in the open interval (0,1) and so is $y$, prove that $$x^y+y^x>1$$  A direct two-variable application of maxima and minima seems difficult.

Find the minimum value for $x^x$ for $x$ a positive real number If $x$ and $y$ are positive real numbers, show that $y^x + x^y > 1$


I would like to enable repeated audible alerts of new SMS messages on an iPhone 6.  Specifically, I want the alert to be repeated indefinitely until I read the message.  This is because it is inconvenient for me to carry my phone with me around the house, but it is important for me to hear an alert when I return -- perhaps an hour or later -- to the room in which my phone is stored.

One of my family members texts me at night when they are having nightmares. I want to know when they text me at 4 am instead of sleeping through it.  Is there a way to make text notifications keep going off until read?


I have a Windows Server 2008 R2 DC and inside this I have 10 Windows Server 2008 Standard Edition SP2. If I understand correctly, I can run as many OS as possible, but how do I activate these OSEs?  thanks

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


I have upgraded a Macbook 500GB to a 128GB SSD.  MS-Office 2011 detected the change and the licensing failed.  I would like to avoid this problem in the future if at all possible.  I would like to upgrade a 128GB Macbook air to 1TB: is it possible to create a 128GB partition to let Office think that it is on a 128GB drive and not bork-up the license?  If yes, how is it this done?  I am seeking to avoid dealing with licensing keys if at all possible and simply upgrade the SSD

I had to restore my iMac from a Time Machine backup.  Everything seemed fine until I tried to start Office 2011 and it is asking me to re-enter my product key. I am trying to locate my key (I believe I downloaded this version originally and it should be in my email but I can't find it)  I tried a program that is supposed to "find the keys for products installed on your computer" (Mac Product Key Finder) and it found my very old Office 2008 key, but not 2011.  I am surprised that if I had a totally working install before recovering from back-up that this wasn't restored as well - do I have any options to find it hiding somewhere on my drive?  Note: The recovery was after a hard drive was replaced by the Apple store - if that makes a difference, so this is a new internal drive.


There is no single place where SO users can check the requirements necessary to nominate oneself to a moderator elections. There is a formal description of the requirements:  But I think they should be summarized somewhere together in a more human-friendly way (i don't mean a programmer).  Reputation should be greater than 3000  Should have all of the following badges:    Civic Duty Strunk & White Deputy Convention Yearling  Did I miss something?

The  says that there is a moderator election occurring.   How does the election work and how can I get involved?


So I came across some strange behaviour in python :  >>> 2+1 is 3 True >>> 2000+1 is 2001 False   It doesn't use the correct logic when large integers are used, why is this?

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


Me and my husband applied for Greece visa 15 days ago, and we got rejected.  Reason:   The information submitted regarding the justification for the purpose and conditions of the intended stay was not reliable.  Your intention to leave the territory of the member states before the expiry of the visa could not be ascertained.    We got Schengen visa in the past, and UK visa as well.  What should we do?   And if we want to reapply for visa, should we apply at the Greek embassy or another embassy in the Schengen catagory?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I need to remove a Schlage double-cylinder deadbolt from our front door. Problem is, there is no visible way to remove it. There is a hole on one side and a pin with no head on the right. This deadbolt does not have caps covering screws not same as another user's post  I've tried this and that, but nothing worked. I've enclosed a picture of lock (hole on left and pin on right)    The only person who might have know anything is no longer with us, any ideas with how to remove deadbolt without destroying door would be appreciated.

Does anyone know how to remove this dead bolt that has no screw heads to use a screw driver? Here's a picture below.


:     Under President Donald Trump, the federal government has banned non-citizens from coronavirus-hit regions entry, but US citizens are allowed back into the country after a two-week quarantine.   Does the US government publish a list of from where non-citizens are banned entry?  If yes, where can I find such a list?  I found a , but this appears aimed at advising US citizens where not to travel.  The entry ban is not (currently) mentioned on the .  I don't find it at  or  pages either.   linked from  hasn't been updated since 2020-03-02 (nine days ago) and may not be accurate (at least it clearly contradicts the BBC News report).  The IATA list does not answer my question because it's not official information from the US government, and actually not even sourced to them.  It also appears to only relate to , and thus be limited to flights.

This community wiki explains the current restrictions by the United States of America on the entry of individuals who may pose a risk of transmission of the SARS-Cov2, the virus which causes the Covid-19 disease.


I have been reading The Dark Elf trilogy and one sentence got my attention, and I don't know what grammar structure is behind the sentence which justifies its grammatical correctness. The sentence is:  "Where, in ages past, there had been an empty cavern of roughly shaped stalactites and stalagmites now stands artistry."  I do understand the meaning of "stands artistry" means the cavern now looks good, but I can't search other similar usage of adding a noun after the verb "stand".

I need your opinion about the word order in the following sentence: “In her garden grows a cherry-tree.“? Is it grammatically acceptable?


I thought this would have been asked before but it seems not.  I don't understand how f-stops are numbered. From what I read, the lower the f-stop number, the larger the aperture. That is, f/2 is larger than f/22.  This seems odd to me. The maximum aperture width is (at least theoretically) infinite, while the minimum is 0 (i.e. the lens is completely closed and not letting in any light).   The way the numbering system is set up, it allows for infinitely tiny apertures but a limit on how large they can be (i.e. I guess the largest is f/0)  Can someone clarify why the aperture is numbered in this way?

What does f-stop mean? Is it the same thing when people say "2 stops" for example?


Ok I have looked at similar questions but it didn't seem to help mine, but everyone's code is different and I am also a beginner at Python coding. Can someone help me figure this out so I can know how to deal with this next time it pops up?           def run(self):                while True:                       c, a = self.sock.accept()                       cThread = threading.Thread(target=self.handler, args=(c,a))                       cThread.daemon = True                       cThread.start()                       self.connections.append(c)                       print(self.connections)   The error I get point to: def run(self):   exactly how it prints in the terminal.  edit: I have changed the screwed up part of the code as I didn't notice it till people pointed it out. Now it looks as it does in my laptop. But the problem still persists.

When I compile the Python code below, I get      IndentationError: unindent does not match any outer indentation level     import sys  def Factorial(n): # Return factorial     result = 1     for i in range (1,n):         result = result * i     print "factorial is ",result     return result   Why?


In a shell script, there are the following variables: datestamp=$(date '+%Y-%m-%d_T%H-%M-%S') datestamp_pretty=$(date '+%m/%d/%Y at %I:%M:%S %p')  The first one is used as part of the output filename while the second one is used to display a nicely readable date and time in the contents of the file.  Since these are created separately, the seconds can be off slightly.  Is there a way to create a single date variable and then format it two different ways?  If so, how is this done?

Let me explain you the problem   $ date +%c -d "$d" Tue 31 Dec 2013 01:13:06 PM CET $ date +'Today is %F' -d "$d" Today is 2013-12-31   This solution corresponds to current date.  But I have one variable which stores date other than current date  $Prev_date="Wed Dec 25 06:35:02 EST 2013"    I am looking for solution to read this date as 2013-12-25 and store it in a variable.  I have tried this:  a=`date --date=$Prev_date '+%y/%m/d'` echo $a   It's giving this error:  date: illegal option -- date=Wed usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff]


I have a topic which is difficult to discuss effectively, because I lack the terminology I need to discuss it or even look it up on Google, so my specific question is  What's the CS word which describes a type of computer system defined below?  I am happy to describe the specific question and believe it is hard to predetermine if it has a specific answer. My question is about computing machine classification. I know of some classifications which include "TTL", "temporal logic", "state machine", "push-down automaton" and "Turing machine". The question came up in a discussion about the multimedia environment . The documentation describes it as "a programming environment", but I'm not sure it really is. So as not to get into an argument about whether or not vvvv qualifies as a programming environment, or not, let's first define a computing-system of the type I seek a definition for, it's:  A computing system which maps a set of input-parameters to a set of output-parameters. For example: In such a system as vvvv you can take a mouse X-coordinate as input and map it to a pitch control, or do that and also take the mouse Y-coordinate and map it to a volume control.  You can also have more complex input and output arrangements, for example taking a potentiometer input and mapping it to a texture scale coordinate so it scales along with the pot rotation, you could add a timer input and map it to the texture Z-rotation so it also rotates over time and you could take that same timer and pipe it into a sine-phase which you then map into the texture X and Y scale, the result of which would be a shape whose size can be changed by changing the potentiometer state and which rotates and pulsates as time progresses.  In sum, the system takes in an arbitrary variety of real input states, usually from sensors, and maps them via an arbitrary variety of functions to arbitrary output end-states. Multiple inputs are mapped via arbitrary functions to multiple outputs. So my question is: To which sort of system classification or computing paradigm does such a thing belong?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


What's the difference between "died from", "died by" and "died of" in the following examples?  died of an old age died by poison died from hypertension

Is there a difference between those expressions: "Die from cancer" or "Die of cancer"? Are they both correct?


After reading and being inspired by,  and after some thought, I still don't have an answer to this.  Does every theorem with a true proof have a proof by contradiction?

Are there some proofs that can only be shown by contradiction or can everything that can be shown by contradiction also be shown without contradiction? What are the advantages/disadvantages of proving by contradiction?  As an aside, how is proving by contradiction viewed in general by 'advanced' mathematicians. Is it a bit of an 'easy way out' when it comes to trying to show something or is it perfectly fine? I ask because one of our tutors said something to that effect and said that he isn't fond of proof by contradiction.


I'm training a neural network but the training loss doesn't decrease. How can I fix this?  I'm not asking about overfitting or regularization. I'm asking about how to solve the problem where my network's performance doesn't improve on the training set.    This question is intentionally general so that other questions about how to train a neural network can be closed as a duplicate of this one, with the attitude that "if you give a man a fish you feed him for a day, but if you teach a man to fish, you can feed him for the rest of his life." See this Meta thread for a discussion:   If your neural network does not generalize well, see:


I was wondering if I made a metal material and then made a metal scratch material instead of just placing one onto of the other could I some how paint the scratches on there? so to put it simply how do I paint an already made material onto another material?

I try to use two texture in the same material.This material is for a jacket, and one texture containing the default leather material texture, and the other someting like a decorative stripes. My question is, how to blend the two textures together in the same output. I tried the "Mix" node with not too much success.