Mathematica Semilog (LogLinearPlot) using x,y points from table
How to change the base of logarithmic-scale plots?
Recording claimable expenses in GnuCash What is the difference between class and instance attributes? Is there any meaningful distinction between:  class A(object):     foo = 5   # some default value   vs.  class B(object):     def __init__(self, foo=5):         self.foo = foo   If you're creating a lot of instances, is there any difference in performance or space requirements for the two styles? When you read the code, do you consider the meaning of the two styles to be significantly different? I remember reading a while back about arithmetics with only a single operator that did all the work of the familiar $+ - \times /$ operators. If there is such a thing, could someone point me to it?  As background: I have a side project where I'm playing with neural nets and genetic search algorithms. Right now it's the good old kind, with matrix multiplication and addition. I thought it would be interesting to implement a sort of neural network that used a combined or "all in one" operator.  I've googled like heck and can't pick up the trail of where I thought I saw that before.  Is there study in that area, or am I mis-remembering, or worse, just making it up? I'd appreciate any pointers. What exactly do \csname and \endcsname do? What exactly do \csname and \endcsname do? What are their job? I have glanced at the Texbook and some other books, but none of them was clear enough to me. Can anyone please give a simple example to clarify this issue? Reflection to Identify Extension Methods In C# is there a technique using reflection to determine if a method has been added to a class as an extension method?  Given an extension method such as the one shown below is it possible to determine that Reverse() has been added to the string class?  public static class StringExtensions {     public static string Reverse(this string value)     {         char[] cArray = value.ToCharArray();         Array.Reverse(cArray);         return new string(cArray);     } }   We're looking for a mechanism to determine in unit testing that the extension method was appropriately added by the developer.  One reason to attempt this is that it is possible that a similar method would be added to the actual class by the developer and, if it was, the compiler will pick that method up. Finding the fallacy in this broken proof Today, a friend gave me a "proof" of $1=2$ and challenged me to find the fallacy.     $1 = 1$      $1 = 1 + 0 + 0 + 0 ...$      $1 = 1 + 1 - 1 + 1 - 1 + 1 - 1 ...$      $1 = 2 - 1 + 1 - 1 + 1 - 1 ...$      $1 = 2 + 0 + 0 ...$      $1 = 2$   My answer was that once you turn the initial $1 + 1$ into a 2, everything is offset so a $-1$ is always left at the end no matter how many times it is repeated. This negative one balances out the $2$ at the beginning so $1=1$ still holds true. I.e.  $$1 = 1 + 0 + 0 + 0 ... = 1 + (1 - 1) + (1 - 1) + (1 - 1) = 2 + (-1 + 1) + (-1 + 1) - 1$$  However, my friend claimed that my answer only applies if the $+ 1 - 1$ repeats for a finite number of times. He argues that because the sequence repeats infinitely and things work differently when working with infinity, my answer is not valid.  Can anyone enlighten me to the true fallacy in this proof? An alternative software to Live Writer? Requested value 'CheckBoxes' was not found There's a weird thing happening with my Windows application. I have created a Sharepoint utility to automate the creation of content-types and site-columns. At a point where I try to get my available fields, I get this error:     An unhandled exception of type 'Microsoft.SharePoint.Client.ServerException' occurred in Microsoft.SharePoint.Client.Runtime.dll   Additional information: Requested value 'CheckBoxes' was not found.   It is throwing an exception at:  ClientContext clientContxt = new ClientContext(clientContext.Url);         clientContext.Credentials = clientContext.Credentials;         Web web = clientContext.Web;          clientContext.Load(web, w =&gt; w.AvailableFields);         clientContext.ExecuteQuery(); //**exception thrown here**   Kindly please suggest what is wrong here? Word for one who likes to share knowledge when asked Disable ClearType (blurry fonts) in Internet Explorer 10 on windows 7 I've installed recently the latest Internet Explorer 10 and found out again what was my issue with the previous upgrade -- blurry fonts aka ClearType! Unfortunately there are some apps that use IE engine and thus all content there is blurry too :/  I know about  but unfortunately it seems that it is only for IE9. Is there any other solution to disable CT in IE10?  (and for clarity - I don't like CT, I've tried tweaking it but for me it's just blurry and case pain in my eyes no matter what I do... it's probably related to the low dpi of my monitor) hide div if clicked outside of it "Belongs on" comments How to control internet access for each program? I would like to use a software to control which program may connect to the internet. I know that this behaviour is associated with the word "firewall", but some Linux users are very upset if somebody demands a Personal Firewall. I don't want to upset you by demand such a program. I don't want to "secure ports" or other stuff a Personal Firewall promises on Windows. I looked into iptables but it does not fit my requirements.  I saw an excellent answer here () but it's very uncomfortable to set this up.  Is there a software that asks for each program if it may access the internet? Query works on Oracle 11g but fails on Oracle 8i Adjust rounded rectangle radii without creating a new one in Photoshop C6 When I create new rounded rectangles, I see the radii and other information in the properties, but after I work on something else and go back to that layer, the information does not show. How do I adjust the radii of the rounded rectangles without deleting and creating a new one? proof of functional completeness of logical operators If $p$ is a prime and $p \mid ab$, then $p \mid a$ or $p \mid b$. The proof is already given in the textbook but I tried other way around.   Proof by contradiction: Let's assume that $p$ doesn't divide $a$ and $p$ doesn't divide $b$, but $p$ divides $ab$. So $\gcd(p,a)=1$ and $\gcd(p,b)=1$. Given that we can construct linear combinations   $sp+ta=1$ together with $up+wb=1$. Multiplying the left and the right sides of the equations we get  $spup+spwb+taup+tawb=1$ or $p(sup+swb+tau)+ab(tw)=1 \implies \gcd(p,ab)=1$. This is a contradiction.   Is it rigorous and sound proof? -> 683  -> 678  ???  (Doesn't really bother me too much but figured I'd report the bug...) In a bash shell script, writing a for loop that iterates over string values In bash, I know that it is possible to write a for loop in which some loop control variable i iterates over specified integers.  For example, I can write a bash shell script that prints the integers between 1 and 10: #!/bin/bash  for i in {1..10} do  echo $i done  Is it possible to instead iterate over a loop control variable that is a string, if I provide a list of strings?  For example, suppose that I have a string fname that represents a file name.  I want to call a set of commands for each file name.  For example, I might want to print the contents of fname using a command like this: #!/bin/bash  for fname in {&quot;a.txt&quot;, &quot;b.txt&quot;, &quot;c.txt&quot;} do  echo $fname done  In other words, on the first iteration, fname should have the value fname=&quot;a.txt&quot;, while on the second iteration, fname should have the value fname=&quot;b.txt&quot;, and so on.  Unfortunately, it seems that the above syntax is not quite correct.  I would like to obtain the output:  a.txt b.txt c.txt  but when I try the above code, I obtain this output:  {a.txt, b.txt, c.txt}  Can you please help me determine the correct syntax, so that I can iteratively change the value/contents of the variable fname?  Thank you for your time. I had a tin of golden syrup for a long time - longer than I care to admit. When I opened it up yesterday (to sweeten up some mulled wine), it was granular (a bit like honey can be), and black around the edges.   Is this 'bad', or just different?   Is the blackness the result of some chemical reaction with the tin?  And in general, does it eventually go off, or does it last indefinitely?