Alt+F2 work, but it doesn't give me access to gparted.  I have never worked with a program in the terminal before, just written code/commands.  Do I have to use sudo to open up gparted? And what else? Graeme

I just installed gparted because I have a 135 GB flash drive that I want to use for bootables for different OSs.   After I installed gparted and opened it from the Dash, I got the prompt for my password, entered it, the window closed, cursor turned to the loading symbol, I waited, the cursor went back to normal, that was it.  I installed it with sudo apt-get install gparted.  The output from gksudo gparted is  Error copying '/home/amolith/.Xauthority' to '/tmp/libgksu-k9KFpI': No such file or directory   The output from gparted-pkexec is  Created symlink /run/systemd/system/-.mount → /dev/null. Created symlink /run/systemd/system/boot.mount → /dev/null. Created symlink /run/systemd/system/run-user-1000.mount → /dev/null. Created symlink /run/systemd/system/run-user-120.mount → /dev/null. Created symlink /run/systemd/system/snap-core-2381.mount → /dev/null.   Created symlink /run/systemd/system/tmp.mount → /dev/null. No protocol specified  (gpartedbin:6347): Gtk-WARNING **: cannot open display: :0 Removed /run/systemd/system/-.mount. Removed /run/systemd/system/boot.mount. Removed /run/systemd/system/run-user-1000.mount. Removed /run/systemd/system/run-user-120.mount. Removed /run/systemd/system/snap-core-2381.mount. Removed /run/systemd/system/tmp.mount.   Any help would be greatly appreciated.


Happy Father's Day to all you Fathers!!! well, I am trying access my old gmail account; i've read all the typical answers that lead me to the same head banging conclusion.  I dont quite remember my password (well, some of it I do...) but I no longer have the phone it was linked to, and all attempts at recovery keep going back to that phone number, or other places I've signed into. Well, there is no other place where i've signed in, & no hope of re-activating the old phone #.  Is there a way to be able to reset the password, or update phone info? Any help would be greatly appreciated!

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


I got the following problem when I used this command :  renice -19 1744

I want to change the priority of a process on my Ubuntu 12.04 Desktop, but I can't. I go into an app called "System Monitor", right click the process, and change the priority to "high". I then get this message: "Cannot change the priority of process with PID 4364 to -5. Permission denied." I have tried to give myself root. What does this mean, and is there a more acute way to change the priority?


I know this was a joke on Facebook, the thing about storming Area 51. But, what catched my eyes is the "them". Is this playing on word? Or, is this grammaticality sound? Or is this a joke because I, as non native speaker, don't get it. Isn't it supposed to be:  Let's see them, the aliens OR Let's see the aliens  I hope this question isn't off-topic but I really want to know.

I've confused about the word "them" in the middle of the sentence:     They know all about them   Westovers in Idaho.   Could you please tell me what the meaning of "them" here is?     Does it mean "they know about the oils which are made by Westovers in Idaho"?   The full text is here:      Dad had always said he wanted to build a room the size of a cruise ship   but I’d never thought he’d have the money. I looked to Mother for an   explanation but it was Dad who answered. The business was a roaring   success, he explained. Essential oils were popular, and Mother had the best   on the market. “Our oils are so good,” he said, “we’ve started eating into the   profits of the large corporate producers. They know all about them   Westovers in Idaho.”   Educated by Tara Westover


class Solution { static int min=0; public int minDepth(TreeNode root) { int count_left=0,count_right=0; if(root.left==null && root.right==null) return 1; count_left=count_left+1+minDepth(root.left); count_right=count_right+1+minDepth(root.right); if(count_left<count_right) { min=count_left; } else min=count_right; return min; } }

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


I have read many post about updating an iPad 1 (iOS 5.1.1) to iOS 8 but all I need at the moment is to update my iPad 1 to at least iOS 6. Is there any way I can update it to iOS 6? No jail breaking or anything, just a normal way of updating.

How can I update iPad 1 from iOS 5.1.1 to iOS 7.1?  I tried checking for updates but I get a message "your software is up to date".


whenever I run, sudo apt-get update, I find one is  :    Err http://ppa.launchpad.net saucy/main i386 Packages   404  Not Found in i386 packages of ppa                                 and 2nd : W: Failed to fetch http://ppa.launchpad.net/upubuntu-com/flareget-i386/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found   I think there is problem in installation of flareget software is there any command to fix this

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I'm new to Ubuntu and I have this Virtual Machine issue when installing Ubuntu.I have done a huge search to overcome this but I failed.So please help me out.  I'm using Oracle VM (Virtual Box) 4.2.14 and I have installed it on Windows 8 (64 bit). Following are the settings.    And when I start Ubuntu, I get the starting screen and screen gets freezes.    Why and how can I start Ubuntu ? Please help me out

I was using 13.04 as a guest OS on my VirtualBox 14.2.18. Host is Windows 8. After upgrade to 13.10 Ubuntu does not start. I can see a black screen and blinking cursor. I am pretty new to Ubuntu. I suspect a problem with graphics drivers. I can access tty and all files (/home) are there.


In a college exam reviewer, I encountered a sentence:  I suspect the murderer to be him.  I am confused about whether or not the objective him is the appropriate case to use there when it appears to be a subject complement (since it comes after the linking verb be. Shouldn't it be  I suspect the murderer to be he.?  I tried browsing the internet but failed to find an answer. Thank you in advance.

I've searched websites, written to Mr. Barth and William Safire, scanned bookstore shelves, and buttonholed likely prospects in search of a grammar text that would address matters in the manner of the following, which is from John Barth's "The End of the Road".  If such a text exists, I'd be much obliged to learn of it:  " ... it gives a man a great sense of lucidity and well-being, if not downright formidability, to be able not only to say, but to understand perfectly, that predicate complements of infinitives of copulative verbs without expressed subjects go into the nominative case, whereas predicate complements of infinitives of copulative verbs with expressed subjects go into the objective case.  I made this observation to my assemblage of young scholars and concluded triumphantly, "I was thought to be he, but I thought John to be him."  Thank you.


Which oil is best for frying Italian doughnuts?

I understand that one of the main reasons to use different kinds of fat or oil is the temperature at which it burns, e.g. an extra-virgin olive oil to fry a steak wouldn't work. Taste is also a very important aspect. Can you give a list of the most commonly used oils/fats and what they are used for?


Below is my file $ cat README login user1 run .profile cd /u/opt unzip -l zip file copy files in zip file to .orig unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql logout  I need lines between the matched string last unzip and logout i.e desired output is below cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql  I need a couple of answers.  When I tried sed -n '/unzip -o /,/logout/p' README it does not exclude the matching lines.  Thus, I get the below output: unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus admin/<password> @req.sql logout  I tried another solution given here:  But, I do not get the desired output. See below: $ sed '1,/unzip/d;/logout/,$d' README copy files in zip file to .orig unzip -o the zip file cd /u/opt/install ./reqe21.sh sqlplus vrcadmin/<password> @req.sql   How do I use sed so that I get the lines between last unzip and the last logout i.e the desired output as was shared before.

I am writing sed expression which tries to print the text within a range of patterns:  apt-cache showpkg gdm | sed -n '/Reverse Depends:/,/Dependencies:/ p'   This basically works, current output is:  Reverse Depends:    libgdm1:i386,gdm 3.8.3-3~   ...   ...   gnome-control-center-data,gdm 3.0 Dependencies:    But I don't want the lines containing the patterns themselves, I want:    libgdm1:i386,gdm 3.8.3-3~   ...   ...   gnome-control-center-data,gdm 3.0   I know I can just just pipe the output to grep with -v option:  grep -v "Reverse Depends:"   But I hope sed has an option for it. I have tried  $ apt-cache showpkg gdm | sed -n '/Reverse Depends:/-1,/Dependencies:/-1 p'   But it doesn't work:  sed: -e expression #1, char 19: unknown command: `-'


I am trying to see the status of the dd command with this option "status=progress" but it says that it's an invalid status flag.    dd if=example.img of=/dev/sdb bs=512 conv=noerror,sync status=progress    is their commit from 2014 and I do have the latest version of coreutils in Debian Jessie.  Thanks.

is a wonder. It lets you duplicate a hard drive to another, completely zero a hard drive, etc. But once you launch a dd command, there's nothing to tell you of its progress. It just sits there at the cursor until the command finally finishes. So how does one monitor dd's progress?


I have disposed of my SqlConnection this way:  sqlcon.open(); sqlcom.ExecuteNonQuery(); sqlcom.close();   but I am not satisfied with this way of disposing it.

Having read the threads  and  I am wondering for classes such as SqlConnection or one of the several classes inheriting from the Stream class does it matter if I close Dispose rather than Close?


My Ubuntu version is 16.04 LTS and when I am installing any external softwares like Meld in my Ubuntu it is giving the error:   E: The package uno-libs3 needs to be reinstalled   but I can't find an archive for it.

Running Synaptic I get the following error message:  E: The package hl1440lpr needs to be reinstalled, but I can't find an archive for it. E: Internal error opening cache (1). Please report.   Upon accepting the message, Synaptic quits.


I overstayed in the UK then voluntary left the country four years ago. Now I got a USA tourist visa and am planning to go on a vacation in California and Las Vegas. Will my previous overstay history affect my ability to enter the USA? Will the US immigration find out about my overstay history? My USA visa is in a new passport.

UK visitor's visa was denied because a residence visa application had been refused previously, about 4 years ago. Now will it have any impact on a US visitor's visa application result?


How can I prove the following identity: $$\sum_{0\le i\le n} (i+1)2^i {{2n-i}\choose{n}} =(2n+1){{2n}\choose{n}}$$ A few words as to why I need the proof. I noticed that if we write numbers of the form $n2^{n-1}$ (so, 0, 1, 4, 12, 32 etc.) on the sides of Pascal triangle and continue to build Pascal triangle by the same rule as usually, then numbers $n{{2n}\choose{n}}$ (2, 12, 60, etc.) emerge on the diagonal.  Here is the picture showing ratios of the numbers in the new triangle to the corresponding numbers in the usual Pascal triangle  One can write down the generating function with two variables for the entries in our new triangle. Let $a_{i,j}$ be the entry in the i-th column and j-th row, then $$F(x,y) = \sum a_{i, j} x^i y^j = \frac{ \frac{x-x^2}{(1-2x)^2} + \frac{y-y^2}{(1-2y)^2} }{1-x-y}$$ From here I obtained the aforementioned identity comparing the coefficients of $x^n y^n$. But I don't know how to prove it.  The upper coefficient in the sum depends on $i$, so this formula has no algebraic meaning. Induction doesn't help too. Any hints are welcome.

I used WolframAlpha to calculate a sum but it didn't show me the way :( Anybody has a hint or a solution for proving this sum? $$\sum_{n=0}^N\binom{2N-n}N2^n(n+1)=(1+2N)\binom{2N}N$$


Let $f$ be a non constant entire function satisfying the following two conditions: a) $f(0)=0$ b) For every positive real number $M$, the set $\{z:|f(z)|<M\}$ is connected. Prove that $f(z)=cz^n$ for some constant $c$ and positive integer $n$. Since zeroes of an analytic function are isolated, I can take a closed disc of positive radius in which $0$ is the only zero of $f$. The conclusion I need, suggests that I must prove that $f$ has a pole at infinity. That will prove that $f$ is a polynomial. In addition I must prove that $0$ is the only zero for $f$. Is there any more elegant way of approaching the solution? Help me to prove the two assertions I made above.

Let $f$ be a non constant entire function satisfying the following conditions :  $f(0)=0$ for every positive real $M$, the set $\{z: \left|f(z)\right|<M\}$ is connected.  Prove that $f(x)=cz^n$ for some constant $c$ and positive integer $n$.  Let $f(z)=a_nz^n+\cdots+a_1z+a_0$ be function that satisfies the given conditions.   As $f(0)=0$ we have $a_0=0$ and $f(z)=a_nz^n+\cdots+a_1z$. As $f$ is non-constant function, its zeros are isolated. So, there exists an $r>0$ such that $f$ is non-zero on $B_r=\{z:|z|<r\}$. I was thinking of connecting this to connectedness of $\{z: \left|f(z)\right|<M\}$. I wanted to check what goes wrong in case of $f(z)=z^2+z$.  I want to check if the given set is connected for this but failed in doing so.


I am a meta user already and gained some initial reputation. On that, I got a notification like the one shown below in the image:  "Congrats, you've gained the privilege – participate in meta"    This is a probable bug since I am already a Meta user and this notification stands irrelevant now.

I just took a look at meta today and noticed something weird in the meta privileges. If you look at the meta privilege list, you can see that at . I know that there is no meta for meta, and the link they give you in the privilege page leads you to meta.stackexchange.com, right where you started. Why do they have this privilege? I have a feeling that this is a bad recursive joke. You must be  member of meta to get the privilege of being a member of meta! :)


Animal is a superclass  Feline is a subclass of Animal  Cat is a subclass of Feline  Canine is a sublcass of Animal  Dog is a subclass of Canine  All of the classes have their own eat() method that outputs:  "(class) is eating"  I've already tried creating an array of Animals, looping through them, and calling the eat() method, which outputs the proper output for each given animal.  My question is, what does one gain by doing this:    Cat j = new Animal();   wouldn't Cat j = new Cat() do anything you need do regarding methods with Animal types, since it's already an animal through inheritance?   Edit: I'm sorry, I meant it the other way around--what does one gain by declaring:  Animal j = new Cat();   sorry!

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


I have laptop with two graphic cards one build in Intel and the other is nvidia GeForce. I've installed Xubuntu 16.04 and now I want to check which graphic card is used by the system. Probably build in because there are not drivers for Nvidia but I want to be sure.

The reason I'm asking is that none of the games I've installed through software center that require 3D accelartion like TORCS for instance will run. When I try to run then, nothing happens. I have a Dell Inspiron N5110 with a nVidia GeForce GT 525M.  I tried the following which I were some suggestions for people with similar problems:  lspci -v   Which gave me:  01:00.0 VGA compatible controller: nVidia Corporation Device 0df5 (rev a1) (prog-if 00 [VGA controller])     Subsystem: Dell Device 04ca     Flags: bus master, fast devsel, latency 0, IRQ 16     Memory at f5000000 (32-bit, non-prefetchable) [size=16M]     Memory at e0000000 (64-bit, prefetchable) [size=256M]     Memory at f0000000 (64-bit, prefetchable) [size=32M]     I/O ports at e000 [size=128]     Expansion ROM at f6000000 [disabled] [size=512K]     Capabilities: <access denied>     Kernel driver in use: nvidia     Kernel modules: nvidia_current, nvidia_current_updates, nvidia, nouveau, nvidiafb   I also tried:  egrep -i " connected|card detect|primary dev" /var/log/Xorg.0.log   Which gave me:  [    20.873] (II) intel(0): Output LVDS1 connected   And:  nvidia-smi -a   Which gave:  NVIDIA: could not open the device file /dev/nvidiactl (No such file or directory). Nvidia-smi has failed because it couldn't communicate with NVIDIA driver. Make sure that latest NVIDIA driver is installed and running.   I don't really understand what all this means.


Situation: Whenever I boot up my Raspberry PI, I have to enter a few lines of commands to enable an interface. The commands:   sudo modprobe batman-adv sudo batctl if add wlan0 sudo ifconfig wlan0 up sudo ifconfig bat0 up   I would like to run a script that allows these commands to execute automatically when I boot up the Raspberry PI.

How can I run scripts automatically when Ubuntu starts up so I don't have to run them manually after startup?


I just found out that it's possible to attach variables to scene objects without using Blender property types. For example..  bpy.data.scenes[0]["MyData"] = MyData  This data is also saved and loaded with the *.blend file just as with property types.  Is this safe to use? Is it restricted in any way? Can I attach anything, or just certain types? I tested it with a list of int, and it worked, but I had to convert the loaded value back into a list after loading, with to_list().  I'm curious as to why I've rarely seen anyone doing this. Especially since it seems to be the only way to attach basic list types to scene objects (without defining the basic type inside of a property group, and defining that inside of a property collection).  One thing I can probably guess is that these would not support undo/redo functionality.  Appreciate any info on this

Python has two ways to define your own properties.    Via bpy.propsAccessible from data-editor, or via buttons defined in scripts:  # define the property bpy.types.Scene.my_prop = bpy.props.BoolProperty() # set the property bpy.context.scene.my_prop = True     Via Python's __getitem__/__setitem__Accessible from custom-properties panel:  # no need to declare it.  # set the property bpy.context.scene["my_prop"] = True     What should be considered when choosing which one to use?


I learned today that there are some true statements that are unprovable (gödel incompleteness theorem), which is a liddle sad. But not too sad if we could at least proof that:  For every unprovable true statement, exists a proof that it is unprovable.  Because that means we can stop looking. So I wonder does something like that exists? And if not, is there any other way to deal with it?

Given any statement $A$ and a classical theory $T$ which we assume is at least as strong as Peano Arithmetic ($\sf PA$), we have that $T\vdash A$ implies $T\vdash T\vdash A$ (that is, if a statement is provable, then it is provably provable). Let $T_1=T$ and $T_{n+1}=T_n+{\sf Con}(T_n)$. (We need stronger theories if we want to prove unprovability.) Given this, simply by considering the truth values of the relevant statements, we get the following classification of statements by unprovability:   $T\vdash A$ ($A$ is provable) $T_2\vdash T\not\vdash A$ ($A$ is provably unprovable) $T_3\vdash T_2\not\vdash T\not\vdash A$ ($A$ is provably unprovably unprovable)       ...      $\omega$. For all $n$, $T_n\not\vdash\dots \not\vdash T_2\not\vdash T\not\vdash A$ (we can't say anything about $A$'s provability)  We can refine this hierarchy by also considering the status of $\lnot A$. Let's call a class $m,n$ statement one such that $A$ is at level $m$ above and $\lnot A$ is level $n$ in the list. Since $T\vdash\lnot A$ implies $T_2\vdash T\not\vdash A$, the only nonempty classes at level $1$ are the class $1,2$ statements (provable statements) and the class $2,1$ statements (refutable statements). Independent statements are in class $2,2$. The class $1,1$ is nonempty iff the theory is inconsistent.  My question is: Are there any (preferably "natural") statements that fall further into this hierarchy? I know many examples of independent statements, like the continuum hypothesis or the axiom of choice relative to $\sf ZF$, or the Paris–Harrington theorem relative to $\sf PA$. But I know no examples of even any class $2,3$ statements. I expect there may also be natural examples of $\omega,\omega$ statements. My guess is that all the classes $m,n$ with $m,n\ne1$ are nonempty, but examples elude me.


I've bought 2 ATtiny's from AliExpress and  I can't program them. I've read some feedback and people say that they might be fake but then I saw some activity on IO pins. So I've made a small oscilloscope program on my Arduino:  On pin 2 there was a square wave signal and on pin 7 there was a signal, fading in and out.  my question is that the microcontroller is original or not and also I want to know how can I unlock the MCU, if it's locked?  Sorry if my English is bad.  When I try to program it it says avrdude: Yikes! Invalid device signature. Double check connections and try again, or use -F to override this check. I used Arduino as IDE. The error shows up in ArduinoIDE.          – Schematic created using   There's a 10uF capacitor between Arduino's reset and Ground  Here's a photo of the chip (Sorry for low quality my phone didn't want to focus)

I am trying to program ATTin85 using Arduino I used the hardware support file from "High-Low Tech" here   With this schematic:    After downloading the ArduinoISP sketch to the board, I tried uploading the blink sketch and tried burning the bootloader.  The IDE keeps responding with :  avrdude.exe: please define PAGEL and BS2 signals in the configuration file for part ATtiny85avrdude.exe: Yikes!  Invalid device signature.               Double check connections and try again, or use -F to override this check.   I also tried to using avrdude from CMD  avrdude -P COM5 -b 19200 -c avrisp -p t85 -v -e -U flash:w:sketch.cpp.hex   and it gave:  avrdude: please define PAGEL and BS2 signals in the configuration file for part ATtiny85 avrdude: AVR device initialized and ready to accept instructions  Reading | ################################################## | 100% 0.07s  avrdude: Device signature = 0xffffff avrdude: Yikes!  Invalid device signature.       Double check connections and try again, or use -F to override      this check.   avrdude done.  Thank you.     I tried choosing the three settings 1Mhz/8Mhz/20Mhz (without adding any oscillators) and tried the three options with a 16Mhz crystal with two 22pF capacitors (I read somewhere online that this may work)  and still nothing changed!  I tried another ATTiny85 Chip, another Arduino Uno, and tested the continuity every single wire. but still I am getting the same error.


So far I have used the hint and have done the following:  Let $i=1,2$. Suppose that $I\subseteq P_1\cup P_2$, but that $I$ is not properly contained in $P_i$ for any $i$. Then there is an $a_i$ such that $a_i \in I\setminus P_i$. Then $a_1+a_2 \in I\setminus (P_1\cup P_2)= \emptyset$. This is not possible, so $I\subseteq P_1$ or $I\subseteq P_2$.   Now I want to extend this result for $i=n$, where $n$ is a positive integer greater than or equal to $2$. I want to try a similar approach where I let $a_j \in I\setminus \left( \displaystyle \bigcup_{i=1, i\neq j}^n P_i \right)$ so then $a_j\in P_j$, but I have absolutely no idea what to do from there. Please help me! Thank you!

Let $I \subset R$ be an ideal and $P_i$  $(i=\{1,...,n\})$ prime ideals with $I\subseteq\bigcup_{i=1}^nP_i$. Prove that then $I$ is contained in one $P_i$.   I don't know how to show this because I don't have any approach.  So I am looking for something to start with or something like a sequence of tips (Since I know this is a large proof)  Thanks in advance!


My car just came from the inspection with a nice long list of repairs that have to be done to pass the main inspection for security (Hauptuntersuchung). The repairs sum up to something between 1500€ if only the absolut minimum is done up to 4000€ in the worst case for all (optional) repairs. The car is a Golf 5 from 2005 with nearly 220000 km and probably around 1500€-2000€.   From a financial viewpoint, is it wise to invest in the full repairs, only repair what is necessary, or buy a used car (2-5 years old, 50000-100000km, 8000€-10000€) and sell the old one, provided the funds are readily available?

I have a 2004 Honda Accord EX.  It has close to 200k miles but is paid off.  KBB says its worth is between 2500 for trade in or 3500 for private party sale).  I don't know much about cars but it seems to still be in good condition.  I've brought it in every 10k for servicing and have it up to date on any recall repairs required.  At the last servicing, the dealership said that my brakes needed replacing (~$800 at the dealership, probably cheaper elsewhere).  Also, the tires were old but they still had some wear left (7 yrs old but measured at 6/32).  Estimating about $600 for tires from Costco.  I was advised to look into getting new tires due to the rubber starting to break off and having a possible blow out on the freeway.  So right there is around $1400 in repairs, about 1/2 the value of the car.  Someone told me if the repairs are cheaper than a car payment, then do it.  In this case, if I keep the car about 4 months, then it's close to break even.    However, due to the car's high mileage, it's possible that something might come up within this 4 months and to break even on whatever the new repairs are, I will need to keep it longer and thus a possible endless cycle of repairing/keeping an old car to break even.  So, does it make sense to put in ~$1400 to fix now and drive for at least another 4 months or start looking for a new car and not worry about repairing a possible money pit?  UPDATE: This is a 2004 Honda Accord EX in "good" condition (good after answering the questions from KBB)  UPDATE #2: Seems like the price can change too.  I just checked on KBB again for the price and it says my vehicle is a low volume vehicle and can't give me a trade in price but gave me a private party sale price.  I guess the price can change from week to week (or in my case about 3 wks ago) depending on the market.    EDIT: I just realized I should clarify my thought process in this situation.  There were a couple times in the past where my family kept putting money into an old car b/c "they don't make them like they used to" or "it's still a good car.  Don't get rid of it", or like everyone is saying here in the answers and comments.  One car we had, an old Volvo, needed repairs and we put about 9k over 18 months into the car and it still wasn't working right.  We sold it but only got 1k from the buyer after pouring so much money into it.  Another time, we had another car that needed a 2k repair.  We calculated that to get our money's worth, we needed to drive it for about 7 months to get our money's worth and break even.  We drove it 2 months before it broke again and needed a 1k repair.  We estimated needing to drive an additional 3 months to break even.  After another 2-3 months, something else broke but we kept throwing good money after a bad problem.  I don't remember the total amt we wasted in the 2nd case but the issue was the same, we put a lot of money in but didn't get our return and didn't know when to cut our losses.  So, this is why I'm asking this question now with my current car.  The lucky thing is, I've looked up the KBB price before anything happened (we didn't look up before with the two previous cars since there was no internet or iphones at the time) and I'm more knowledgeable due to personal experience.  Hopefully this explains my thought process in this situation.  I don't want to get caught throwing good money after bad or feeling like I need to keep driving to get my money's worth from the repair.  Thank you for everyone's answers and comments thus far.  They've all been helpful.


I've been looking at some proofs but none make any sense to me, can someone prove this is true? One of them... Suppose $a=b$ $$ \Rightarrow a=b $$ Multiply each side by $b$ $$ \Rightarrow ab=b^2 $$ Subtract a^2 from each side $$ \Rightarrow ab-a^2=b^2-a^2 $$ Simplify $$ \Rightarrow a=a+b $$ $$ \Rightarrow a+1=a+b+1 $$ Because a=b $$ \Rightarrow a+1=2a+1 $$ Suppose a=1 $$ \Rightarrow 1+1=2+1 $$ NOTE: I'm a 10th grader

I have a "proof" that has an error in it and my goal is to figure out what this error is. The proof:  If $x = y$, then  $$ \begin{eqnarray} x^2 &=& xy \nonumber \\ x^2 - y^2 &=& xy - y^2 \nonumber \\ (x + y)(x - y) &=& y(x-y) \nonumber \\ x + y &=& y \nonumber \\ 2y &=& y \nonumber \\ 2 &=& 1 \end{eqnarray} $$    My best guess is that the error starts with the line $2y = y$. If we accept that $x + y = y$ is true, then   $$ \begin{eqnarray} x + y &=& y \\ x &=& y - y \\ x &=& y = 0 \end{eqnarray} $$  Did I find the error? If not, am I close?


Which question is correct? Please help me as I'm completely confused.  Tony ________ to have children until his little daughter was born. After she won his heart, he decided he wanted a big family. A. didn't want B. hadn't wanted  This is a multiple choice question from Understanding and Using English Grammar Workbook, 3rd edition by Betty Schrampfer Azar. To me, both A and B seem correct and I don't know which option I should delete.

Which answer is correct?       Tony _______to have children until his little daughter was born. After   she won his heart, he decided he wanted a big family.       A. didn't want.   B. hadn't wanted.   This is a multiple choice question from the Understanding and Using English Grammar Workbook 3rd edition by Betty Azar. To me, both answers are correct as I cannot see the diffrence. Please show me the wrong option to delete.


Given the following union definition:  typedef union{ int i; char ch; float f;}record;    record a; //a.i = 10; a.ch = 'A'; //a.f = 10.56; printf("printing a.i: %p \n", a.i); printf("printing a.ch: %c \n", a.ch); printf("printing a.f: %f \n", a.f); return 0;   I get the following output:  printing a.i: 65 printing a.ch: A printing a.f: 0.000000  Why does a.i not print 0 (the default value for undefined integers) but instead the ASCII value for 'A'. Does this somehow have access to a.ch??

Is there any good example to give the difference between a struct and a union? Basically I know that struct uses all the memory of its member and union uses the largest members memory space. Is there any other OS level difference?


wan't know how to start this problem, tried to multiply by $\sqrt{n}$, but it does not work. Can someone help me with that? Thanks. Here is the inequality.  $$2(\sqrt{n+1}-\sqrt{n}) < \frac{1}{\sqrt{n}} < 2(\sqrt{n}-\sqrt{n-1})$$

I stumbled on the following inequality: For all $n\geq 1,$ $$2\sqrt{n+1}-2\sqrt{n}<\frac{1}{\sqrt{n}}<2\sqrt{n}-2\sqrt{n-1}.$$ However I cannot find the proof of this anywhere. Any ideas how to proceed?  Edit: I posted a follow-up question about generalizations of this inequality here:


, one receives a warning banner when opening the flag dialog box:     Your recent flag was declined - please review it before flagging this post!   This banner fills all the space right up to the "Flag question" button, just touching it:        This might be a bit pedantic, but this spacing looks really cramped: can the Flag Warning banner be thinner, or can the spacing between the banner and the "Flag question / Cancel" buttons be increased?

The "some of your recent flags have been declined" message recently got a banner, which makes it stand out  more (which is nice) but it touches the 'Flag' button, which is less nice. Can it have some margin at the bottom (and perhaps less padding?)    Tested in the latest Safari and Firefox on macOS Catalina.


find value of the $$\lim_{x\to0}\frac{e-(1+x)^{\frac{1}{x}}}{x}$$I use hospital law and can't find answer

Find the following limit: $$\lim_{x\to 0}\frac{(1+x)^{1/x}-e}{x} \tag{1}$$  The following is my approach, although is full of incorrect assumptions (statements etc).  $$f(x)= \lim_{h\to 0}(1+x+h)^{1/(x+h)}\\$$  From here we can say $f(0) = e$.  $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\ln(1+x+h)$$  Near $x=0$, we can use the series of logarithm: $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\left(x+h-\frac{(x+h)^2}{2}...\right)$$  Differentiating we get:  $$\frac{f'(x)}{f(x)} = \lim_{h\to 0}-\frac{1}{2} +\frac{x+h}{3}  ... \tag{2}$$  Now we note that $(1)$ is actually $f'(0)$ (?) and so from $(2)$ we get:  $$f'(0) =\frac{-1}{2} f(0) = \frac{-e}{2}$$  While the answer is seemingly correct, the method is absolutely not. It looks like this is fluke than anything else.  I also tried computing taylor series of $(1+x)^{1/x}$ near $x=0$ but couldn't do it.


So, I'm just starting out learning and I'm aware that rounding-error questions are the most common on here. But I am unable to find one that gives a clear answer about why this particular thing happens, or rather, how will I know what to look for? I understand that it happens because of the way the variable are stored, and that there's a limit for how much decimal places they can hold, but I'm unsure why its different for each digit. Other than that explanation, I can't find anything further. My textbook warns me to be careful with rounding errors, and I do know how to correct them to the decimal place that I want. But still, I want to know how we can brace ourselves for what numbers it is likely to happen. We can ask the console to print to check and make sure that our numbers are correct, during the programming process, but is there some way to 'detect' it before it even happens or be weary of which numbers do what? Some numbers have no rounding error. Example: 10.02 * 100 = 1002. But 10.03 * 100 = 1002.9999999999999 10.04 * 100 = 1003.9999999999999 10.05 * 100 = 1005.0000000000001 If it has to do with binary, why isn't 4 safe?

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


I want to build a crop-like tool that can basically select an area of an image using mouse and give back its surface?  What do you suggest, is there any plugin that can help me; I dont want to start from scratch.

Assuming a series of points in 2d space that do not self-intersect, what is an efficient method of determining the area of the resulting polygon?  As a side note, this is not homework and I am not looking for code.  I am looking for a description I can use to implement my own method.  I have my ideas about pulling a sequence of triangles from the list of points, but I know there are a bunch of edge cases regarding convex and concave polygons that I probably won't catch.


I created a button that use svg image icon on left and text on the right, but I could not make a text to center in the middle alignment as an icon. Here how it looks:  It seems the text "Authorize" is align to the top not equally center in the middle relatively with icon.   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">  <button class="btn btn-success"> Authorize</button>    I have tried to wrap text "Authorize" in  and set padding-top and margin-top as well but does not work. How can I align text align text well with icon perfectly in case? Thanks

Why won't vertical-align: middle work?  And yet, vertical-align: top does work.   span{   vertical-align: middle; }
      Doesn't work.


I have a jar file which will let me connect to an instance. Once I run the command java -jar jarname in command line it will ask for username and password. Is there a way I can give the username and password as parameter in command line ?

How do I pass parameters to a JAR file at the time of execution?


I'm a beginner to DnD, and I've been reading everywhere that you should buy the Red Box Set, but this is about $100, in comparison to the DM Kit, Monster Vault, and Hero's of the Forgotten Kingdom (Which has a supplement to the PHB Correct?).

I've asked several questions about 4th Edition D&D because I may be able to start a game. However, I'd need to purchase (some) materials. I am aware of the 4 book set (core) and the expected Essentials Red Box.  So now I need to know: presumably buying either the 4 book set or essentials will be enough to get my game on. Would there be something 'lacking' though? Would I be missing character types, for instance, as I've seen that the splatbook strategy is still in effect?  I'm an experienced player and GM and plenty creative, so many holes I'd be able to fill in myself. I just don't want to get sucked into too much financial impact.


I want to write a sql query for the following excel-query. What should be the appropriate query?  IF  (     (project. PA_SUBMIT_DATE )-(project. PA_AGREED_SUBMIT_DATE)      >=0;     "YES";     "NO" )   i.e Date difference should be greater than or equal to zero. If so return yes else no.Please help me here.

How do I perform an IF...THEN in an SQL SELECT statement?  For example:  SELECT IF(Obsolete = 'N' OR InStock = 'Y' ? 1 : 0) AS Saleable, * FROM Product


How can I download Ubuntu One onto my Apple iPad so I can sync with my other devices?

I'd love to install Ubuntu as a standard standalone on my ipad, is there any way to do so?


I'm trying to find and prove the value of$$\lim_{n \to \infty}\frac{1}{n}(n!)^{\frac{1}{n}}$$  I was thinking that since $$\frac{1}{n}(n!)^{\frac{1}{n}} = \frac{1}{n} \left[ (1)^{\frac{1}{n}}(2)^{\frac{1}{n}}...(n)^{\frac{1}{n}}  \right]$$  and we know that  $$\lim_{n\to \infty}n^{\frac{1}{n}} = 1$$ and  $$k^{\frac{1}{n}} \leq  \ n^{\frac{1}{n}} \ \ \ \ \forall k \leq n$$  So $(n!)^{\frac{1}{n}} \leq 1 \ \forall n \ $* Then it is bounded. We also know that $\lim \frac{1}{n} =0$, therefore  $$\lim_{n \to \infty}\frac{1}{n}(n!)^{\frac{1}{n}} = 0 **$$   I'm pretty sure this line of reasoning is ok. Now proving it is another thing. Any suggestions?  *I realize now that this statement is not true, but that did not get me any closer to solving the problem. I do believe that it is bounded though.  **LOL, I don't believe this to be true anymore either, a wild guess tells me that the solution may be $\frac{1}{e}$

I'm trying to find  $$\lim_{n\to\infty}\frac{n}{\sqrt[n]{n!}} .$$   I tried couple of methods: Stolz, Squeeze, D'Alambert  Thanks!  Edit: I can't use Stirling.


I want to say I am a complete newbie but I want a shell script that will execute a command on a specific time for example on 6:45 am  How is this done, a full example would be very useful! Thank you!

What's a simple way to run a command, say, 8 hours from now? I can think of this way:  nohup bash -c "sleep 28800 ; ./mycommand.sh" &   Is there a more "proper" way?


Situation: for about 2 years our business website ran on httpdomain; then a lot of websites hyperlinked to our website.  Now; we recently switched to https.domain ~ (redirection set on domain) On some seo tools I can still see backlinks of good and bad sites linking to our http/domain.com ;   Primarily google-webmaster tools ~ we changed the domain on account to the httpsdomain already. verified thru analytics embed code put on the site.  the httpdomain is now set to be redirecting to our httpsdomain (same domain name just different in httpS).  Now; my question is 1. Will bad links linking to the httpdomain affect or pull down the httpSdomain site in rankings?   how can I disavow // or avoid association from the bad links for the httpsdomain?   thanks in advance

I have a client which disavowed a few thousand dirty links from his site profile back in February 2015. Recently the site was switch from HTTP to HTTPS (SSL enforced).   Google recommends that you add all variations to the Google Console (Webmaster Tools).  The site has a total of 4 variations, eg:    http://www.example.com (Previously Preferred) http://example.com https://www.example.com (Now Preferred) https://example.com   Question:  Since technically this is a new property in Google Webmaster Tools, do you need to submit the same disavow file added previously back in 2015?


I've set up Replication between two remote servers, Using Peer to Peer & Transactional updates. The subscription is all set, but the actual replication doesn't take place.  When viewing the Synchronization Status of the subscription, i get an error, saying "The process could not connect to Subscriber 'SERVER2\DBINSTANCE'."  Clicking on start, this is the error message I get:    TITLE: View Synchronization Status  The agent could not be started.  For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1&EvtSrc=Microsoft.SqlServer.Management.UI.ReplUtilitiesErrorSR&EvtID=CantStartAgent&LinkId=20476    ADDITIONAL INFORMATION:  An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)    SQLServerAgent Error: Request to run job SERVER\DBINSTANCE-DBNAME-DBPUBLICATION-SERVER2\DBNAME-3 (from User sa) refused because the job is already running from a request by Start Sequence 0. Changed database context to 'DBNAME'. (Microsoft SQL Server, Error: 22022)  For help, click: go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=22022&LinkId=20476    Viewing the Agent History, trying to get more specific into the error, i get the following Error:    Error messages: The process could not execute 'sp_replcmds' on 'SERVER\DBNAME'. (Source: MSSQL_REPL, Error number: MSSQL_REPL20011) Get help: help/MSSQL_REPL20011 Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission. (Source: MSSQLServer, Error number: 15517) Get help: help/15517 The process could not execute 'sp_replcmds' on 'SERVER\DBNAME'. (Source: MSSQL_REPL, Error number: MSSQL_REPL22037) Get help: help/MSSQL_REPL22037    I have looked each and every one of the errors online, went through all this kind of explanations and changes, and nothing worked. Many thanks to anyone who can pour some light on the issue.

I am having a problem running the CDC change capture job against some of my test databases.  The error message I'm getting is the following:     Executed as user: NT AUTHORITY\NETWORK SERVICE. Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission. [SQLSTATE 42000] (Error 15517).   How can I fix this?


I have multiple objects, all of them are almost the same but scaled or with little modifications, i applied a modifier to one, but i need the same exact parameters to all the other objects, it is possible to duplicate those parameters on the other objects?  Thanks in regard.

Is it possible to add a modifier to more than one mesh at once?  I have a lot of unique objects,  and I want to set a subdivide modifier to them, would I have to do each one individually?   I have tried selecting all the objects and then adding a modifier, but as I expected, it only added it to the active object.


Third law of motion - "For every action there is an equal and opposite reaction"  I was considering the situation, where I may be motionless in space with only a flashlight and no forces acting on me. I could throw the flashlight, and begin my very slow drift in whatever direction I please, but I was wondering, if I direct the flashlight in a certain direction and turn it on, would that also push me until the batteries ran out, even if it's a tiny amount? What if I were generating directed radio waves or similar?

Photons have no mass but they can push things, as evidenced by .   Can photons push the source which is emitting them? If yes, will a more intense flashlight accelerate me more? Does the wavelength of the light matter? Is this practical for space propulsion? Doesn't it defy the law of momentum conservation?  Note: As John Rennie mentioned, all in all the wavelength doesn't matter, but for a more accurate answer regarding that, see the comments in  .  Related Wikipedia articles: ,


I would like to disable right click on my UI, for example, I don't want the user to use right click on my Button UI.   How can I disable Right Click ?  Thanks

anyone knows how to disable Edit Source function? I am developing my project using the blender, I would like to disable Edit Source option whenever user Right Click on the UI, there is an option the user can choose to see the source code. I would like to disable it, how can I do it. I want to prevent the user from Right click and choose to go to the edit source.   Thanks


Good afternoon.  I would like to get this (the picture below) but I don't know how to get it and I don't know a name of that. :)   Thanks for help.

How do I produce a conditional expression with large brackets? For example: X = 0 if a=1, 1 otherwise, with a large left bracket and specifying each condition in a line?


The question found  triggered a question in my mind. Lately I've been noticing how people tend to use the word where in a way which to me seems inapt. Some examples:   Anorexia is a condition where a person, usually a young female, has such a poor body image that she virtually starves herself to death.  A phobia is where you have a fear of, say, clowns, and this fear seemingly has no rational basis.  The abused dog suffered from hypothermia, a condition where the body's core temperature drops to a near-fatal level.    Wouldn't the words in which (or when, in the case of the hypothermic dog) be a better fit than where in the first and third examples?   Anorexia is a condition in which a person . . ..  The abused dog suffered from hypothermia, a condition in which . . .. Or, The abused dog suffered from hypothermia, a condition when . . ..    Wouldn't the word when, or the words a condition in which, be a better fit than where in the second example?   A phobia is when . . .. Or, A phobia is a condition in which . . ..   I'm not suggesting my substitutions are necessarily the best or that they exhaust the number of possibilities, but isn't the use of the word where inapt in my examples? If so, why? If not, why not?

In my mother tongue I can use the word where not only to describe something connected to a location, but also to substitute in which.   My question is: Is it correct to use where in a sentence like this?       Describe a situation where you had to show leadership.   Or it would be better to use in which instead?


I came a cross a problem I could not solve today:     If matrices $A$ and $B$ satisfy $A^4 = 0$ and $B=I-A$, prove that $$B^{-1}=I+A+A^2+A^3$$   I doubt they expect me to start calculating 4 matrices that would have a,b,c,d  values in them etc  I'd love to know how to work with a powered matrix :)  thanks in advance

Let $A$ be a squared matrix, and suppose there exists an $n\in \Bbb N$ in a way that $A^n=0$. Show that $I-A$ is invertible and that $(I-A)^{-1}=I+A+\cdots+A^{n-1}$    I don't have a clue where to start from.


I made a Yahoo! account a while ago, and I thought I was just going to use it for small stuff, but I ended up depending on it very heavily. Since I was going to use it only for small stuff, I didn’t really pay attention to the sign up information, so I put a random phone number, and I also did not put a recovery email. I’ve forgotten my password and I can’t get back in. I am depending on this email very heavily so if you have any solutions, please help me.

One of my friends just got hacked on her PC and her Yahoo account password was stolen. Now the hacker use her account under her name for bad reason. He may have change alternative email, security question, etc.  What can we do about that? We need her account back. Is it possible?   ps. I tried to google search for Yahoo contact information but I'm not sure where to knock Yahoo door.


<apex:form id="SectionTrack">
            <apex:repeat value="{!listT}" var="tp" id="Track_Table">
Track Name	Status	Task Updates

<apex:inputField value="{!tp.name}"/> 	<apex:inputField value="{!tp.Status__c}" />	<apex:inputField value="{!tp.Task_Detail__c}"/>

<apex:inputField value="{!tp.Risk_Detail__c}"/>

Risk/Issues	Some Data

Comments:<apex:inputTextArea rows="3" cols="50" value="{!tp.Comments__c}"/>
             </apex:repeat>
      </apex:form>   This gives a table showing the repeat data vertically, i.e. one below another. I want it to be displayed horizontally i.e. next to each other. How can the apex:repeat be modified or what changes need to be implemented to achieve this?

          <apex:repeat value="{!dataList}" var="List" id="dataTable">
                     Name 	                   Status

                     <apex:inputField value="{!List.Name}"/> 	                    <apex:inputField value="{!List.Status__c}"/>
           </apex:repeat>
     I want all rows to display horizontally not vertically i.e. in the same line one after another instead of in next line. How can this be done? The headings and values, both should be repeated horizontally.


I was confuse about how to prove this ~~ My thought is prove the N(T) is finite dimension first  then use this property to get R(T) is closed

Let $T: X \longrightarrow Y$ be a continuous linear map between two Banach spaces.  When is $\operatorname{Ran}(T)$ a closed subspace?  What theorems are there?   Thanks :)


It was possible to enter India with a new passport and the valid visa in the old passport last year. However I can't get any official confirmation on the current status.  Notably, Timatic used to explicitly say that "Valid visas in expired passports are still acceptable, provided accompanied by a valid passport of the same nationality of the expired passport", but currently it doesn't seem to say it anymore. I've checked United one.  Indian consulate in Chicago :     Transfer of visa to a new passport is not needed in emergency and the   applicant can travel to India with old passport having Indian visa,   along with new current passport.   Emphasis is mine. I do not have an emergency, and in any case I wouldn't trust embassy web sites as they update very slowly.  So anyone flew to India recently with a visa in an old passport? Was there any hassle/issues during checkin or immigration in India?  I'd transfer the visa, but the process is incredibly annoying, and paperwork-wise is the same as getting a new visa.  Update: things get more interesting. Apparently there seem to be two different versions of TIMATIC.   For example, :     ... This does not apply to passengers with a PIO    card.      Valid visas in expired passports are still acceptable,  provided accompanied by a valid passport of the same   nationality   of the expired passport.   However the one available at  and  do not have this wording, and both explicitly omit this phrase:

I recently had to renew my passport.  The expired one has an Indian visa that will be valid until 2016.  Is it necessary for me to get the visa transferred to the renewed passport, or can I get through customs in India (likely Mumbai) if I have both the expired and the renewed passports with me?


Let $f: \mathbb{R} \to D \subseteq \mathbb{R}$ be a continuous function. Is there a function $f$ that satisfies the following property? $\forall y \in D$, there are exactly 3 $ x_1,x_2,x_3 \in \mathbb{R}$ such that $f(x_1) = f(x_2) = f(x_3) = y$.

Does there exist a function $f: \mathbb{R} \to \mathbb{R}$ that takes each value in $\mathbb{R}$ three times? If not, how could I prove that such a function does not exist?


When I do $ \sum_{k=1}^{K} $ I get this:     But I want to get this:    where i is above!  I am working in beamer.

I'm very familiar with how symbols display differently in inline mode (with $ ... $) vs. how display math shows them (with \[ ... \] or $$ ... $$).  Two examples would be with limits  $\lim_{n\rightarrow \infty}f(x)$   vs.  \[ \lim_{n\rightarrow \infty}f(x) \]   and with sums  $\sum_{n=1}^{x} n^2$   vs.  \[ \sum_{n=1}^{x} n^2 \]   My Question is:     How do you display these things in inline mode (with all the nice inline formatting) as if they were in display mode ?   The inverse -- how to display things in display mode as if they were in inline mode -- is also of interest.


I have a string "Home   333-666-8888  Do Not Disturb" and want to extract the numbers from the string. For that I found a solution with ReplaceAll functionality in Java.   String ab="Home   333-666-8888  Do Not Disturb";  String bc=ab.replaceAll("[^0-9-]", "");   And it gives me 333-666-8888  My concern is how does replaceAll functionality actually works? I used to assume that it would replace the things matching the Regular Expression with blank and return me Home Do Not Disturb. But It gives me 333-666-8888. Can anyone help me in understanding how replaceAll with Regular Expression Works?

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


anybody know how to handle an anchor like this? i redirect from another page to the page with these anchor items    i want to set   1 - 9009bac1153753cf6741eda10bc03121  2 - ZJJNkHQ2  3 - 95.26336735469833  4 - 1661  and get these values on the page to set them automatically in input boxes.

I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net.


I have a function with an ajax code to get data from a table filter by username.  function showdata(){ var username  = $("#username").val(); // input:text element id = 'username' $.ajax({     type:"POST",     url:"purchase_process.php",         data: "act=show&username=" + username,     success: function(data){         $("#show_data").html(data); // div element with id = 'show_data'         $("#show_data").fadeIn(2000);     } });}  showdata();  $(".del_button").click(function(e) { e.preventDefault(); var id = $(this).attr('id'); var no = id.split('-'); var number= no[1]; var username  = $("#user_"+number).val(); var code  = $("#code_"+number).val();  $.ajax({     type:"POST",     url:"purchase_process.php",         data: "act=delete&username=" + username + "&code=" + code ,     success: function(data){                          $("#info").html(data);  // div element id = info         showdata();      }   }); });   And here is the ajax response from purchase_process.php that show all data in a table that each rows of the data have  element show in a image (delete.png) to delete row :

No.	             Part Number	             Part Name	             Location	             Qty	             Cost	             Subtotal	             Action

             $no	                              $r[part_code]                 <input type=hidden id='user_$no' name='user_$no' maxlength=20                                     value='$_POST[username]' readonly>                 <input type=hidden id='part_$no' name='part_$no' maxlength=20                                     value='$r[part_code]' readonly>             	             $r[part_name]	             $r[location]	             $r[qty]	             ".number_format($r['cost'],2,",",".")."	             ".number_format($subtotal,2,",",".")."

   Function showdata() is running well but jquery function event:click for "a" element with class = "del_button" have no response whenever I click in image (delete.png) However if I make the same "a" element in that page, that jquery function running well. I assumed that jquery function don't get the "a" element value because that was called from ajax response.  Is there anyone can help me to solve this trouble? Thanks before...

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I have WCF service hosted as windows service, I am trying to get clients (WPF client) Mac address at server end (WCF side). I have tried using following line of code but it gives me IP address of client that too in ::1 format. RemoteEndpointMessageProperty prop = OperationContext.Current.IncomingMessageProperties[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; prop.Address is ::1 How can I get client Mac address so that I can differentiate among the client hitting my service. There could be scenarios where clients under same network may give me same IP address and that is reason I am looking for Mac address to identity client's call.

Apparently you can easily obtain a client IP address in WCF 3.5 but not in WCF 3.0.  Anyone know how?


I have to stop calculation whenever the count is not a fractional number. I have the following code working on GCC. Its not complete a part of code where I got stuck is given below.  double count; long int ticks = 256;  do {     count = (500e-6) / (200e-9 * ticks--); } while (count != (unsigned long) count);   Actually at ticks = 250, count = 10 (on calculator) then it should stop but when I saw the value of count its not 10 instead it is 9.960159 (By using GDB) since it's not a whole number it stops at some other value. Now how to solve this problem...

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


I am trying to do a simple test in Python using unittest, to see if a class throws an exception if it gets an unsuitable input for the constructor. The class looks like this:  class SummaryFormula:     def __init__( self, summaryFormula):         self.atoms = {}         for atom in re.finditer( "([A-Z][a-z]{0,2})(\d*)", summaryFormula):             symbol = atom.group(1)             count = atom.group(2)              if pocet != "":                 self.atoms[ symbol] = int(count)             else:                 self.atoms[ symbol] = 1   My test is following:      class ConstructorTestCase(unittest.TestCase):       def testEmptyString(self):         self.assertRaises(TypeError, ukol1.SummaryFormula(), "testtest")      if __name__ == '__main__':       unittest.main()   All I want is the test to fail, meaning that the exception of unsuitable input for constructor is not handled.   Instead, I get an error: __init__() takes exactly 2 arguments (1 given).   What am I missing? What is the second argument I should specify?  Also, what type of Error should I use to handle exception that an input not matchable by my regexp was passed to the constructor?  Thank you, Tomas

How does one write a unittest that fails only if a function doesn't throw an expected exception?


The following command with 2 parameters does what I need if I enter it in a terminal:  mycommand 'string that includes many spaces and double quotes' 'another string that includes many spaces and double quotes'   Now I move the above to the bash script.  C=mycommand 'string that includes many spaces and double quotes' function f {  $C $1 } # let's call it f 'another string that includes many spaces and double quotes'   Obviously this is not going to produce the same result, or any useful result. But I can not come up with the correct way of preserving and/or properly escaping quotes, spaces and keeping number of actual parameters that mycommand sees as 2.  I use GNU bash version 3.2.57 on a Mac.

$ ls -l /tmp/test/my\ dir/ total 0   I was wondering why the following ways to run the above command fail or succeed?  $ abc='ls -l "/tmp/test/my dir"'  $ $abc ls: cannot access '"/tmp/test/my': No such file or directory ls: cannot access 'dir"': No such file or directory  $ "$abc" bash: ls -l "/tmp/test/my dir": No such file or directory  $ bash -c $abc 'my dir'  $ bash -c "$abc" total 0  $ eval $abc total 0  $ eval "$abc" total 0


Whenever someone visits intern.old-company-name.example.com I would like it to get redirected to https://intern.new-company-name.example.com. One way to do it would be  <IfModule mod_rewrite.c>     RewriteEngine On     RewriteCond %{HTTPS} off     RewriteRule ^(.*) https://intern.new-company-name.example.com$1 #    RewriteRule ^(.*) https://%{HTTP_HOST}$1                                                              </IfModule>   but I don't like that I hardcode the outer sub domain intern into the httpd.conf.  Question  Would it be possible to do a regex on %{HTTP_HOST} so old-company-name gets replaced with new-company-name before the redirection to https? Or perhaps something similar?  Update  # apachectl -S VirtualHost configuration: 10.10.10.10:443     is a NameVirtualHost          default server a.y.b.com (/etc/httpd/conf.d/ssl.conf:85)          port 443 namevhost a.y.b.com (/etc/httpd/conf.d/ssl.conf:85) Syntax OK

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I have two different classes with a method inside each. Classes are 'DBConnect' and 'Controller'. Since I try to build an fx application I have a combobox named as 'privilageBox' and a generic type named 'privilageList' for its choices (inside Controller class).   ObservableList<String> privilageList = FXCollections.observableArrayList("Admin","Employee");   There is a function called 'login' inside the same class and there is some coding inside it. I have an if statement as well and what I am trying to do inside the requirements section is I try to call 'checkUser' method that is located inside the DBConnect class and set its parameters.  DBConnect lg = new DBConnect(); if(lg.checkUser(textField1.getText(),passwordField1.getText(),(privilageBox.getValue()).toString()))   This is where I get the NullPointerException. I am setting the paremeters wrong and I ran out of solutions.  Here is the checkUser function's parameters inside DBConnect class:  public boolean checkUser(String username, String password,String privilage) throws SQLException   I have tried to set the parameters for 'checkUser' and if statement inside 'login' as below:  public boolean checkUser(String username, String password,ObservableList privilage) throws SQLException  if(lg.checkUser(textField1.getText(),passwordField1.getText(),privilageList.toString))   It did not work also. By the way, this is a runtime error. I get no errors at compile time. Error message (discarded unnecessary parts):  Caused by: java.lang.NullPointerException at sample.DBConnect.checkUser(DBConnect.java:70) at sample.Controller.login(Controller.java:44)

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


I have a file with two tables generated by tabular environment. But the first table is very short but the second one is very long (several pages). As a result, my typesetting automatically starts the second table from a new page. Is there a way to stop this?  \begin{center} \begin{tabular}{l l} ... \end{tabular} \end{center}  \begin{tabular}{l l} ... ... ... (many lines) \end{tabular}

I'd like to group two tables, one below the other, so they don't show separated ie. one in each page. What's the best way to achieve that? I've read about positioning them side by side, but not this.  Probably, I could create a custom float with \usepackage{float}, but I bet there is a simpler way (other than playing around with [htpb]).


You know a counterexample for:     Let $R$ be a commutative ring ($1\neq{0}$). If $a\in{R}$ is irreducible then $(a)$ is prime.   Thanks.

In $\mathbb Z[\sqrt{5}]$, $2$ and $1+\sqrt{5}$ are irreducible but not prime.   To  show irreducible  I tried  that there exists $\alpha$ and $\beta$ such that  $$2=\alpha\cdot \beta $$ $$N(2)=N(\alpha)\cdot N(\beta)$$ $$4=N(\alpha)\cdot N(\beta)$$  then there are 3 possibilities (namely $1.4 , 4.1 , 2.2$)  Now,I have to show that $N(\alpha)=2$ is not possible  that is $|a^2-5b^2|=2$   $a^2-5b^2=\pm 2$   How can I show that this is not possible? and how can i show that $2$ is not prime in $Z[\sqrt{5}]$?


If you have just started and you draw a move backwards 4 card, on your next turn you get a move forward 12. You have no other pawns out to move. Do you have to move The original pawn (the one you backed up 4) forward or can you refuse the move?

In Sorry, if you are 7 spaces away from your Home and you draw a 12 (and your other pawns are in Start or Home), do you have to move past your safety zone like you're going around the board a second time or do you forfeit your turn?


Trying to set up a system for my 4 remote employees to transfer files.  It has to be secure.  Is SFTP better than FTPS?  What is the difference?

I would like to know exactly what the difference is between the following protocols: FTPS, SFTP, and SCP. For instance Unix has an scp tool, FileZilla offers FTP and SFTP, whereas JetBrains PhpStorm offers distinct SFTP and FTPS protocols.  Thanks for the clarification.


Is it possible to substitute a macros, say #define VAL 1, with a command line argument, such as VAL=1 make? This was my approach, and I did not figure out how to change the make file. I was trying to add extra lines in .all in the Makefile, but nothing worked. So how to add a macros/environment from the command line?

In the process of learning tinyos I have discovered that I am totally clueless about makefiles.  There are many optional compile time features that can be used by way of declaring preprocessor variables.  To use them you have to do things like:  CFLAGS="-DPACKET_LINK"        this enables a certain feature.  and    CFLAGS="-DPACKET_LINK" "-DLOW_POWER" enables two features.  Can someone dissect these lines for me and tell me whats going on? Not in terms of tinyos, but in terms of makefiles!


In my kernel log, I can see entries like:     [    0.765510] sd 3:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)   and when something fails, it's usually something like:     [ 6007.433977] ata8.00: revalidation failed (errno=-5)   How can I translate the sd:X:X:X:X to ataX:00 so I could figure out which drive is failing?

Consider following kern.log snippet:   ata4.00: failed command: WRITE FPDMA QUEUED  ata4.00: cmd 61/00:78:40:1e:6c/04:00:f0:00:00/40 tag 15 ncq 524288 out         res 41/04:00:00:00:00/04:00:00:00:00/00 Emask 0x1 (device error)  ata4.00: status: { DRDY ERR }  ata4.00: error: { ABRT }  ata4: hard resetting link  ata4: nv: skipping hardreset on occupied port  ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 300)  ata4.00: configured for UDMA/133  ata4: EH complete   How can I identify which hard drive the kernel actually means when it talks about ata4.00?  How can I find the corresponding /dev/sdY device name?


Goal: *Same database to have 2 similiar table named test1 an test2. *Table test2 is only used for query (read only) and table test1 is only used for command (delete, create and update). Background: *Test2 is a replication of Test1 (any changes in test1 should update in table test2 in realtime). Problem: Is it possibly to make a replication of a table in the same database in SQL server? Thank you!

We have a SQL Server 2012 instance that contains a database with data for many product lines.   We are looking for a way to take subsets of this data into another database on the same instance.  This doesn't have to be continuous as we are looking for ways to make it easy to export backups of the subsets that we can send out to vendors (we have a company that loads this data into their own sql server to produce a product we sell, naturally its huge and we want to trim it down to just the product lines they work with on a regular enough basis) or use to load SQLite DB's for use with offline applications.  ProductDB - the superset of all product line data.  ProductLine1DB - A subset identical in structure to ProductDB, but with data only relevant to product line 1.  ProductLine2DB - A subset identical in structure to ProductDB, but with data only relevant to product line 2.  This can be done nightly, weekly, as often as we need to but not a continuous replication.  We don't want to add in distributor servers or even extra subscriber servers. We would like the replication to happen on the same server with the subscriber databases being on the same server.  Is this a good candidate for transactional replication?  Why or why not?  We obviously have other options to load this data, but it seems like this might be a good case to use something like transactional replication. I've heard its powerful but prone to issues when not setup optimally.  Note: I am not a DBA, simply a developer, but we are currently looking for a new DBA and some of us are taking over duties like this temporarily.


Firstly, I have my Vista OS, then I wanna use UBUNTU only, so I install Ubuntu succesfull replace to Vista OS. after that I can't boot to Ubuntu but I still see Boot WIndows menu with ERROR.  I tried to use boot-repair by USB with LIVE UBUNTU and now I am typing this ASK by Ubuntu. But i had the problem that I have to chose GRUB menu with WINDOWS 7 (it show windows 7 i/o Vista lol) and Ubuntu. So i want to boot to UBUNTU not via this GRub menu directly.   This is my  so pls help me to fix it with as much details as much help for me.

In Ubuntu 12.04 (or above), how do I set the GRUB time and the default OS (that I see at boot time) as I'm dual-booting Windows (7/8) and Ubuntu (12.04 or above)?


Is ∅ equivalent to {∅}? I think they are, but I am not sure? If anyone could clarify, that would be great. Thank you!

Can someone give an argument, if possible using only the axioms of set theory, because I'm very weak there and have virtually no background, except the usual knowledge of the operation with sets one has to have when doing non-set theoretic non-research mathematics, why $\emptyset \in \emptyset$ or $\emptyset \subseteq \emptyset$ should or should not hold?


I have a Samsung LCD monitor measuring 21 inches. The refresh rate is 60 Hz, but if I select a setting higher than that, I get an error.  I actually don't know the exact screen resolution of my PC, but it shows refresh rate around 60 - 72 Hz I think.  Right now, i set to 1600 x 900. Is it safe?   Can setting the wrong refresh rate damage my monitor?

I work on different types of monitors (CRT, LCD) and all PCs have the same screen refresh rate as 60 Hertz. Recently I've read an article which claims that low refresh rates cause headaches. The writer states that 60 Hertz is a low refresh rate and should be increased to the maximum value that the monitor supports. If I increase this value to the maximum as the monitor can display (for example 75 Hertz), does it damage the monitor in the long term? Answers about the pros and cons of low & high refresh rates would be highly appreciated.


I generate an index.html file in a PHP script to avoid PHP code within HTML and to show content that is delivered by another script hourly. (Like next flights within an hour.)  This script overwrites the file each time the content is ready (I plan to do this with a cron job).  Then, will my index.html be indexed by Google or it will be punished for being generated content?

My page titles are dynamically created with PHP: I set my page title in my PHP functions, and when the function is triggered the title is set.  Is Google able to read the page titles?


Using find with grep, one can locate files that match a pattern:  # find | grep error ./solr-modifiedSolr4/SolrPhpClient/phpdocs/errors.html ./error_log ./includes/classes/error_log   However, using find alone the first file is not found:  # find . -name error* ./error_log ./includes/classes/error_log   Why doesn't find locate the errors.html file when not used with grep? How is find used to show this file as well?

I am running the following command, but it is not performed recursively:  find . -name *.java   I know there are java files further down in the current directory but it is performing the find on the current directory only. I am using OS X, 10.9.


My Minecraft crashes when I start it up! What do i do? I tried uninstalling it and re-installing it and it doesn't work!  Time: 1/15/17 10:54 AM  Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bes.ap(SourceFile:600)     at bes.an(SourceFile:436)     at bes.a(SourceFile:383)     at net.minecraft.client.main.Main.main(SourceFile:124)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Thread: Client thread Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bes.ap(SourceFile:600)     at bes.an(SourceFile:436)  -- Initialization -- Details: Stacktrace:     at bes.a(SourceFile:383)     at net.minecraft.client.main.Main.main(SourceFile:124)  -- System Details -- Details:     Minecraft Version: 1.11.2     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_111, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation     Memory: 77484264 bytes (73 MB) / 150876160 bytes (143 MB) up to 523501568 bytes (499 MB)     JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.11.2     LWJGL: 2.9.4     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Using VBOs: Yes     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs:      Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     CPU: <unknown>

Similar to  on the bugs in Minecraft, I would like a complete list of what error codes exist in Minecraft and how they occur, as well as how they can be resolved.


What are the major technical differences between the Enterprise NCC-1701 (TOS) and NCC-1701 (Abrams)? I don't recall TOS engineering looking like a sterile brewery or having a large transparent water pipe with those ridiculous blender blades. Did they both ? Are there technical manuals for both ships?  I'm not looking for an exhaustive list as it would likely be too broad. I just want major differences to try and determine if Abrams' NCC-1701 is more advanced than TOS' NCC-1701 and by how much. I prefer any in-universe answers but will accept out-of-universe explanations.

I've heard the explanation that the Enterprise from 2009's Star Trek looked so much more advanced was because data gathered from the Kelvin initially scanning Nero's ship when it first appeared enabled them to upgrade their tech. I'm wondering if they've ever detailed exactly what technologies were advanced or enhanced or discovered.


For example, there is an  tag on Stack Overflow.  I can search Stack Overflow for questions tagged with  by searching "tag:exception".  However, on Meta Stack Overflow, there are questions about the  tag.  These questions are not tagged with the  tag, since they are on the meta site.  How do I search the meta site for questions about the main site  tag?

I see some questions (but mostly answers) that mention tags. For example I could mention the  tag here.  Is there a way I could search for posts that have mentioned a particular tag?


On Stack Overflow, a new user forgot to add the language tag on . I asked him about it. After getting the reply, I edited the post to include language tag.  Then I forgot about it for three days and today I went to the post, deleted my own query comment and then moved on to flag the OP's reply as obsolete (since the tag was now added to the post and the brief comment saying "swift....." did not add any value to the post).  To my surprise, as soon as I hit the flag button, the comment was instantly removed and my flag was marked as helpful.  I have never seen obsolete flags getting reviewed so quickly (within 2 seconds, If I am being generous).  How did the comment got deleted so quickly? I can think of only two explanations off the top of my head:   Obsolete flags retain . After hitting a total of six flags, the target comment gets automatically deleted. It was just a coincidence and a moderator just happened to be around to review it within seconds.   Since this is about flagging mechanism which is shared across the network, I thought it would be better to ask this question here instead of Meta Stack Overflow. Do let me know if it is better suited to MSO instead.

I just flagged a comment as "obsolete" in . To my surprise, it was deleted immediately, just after pressing "Flag Comment".  Now I see it in my flag summary as helpful:        Does this mean that obsolete flags are somehow handled automatically? I went through  but could not find any description on this.


I've been studying for my linear algebra final for the past few days, and just had this thought.  I know what a subspace is; It's a subset of a vector space that contains the zero vector, and preserves addition and scalar multiplication. But what can we do with a set after we've discovered that it's a subspace? The questions in my textbook only go as far as telling us to determine if a set is a subspace or not, we're not asked to use the fact that a set is a subspace to do something else. So my question is, what is the point of a subspace then?  Thanks

I'm in a linear algebra class and am having a hard time wrapping my head around what subspaces of a vector space are useful for (among many other things!). My understanding of a vector space is that, simplistically, it defines a coordinate plane that you can plot points on and figure out some useful things about the relationship between vectors/points.  I think what I'm curious about is more application of some of these ideas. Such as, is a subspace useful for a reason other than you don't have to look at the entire space something exists in (I guess one way I've been thinking about it is if you want to make a map of a city, you don't necessarily need to make a map of the state it's in) or am I even wrong about that much? Also, even though I feel like I should know this at this point, is if the subspace is linearly independent, is it still a subspace? If it is, what exactly does that describe and/or why is that still useful? If it's not, is it still useful for something?  I think the most difficult part of this for me is I'm having a hard time being able to visualize what exactly we're talking about and I have a hard time thinking that abstractly. I know one or two examples of this might be too specific and doesn't generalize the concept enough, but I think if I have some example to relate back to when applying the idea to new things it might be helpful.


Plancks radiation law is sometimes given as $B(\nu, T)=\frac{8π h \nu^{3}}{c^{3}} \frac{1}{e^{\frac{h \nu}{k_{\mathrm{B}} T}}-1}$ as is shown in the plot  But Wikipedia says:  ...the spectral radiance of a body for frequency $ν$ at absolute temperature $T$ is given by $B(\nu, T)=\frac{2 h \nu^{3}}{c^{2}} \frac{1}{e^{\frac{h \nu}{k_{\mathrm{B}} T}}-1}$  So there appears to be a discrepancy of $4π/c$ in the Wikipedia and the formula given on the plot. Why is this so? (The plot maybe takes into account all of the radiation while as the Wikipedia one is talking about radiation per unit solid angle,but that doesn't explain the extra factor $c$) The duplicate linked question which is assumed to be be the same as this one are different. That question is about the wavelength and frequency form of Plancks law but this one isn't.

I am drawing a blank when it comes to equation transformation. Wikipedia  for the spectral radiance of black body:   First as a function of frequency $\nu$: $$I(\nu, T) = \frac{2 h \nu^3}{c^2}\cdot\frac{1}{e^\frac{h \nu}{k T} - 1}$$ Then as a function of wavelength $\lambda$ : $$I'(\lambda, T) = \frac{2hc^2}{\lambda^5}\cdot\frac{1}{e^\frac{h c}{\lambda k T}-1}$$   And I don't see how they get $\lambda^5$ term. I'm assuming that the transformation is just $\nu \rightarrow c/\lambda$, but that gives $$ \frac{2 h \nu^3}{c^2} \Rightarrow \frac{2 hc}{\lambda^3} \neq \frac{2hc^2}{\lambda^5} $$  Similar transformation happens at other parts in the article also. I'm obviously missing something, likely completely trivial.


How can I count the number of rows and cols in c language after dynamic allocation?  void printMatrix(int **arr) {     int i,j;      int col = (sizeof(arr)/sizeof(arr[0]));     int row = (sizeof(arr)/sizeof(arr[0][0]));     for(i=0;i<row;i++)     {         for(j=0;j<col;j++)         {             printf("%d\t",arr[i][j]);         }         printf("\n");     } }   In my example I get only the matrix start pointer by **arr.  It try to run this code but it return row = 1 and col = 1 when the row = 3 and col = 2.

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I'm trying to get a bit of intuition when dealing with transistor amplifiers. I recently watched  , and wanted a bit more elaborate explanation about why adding the cap circled in blue greatly increases gain.   I am aware that caps block dc signal, so adding the cap shorts the ac signal to ground, but why does that drastically increase the gain?

Why do we have the by pass capacitor parallel to R(E) in this amplifier circuit? They say it is to bypasses the RE resistor for AC signals but then why is it required to by pass the R(E)    They say that it is to avoid the negative feedback by the resistor but i do not understand the concept of negative feed back in this case? What's negative feed back and why to get rid of it?


If $_{R}M$ is a left $R$-module of a ring $R$, show that $ann(M)=\left \{ r\in R:rM=0 \right \}$ is an ideal in $R$.   I have used the fact that the left annihilator is a left ideal in $R$ to prove that $ann(M)$ is a subring of $R$ and also a left ideal in $R$. But how do I show $ann(M)$ is a right ideal in $R$? Do I use the right annihilator for this? For example, if $r\in R$ and $b\in ann(M)$, then $bM=0$. This implies $rbM=0$ or $rb\in ann(M)$. But how do I show that $brM=0$?

Let $R$ be a ring and let $M$ be an $R$-module. Define the annihilator of $M$ to be the following subset of $R$:  $Ann_R(M) =\{r\in R \mid rm = 0_M  \text{ for all } m\in M \}$  Prove that $Ann_R(M)$ is an ideal of $R$.  please help as much as you can a full answer is greatly appreciated   Thanks


I lost my village after the maintenance update. I want to play my previous village, this time, I am playing a new created village that replaced my previous one. Please help me back on my previous enjoyed village.  How can I play again my old village? I want to play again so bad. I hope you can help me return from playing by recovering my old village.

I unintentionally and stupidly wiped my Clash of Clans game data. I went to Application Manager on my Android and clicked 'Clear data'. (I used this for fixes before and it never started a new game.)   Now, my level 60 or so base has been wiped as if was to start a new game. Have I doomed myself to starting again or is there a way in which I can retrieve my old game save? Maybe by contacting Supercell? I have a snapshot of my base.


Sorry if this question seems to be a silly one. But I want to clear my doubt regarding the relationship between partitioning and the file system.  These days almost all the hard disks come with a single partition by default. But why at least one partitioning is needed if I intend to use the whole hard disk and if I don't need any logical partitions?   To store files on the hard disk, isn't it installing the file system is enough by formatting it with a particular file system?. To install a file system why the partitioning has to be done? Somehow I didn't understand the logic between the file system and the partition. I think the partition is required only if you need the hard drive to be divided logically.   Could you please provide me any technical explanation on why the partition is required?  //Karteek

I see in my company's IT installations that there are numerous disks with one partition occupying all of the space on disk. There is typically something like a /dev/sdb with a partition /dev/sdb1, and the size of /dev/sdb1 is the size of the whole block device. The partition is then mounted with the required file-system format, mountpoint etc.  I do not understand why we would use a partition rather than the whole disk for such (1-partition) configurations. Is there any reason why a partition would be used in this case rather than a whole disk ? Are there any best practices that recommend this approach ?  For example, we could create a Filesystem on a whole raw block device and mount it without needing any partition:  mkfs.ext4 -E stride=16,stripe-width=64 /dev/xvde mount /dev/xvde /mnt/abc   That creates a mountpoint without a specified partition. As a verification:  # sfdisk -l /dev/xvde  Disk /dev/xvde: 6527 cylinders, 255 heads, 63 sectors/track  # fdisk -l /dev/xvde  Disk /dev/xvde: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes   For something with a partition, we get the list of partitions under it:  # fdisk -l /dev/sdb  Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0x00082e8c     Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2048  3907026943  1953512448   83  Linux   My fundamental question is this: Is there some advantage in creating a partition and then creating a filesystem on that partition, as compared to creating a filesystem on the whole disk and then mounting the whole disk ?


What is the difference between (1|DNA.concentration/mouse.id) and (DNA.concentration|mouse.id)? What do the symbols | and / mean inside the syntax for the random effect?

I have data collected from an experiment organized as follows:  Two sites, each with 30 trees. 15 are treated, 15 are control at each site. From each tree, we sample three pieces of the stem, and three pieces of the roots, so 6 level 1 samples per tree which is represented by one of two factor levels (root, stem). Then, from those stem / root samples, we take two samples by dissecting different tissues within the sample, which is represented by one of two factor levels for tissue type (tissue type A, tissue type B). These samples are measured as a continuous variable. Total number of observations is 720; 2 sites * 30 trees * (three stem samples + three root samples) * (one tissue A sample + one tissue B sample). Data looks like this...          ï..Site Tree Treatment Organ Sample Tissue Total_Length     1        L  LT1         T     R      1 Phloem           30     2        L  LT1         T     R      1  Xylem           28     3        L  LT1         T     R      2 Phloem           46     4        L  LT1         T     R      2  Xylem           38     5        L  LT1         T     R      3 Phloem          103     6        L  LT1         T     R      3  Xylem           53     7        L  LT1         T     S      1 Phloem           29     8        L  LT1         T     S      1  Xylem           21     9        L  LT1         T     S      2 Phloem           56     10       L  LT1         T     S      2  Xylem           49     11       L  LT1         T     S      3 Phloem           41     12       L  LT1         T     S      3  Xylem           30   I am attempting to fit a mixed effects model using R and lme4, but am new to mixed models. I'd like to model the response as the Treatment + Level 1 Factor (stem, root) + Level 2 Factor (tissue A, tissue B), with random effects for the specific samples nested within the two levels.   In R, I am doing this using lmer, as follows  fit <- lmer(Response ~ Treatment + Organ + Tissue + (1|Tree/Organ/Sample))    From my understanding (...which is not certain, and why I am posting!) the term:  (1|Tree/Organ/Sample)   Specifies that 'Sample' is nested within the organ samples, which is nested within the tree. Is this sort of nesting relevant / valid? Sorry if this question is not clear, if so, please specify where I can elaborate.


Read or listened to this story a few years ago, I think by Robert A. Heinlein.  The protagonist was a highly intellectual analytical genius who was approached by a secret "good guys" organization which was involved in a stereotypical Light vs Dark shadow war.  After some induction processes,  he was taught a highly specialized artificial language which had been constructed for the purpose of extremely accelerated logical/deductive thinking/processing as well as interpersonal communication.  Later in the course of the war it became necessary for him to sacrifice himself for the greater purpose in some type of battle.  I believe it was set in our solar system, but spanned a couple different planets.  That's about all can recall.  Thanks!

A man is running from some people who have him under surveillance, and when he wants to send a letter he thinks they can see the address he wrote on the letter, so he writes a fake address and prints a differing postal code surreptitiously, by hand. This was many years before the invention of the Postal Bar Code, and it used dots instead of bars.  But the UPS MaxiCode uses a two-dimensional square of dots, very similar to what was used in the story.  Thus I think of this as a Heinlein story, one more "invention" ahead of his time.


Stack Overflow could be very useful for my company, e.g. for new employees looking for answers on how company processes work. Is there a way to buy Stack Overflow as a product and to deploy it internally?  For obvious confidentiality reasons, there is no way we would accept a (private) hosted version.

Is the Stack Exchange engine that powers Stack Overflow available to download or install internally for an enterprise or company?  I think Stack Exchange's engine is very great and could be very cool to use for internal enterprise patterns and practices, like the engine of Wikipedia.


im new to linux, so I wanted to ask, how to run exe files. Yeah yeah I seen wine. But its opening but, I cant do anything... I mean its like, broken. Idk how to say that, hope u help. (Ubuntu 20.4)

I would like wine to automatically run exe's without having to call wine everytime I have to execute the cmd. so instead of typing out "wine progarm.exe" I would call "program.exe


I got a copy of Ubuntu on my flash drive, but how do I install it on my laptop? It's a Dell Latitude D420. It has an Intel core duo. I took it to have some repairs made and the technician installed Windows 7 on it, only he didn't put in the key so Microsoft wants me to purchase Windows 7. I can't seem to reinstall the Windows XP that came on the machine. I'm stuck. Thanks.

I tried to use the usb-creator.exe from Ubuntu 10.10 desktop i386 ISO image and it does create an USB stick that doesn't boot. When I try to boot from it I get:     Operating System not found.   I try to do this from Windows 7 x64. I'm not looking to create a live Ubuntu media, only an installation USB disk.  I repeated the process several times and I even tried to reformat the USB drive (FAT32), no success yet.  The USB stick is a 8GB one.


I am looking at the expansion of the  for probability. $$ P\left(\bigcap_{k=1}^nA_k\right)=\prod_{k=1}^nP\left(A_k\middle|\bigcap_{j=1}^{k-1}A_j \right) $$ if n=2, then the terms will be: $$ P\left(A_1,A_2\right)=P\left(A_1\middle|\bigcap_{j=1}^{0}A_j\right)P\left(A_2\middle|\bigcap_{j=1}^{1}A_j\right)=P\left(A_1\right)P\left(A_2\middle|A_1\right) $$ What is the definition of the intersection where top limit is smaller than bottom limit? $$ \bigcap_{j=1}^{0}A_j=\hspace{1mm}? $$ An empty sum = 0 while an empty product = 1. Is this an empty intersection?  Thanks for the help!

In MK (Morse-Kelley) set theory life is easy: $\forall X\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)$. If $X=\left\{\right\}$ then $\bigcap X=U$, where $U$ is the universal class. So the (unary) intersection of the empty set is the class that contains all sets as elements. In ZF (Zermelo-Fraenkel) set theory, instead, proper classes are not allowed. So, how can I define $\bigcap X$ in ZF? I tried with the following definitions:   $\forall X\left(X\not=\left\{\right\}\rightarrow\forall y\left(y\in\bigcap X\leftrightarrow\forall x\left(x\in X\rightarrow y\in x\right)\right)\right)$. This means that $\bigcap\left\{\right\}$ is undefined, which is not that good. $\forall X\forall y\left(y\in\bigcap X\leftrightarrow X\not=\left\{\right\}\land\forall x\left(x\in X\rightarrow y\in x\right)\right)$. This means that $\bigcap\left\{\right\}=\left\{\right\}$, which is the opposite of MK.   I couldn't find any other valuable definition. Any ideas? Thank you.