VisualForce Page displaying ID from Soql query instead of field value

I am running a soql query to obtain the value of a specific field from a custom object and it is returning the ID of the record on the visualforce page instead of the field value that I need it to return, the specific query I am having issues with is the Names query on the very bottom. If anyone has any ideas why it's returning the ID of the record instead of the specific field value please let me know.   patient_name__c is the field name that I need to obtain the value from and lead__c is a custom object that we have created.       public without sharing class LeadAlertController {     public integer leads {get;set;}     public integer overleads {get;set;}     public List<lead__c> Names {get;set;}         public LeadAlertController() {         leads = [select count() from lead__c where lead_status__c=:'Not Attempted'];         overleads=[select count() from lead__c where lead_status__c=:'Not Attempted' AND x10MinAlert__c=:true];         Names = [select patient_name__c from lead__c where lead_status__c=:'Not Attempted'];       } }   Here is my VF Page  <apex:page controller="LeadAlertController" showHeader="false" sidebar="false" standardStylesheets="false">  <meta http-equiv="refresh" content="10"/>

Number of Hot Leads

Number of Hot Leads Over 10 Minutes

List of Names

{!Leads}

{!OverLeads}

{!Names}

  <apex:outputPanel rendered="{!if(OverLeads>0,true,false)}">     <audio src="/resource/alert" type="audio/mp3" autoPlay="true">     </audio> </apex:outputPanel>


i have installed ubuntu on a partition and then i went to windows 7 and installed "easybcd" software to make grub as default loader and i also selected skip boot menu or something like that. From then on when i try to boot windows 7 from grub my system restarts and continues loading from grub. My windows boot loader menu is missing.  i have attached a picture which clearly shows i have windows 7 on a partition.Please help ![


My file is encoded in UTF-8, all characters work fine it except "é"   I have tried several solutions but I always get this character � instead (and only for few words) :   Here is an example of the few option I have tried :   $auteur= utf8_decode("Aurélie ABBĀSĀBĀD");   $commAuteur = mb_convert_encoding($auteur, "HTML-ENTITIES", 'UTF-8');   I added utf8_decode to be sure I'm going from ISO-8859-1 to utf-8, then I tried also this :   $commAuteur  = iconv('UTF-8', 'ISO-8859-1//TRANSLIT//IGNORE', $auteur);   I eventually also tried this :    $commAuteur = htmlentities($auteur);   None of all these options worked correctly, and I don't understand how some é are displayed normally and others have this issue, im out of solutions any suggestions ?


SQL Stored Procedure for using IN clause with multiple values

If you have two table Employee and Department.   tblEmp - EmpID, EmpName,DeptID are the fields tblDepartment - DeptID,DeptName are the fields   Employee and Department table have the foreign key relation.  SELECT * FROM tblEmp e INNER JOIN tblDepartment d on d.DeptID = e.DeptID WHERE d.DeptID IN ('1','2')    How to write stored procedure for above statement? The department id values in where clause IN statement are dynamic (1,2) or (1,2,3) what ever I will pass them dynamically.


Infinite product $\prod_k (1-z/a_k)(1-z/b_k)^{-1}$ converges uniformly on compacts of$\{\mathbb Im z>0\}$ and is Herglotz

Hi everyone I find the following exercise of infinite product functions.I'd stuck in this exercise.     Let $\{a_k\}$ and $\{b_k\}$ sequences of positive real numbers such that $b_k<a_k<b_{k+1}$ for all $k$ in $\mathbb N$. Prove that the infinite product $\prod_k (1-z/a_k)(1-z/b_k)^{-1}$ converges uniformly on compacts of $\mathbb C_+:=\{z:\mathbb{Im}z>0\}$ and the function $f(z)=\prod_k (1-z/a_k)(1-z/b_k)^{-1}$ is Herglotz.   Let $K$ a compact set in $\mathbb C_+$ in order to show that the infinite product converges uniformly on $K$ it will suffices to show that $\sum_k  [(1-z/a_k)(1-z/b_k)^{-1}-1]$ converges absolutely and uniformly on $K$.   \begin{align*}[(1-z/a_k)(1-z/b_k)^{-1}-1]=\frac{z}{b_k-z}\left(1-\frac{b_k}{a_k}\right) \tag{1}\end{align*}   Since $d=d(K,\mathbb C_+^c)>0$ this is a lower bound for $|b_k-z|$ and so for the denominator of (1) in norm. The $z$ in the numerator is bounded by some $M>0$ on $K$, since $K$ is compact and the identity function is continuous. Then   \begin{align*}|[(1-z/a_k)(1-z/b_k)^{-1}-1]|\le \frac{M}{d}\left(1-\frac{b_k}{a_k}\right) \tag{2}\end{align*}  But from here I'm stuck. I'd appreciate if someone can help me I didn't know how to use the form in which the numbers $\{a_k\}$ and $\{b_k\}$ are defined.


How can I write an Android app in Python?

I want to write an Android app in Python, something along the lines of converting a .py file to an APK.


How do I reliably get the file name of the current background picture?

Latest Lion update broke a simple Geeklet osascript that used System Events to lookup of Background picture names.  Running the associated command from the terminal returns the same name, every time, even though the picture is changing every minute.  The code below worked for the primary display on my two headed Mac until this last update:  osascript -e 'tell application "System Events" to get value of (property list item "LastName" of property list item "default" of property list item "Background" of property list file ((path to preferences as Unicode text) & "com.apple.desktop.plist"))'   The secondary display has a hard-coded id where "default" goes;  I've used the numeric IDs, everything I can think of.  What is particularly annoying is a dump using just 'property list item "Background' in the above script shows the new file names with the appropriate "LastName".  But running the script above always returns the same two names, the initial files shown in the Desktop/Screen Saver preferences.  I'm not an AppleScript or System Events/plist guru, and any help would be appreciated.  --UPDATE--   and some experimentation with the "defaults" command led to the following (less than ideal due to the embedded ids, but...) workaround:  osascript -e 'tell application "System Events" to get value of (property list item "LastName" of property list item "722492885" of property list item "" of property list item "spaces" of property list item "Background" of property list file ((path to preferences as Unicode text) &amp; "com.apple.desktop.plist"))'   I'm certainly open to more elegant solutions but they must reflect the changing filename with "Random" set in Desktop Preferences.  I'd even like to see a more readable version of what is posted above - all one line.  I'm sure there's better ways to lay this out!


Can I use a valid UAE entry permit on an expired passport?

I applied for a Dubai visa using my old passport and have received the entry permit, sent to me through my sponsor as a .jpg file.  This will be my first visit to Dubai, and the entry permit will be converted to a long-term visa upon my arrival.  However, as I will be staying in Dubai for more than 6 months, while my old passport is barely valid for the next 6 months, I used the opportunity to renew my passport to an electronic passport, which means that the passport number on my entry permit is different from the one on my new passport.  Can I go through immigration without any problem as long as I bring both my new and old passports?


I am new to PyQGIS. I have a Geodatabase that contains feature classes. I am trying to get those feature classes into PyQGIS but how do I loop a Geodatabase?


Short Story-Experiment to hack metabolism via implant, patient escapes using keyboard to hack himself

Not sure about more specifics, patient might have been voluntary or forced, but he hides a keyboard to connect into himself when alone and hacks himself to enable escape.  Implant control autonomous systems, and control metabolism, make himself stronger, etc.  Ends up escaping and never recovered by the facility later, using his implant for his own benefit.  The patient might have been overweight computer geek at the start, but the implant help him lose the fat and get into super physical shape.


I am new to Beamer and LaTeX itself. Right now, I want to create a simple slide with an image on the right and text and the sidebar (using the Hannover theme) on the left. I cannot figure out how to do that. Any suggestions?


What is the justification for the method of images in electrostatics?

The  is a well-known and very useful tool for solving problems in electrostatics.  Unfortunately, when I was taught this method, it was presented simply as an algorithm. No real physical justification was given for its usage, and there was a complete absence of rigorous mathematics. The method has always been a little hazy to me since.  If someone could give a rigorous first-principles derivation of this method from Maxwell's equations (perhaps simply Coulomb's law?), it would be most appreciated.


SharePoint 2013 Document Library - Open pdf in New Tab

I am using the code snippet below to ensure pdf files in a SharePoint 2013 document library open in a new tab. This code works fine until files in the document library are grouped. Can someone please help tweak the code so I can ensure that pdf files in a 'grouped' library also open in new tabs? <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>     <script type="text/javascript">         $(function () {             $("a[href$='.pdf']").removeAttr("onclick");             $("a[href$='.pdf']").removeAttr("onmousedown");             $("a[href$='.pdf']").attr("target", "_blank");                });     </script>  Please note that I am specifically looking for a code snippet that will ensure pdf documents will open in a new tab when the items in the document library are grouped. The code I have is already working for pdf documents in non-grouped libraries. Thanks


Why does gradient descent work faster with ReLU compared to using with Signoid?

As far as I understand, Signoid function is used for mapping the outputs of neural network to the values between 0 and 1. Why is using rectified linear unit(ReLU) as activation function in deep neural networks, works faster? Can you please explain the mathematical concept behind it?


I would like to see the ways that you prove that $$\sum_{n\ge0}\frac{(-1)^n}{(2n+1)^3}=\frac{\pi^3}{32}.$$All methods are welcome.   My Proof:  We start by breaking up the sum as  $$S=\sum_{n\ge0}\frac{(-1)^n}{(2n+1)^3}=\sum_{n\ge0}\frac1{(4n+1)^3}-\sum_{n\ge0}\frac1{(4n+3)^3}$$ and seeing that this can be expressed in terms of the polygamma function: $$S=\frac1{2^7}\left[\psi_2\left(\frac34\right)-\psi_2\left(\frac14\right)\right].$$ Then using $$\psi_s(z)=\int_0^1\frac{t^{z-1}}{t-1}\ln^s(t)dt$$ we have  $$S=\frac{1}{2^7}\int_0^1\frac{\ln^2(x)}{x-1}(x^{-1/4}-x^{-3/4})dx.$$ Then taking advantage of $x\mapsto 1/x$,  $$S=\frac1{2^7}\int_1^\infty \frac{\ln^2(x)}{1-x}\cdot\frac{1-x^{1/2}}{x^{3/4}}dx.$$ Then $x\mapsto x^4$ cleans this up quite nicely: $$S=\frac12\int_1^\infty \frac{1-x^2}{1-x^4}\ln^2(x)dx=\frac12\int_1^\infty \frac{\ln^2(x)}{x^2+1}dx.$$ Then we use a little symmetry: $$S=\frac14\int_0^\infty \frac{\ln^2(x)}{x^2+1}dx.$$ Finally, we use $x\mapsto\tan x$: $$S=\frac14\int_0^{\pi/2}\ln^2(\tan x)dx.$$ We immediately recognize this as  $$\int_0^{\pi/2}\ln^2(\tan x)dx=\left(\frac{\partial}{\partial a}\right)^2\frac{\Gamma(\frac{1+a}2)\Gamma(\frac{1-a}{2})}2\bigg|_{a=0}$$ but the Gamma reflection formula gives this as  $$\frac\pi2\left(\frac{\partial}{\partial a}\right)^2\frac{1}{\cos\frac{\pi a}{2}}\bigg|_{a=0}=\frac{\pi^3}{8},$$ which provides our result.


How to remove index list from another list in python?

I have two long lists. I basically want to remove elements from this list that do not match a condtion. For example,  list_1=['a', 'b', 'c', 'd']  list_2=['1', 'e', '1', 'e']   List one and two correspond to each other. Now I would like to remove certain elements from list one that do not match my condition. I have to make sure that I remove the corresponding elements from list 2 and the order does not mess up.  So I created a for loop that goes through list 1 and stores all the indices of elements that have to be removed.   Let’s say:  index_list = ['1', '3']   Basically, I need to make sure I remove b and d from list 1 and e and e from list 2. How do I do this?   I tried:  del (list_1 [i] for i in index_list)]  del (list_2 [i] for i in index_list)]   But I get an error that indices has to be a list, not list. I also tried:  list_1.remove[i]  list_2.remove[i]   But this does not work either. I tried creating another loop:  for e, in (list_1):      for i, in (index_list):          if e == i:              del list_1(i)  for j, in (list_2):      for i, in (index_list):          if j == i:              del list_2(i)   But this does not work either. It gives me an error that e and j are not global names.


Applications Not Reopening After Restart

I have Windows 10 1809 Enterprise. When I restart Windows, the applications that were open are closed after restarting. Weren't they supposed to reopen automatically after 1709?


Spoilers on Area 51 Discussions slightly visible

Spoiler formatting was used on the question ""  and it isn't completely hidden.    it looks like the text is colored assuming a grey background.  I can see how this could be an issue if it is used on other sites and the spoiler isn't exactly functioning the way it should be.


Suppose $\gcd(\deg(f),\deg (g))=1$. Show that $g(x)$ is irreducible in $k(\alpha)[X]$.

This is an assignment. There are two related (I think) problems. Please solve one of them and I will try to solve the other.   Let $\alpha, \beta $ be algebraic over $k$ whose irreducible polynomials are $f(x), g(x)$. Suppose $\gcd(\deg(f),\deg(g))=1$. Show that $g(x)$ is irreducible in $k(\alpha)[X]$. $f(x) \in k[x]$ is irreducible with degree $n$ and let $[K:k]=m$, where $(n,m)=1$. Show that $f$ is irreducible in $K[x]$.


I'm building a 45 drives (backblaze) storage pod for use with Windows 2012 R2 Storage spaces.  Spec is 2xE5-2620 v2 cpus, 32 GB ram, 3xLSI 9201-16i cards, 9x1 TB SATA  SSDs, and 36x4TB HGST ultrastar SATA drives.  Assuming a 50/50 read/write, the raw numbers from the drives clocks in at 840,000 IOPS.  The LSI cards can handle 400k+ iops per card.  Assuming I put the drives in a 3 way mirror I'll have 48 TB of magnetic storage, using the SSD's as tiered storage.  What would be the bottleneck on such a system?  Would it be RAM or cpu or LSI card or the drives themselves?  Would we see anything close to 50% of that theoretical max in iops?


I would like to have a page listing all the questions I marked as favourite, same as the .  Also, I think the desktop version, the star, is much more intuitive and easier to find. Thanks!


not able to boot up with the key lock on

Since installing the latest version have had to hit the key lock key to use the keypad.  How can I boot up with the key lock on?   Without not having to hit the key lock key every time?


How can I know from the terminal or something whether my hardware supports CUDA?


How to show eigenvalues of any rotation matrix of $3 \times 3$ are $\{ 1, e^{i\theta}, e^{-i\theta}\}$

Eigenvalues of any rotation matrix of $3 \times 3$ are $\{ 1, e^{i\theta}, e^{-i\theta}\}$ where $\theta$ is the rotation angle, and corresponding eigenvectors are ${a,I,J}$ which are rotation axis and circular points for the plane orthogonal to $a$ respectively. In a 2-dimensional projective plane $\Bbb P^2$, $I,J$ can be written as $$I=[1,i,0]^T,J=[1,-i,0]^T$$ To my understanding, $Ra=a$ accounts for eigenvalue 1 and corresponding eigenvector $a$, but I cannot figure out other cases. Can anyone give a brief proof?  Original problem comes from R.Hartley & A.Zisserman  at page 628.


Can a PS Plus subscription be used for two profiles?

My brother and I got a PS4. we created two separate profiles and found out that for online gaming, PS plus is required.   We can buy a PS Plus subscription for a year but not sure if that subscription will be for both of us? Both accounts have their own PSN accounts.   Can I also transfer a profile from one PSN account to another one?


Simplifying Large Bases with large Exponents

I'm told to find:  $105 308^{7125} \pmod {11}$  I'm not exactly sure how to go about calculating this. I know that I could split the exponent into multiples of it, for instance.  $7125 = 7 * 10 * 10 * 10 * \cdots $ whatever else  As such: $105308^{7(10)(etc..)}$  But even then the base number is too big to be multiplied to get an actual answer on a calculator, any ideas?


I am interested why processes are grouped additionally while having already a PPID and PID. What's the advantage of process groups?


Closed form for a pair of continued fractions

What is $1+\cfrac{1}{2+\cfrac{1}{3+\cfrac{1}{4+\cdots}}}$ ?  What is $1+\cfrac{2}{1+\cfrac{3}{1+\cdots}}$ ?  It does bear some resemblance to the continued fraction for $e$, which is $2+\cfrac{2}{2+\cfrac{3}{3+\cfrac{4}{4+\cdots}}}$.   Another thing I was wondering: can all transcendental numbers be expressed as infinite continued fractions containing only rational numbers? Of course for almost all transcendental numbers there does not exist any method to determine all the numerators and denominators.


Can I see how many duplicates there are of a post? I.e. how many posts have been labelled as duplicate because of this post? If so, how? And can I also get a list of these duplicated posts?


How can I remove Ubuntu and reinstall a fresh Ubuntu 15.04 to my computer?

I don't really know what I'm doing, and don't want to get this wrong.   I've made a backup of everything I want to keep on an external hard drive, and wish to do a clean install of Ubuntu 15.04 from a completely ghosted system. I do not have a partition, I only have the Ubuntu OS.   Does anyone have any information regarding what I must do?   I have no problem removing everything off my computer and restarting from scratch. I cannot update to newer kernels due to various issues and I am having a few other problems with my computer that I would rather just reinstall instead of fix. Thanks.


A knight with rusty armour and a girl who talks to animals

This is an English YA fantasy novel. It's certainly at least 20 years old and likely more.  The setting is fairly standard medieval fantasy. The protagonist is an ugly girl who has been enslaved by a witch. In her time doing domestic chores she has learned to talk to some of the animals around the house. Eventually she escapes, taking the animals with her - I believe there are four, give or take a couple. One is definitely a fish. She meets up with a knight who has been cursed by the same witch to have armour that will always be rusty. They go on a quest together, with spoiler results that I will add only if necessary.


Determining the Direction of Eigenvectors in PCA

I'm using R to get the principal components for several datasets.  An example result, using prcomp yields:         PC1        PC2 X1 -0.7071068 -0.7071068 X2 -0.7071068  0.7071068   I'm then using the first principal component, from each dataset, as an input into another model (well, I plan to).  The problem is that, for interpretability, the direction of the first principal component matters. This is because I'll be multiplying my data by the components of the first eigenvector, and the direction changes the final result. (This result I also need to report).  If I get updated data, and retrain PCA, it's possible that the prcomp result could be:         PC1        PC2 X1 0.7071068 -0.7071068 X2 0.7071068  0.7071068   And if I multiply by the first eigenvector, the result will be the additive inverse. I could just take the absolute value of the components of the first eigenvector, but this feels wrong... and also, I'm not sure about extending it to cases with more than 2 components.  (I know that if the first principal component was (0.7071068, 0.7071068), mathematically, the result would be the same; most variance explained along that line since eigenvectors multiplied by scalars are still eigenvectors.)  I'm curious if anyone has come across a similar problem, or if there is a technique for dealing with such issues?  For now, I am manually changing the direction of the first eigenvector on a case by case basis, if needed.  Any suggestions appreciated :)


SEO Rewrite , URI Without .php Extension To file

I have website with this output Link :  https://domain1.net/estates.php?estname=XXXX&location=YYYYY   I want change it to :  https://domain1.net/XXXXX/YYYYY   I try it with following rewrite rule :  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)/([^/]*)/?$ /estates.php?estname=$1&location=$2 [L]   or  RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^-]*)/([^-]*)/?$ /estates.php?estname=$1&location=$2 [L]   but result not work fins , means when test it site design break down and pic and CSS element not loading .


Add points at specific gps coordinates in qgis

I created a layer in order to draw points with the azimut and distance plugin. IT didnt work at all. There was not even 1 point created. I followed the tutorial here:   I entered the gps data in decimal format as suggested in the tutorial. There is no draw button. No points are drawn. The layer is in active mode.   Are there any other options to draw a few points using their coordinates?


How create an exponential equation with points? (natural exponential)

How do I make exponential equation with points?  Here are my points:  x = 0, y = 0 x = 1, y = 4.75000 x = 2, y = 9.26250 x = 3, y = 13.54937 x = 4, y = 17.62191   this is same as   x = 0, y = 0 x = 1, y = (0 + 5) * 0.95  x = 2, y = ((5 * 0.95) + 5) * 0.95 x = 3, y = (((5 * 0.95) + 5) * 0.95 + 5)) * 0.95 x = 4, y = ((((5 * 0.95) + 5) * 0.95 + 5)) * 0.95 + 5) ) 0.95   as x value increase by 1, y value is added by 5 and multiplied by 0.95 i tried to make an equation for this but i couldn't  also i tried to use natural exponential but the initial value is 0 so it didn't work  please help me


Probably a very basic question here, I want to change the draw order of a shapefile in QGIS, how can this be done?  As you can see in the picture below, only the "10" layer is shown, the others are below it... However, since this is a depth map of Skagerrak, I would like the other layers to show up on top of it.


Can't find the name of wireless interface after installing Ubuntu 20.04

I'm following  in attampt to connect my laptop to WIFI after installing Ubuntu 20.04 LTS. However, I run iwconfig in the terminal and it only returns: lo        no wireless extensions. enp9s0    no wireless extensions.  So something probably went wrong in the installation. What could it be? And how can I fix it?  $ ip ad  1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000     link/loopback 00:00:00:00:00:00:00 brd 00:00:00:00:00:00     inet 127.0.0.1/8 scope host lo        valid_lft forever preferred_lft forever     inet6 ::1/128 scope host        valid_lft forever preferred_lft forever 2: enp9s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000     link/ether 20:1a:06:aa:34:56 brd ff:ff:ff:ff:ff:ff  $ lspci  00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Experess x16 Controller (rev 06) 00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) 00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06) 00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05) 00:16.0 Communication controller: Interl Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05) 00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05) 00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #1 (rev d5) 00:1c.1 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #2 (rev d5) 00:1c.2 PCI bridge: Intel Corporation 8 Series/C220 Chipset Family PCI Express Root Port #3 (rev d5) 00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05) 00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05) 00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05) 00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05) 01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Jet PRO [Radeon R5 M230 / R7 M260DX / Radeon 520 Mobile] 08:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01) 09:00.0 Ethernet controller: Qualcomm Atheros QCA8172 Fast Ethernet (rev 10)


imgur.com is blocked at work because it is seen as an entertainment focus social media

, Stack Exchange use Imgur to handle pictures. If I personally have no problem with Imgur so far, some workplaces can have. Mine for example... Why a company would block it? Imgur is an online image sharing community and can be see as a complete social network like facebook, tumblr or twitter. Also, you can easily find NSFW content on Imgur...  I am not sure what could be a solution. Proxy, VPN, or else can be strictly forbidden. Two ideas:  Use another DNS from Imgur  See with Imgur to use another url. For example, http://i.stack.imgur.com/VB5JX.png could be http://i.stack.progur.com/VB5JX.png or http://i.stack.imgurpro.com/VB5JX.png. This move the problem to the side of Imgur.  Switch from Imgur to another solution  It could be self-hosted or another more "professional" hoster. I am sure that if you come to use Imgur that because they offers a lot of benefits. So not really a solution...  I welcome any other ideas.


I want to schedule my script for last Saturday of every month. I have come up with the below:  45 23 22-28 * *  test $(date +\%u) -eq 6 && echo "4th Saturday"  && sh  /folder/script.sh    Is this correct or I need to change it? I can't test it right now as it will be invoked only on last saturday. Please advise.  I have the below for last sunday of every month but i can't understand much of it. The first part gives 24 which is sunday and after -eq gives 7 which i don't know what it means:  00 17  * * 0 [ $(cal -s | tail -2 | awk '{print $1}') -eq $(date | awk '{print $3}') ] && /folder/script.sh   Can i modify the above to get last saturday?  With Romeo's help I was help to come up with the below answer:  00 17 * * 6 [ $(cal -s | tail -2 | awk '{print $7}') -eq $(date | awk '{print $3}') ] && /folder/script.sh


How to run Macbook Pro retina on native resolution?

I have Macbook Pro 13.3 inches Retina display model. The max resolution am able to use is 1440X900. And default is even less. Why Macbook pro retina doesn't work in the native resolution?  Is there any specific reason for the same?


How to get the list latest entries from the database table for list of values for the specific column?

I have a database table where there is a column hostname and few other columns. in hostname, there are many instances of rows with same hostnames.  Ex. 192.0.0.1 has 40 entries and 192.0.0.2 has 35 entries and so on.  Is it possible to get the list of latest entries for each hostname? meaning in the result i should get  one latest for 192.0.0.1 and one latest for  192.0.0.2 and so on. I tried with SELECT host,cluster,region,service    FROM system  WHERE host IN ("171.33.64.158","171.33.64.159")    ORDER BY id DESC LIMIT 1;   but the output contains only one row which is probably the first row of the entire result. Can anyone please help me in this requirement? Thanks, Swapnil


null pointer exception in finding username on facebook

I am trying to automate login on facebook via selenium 3 and getting Null pointer exception for username field. I tried finding the webelement by "id" and "xpath" (you can see in commented code below ), it works when manually search in DOM but getting exception when run via automation code.  Below is my code :      public class LoginClass {      static WebDriver driver;      /*@FindBy(xpath =              "//form[@id='login_form']/table/tbody/tr[2]/td/input[@id='email']")     public WebElement Username;*/      /*@FindBy(css = "input[id=email]")         public WebElement Username;*/         @FindBy(id = "email")       public WebElement Username;              @FindBy(xpath =            "//form[@id='login_form']/table/tbody/tr[2]/td[2]/input[@id='pass']")             public WebElement Password;            @FindBy(id='pass']                       public WebElement Password;            @FindBy(id = "loginbutton")          public WebElement Submit;      void Login() throws InterruptedException     {         System.out.println("Enter Username Please: ");         Scanner scan1 = new Scanner(System.in);         String User = scan1.next();         System.out.println("Enter Password Please: ");         Scanner scan2 = new Scanner(System.in);         String Pass = scan1.next();                Map<String, Object> chromeoptions = new HashMap<String, Object>();         chromeoptions.put("binary", "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe");         DesiredCapabilities capabilities = DesiredCapabilities.chrome();         capabilities.setCapability(ChromeOptions.CAPABILITY, chromeoptions);         ChromeOptions options = new ChromeOptions();         System.setProperty("webdriver.chrome.driver", "A:\\chromedriver.exe");          driver = new ChromeDriver();         driver.get("https://www.facebook.com");         Thread.sleep(5000);          Username.clear();         Username.sendKeys(User);          Password.clear();         Password.sendKeys(Pass);          Submit.click();       }      public static void main(String args[]) throws InterruptedException     {          LoginClass lc = new LoginClass();         lc.Login();       }     }   But I am getting below error :   org.openqa.selenium.remote.DesiredCapabilities chrome INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()` Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 43346 Only local connections are allowed. Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code. [1570871808.414][WARNING]: Timed out connecting to Chrome, retrying... Oct 12, 2019 2:16:50 AM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C Exception in thread "main" java.lang.NullPointerException     at facebookLogin.LoginClass.Login(LoginClass.java:56)     at facebookLogin.LoginClass.main(LoginClass.java:71)   Not really sure what I am doing wrong, I have tried finding username by multiple ways like Id, xpath, name etc but getting null pointer exception  Please help


I found a different question asking, "" which led to a  explaining how to setup a public site to expose a REST API:   Create your REST API in Apex as normal Create a public site Configure the public user to have access to the Apex class and any other sObjects   I followed the directions and have a publicly available site, but when I do a GET to the URL the site returns a HTTP 503 error page. My understanding is that shouldn't even be routed through the VF handler.  Webservice code:  @RestResource(urlMapping='/helloWorld/*') global class RestWebservice {    @HttpGet   global static String helloWorld(){     return 'HelloWorld';   }  }   URL being queried: https://chale1-developer-edition.na14.force.com/services/apexrest/helloWorld  I have tried:   Turning on debug logs for the public site user, but that didn't help as no logs recorded the error.  Verified no redirects are configured With and without a header for Accept: application/json Tried on two different dev orgs, on different instances   Answers to questions:   I have not built any apps in this org, nor are there any installed packages, so there are no namespaces Trying /services/apexrest/helloWord/blah returned the same response Most of the raw response is just HTML. The headers have content-type of text/html, X-Powered-By: Salesforce.com ApexPages, P3P: CP="CUR OTR STA", cache-control, and nothing else of note   Eventually I would like to have a webhook use this API which is why it needs to be public. What else could cause the service to return a 503?


How to whitelist an URL in Privoxy (with a little regexp)

how can i whitelist these URLs in Privoxy?  http://foo.org/user/10000/track?page=1 http://foo.org/user/10000/track?page=2 http://foo.org/user/10000/track?page=3 http://foo.org/user/10000/track?page=4 ...   I don't want to whitelist "foo.org" i just need to whitelist these specific url's. the "page=NUMBER" where NUMBER=1..99999999 [so it's a big number, i don't know exactly how much] What do i need to write in the "user.action" file? :\


What is the value of real number n to the power of i?

More specifically, what is $e^i$ (exact value)? Can I use regular exponent rules for imaginary numbers? Do regular exponent rules apply to both (like a complex number)?


windows explorer file search not working

When I search for files in windows explorer, it does not find any files ("No items match your search.") event though I can see the files in the directory.  For example, searching for "*.h" finds nothing.  Used to work just fine.  Windows-7 Pro 64-bit


Notepad doesn't open files created by Gedit?

I'm using c/c++ compiler on Ubuntu 14.04 and I've typed all the programs using Gedit text editor.  But the problem is that now I need to open them in Windows 8 with Notepad, but when I tried to open .c files that are created in Ubuntu in Notepad they are displaying like a paragraph but not line by line.  So I need the programs to be displayed line by line as in Gedit . The only method I found was to edit each and every line in the program as to be displayed as line by line.


Difference between W_T*X of Logistic regression and Linear regression

We used WT*X to calculate the distance of a point in logistic regression from the equation of a hyperplane to the point and then tried to minimize the distance but in linear regression, we are taking WT*X as the equation of a line and then take its y^ (i.e y_predicted value) by putting the X value in the equation of the line. So my question is that how is WT*X different in both logistic and linear regression?


Determine name of program which is closed slowly at shutdown

When I shutdown my computer (Windows 7), sometimes (~50%) I see the typical screen that a program can´t be closed, and, whether I want to wait for it or just kill the process.  The problem is, if I see this screen, it is only for a split second, probably because the program has finished it´s work then and was closed successfully.  It is too fast to read the program name.  Is there any way to show it longer, or any log of it, etc., just something to know which program is the cause of this?


I am not getting even an intuition as how to solve this problem. Please help me with a solution.  Let $n$ be a positive integer and $F$ a field. Let $W$ be the set of all vectors $(x_1, \dots , x_n)$ in $F^n$ such that $x_1+\dots +x_n =0$.  $1)$ Prove that $W^0$ (annihilator of $W$) consist of all linear functionals $f$ of the form $$f(x_1, \dots , x_n) = c \sum _{j=1}^n x_j.$$  $2)$ Show that the dual space $W^*$ of $W$ can be naturally identified with the linear functionals of the form $$f(x_1, \dots , x_n) =c_1x_1 +\dots +c_nx_n$$ on $F^n$ which  satisfy $c_1+\dots +c_n=0$.


Followed the Trailhead tutorial and I still get the same error about svg.  The code I am using is taken from the Lightning Design System. I created the supporting files as specified in the tutorial. Here is a snippet of the Component code (just note not all the code is included since it came directly from the LDS. The error is (Failed to save undefined: No COMPONENT named markup://svg found : [markup://michelleemanuel:forecastPlanComponent]: Source). Some of the other responses I saw said to read the tutorial - I have gone down that path and it did not work. I am not invoking this from a Visualforce page but from a Component.            <table class="slds-table slds-table--bordered slds-max-medium-table--stacked-horizontal">                                                         select all                                Opportunity Name                                                       Sort          ....


Our application is made from asp.net webforms using framework 4.5. And since migrating to Amazon AWS from an inhouse server. We've been flooded by this error through out our system.  On the software side, I've already increased the command timeouts to 180 seconds (error happens even on simple split second queries), but still no avail. I've also made sure all connections are Disposed after usage.  On the network side, our application has two web servers + a database server. Traffic is controlled by a load balancer. We've already tried turning off one web server just to see if it happens when the user's session jumps from one server to the other, but still no success, error still occurs.  Hope someone has encountered and resolved this issue.       Level 1  Exception Type: SqlException  ClientConnectionId = 91d69d77-d17e-46c0-b643-7187a194c5ee  Class = 20  LineNumber = 0  Number = 64  Server =   [IPADDRESS]  State = 0  Source = .Net SqlClient Data Provider  ErrorCode = -2146232060  Message = A transport-level error has occurred when receiving   results from the server. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)  StackTrace =    at   System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)     at   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)     at   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at       System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)     at   System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()     at System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()     at   System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()     at System.Data.SqlClient.TdsParserStateObject.TryReadByteArray(Byte[] buff, Int32   offset, Int32 len, Int32& totalRead)     at System.Data.SqlClient.TdsParserStateObject.TryReadString(Int32 length, String& value)     at   System.Data.SqlClient.TdsParser.TryReadSqlStringValue(SqlBuffer value, Byte type, Int32 length, Encoding encoding, Boolean isPlp, TdsParserStateObject   stateObj)     at System.Data.SqlClient.TdsParser.TryReadSqlValue(SqlBuffer value, SqlMetaDataPriv md, Int32 length, TdsParserStateObject stateObj,   SqlCommandColumnEncryptionSetting columnEncryptionOverride, String columnName)     at System.Data.SqlClient.SqlDataReader.TryReadColumnInternal(Int32 i,   Boolean readHeaderOnly)     at System.Data.SqlClient.SqlDataReader.TryReadColumn(Int32 i, Boolean setTimeout, Boolean allowPartiallyReadColumn)     at   System.Data.SqlClient.SqlDataReader.GetValues(Object[] values)     at   System.Data.ProviderBase.DataReaderContainer.CommonLanguageSubsetDataReader.GetValues(Object[] values)     at   System.Data.ProviderBase.SchemaMapping.LoadDataRow()     at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping)     at   System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord,   Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue)     at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable,   IDataReader dataReader, Int32 startRecord, Int32 maxRecords)     at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables,   Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at System.Data.Common.DbDataAdapter.Fill(DataSet   dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)     at   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)


How do surfaces absorb or reflect light? Specifically, what is the physical process happening at the molecular level?

As an example, I know a leaf looks green because it absorbs red and blue light, but reflects green light*. My question is how the red and blue light are absorbed, not reflected. And conversely why the green light is reflected, and not absorbed. (I know that transmission of light can also occur, and if you can explain transmission as well that would be great, but not necessary for the answer.)   My first assumption was that the absorbed light is being converted to thermal energy, since objects that appear black to us absorb most (or at least relatively more) visible light, and these surfaces become the warmest in sunlight. So one potential answer to my question will explain how EMR in the range of visible light is converted to thermal energy. However, maybe this isn't the process, and maybe coincidentally the black surface also happen to absorb a lot of IR light, and that's why the surfaces warm up.  Maybe the process can be explained in terms of filtering: red and blue light are filtered out, and green light isn't, so it's reflected....? But that seems too simple, and 'filtering' is a very vague word. If the red and blue wavelengths are absorbed, conservation of energy must happen, so that energy needs to go somewhere. Where? And if this is the case, then how does the filtering occur?  I've done a lot of searching on this topic, and have found many explanations of absorbtion and emission of light with gasses such as neon, as per Niels Bohr's work. I don't believe this example applies to the leaf, which reflects light, not emits. However the example with neon gives the style of answer I am looking for, because a physical process is described, resulting in the perceived color (electrons absorb photons with specific amounts of energy, and then emit at that wavelength of light, and the combination of those wavelengths stimulate the retina and result in the perceived color).  *I'm using 'green light' (for example) as a shorthand to mean 'the wavelengths of EMR that stimulate M cones in the retina, and result in the perception of green.' I know that the light itself physically isn't green, but the 'greenness' arises from our perception of it.


Does explicitly instantiating a template class also explicitly-instantiate the associated template friend functions?

I tried to overload the ostream << operator to print out a generic-typed variable, however main.cpp can not find the implementation. I am assuming that this is because the implementations exists in a .cpp file. I am aware that template functions must usually be defined in the header files, however this should not be the case for explicitly-instantiated functions. When I copy the implementation into my header file, it works just fine.  I'm thinking that I'm experiencing an issue that is unique to templated friend functions. Here are the relevant parts of my code.   I forward declared my Node class and the operator overload  template <typename T> class Node; template <typename T> ostream& operator<< (ostream&, Node<T>&);   I declared the operator overload in my header file (Tree.h)  template <typename T> class Node {   ...     friend ostream& operator<< <T> (ostream&, Node<T>&);     T data;   ... }   in my .cpp file, I implemented it  #include "Tree.h" template <typename T> ostream& operator<< (ostream& out, Node<T>& node) {     out << node.data;     return out; }   I explicitly instantiated my Node at the bottom of my Tree.cpp file  template class Node<int>;   then finally I called it from main.cpp  int main() {     Node<int>* n0 = new Node<int>(0);     cout << (*n0); }   and I get the following error:  undefined reference to 'std::ostream& operator<< <int> (std::ostream&, Node<int>&)'


Use retirement to pay off debt: Should I cash in RRSP to repay Line of Credit?

The amount I have in RRSP savings is exactly equal to the amount I have in Home Equity Line of Credit debt (significant, but aside from home mortgage, my family has no other debt).    I know if I cashed out the RRSPs, I would be taxed, but since I've just changed careers and now have a much lower income, I'm tempted to cash in my RRSPs to cover the bulk of my HELOC so it's no longer looming over me.  Otherwise, it might take me forever to repay it.


How can I align the small, large and user columns under every multicolumn. Alignment gets lost when using multicolumn. Code below:  \begin{table}[] \centering \resizebox{\columnwidth}{!}{ \begin{tabular}{l|c|c|c|c|cccccccccccccccccccccccc} \toprule \multirow{3}{*}{\color{red}{\textbf{SAD}}} & \multicolumn{4}{c}{} & \multicolumn{3}{c}{\textbf{Troll}} & \multicolumn{3}{c}{\textbf{Doll}} & \multicolumn{3}{c}{\textbf{Donkey}} & \multicolumn{3}{c}{\textbf{Elephant}} & \multicolumn{3}{c}{\textbf{Plant}} & \multicolumn{3}{c}{\textbf{Pineapple}} & \multicolumn{3}{c}{\textbf{Plastic bag}} & \multicolumn{3}{c}{\textbf{Net}} \\  & overall & avg. small & avg. large & avg. medium & \multicolumn{3}{c}{(Strongly Transparent)} & \multicolumn{3}{c}{(Strongly Transparent)} &      \multicolumn{3}{c}{(Medium Transparent)} & \multicolumn{3}{c}{(Medium Transparent)} & \multicolumn{3}{c}{(Little Transparent)} & \multicolumn{3}{c}{(Little Transparent)} & \multicolumn{3}{c}{(Highly Transparent)} & \multicolumn{3}{c}{(Highly Transparent)} \\  & rank & rank & rank & rank & small & large & user & small & large & user & small & large & user & small & large & user & small & large & user & small & large & user & small & large & user & small & large & user \\  \rowcolor{blue!10} GAN & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ & $1.0_{\color{blue}1}$ \\  \bottomrule \end{tabular} } \label{tab:my_label} \end{table}


Bound states of the $V(x)=\pm \delta'^{(n)}(x)$ potential?

The $\delta(x)$ Dirac delta is not the only "point-supported" potential that we can integrate; in principle all their derivatives $\delta', \delta'', ...$ exist also, do they?  If yes, can we look for bound states in any of these $\delta'^{(n)}(x)$ potentials? Are there explicit formulae for them (and for the scattering states)?  To be more precise, I am asking for explicit solutions of the 1D Schroedinger equation with point potential,  $$- {\hbar^2 \over 2m} \Psi_n''(x) + a \  \delta'^{(n)}(x) \Psi(x) \ = E_n \Psi_n(x) $$  I should add that I have read at least of three set of boundary conditions that are said to be particular solutions:   $\Psi'(0^+)-\Psi'(0^-)= A \Psi(0)$ with $\Psi(0)$ continuous, is the zero-th derivative case, the "delta potential". $\Psi(0^+)-\Psi(0^-)= B \Psi'(0)$ with $\Psi'(0)$ continuous, was called "the delta prime potential" by Holden. $\lambda \Psi'(0^+)=\Psi'(0^-)$ and $\Psi(0^+)=\lambda\Psi(0^-)$ simultaneusly, was called "the delta prime potential" by Kurasov   The zero-th derivative case, $V(x)=a \delta(x)$ is a typical textbook example, pretty nice because it only has a bound state, for negative $a$, and it acts as a kind of barrier for positive $a$. So it is interesting to ask for other values of $n$ and of course for the general case and if it offers more bound states or other properties. Is it even possible to consider $n$ beyond the first derivative?  Related questions  (If you recall a related question, feel free to suggest it in the comments, or even to edit directly if you have privileges for it)  For the delta prime, including velocity-dependent potentials, the question has been asked in   In the halfline $r>0$, the delta is called "Fermi Pseudopotential". As of today I can not see questions about it, but  seems to be the same potential.  A general way of taking with boundaring conditions is via the theory of self-adjoint extensions of hermitian operators. This case is not very different of the "particle in 1D box", question  A general take was the question  A related but very exotic question is  because obviosly the point-supported interacctions have a peculiar scaling  Comments  Of course upgrading distributions to look as operators in $L^2$ is delicate, and it goes worse for derivatives of distributions when you consider its evaluation $<\phi | \rho(x) \psi>$. Consider the case $\rho(x) = \delta'(x) = \delta(x) {d\over dx}$. Should the derivative apply to $\psi$ only, or to the product $\phi^*\psi$?


I understand from some studies in mathematics, that the generator of translations is given by the operator $\frac{d}{dx}$.    Similarly, I know from quantum mechanics that the momentum operator is $-i\hbar\frac{d}{dx}$.  Therefore, we can see that the momentum operator is the generator of translations, multiplied by $-i\hbar$.    I however, am interested in whether an argument can be made along the lines of "since $\frac{d}{dx}$ is the generator of translations, then the momentum operator must be proportional to $\frac{d}{dx}$".  If you could outline such an argument, I believe this will help me understand the physical connection between the generator of translations and the momentum operator in quantum mechanics.


How to fit $\sum{n^{2}x^{n}}$ into a generating function?

I do have somewhat of a reasoning for this.   $$S = 1 + x + x^{2} + x^{3} +.. + x^{n} $$   Denoting the derivative of $S$ as $T$   $$T = 1 + 2x + 3x^{2} + 4x^{3} +... + nx^{n-1}$$  $$xT = x + 2x^{2} + 3x^{3} +... + nx^{n}$$  Writing the derivative of this series as $V$  $$V = 1 + 2^{2}x + 3^{2}x^{2} +... + n^{2}x^{n-1}$$  $$xV = x + 2^{2}x^{2} + 3^{2}x^{2} +... + n^{2}x^{n}$$  Which is ${\sum{n^{2}x^{n}}}$  However, I am unable to start from $\sum{n^{2}}$and finish where I started. Can someone give me systematic steps on how to manipulate ${\sum{n^{2}x^{n}}}$into a generating function?   The answers are a little different from what I expected.  Let me explain with $\sum nx^{n}$. This function is not the series of any known function but with one slight manipulation, we can change it.  $$\sum x\frac {d x^{n}}{dx}$$ $$=x \frac{d}{dx} {\sum x^{n}} = x\frac {d}{dx} \frac{1}{1-x}$$ $$=\frac {x}{ (1-x)^2 }$$  I wanted a similar trick for evaluating $\sum n^{2}x^{n}$ $$=\sum nx \frac{d}{dx} x^{n}$$ And, then what ? How can I finish this ? I know how to start at $S$ and finish here, but I'm having trouble doing the algebra of starting with this sum and finishing where I started.


iMac won't boot off of Mavericks USB when downgrading from Yosemite

I made the biggest mistake of my adult life and installed Yosemite without backing up my HDD. Fortunately, I do have most of my actual files and programs saved to my external HDD, but that leads to another problem.  I use a lot of 3rd party apps to make music, and they are not compatible with 10.10 i.e. Pro Tools etc. I formatted my HDD in an attempt to start over but it keeps reinstalling Yosemite from the Internet.  I've made several USB boot drives but when they go to load up it just gives me "international no" sign (see image below).  Can someone please help me as my work/life is tied in to my studio. Oh also my external HDD is now all of a sudden read-only NTFS instead of Mac read/write enabled.


I know how to get a weapon with an enchanment higher than the limit. But can you stack up more of these enchantments on the same item?  For example, could you have Sharpness X and Looting X on one sword?  I've been using this command:  /give @p minecraft:diamond_sword 1 0 {ench[{id:16,lvl:10}]}


I want an animation such that this window move from right to left

I want an animation video of it can anyone help me...


ArrayList initialization equivalent to array initialization

I am aware that you can initialize an array during instantiation as follows:  String[] names = new String[] {"Ryan", "Julie", "Bob"};   Is there a way to do the same thing with an ArrayList? Or must I add the contents individually with array.add()?


I' looking to get rights to an game called Grand Theft Auto: Chinatown Wars for the Nintendo DS. I am a Nintendo 3DS Developer trying to make a remastered version for the Nintendo 3DS. How would I go about getting the rights for the game. Do I get the rights from Rockstar, Nintendo, or another party. I'm not sure.


It seems that the former is US English, while the latter BR English.   What do you native speakers think of it?


How Do Dementors Communicate with Wizards?

In Harry Potter and the Prisoner of Azkaban, while Harry is eavesdropping on the group of adults discussing Sirius Black in The Three Broomsticks, Madam Rosmerta objects to the Minister for Magic about the presence of Dementors, but Fudge demurs.      ‘You know that the Dementors have searched my pub twice?’ said Madam Rosmerta, a slight edge to her voice. ‘Scared all my customers away ... it’s very bad for business, Minister.’   ‘Rosmerta, m’dear, I don’t like them any more than you do,’ said Fudge uncomfortably. ‘Necessary precaution ... unfortunate, but there you are ... I’ve just met some of them. They’re in a fury against Dumbledore – he won’t let them inside the castle grounds.’   Prisoner of Azkaban - page 151 - Bloomsbury - chapter 10, The Marauders Map   We know that Dementors can take orders. Dolores Umbridge sent two Dementors to attack Harry at the beginning of Harry Potter and the Order of the Phoenix, so they must possess some kind of communication abilities.   Can Dementors talk? Do wizards communicate with Dementors via Legilimency? How did Fudge find out that the Dementors were in a fury specifically because Dumbledore wouldn't let them into Hogwarts castle?  ★ I'm looking for a canon answer (the Harry Potter novels, the three supplemental books, JKR interviews, or Pottermore) and do not prefer an answer from the HP Wikia or the Wikipedia. I'll definitely consider any answer composed in the spirit of canon.


I have the following code that works on all keys except enter, shift etc.  $(document).ready(function(){ $('input[name="tmp_post_tag"]').keypress(function(evt){     alert("hello");  }); });   Why won't it work on enter? which is what I want it to do. ive tried evt.char, evt.keyCode evt.which but nothing works.


Question: Let $f(x)=x^3+ax^2+bx+c$ and $g(x)=x^3+bx^2+cx+a$ where $a,b,c\in\mathbb{Z}$, $c\neq 0$. Suppose $f(1)=0$ and roots of $g(x)=0$ are squares of the roots of $f(x)=0$. Find the value of $a^{2020}+b^{2020}+c^{2020}$.  My approach: Let the other roots of $f(x)$ except $1$ be $\alpha$ and $\beta$. This implies that the roots of $g(x)$ are $1,\alpha^2$ and $\beta^2$. Thus, we have $1+\alpha+\beta=-a,$  $\alpha+\beta+\alpha\beta=b,$ $\alpha\beta=-c$ and $1+\alpha^2+\beta^2=-b,$ $\alpha^2+\beta^2+\alpha^2\beta^2=c,$ $\alpha^2\beta^2=-a.$ Note that thus we have $c^2=-a$. Again, $$a^2=(1+\alpha+\beta)^2=1+\alpha^2+\beta^2+2(\alpha+\beta+\alpha\beta)=-b+2b=b.$$ Also, since $f(1)=0\implies a+b+c=-1$. Now since we have $a=-c^2$ and $b=a^2\implies b=c^4,$ which in turn implies that $$-c^2+c^4+c+1=0\implies c^4-c^3+c^3-c^2+c-1=-2\\\implies (c^3+c^2+1)(c-1)=-2.$$ Thus, we either have $$\begin{cases}c^3+c^2+1=1\\ c-1=-2\end{cases} \text{ or }\begin{cases}c^3+c^2+1=-1\\ c-1=2\end{cases} \text{ or }\begin{cases}c^3+c^2+1=2\\ c-1=-1\end{cases} \text{ or }\begin{cases}c^3+c^2+1=-2\\ c-1=1\end{cases}.$$ Note that only the first diophantine equation yields a solution, that is $c=-1$. Thus, $a=-1$ and $b=1$. Therefore, $$a^{2020}+b^{2020}+c^{2020}=1+1+1=3.$$ Is this solution correct and rigorous enough and is there any other way to solve the problem? Also, does anyone know the original source of this problem?


How long do dropped items persist in Terraria?  I somehow dropped a gold pick in a corner I couldn't get to, and when I went to retrieve it, it had disappeared.  Under what conditions do dropped treasure disappear?


How to make your iPhone beep every 5 minutes


Automatically mount NTFS drive when I login

I use Ubuntu 11.10 and Windows7 dual boot with Ubuntu as my primary OS.  Every time I need to access a document I need to mount the respective drive, though this is not at all tiresome, still, is there any way that drives becomes automatically mounted when I login?


I followed tutorial on codelabs developer google for Google vision api, it's worked fine for me There is a method called ONTAP, when the user clic the camera screen TexttoSpeech, speak the text loud. Here is the method:   private boolean onTap(float rawX, float rawY) {         // TODO: Speak the text when the user taps on screen.         OcrGraphic graphic = mGraphicOverlay.getGraphicAtLocation(rawX, rawY);         TextBlock text = null;         if (graphic != null) {             text = graphic.getTextBlock();             if (text != null && text.getValue() != null) {                 Log.d(TAG, "text data is being spoken! " + text.getValue());                 // Speak the string.                 tts.speak(text.getValue(), TextToSpeech.QUEUE_ADD, null, "DEFAULT");             }               else {                 Log.d(TAG, "text data is null");             }         }         else {             Log.d(TAG,"no text detected");         }         return text != null;     }   NOW what i want to do is when the camera detect the sentence string:  I LOVE YOU I want it to make in action in a TOAST for example to say: Ok this sentence has been detected.  I tried this its not working:  private boolean onTap(float rawX, float rawY) {         // TODO: Speak the text when the user taps on screen.         OcrGraphic graphic = mGraphicOverlay.getGraphicAtLocation(rawX, rawY);         TextBlock text = null;         if (graphic != null) {             text = graphic.getTextBlock();             if (text != null && text.getValue() != null) {                 Log.d(TAG, "text data is being spoken! " + text.getValue());                 // Speak the string.                 tts.speak(text.getValue(), TextToSpeech.QUEUE_ADD, null, "DEFAULT");             }             else if (text.getValue()=="I love you"){                  // Speak the string.                 Toast.makeText(this, "Ok this sentence has been detected", Toast.LENGTH_LONG).show();             }              else {                 Log.d(TAG, "text data is null");             }         }         else {             Log.d(TAG,"no text detected");         }         return text != null;     }   Please somebody helps me. Thanks you.


C Student Assignment, ‘%f’ expects argument of type ‘float *’, but argument 2 has type ‘double *’

I'm working on an assignment and I'm getting this warning:  C4_4_44.c:173:2: warning: format ‘%f’ expects argument of type ‘float *’,  but argument 2 has type ‘double *’ [-Wformat]   The variabled is declared in main as:   double carpetCost;   I'm calling the function as:   getData(&length, &width, &discount, &carpetCost);   And here's the function:  void getData(int *length, int *width, int *discount, double *carpetCost)  {      // get length and width of room, discount % and carpetCost as input      printf("Length of room (feet)? ");      scanf("%d", length);      printf("Width of room (feet)? ");      scanf("%d", width);      printf("Customer discount (percent)? ");      scanf("%d", discount);      printf("Cost per square foot (xxx.xx)? ");      scanf("%f", carpetCost);      return;  } // end getData   This is driving me crazy because the book says that you don't use the & in   scanf("%f", carpetCost);    when accessing it from a function where you passed it be reference.   Any ideas what I'm doing wrong here?


When a spell targeting a creature with heroic gets countered, does heroic still trigger?

has the heroic ability:     Whenever you cast a spell that targets Tethmos, return target creature card with converted mana cost 2 or less from graveyard to battlefield.   Suppose  is cast, targeting Tethmos. It is countered by .  The last sentence of 601.2c is:     Any abilities that trigger when those players, objects, and/or zones   become the target of a spell trigger at this point; they'll wait to be   put on the stack until the spell has finished being cast.   My interpretation of 601.2c is that Divine favor starts one stack, and when that stack gets resolved, another stack is processed that starts with the Tethmos heroic ability being triggered.  So in this specific case where only one instant is cast (negate), Divine Favor gets negated and has no effect. However, the heroic ability does get triggered.  Is this interpretation correct?  Is it the case in general that heroic abilities do trigger even when the enchantment is countered?


Upgrade from Yakkety Yak (Ubuntu 16.10) when its End of Life

I have a yakkety system running and would like to do a dist upgrade.  I followed the procedure at  however, it did not help.  Apparently, some files are not found. It looks like the packages at  (and all the other directories) are not available.  Is there a new procedure to upgrade or a manual way to force the system to simply do an upgrade? I basically do not care whether I have to do two upgrades first to zesty and then to artful or to artful directly. However, currently I only have the choice to go to artful directly.


Prove the identity $\sum\limits_{k=1}^{n+1} \sum\limits_{m=0}^{k-1} \binom{n+1}{k} \binom{n}{m} = 2^{2n}$

How do I prove the following identity involving binomial coefficients?  $$\sum\limits_{k=1}^{n+1} \sum\limits_{m=0}^{k-1} \binom{n+1}{k}  \binom{n}{m} = 2^{2n}$$  I understand that it can be proven with induction, however I would love to see combinatorial (intuitive) or algebraic solution.


What's the intuition behind the identities $\cos(z)= \cosh(iz)$ and $\sin(z)=-i\sinh(iz)$?

I'm trying to understand in an intuitive manner the relationship between the circular and hyperbolic functions in the complex plane, i.e.:  $$\cos(z)= \cosh(iz)$$ $$\sin(z)=-i\sinh(iz)$$  where $z$ is a complex number.  From a geometric point of view, what I understand is that cos is the composition of a rotation through $\frac{\pi}{2}$, followed by cosh, and sin is the composition of a rotation through $\frac{\pi}{2}$, followed by sinh, followed by a rotation through $-\frac{\pi}{2}$ (where sin, cos, sinh, cosh are defined as complex functions).  Where does this connection come from? Is there some way it can be visualized in terms of complex mappings? (I'm not asking for a proof of the identities, I already know one).


There are a couple of files in our git-controlled codebase that I'd like to rename.  Specifically, I just want to change the case of the file, so that sourceCode.java becomes SourceCode.java, for example.  The catch: I'm on a Windows box, and the filesystem thinks those are the same file name.  How can I get Windows and Git to recognize that change and check it in?


What color would you see if you place 2 mirrors in opposit when one is a one way mirror

What would you see if you have 2 huge mirrors (you cant look over it or next to it)  You place them with the reflecting side to each other and you look in the mirror from behind one mirror (one way mirror = 1 side glass 1 side mirror, like in a movie when cops are questioning a suspect.)  The mirror would reflect each other endless.  The example could be preformed with a see trough mirror (1 side mirror other side glass) but I don't have one, also I don't have huge mirrors.    Would it make a diffrence if you place a light source and if you dont have a light source?  My guess is that you would always see black because there is nothing to mirror.  Edit important:   There is nothing in the room to reflect on, so it only reflects the mirror, thats what i ment.


I have Ubuntu 13.1 installed with the default window manager and DE.   I am trying to enable single click so I can open files and folders with only one click. I tried googling and all results said to open files, then go to preferences from top bar but my top bar has no options.  picture of desktop:


Why every system tends to be more stable?

An entire topic of inorganic chemistry, i.e. chemical bonding, which is also one of the most important topics, is based on the idea of stability. But whenever I ask why every system tends to get stable, I never get a satisfactory answer. People say that's how nature "wants" to be. How does a system know that it wants to get stable?


Lets say that I've rolled the view port with ⎈ Ctrl⇧ Shift Scrollwheel, and now want to get it back to its original orientation. How do I do that?


Will the Antimagic Field spell cause elementals not summoned by magic to dissipate?

The  spell says that summoned creatures will temporally vanish until the creature is out of the antimagic field, but would an elemental native to the current plane vanish?  As an example, the UA Mystic can get psionic disciplines that create elementals.


How can I play Blu Ray discs with my MacBook?

I'd like to buy a Macbook Pro 15 inch instead of a Dell, and I know I can send video to the HDMI TV using the Moshi adapter.  My MacBook doesn't have a drive for Blu Ray discs. Is there a way to solve this?  I kind of want the navigation of chapters and extra features in a Blu Ray disc, so if using makemkv and a Sony external Blu Ray drive to make the Blu Ray disc into an .mkv file, that's not so preferred.  (Is one possible way to use the Sony external BD drive (about $180), and use bootcamp to boot up Windows 7 instead?  Although this method is not so preferred because it needs to boot up only Windows)


My book tells me that of the solutions to the Lagrange system, the smallest is the minimum of the function given the constraint and the largest is the maximum given that one actually exists.  But what if we only have one point as a solution? How to know whether Lagrange multipliers gives maximum or minimum?


I am currently trying to write javascript within a script editor to hide the 'View Properties' and 'Edit Properties' items in the ECB.  I have found many solutions that edit the core.js file. However, that is not preferable for me as there are multiple sites adn this is not for every site and every library. Eventually this will be applied to a certain library but right now I would just like this to work in general before I worry about that.  I have tried removing the item when the menu is loaded using the below javascript. Where #mp6_0_3 is the id of the 'Edit Properties' menu item.  <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"> </script>   <script language="javascript" type="text/javascript">  $(document).ready(function() {     $('.ms-core-menu-list').live('mouseover', function() {         $('#mp6_0_3').parent().hide();         $('#mp6_0_3').remove();            }); }); </script>


Thunderbird : email notification and unity-panel icon

Problems:   The main icon in unity-panel doesn't change when I receive an email. There is no pop up.   System setting:   Thunderbird is open. Sound notification works.    Messaging Menu and Unity Launcher integration 1.3.1" in list of extensions. Thunderbird 38.5.1   Ubuntu 14.04   My account is on Gmail.     Update1: I tried to install Web apps application with these instructions   sudo add-apt-repository ppa:webapps/preview sudo apt-get update sudo apt-get install unity-webapps-preview   It doesnt work.Now the number of unread emails even doesnt show up in the icon below the screen.  Update: I tried to install popper as an alternative but it doesnt support after  Ubuntu 12.04


PostGIS: Update table with st_geometryfromtext

I'm trying to update a column wkb_geometry in a table locations by creating a point from the eastings and northings cols from the same table. The database is PostGreSQL with PostGIS extension:  UPDATE locations SET wkb_geometry = st_geometryfromtext('POINT(locations.easting locations.northing)',2770);   I'm getting the following error:  ERROR: parse error - invalid geometry SQL state: XX000 Hint: "POINT(lo" <-- parse error at position 8 within geometry   The column has been added like this:  ALTER TABLE locations ADD COLUMN wkb_geometry geometry(Geometry,27700);   I suspect that locations.easting and locations.northing are not being substituted with actual values from the respective columns but am not sure how to fix this. The answer I'm after will show how to substitute the easting and northing string with actual values from the column


I am newcomer to Blender and modeling in general. Currently, I am working on modeling a cat. I am noticing at times loops are missing from the polygons.  Here is an example:     Is there any easy way to fix/add a line for consistency and what is the best approach to avoid this when modeling in general for consistent topology?


simple bash while loop creates an unwanted file named 0

For some inexplicable reason, when I run the following code (minimalized, obviously) a file called "0" is created.    Could somebody please explain why this happens, and how to avoid it?     Thanks very much  #!/bin/bash while [ 1 > 0 ]      do         exit     done


Show that $\lim_{n\to\infty} \frac{1}{n}\sum_{k=0}^{n} x_k=x $ if $\{x_n\} \to x$

If $\ \{x_n\}$ converge to $x$ show that: $$\lim_{n\to\infty} \frac{1}{n}\sum_{k=0}^{n} x_k =x.$$    Let choose an $\epsilon>0$, then  $\exists N_1\in \mathbb{N}$ such that $\forall n\geq N_1$ we have $|x_n-x|<\epsilon/2.$  \begin{array}{} \displaystyle\frac{1}{n}\sum_{k=0}^{n} x_k-x  &= \displaystyle \frac{x_1+x_2+...+x_n}{n}-x\\ &=\displaystyle \frac{x_1+x_2+...+x_n-nx}{n} \end{array} Lets take the absolute value: \begin{array}{} \left|\displaystyle\frac{1}{n}\sum_{k=0}^{n} x_k-x \right| & =\left|\displaystyle \frac{x_1+x_2+...+x_n-nx}{n} \right| \\ & =\left| \displaystyle\frac{(x_1-x)+(x_2-x)+...(x_n-x)}{n} \right| \\ & \leq \left| \displaystyle\frac{x_1-x}{n}\right|+...+\left|\displaystyle\frac{x_n-x}{n}\right| & by \ the \ triangle \  inequality.\\ & = \displaystyle\frac{1}{n}\sum_{k=0}^{N_1-1} |x_k-x| + \displaystyle\frac{1}{n}\sum_{k=N_1}^{n} |x_k-x|  \\ & = \displaystyle\frac{1}{n}\sum_{k=0}^{N_1-1} |x_k-x| + \displaystyle\frac{\epsilon}{2n}(n-N_1) & (\forall n\geq N_1: |x_n-x|<\epsilon/2.)\\ &\leq  \displaystyle\frac{1}{n}\sum_{k=0}^{N_1-1} |x_k-x| + \displaystyle\frac{\epsilon}{2} \end{array}  By taking the limit of the first sum, we will get : $$\lim_{n \to \infty}\displaystyle\frac{1}{n}\sum_{k=0}^{N_1-1} |x_k-x| = 0.$$  It follows that $\exists N_2 \in \mathbb{N}$ such that $n\geq N_2$ we have : $$\displaystyle\frac{1}{n}\sum_{k=0}^{N_1-1} |x_k-x| < \displaystyle\frac{\epsilon}{2}.$$  Lets take $N=\max\{N_1,N_2\}$ then $\forall n\geq N$  $$\left|\displaystyle\frac{1}{n}\sum_{k=0}^{n} x_k-x \right| \leq \displaystyle\frac{\epsilon}{2} +\displaystyle\frac{\epsilon}{2} = \epsilon. $$


I'm flying to Lubbock in Texas in September. I can get flights with a 2 hour 25 min layover in Newark, or a 3 hour layover in Chicago.  However, from there I have to get a connecting flight to Houston. The most I can find is a 50 minute layover there before boarding the flight to Lubbock. Will I have to go through customs at Houston as well?  If so, I guess I'll need a longer layover there?


The thesis reference style is not complete

I use "ieeetran" and the following code to generate the reference (without URL information)  \bibliographystyle{IEEEtran} \bibliography{IEEEfull,paper01Const}   however, the result is  "Y. Qian, “Design and Control of a Personal Assistant Robot,” Ph.D. dissertation."  And the generated .bib files is   @phdthesis{qian_design_2013,   location = {{France}},   title = {Design and {{Control}} of a {{Personal Assistant Robot}}},   url = {https://tel.archives-ouvertes.fr/tel-00864692/document},   abstract = {The purpose of this thesis is to design, model and control of a personal assistant robot used for domestic tasks. In order to make the robot's design more efficient, a virtual simulation system is built using dynamic simulation software. ...},   pagetotal = {214},   timestamp = {2017-07-06T15:44:04Z},   langid = {english},   institution = {{Ecole Centrale de Lille}},   author = {Qian, Yang},   urldate = {2016-02-25},   date = {2013-07-04},   file = {Full Text PDF:C\:\\Users\\Yan WEI\\AppData\\Roaming\\Zotero\\Zotero\\Profiles\\jf7ifsnc.default\\zotero\\storage\\35UHZBC4\\Qian - 2013 - Design and Control of a Personal Assistant Robot.pdf:application/pdf} }   Wherever, the complete reference is   "Yang Qian. Design and Control of a Personal Assistant Robot. Other. Ecole Centrale de Lille, 2013. English."  How can I solve this problem? Thank you very much.


Combinatorics problem on $k$ sets and partionning a set of numbers

consider $2k+1$ real numbers satisfying the property such that any $2k$ of them can be partitioned into two $k$ sets which exist that the sum of the numbers in each of the sets are equal.  Prove that all the numbers are equal.


How to split video files upon detected change in resolution? (ie. recorded streams containing multiple widths)

I have many video files (flv/mp4) that change resolution mid-stream (720p/1080p/640).    I would like to use something like ffmpeg to automatically detect the change in resolution and split the videos into their individual scenes, keeping their existing encoding quality: segment without re-encoding (Video1-scene1.flv, Video1-scene2.flv, etc).  I have found various methods to split upon silence, upon scene change, upon black scenes, but nothing as simple as a change in resolution width.   These files often cause video editors/trimmers to crash, and manually identifying and removing low resolution scenes is very time consuming if I simply convert the entire video to 1080p.  The algorithm is probably as simple as comparing the current frame to the previous frame, and if they are different resolutions, split the video and start a new segment.  Can anyone help please?  EXAMPLE FILE (temporarily available):   Below are a few related answers:          Additional Resources: Using Lord Neckbeard's solution, I am attaching the (unfortunately very manual) process that I eventually got to work on Windows10. Perhaps it can spawn other ideas around ffmpeg. (I posted a separate question for anyone who is GURU enough to: )  drag video onto a batch file that contains:     ffprobe -v error -show_entries frame=pkt_pts_time,width,height -select_streams v -of csv=p=0 %1 > allkeyframes.txt    (allkeyframes.txt sample...)  13.652000,640,480 13.755000,640,480 13.597000,480,360 13.652000,480,360   paste this text in POWERSHELL:  $o="" $n=0 foreach($line in (Get-Content allkeyframes.txt)){   $nline = $line.Split(",")   $nline2=($nline[1]+$nline[2])   if ($nline2 -ne $preventry) {     $n0=$nline[0]     $o="$o,$n0"     $n=$n0 }   $preventry = $nline2 } if ($o.length -gt 1){ echo $o.Remove(0,1) > resolutionchanges.txt } else { Write-Host "No resolution changes found" -ForegroundColor Red }   (resolutionchanges.txt:)  13.597000,25.618000,33.628000,45.598000   enter the following in the command window, after pasting contents of resolutionchanges.txt and changing "input.flv" to the video name (Win10 refused my attempts at batching this):     ffmpeg -i input.flv -map 0 -c copy -segment_times 13.597000,25.618000,33.628000,45.598000 -reset_timestamps 1 -f segment output_%03d.flv


What is the coefficient of $x^{11}$ in the power series expansion of $\frac{1}{1-x-x^4}$?

I am really stuck on this problem. I don't really understand power series expansions. However, I think this has to do with generating functions.


Center DIV horizontal and vertical - jQuery or CSS

I have created a custom lightbox, and I am trying to center the DIV to the screen, DIV is in FIXED position, I am able to center it from left and right but not vertically. To center it vertically I am doing following by JS:   Getting the height of the image via JS Divide the height by 2 fixed div position is from top 50%, and adding negative margin top in the div (negative margin top is the value which is divided by 2)   But its not centering, what approach it should have?  This is the  (Please view in full screen)  Here is the JS code  $(document).ready(function() {     //Open light box on click   $(".gall-info").click(function(){     //show lightbox     $(".gallFullView").css({"opacity":"1", "visibility":"visible"});     $(".galleryShade").fadeIn();     $(".gall-info").css("bottom","0");      //Get the heigh of image     var gallFullViewImgHeight = $(".gallFullView-image > img").height();     //Divide the height by 2     var gallFullViewHalf = gallFullViewImgHeight / 2;     //Apply the value of above in negative margin top to center the wrapper     $(".gallFullView").css("margin-top", - gallFullViewHalf);   }); });   thanks


What is used in the 12.10 full disk encryption?

I previously had been using TrueCrypt, but recently re-installed Ubuntu and used 12.10's full disk encryption option (re-installed for other reasons). I never got any choice in how it did that. I don't know what cipher is used or the key size, or anything besides the passphrase really. Where can I find details about this sda5_crypt?  Edit: Seeing this mistake is humorous, but for those curious, sda5 refers to the hard drive and partition, not the encryption system.


I totally agree that the key feature of a high level academic forum is the audience choice, which is by all means given in terms of up and down votes. Nevertheless, I would like to point out some little misbehaviours thereof and suggest if, at least for some sections, downvotes could be removed at all.  I am a theoretical physicist and, although having always been a big fan of this platform, I have only joined it actively lately. The reason is that most of my colleagues and my community left the forum after a while due to the ridiculous way people downvote correct proofs in mathematics without even giving (possible) counterexamples. I regret I have to say this has been happening to me as well and is giving me good thoughts to drop the forum as they did, without wasting any more time if people do not even read the solutions.  If you  find the answer useful then one may upvote. If not, one can just not upvote it, leaving it to zero score. Downvoting an answer without counterproofs, besides questioning someone else's effort and time, also evens out and discards all the ones who had previously upvoted the same answer. Especially in technical areas (physics, mathematics, chemistry and so on) a proof is either true or false and I would suggest that in those sections downvotes, if still useful at all, should be allowed only after proving the related answer to be explicitly wrong, giving a counterexample or meaningfully expanding it. Otherwise, no downvote should be allowed.   I have seen that many other users pointed out, along similar lines, the same feeling. What's the state of the art about this issue here?


Why not formulate Quantum Mechanics using Lagrangians?

As the title implies, why is it that the most common formalisms we use in quantum mechanics prefer to describe systems in the terms of a Hamiltionian instead of a Lagrangian?   Is there some convenience to defining our systems one way over the other? Are there cases I'm not aware of where Lagrangian formalism is preferred?


PuTTY how to select text and copy text using keyboard ONLY

Is there any way of selecting a text with keyboard the way I do it normally using Shift+arrows.


They have to be placed on the top of your .cs file. You cant create those guys dynamically at runtime and you cant give them a value or change their value because there is no value at all so whats the point of #define keyword?  Here is an example:  #define DEBUG #define MYTEST using System; public class MyClass  {     static void Main()      { #if (DEBUG && !MYTEST)         Console.WriteLine("DEBUG is defined"); #elif (!DEBUG && MYTEST)         Console.WriteLine("MYTEST is defined"); #elif (DEBUG && MYTEST)         Console.WriteLine("DEBUG and MYTEST are defined"); #else         Console.WriteLine("DEBUG and MYTEST are not defined"); #endif     } }   Both are defined on top so why having all those ifs anyway?  Can somebody tell me scenarios where define is usefull?  Sorry if this is a duplicate just let me know in comments if so and I ll remove this question.


Java Hashtable containsValue() not working

I'm trying to code a spellchecker using a hashtable of dictionary words. I'm currently trying to compare  words from a text document to a value in the hash table to see if it's spelled correctly, but no matter what I do, the containsValue() method always returns false even when I know it's not.   public class SpellChecker {      private Hashtable<Integer, Wrapper> words;     private ArrayList<Wrapper> parsedFile;      SpellChecker() {         words = new Hashtable<Integer, Wrapper>();         parsedFile = new ArrayList<Wrapper>();     }      public void createDict(String inputFile) throws IOException {         FileReader input = new FileReader(inputFile);         BufferedReader bufRead = new BufferedReader(input);         String myLine = null;         int i = 0;         while ((myLine = bufRead.readLine()) != null)         {                Wrapper my_line = new Wrapper(myLine);             words.put(i,my_line);             i++;         }         bufRead.close();     }      public ArrayList<Wrapper> readFile(String inputFile) throws IOException {         FileReader input = new FileReader(inputFile);         BufferedReader bufRead = new BufferedReader(input);         String myLine = null;         Wrapper[] array_file;          while ((myLine = bufRead.readLine()) != null)         {                String[] arrayFile = myLine.split(" ");             for (int i = 0; i < arrayFile.length; i++) {                 array_file = new Wrapper[arrayFile.length];                 arrayFile[i] = arrayFile[i].toLowerCase();                  Wrapper my_line = new Wrapper(arrayFile[i]);                 array_file[i] = my_line;                 parsedFile.add(array_file[i]);             }         }          bufRead.close();         return parsedFile;     }      public ArrayList<Wrapper> getParsedFile(){         return parsedFile;     }      public ArrayList<String> checkMisspellings() {         ArrayList<String> misspelled = new ArrayList<String>();          for (int i = 0; i<parsedFile.size(); i++) {             if (!words.containsValue(parsedFile.get(i))) {                 misspelled.add(parsedFile.get(i).backToString());             }         }         return misspelled;     } }   I looked at some answers online that said it might be because containsValue() compares addresses, so I made a wrapper class for the String values but it still isn't working.  public class Wrapper {      public String x;      public Wrapper(String x){         this.x=x;     }      public String backToString() {         return x;     }      public boolean equals(Object o) {    if(o == null) return false;    if(!(o instanceof Wrapper)) return false;    final Wrapper p = (Wrapper) o;    if(p.x.equals(this.x)) return true;    return false; }      @Override     public int hashCode() {       int hash = 3;       hash = 53 * hash + x.length();       return hash;     } }   the misspelled arrayList is supposed to only contain words that aren't found in the hashtable, but it always just returns all the original words. What am I doing wrong?? Here's some sample input/output:  input: hellos my name Ann corral mlks please spell correct  output: [��hellos, my, name, ann, corral, mlks, please, spell, correct, ]   the text file I'm using for the dictionary looks something like this:  corralled corralling corrals correct correctable corrected correcter correctest correcting


I got trapped in a position when I had an observer tping people to a position and it's stuck on repeat.  Anybody who joins my LAN gets tpd. How do I remove the observer from almost 100 blocks away? I've tried /fill and don't know the coords and I don't want to abandon the world. It's really important. anybody know anything?


How to change Desktop default environment for new users

I want to set default Desktop environment (the question is not about gnome-panel, KDE etc.), need to unlock unnecessary icons from launcher and lock needed applications on launcher, set keyboard layout 2 or 3 languages on menu bar. And when I create new user and he/she will log in, the desktop environment will be same that I created.


CSS Files in _Layouts or Document Library?

There's been a lively conversation (such as it can be in 140 chars) lately about whether it is better to put CSS files on the disk in the _layouts folder or to store them in a Document Library in the Site Collection.  This seemed like a good place to post the topic to allow some longer discussion about it.  As for me, I always prefer to avoid putting anything on the disk if I can avoid it.  I prefer a Document Library for the CSS. There are many reasons for this, but here are some: versioning, fine-grained permissions, approval processes, they are a part of a Site Collection backup, touching the server can lead to problems, etc.  I also don't believe that files on the disk will be served up any faster than files in SQL if SQL is managed correctly.  What's your opinion? Weigh in!


How could I position the epigraph in the end of the page, instead of at the beginning? I'm using this preamble:  \documentclass[pdftex,11pt,a4paper,openany]{memoir} \usepackage[brazil]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{indentfirst} \usepackage{latexsym} \usepackage{amsmath,amssymb,amsfonts,wasysym} \usepackage[pdftex]{graphicx} \usepackage{wrapfig} \usepackage[left=3cm,right=2cm,top=3cm,bottom=3cm]{geometry} \usepackage{color} \usepackage[dvipsnames]{xcolor} \definecolor{darkgray}{gray}{0.3} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \usepackage[pdftex, colorlinks=true, linkcolor=darkgray, citecolor=blue, urlcolor=blue]{hyperref}   and this commands on the page intended to the epigraph:  \thispagestyle{empty} \epigraph{O problema dessas citações na internet é a dificuldade para saber se elas são realmente autênticas.}{Friedrich Nietzsche}   I already tried to use \vspace{} and \vfill, and they dont work.


Oracle SQL query: Retrieve latest values per group based on time

I have the following table in an Oracle DB  id     date              quantity 1      2010-01-04 11:00  152 2      2010-01-04 11:00  210 1      2010-01-04 10:45  132 2      2010-01-04 10:45  318 4      2010-01-04 10:45  122 1      2010-01-04 10:30  1 3      2010-01-04 10:30  214 2      2010-01-04 10:30  5515 4      2010-01-04 10:30  210   now I'd like to retrieve the latest value (and its time) per id. Example output:  id     date              quantity 1      2010-01-04 11:00  152 2      2010-01-04 11:00  210 3      2010-01-04 10:30  214 4      2010-01-04 10:45  122   I just can't figure out how to put that into a query...  Additionally the following options would be nice:  Option 1: the query should only return values that are from the last XX minutes.  Option 2: the id should be concatenated with text from another table that has id and idname. output for id should then be like: id-idname (eg 1-testid1).  many thanks for any help!


Why is Aristotle's objection not considered a resolution to Zeno's paradox?

It seems to me, perhaps naïvely, that Aristotle resolved  well, when he said that,      Time is not composed of indivisible nows any more than any other magnitude is composed of indivisibles,    and that Aquinas clarified the matter for the (relatively) modern reader when he wrote      Instants are not parts of time, for time is not made up of instants any more than a magnitude is made of points, as we have already proved. Hence it does not follow that a thing is not in motion in a given time, just because it is not in motion in any instant of that time.     For me, any further attempts at explanation and resolution, such as Russell's, (bar rather tenuous appeals to connections with quantum physics) simply reiterate, and rather labour Aristotle's initial erudite explanation.  What serious arguments exist that counter Aristotle's objection, if any, and why is Aristotle's objection not considered a resolution to this paradox?


Unable to implement pgrouting(plugin) pgr_astar routing algorithm (shortest path)

I have been working on a project for indoor navigation.  I made the floorplan of the building and road-map for routing purposes as shp files (using JOSM, making GeoJSON and then converting to shp file using )  Then using POST GIS ShapeFile Loader (of pgAdmin III) I imported road-map(route.shp) to the database.  In QGIS, i was able to use the shortest path plugin to do the routing   //////////////////////////////////////////////////////////////////////////////////////////  EDITED  ////////////////////////////////////////////////////////////////////////////////////////// The following are screen shots of route     The following are screen shots of route_vertices_pgr     When I tried to use the pgrouting plugin of QGIS , I got the below error   What am I doing wrong?


Can someone recommend good resources to self study physics please?

I have a goal to educate myself up to the current level of knowledge we possess about the universe.  I've tried textbooks, wikipedia, lectures, but i find each of them fundamentally flawed in different ways.  Textbooks tend to be incredibly bloated, and I become unable to "see the forest for the trees" Wikipedia seems to be too technical/mathematically rigorous for my level of understanding Lectures feel very time consuming and i dont really feel as though i get a structured sense of  how everything fits together.  I feel as though all mathematical and physical concepts can be explained in simple terms, yet i cant find resources which present concepts like this.  I don't want explanations that are completely dumbed down or necessarily lacking in math, but i would prefer explanations which give math intuition and take time to explain what the variables and symbols mean in laymen's terms.  If anyone knows any resources similar to what i described, or has any advice it would be greatly appreciated!  Edit: I should also mention that i had been referred to Hooft's outline of learning, as seen here:  Which i find to be a trememndous help, but I'm still struggling as to the ideal places to find clear resources in regards to these subjects.


In .NET Core C#, how do I parse this Date string: 'Jun 3, 2021 4:36:56 PM EDT' Tried this with Culture en-US, and it does not work: DateTime.ParseExact("Jun 3, 2021 4:36:56 PM EDT", "MMM dd, yyyy hh:mm:ss tt K", CultureInfo.CurrentCulture);  Thanks, Jim


Windows update restarts the computer reason 0x80020002

The process C:\Windows\system32\svchost.exe Computer Name has initiated the restart of computer Computer Name  on behalf of user NT AUTHORITY\SYSTEM for the following reason: Operating System: Recovery (Planned) Reason Code: 0x80020002 Shutdown Type: restart Event ID : 1074   I use this computer to run simulations overnight and automatically restarting ruins all my progress. I am not allowed to disable windows updates, how can I make it so that windows will never reboot on its own?


cron - How many times the cron job will run when given aterisk(*) on all positions

If we define a cron job with * * * * * /some/task/to/perform, how many times the job will executed in 60 seconds?


Can't solve integral by partial fractions

Seems this should work via partial fractions; however, doesn't solve out for me. I recoginize that $e^{2x}-1$ is a difference of squares. Still doesn't decompose for me with partial fractions.  numerator is $e^x$  demominotor is $(e^{2x}-1)(e^x+1)$  $$\int \frac{e^x}{(e^2x-1)  (e^x+1)}dx$$


Array using user input and for loop gets NullPointerException

Why am I getting this NulPointerException:   Please Give the length of the Array:  5 Please give the entries for the array for 0th index 2 Exception in thread "main" java.lang.NullPointerException     at Array.main(Array.java:18)   In this code?  public class Array{  public static void main(String[] args)  {     Scanner scan = new Scanner(System.in);     System.out.println("Please Give the length of the Array: ");     int num= scan.nextInt();     int arr[] = null;     int i;     for (i=0; i<num;i++)     {         if(i<num-1)         {             System.out.println("Please give the entries for the array for " +i+"th index");             arr[i]=scan.nextInt();          }         else         {                System.out.println("Please give the entries for the array for last index");             arr[i]=scan.nextInt();          }     }     scan.close();    } }


I was doing leg press at the gym today and was curious how much weight I actually lift when I do the exercise as compared to when I do a squat.  Suppose I load $w_L$ onto the machine, which has an angle of elevation $\theta$.  I know that the actual weight I lift vertically is $w_L \sin(\theta)$, but could someone give me an explanation why this is so?    My intuition is to appeal to simple trigonometry, which tells me the vertical side of the triangle is $w_L \sin(\theta)$.


How to use sed to replace only the first occurrence in a file?

I would like to update a large number of C++ source files with an extra include directive before any existing #includes. For this sort of task, I normally use a small bash script with sed to re-write the file.   How do I get sed to replace just the first occurrence of a string in a file rather than replacing every occurrence?  If I use  sed s/#include/#include "newfile.h"\n#include/   it replaces all #includes.   Alternative suggestions to achieve the same thing are also welcome.


Number of Non-isomorphic models of Set Theory

Assume that the meta theory allows for model theoretic techniques and handling infinite sets etc (The meta theory itself is, informally, "strong as ZFC"). Also assume that I'm studying ZFC inside this meta-theory and that I'm working with the assumption that ZFC is consistent.  Let $ZFC\subset{T}$, where $T$ is a complete theory. I would like to know the number of non-isomorphic models of $T$ for some given $\kappa\geq{\aleph_{0}}$. I feel as if this should be the maximum number possible, i.e. $2^{\kappa}$.  My idea for showing this was to use Shelah's theorem that says that unstable theories have $2^{\kappa}$ many models for any $\kappa>{\aleph_{0}}$ (which establishes the result for all uncountable $\kappa$). But in order to do this I first need to show that $T$ is unstable. However I'm not sure about how to do this (or even if I'm on the right track).   Any help would be much appreciated.


Freely convert between List and IEnumerable

How can I convert a List<MyObject> to an IEnumerable<MyObject> and then back again?  I want to do this in order to run a series of LINQ statements on the List, e. g. Sort()


How can I make iconv replace the input file with the converted output?

I have a bash script which enumerates through every *.php file in a directory and applies iconv to it. This gets output in STDOUT.   Since adding the -o parameter ( in my experience ) actually writes a blank file probably before the conversion takes place, how can I adjust my script so it does the conversion, then overwrites the input file?  for file in *.php do     iconv -f cp1251 -t utf8 "$file" done


How to change option and option-shift character shortcuts on a Mac?

There are two additional layers of symbols that the mac keyboard can type by holding down the Option key or Option + Shift key simultaneously. Here are the built-in symbols for the two layers:   However, I would never use most of the symbols such as , „, or ∏, and some of the symbols I frequently uses, such as σ, p̂, and x̅ are not included. Is there a way to customize the keyboard layer characters?


Can I sacrifice a treasure for mana not in my commanders colours?

Commander or edh is a format that, amongst other things places restrictions on the colours of the cards you play in the deck. See this .     A card's color identity is its colour plus the color of any mana symbols in the card's rules text. A card's color identity is established before the game begins, and cannot be changed by game effects.   Cards in a deck may not have any colors in their color identity which are not shared with the Commander of the deck. (The identity of each card in the deck must be a subset of the Commander's)   But if I have a card like  which has a rider on which colour of mana was used, can I put that into a deck that doesn't have that colour identity, and can I pay for it with something like a treasure token or some other effect that can make any colour mana?


Is comment deletion invisible to regular users?

I believe I recently had some comments deleted by a moderator from an answer I wrote and just wondered if there is any way for me to see my own (or others) deleted comments?  I understand from  on Meta that aside from a user deleting their own comment, this can also be done by a moderator (either of their own volition, or as a response to flagging of that comment), but didn't realise that there was no audit left to help me realise this had been done - leaving me initially scratching my head and wondering if the comments were even there in the first place!  I'm not disputing that the comments in this particular instance should have been deleted (they involved another user helpfully suggesting a possible issue with my answer, which I then corrected) - hence why I have not included a link to the answer - but it would still be helpful to be able to know that they used to exist.   Plus I can easily imagine situations where the deletion of one or more comments might be objectionable to the commentor, questioner or answerer relevant to the comment - do we just have to trust the moderators here, without any ability to audit what they've deleted (whether that be our own comments, or comments on our own questions/answers)?  Perhaps my answer is , but that question is several years old, so I hope it's not unacceptable to ask this similar question now to confirm all is still the same.


What 'mythical creature' is David searching for?

What 'mythical creature' is David, the child mecha, searching for in the movie Artificial Intelligence?