local variable initialized in delphi?
Are delphi variables initialized with a value by default?
How do I prove if a set of operations is complete? For example $\{\land, \lnot\}$ apparently forms a functionally complete set as it can form any logical expression.  But I don't really know what this means or how you show it. Do we just show that some set is complete and then in the future if we have a new set, show that we can replicate the known operations with the new ones?  Do you have to find these strategically or is there a systematic way? How to reset KDE desktop to default on Ubuntu 14.04? KDE and Gnome Desktops were looking awesome on my Ubuntu 14.04 LTS, today everything seemed ugly. Slim long font, arabic letters in Chromium/Firefox are barely readable no matter how big I made them on system font settings. How can I get back to my previous looks settings, without compromising other settings and tweaks?  Here are my versions:  kde4-config -v:  Qt: 4.8.6 KDE Development Platform: 4.13.3 kde4-config: 1.0   kded4 --version:  Qt: 4.8.6 KDE Development Platform: 4.13.3 KDE Daemon: 4.13.3 Why aren't all the badges shown on the track menu? I like using the 'Track Badges' menu on my profile a lot (I know what you're going to say, I just have a knack for these things), but I keep noticing something a bit unusual.  Many of the Badges featured on the actual list do not get featured on this menu. For example, I've been hoping to be able to track progress for the Pundit badge (ten comments with score of five or more), but it doesn't show up in the menu.  Why not? I was using , implemented in scikit-learn, for my research work. But I have no good understanding of this.   Can anyone please give a simple, good explanation of one class SVM? Could the Infinity Gauntlet be used to make two people fall in love with each other? I am wondering if there is anything in Marvel comic book canon or in the MCU that says that the Infinity Gauntlet has the power to make someone fall in love with the person wearing the Infinity Gauntlet, or that the wearer of the Infinity Gauntlet can use the Infinity Gauntlet to make two strangers fall in love with each other? Perhaps the combined power of the Mind Stone and the Soul Stone would make two people fall in love. The canonical way to return multiple values in languages that support it is often . Option: Using a tuple Consider this trivial example: def f(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return (y0, y1, y2)  However, this quickly gets problematic as the number of values returned increases. What if you want to return four or five values? Sure, you could keep tupling them, but it gets easy to forget which value is where. It's also rather ugly to unpack them wherever you want to receive them. Option: Using a dictionary The next logical step seems to be to introduce some sort of 'record notation'. In Python, the obvious way to do this is by means of a dict. Consider the following: def g(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return {'y0': y0, 'y1': y1 ,'y2': y2}  (Just to be clear, y0, y1, and y2 are just meant as abstract identifiers. As pointed out, in practice you'd use meaningful identifiers.) Now, we have a mechanism whereby we can project out a particular member of the returned object. For example, result['y0']  Option: Using a class However, there is another option. We could instead return a specialized structure. I've framed this in the context of Python, but I'm sure it applies to other languages as well. Indeed, if you were working in C this might very well be your only option. Here goes: class ReturnValue:   def __init__(self, y0, y1, y2):      self.y0 = y0      self.y1 = y1      self.y2 = y2  def g(x):   y0 = x + 1   y1 = x * 3   y2 = y0 ** y3   return ReturnValue(y0, y1, y2)  In Python the previous two are perhaps very similar in terms of plumbing - after all { y0, y1, y2 } just end up being entries in the internal __dict__ of the ReturnValue. There is one additional feature provided by Python though for tiny objects, the __slots__ attribute. The class could be expressed as: class ReturnValue(object):   __slots__ = [&quot;y0&quot;, &quot;y1&quot;, &quot;y2&quot;]   def __init__(self, y0, y1, y2):      self.y0 = y0      self.y1 = y1      self.y2 = y2  From the :  The __slots__ declaration takes a sequence of instance variables and reserves just enough space in each instance to hold a value for each variable. Space is saved because __dict__ is not created for each instance.  Option: Using a  (Python 3.7+) Using Python 3.7's new dataclasses, return a class with automatically added special methods, typing and other useful tools: @dataclass class Returnvalue:     y0: int     y1: float     y3: int  def total_cost(x):     y0 = x + 1     y1 = x * 3     y2 = y0 ** y3     return ReturnValue(y0, y1, y2)  Option: Using a list Another suggestion which I'd overlooked comes from Bill the Lizard: def h(x):   result = [x + 1]   result.append(x * 3)   result.append(y0 ** y3)   return result  This is my least favorite method though. I suppose I'm tainted by exposure to Haskell, but the idea of mixed-type lists has always felt uncomfortable to me. In this particular example the list is -not- mixed type, but it conceivably could be. A list used in this way really doesn't gain anything with respect to the tuple as far as I can tell. The only real difference between lists and tuples in Python is that lists are , whereas tuples are not. I personally tend to carry over the conventions from functional programming: use lists for any number of elements of the same type, and tuples for a fixed number of elements of predetermined types. Question After the lengthy preamble, comes the inevitable question. Which method (do you think) is best? Why do shields in Star Trek "wear out"? How to find unused/dead code in java projects How to import Ordnance Survery raster layer to ArcGIS Desktop? I have downloaded raster map data from ONS, the data has come in the form of two files... one is full of  .tlw files and the other is full of .tab files...   How do I import it into a raster layer to ArcCatalog? Lead in ice block This is a strange question I would like to have some explanation accompanied with:  We have an ice block, with in it a lead block. This entire block is put into a glass of water, resulting in a rise of water level until the edge of the glass. The block stays floating on the surface. What will happen with the water level when the ice melts?  The answer is that it will drop, but how is this even true?? My thoughts are: - block floats on water, so rho(block) &lt; rho(water) - Archimedes law, the Fg of block = Fg of water pushed away. - Since a smaller volume of water has equal mass (and so Fg) to block, and ice is less dense than water, when it melts, no mass is lost, so it will take in less space??? Please help me with this point of thinking. How do we delete subscribers (emails) from Auto suppression list using SSJS. Also, Auto suppression list maintain at SF end or application level. What's the full-form & significance of USS & ISS prefixes in name of Star Trek starships? In the Star Trek normal universe, almost all of Starfleet's starships were named with the prefix USS: Count from . Some popular ones: USS Enterprise - series, USS Stargazer, USS Exeter, USS Defiant, USS Excelsior, USS Voyager, USS Titan, USS Reliant, USS Equinox, USS Grissom, USS Relativity, etc.  In the mirror universe, Starfleet's starships were named with the prefix ISS. We don't have a big list, but we do see these: ISS Enterprise NX-01, ISS Enterprise NCC-1701, ISS Avenger.  What's the full form of USS &amp; ISS in Star Trek canon?  In the real world, the US Navy uses USS in ship names, which is reasonable as "United States Ship", but why is it used in Star Trek canon (in which there's no US to control starships)?  In the mirror universe, USS is replaced with ISS. Why? Does ISS have a meaning opposite from that of USS? Can we get wordpress.stackexchange.com added to the list of off-topic redirection sites? I'm noticing a lot of WordPress questions being asked on Stack Overflow lately. I can't flag these to be moved to wordpress.stackexchange.com because it's not in the list:    Can it be added? Are there any other Stack Exchange sites worth adding? Is it allowed/desirable to post code snippets? Instead of asking a question I would love to share the one or other code snippet I have created that is too small to make a full article on e.g. CodeProject.com or CodePlex.com.  Question: Would it be a good idea to post it as a Stack Overflow question? Or are there any other suggestions how to share it?  (Of course I could post it on my own weblog and then twitter about it, but I would love to put it in more of a programming context) Parallel website running a copy of my original website We have been working on a gaming website. Recently while making note of the major traffic sources, I noticed a website that I found to be a carbon-copy of our website. It uses our logo, and everything else the same as ours, but with a different domain name.   Their domain name is not however pointing to our site because at several places the links are like: carbonccopy-website/our-links. This website even has links to some images as: carbonccopy-website/our-images.   How could they have done that, and what can I do to stop it? Is it legal to add your publications to ResearchGate? I recently created a profile on . And to add your publications list it requires you to upload the paper. Is it legal to upload published journal articles on public servers, where everyone can download it for free? Brief Description:  I need my Ethernet card (en0) to see all traffic under 192.168.2.xxx.  However I also need to use WiFi card (en1) for all other traffic.  OS: OS X Lion    I am using a separate network location to deal with this specific use (since this is a for a robotics project that communicates via Ethernet). Ethernet (en0) had to be set up as a static IP (192.168.2.10) per the requirements for the device I am connecting to. All connections on the Ethernet card (en0) should be 192.168.2.xxx as specified above. WiFi (en1) is set up as DHCP to a router since their is no point in assigning it as a static for general purpose traffic. Ethernet (en0) is set up as priority over WiFi (en1).  I would also like to keep this under the network location preferences if at all possible since I do not require this feature to be on all the time.  I would really appreciate your help on this. No one I have talked to knows how to solve this. After enabling hibernate grub menu appears on start-up with 30s timeout My system is not dual boot just single OS UBUNTU 16.04. Prior to making the following changes, the Grub screen would not appear at start-up (OK).  After following these steps from  to enable hibernate in the system menu:   Open terminal and enter;   sudo nano /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla  add the lines into the empty file;  [Re-enable hibernate by default in upower] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes  [Re-enable hibernate by default in logind] Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit ResultActive=yes  ^X then Y to save (a filename was suggested and I accepted without taking note).  Reboot for the changes to take effect.   hibernate now works and appears in the menu (OK) but whenever I reboot I now get a Grub menu at start up with a full 30 second timeout (NOK). I tried playing around with the Grub menu timeout settings but still get the full 30 sec timeout.  How do I stop the Grub menu from appearing and reduce my boot time to what it was before I made these changes.   Current Grub settings;   GRUB_DEFAULT="0" GRUB_HIDDEN_TIMEOUT="0" GRUB_HIDDEN_TIMEOUT_QUIET="true" GRUB_TIMEOUT="1" GRUB_DISTRIBUTOR="`lsb_release -i -s 2&gt; /dev/null || echo Debian`" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX="" Number theorems with chapter number I use declaretheoremstyle to define a theorem environment, and print a list of theorems in the end of my document:  \documentclass[12pt]{book} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}% just for the example \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} \usepackage{etoolbox}  \declaretheoremstyle[   spaceabove=6pt, spacebelow=6pt,   headfont=\normalfont\bfseries,   postheadspace=1em,   notefont=\bfseries,   notebraces={(}{)},   bodyfont=\itshape,   shaded={bgcolor=yellow!20} ]{thmstyle}  \declaretheorem[style=thmstyle,name=Theorem]{theorem}  \begin{document}  \begin{theorem}[Somebody] ... \end{theorem}  \begin{theorem} ... \end{theorem}  \renewcommand{\listtheoremname}{List of Theorems} \addcontentsline{toc}{section}{\listtheoremname} \listoftheorems[ignoreall,show=theorem]  \end{document}   The theorems are numbered from the beginning to the end of the book, and from 1:    However, I would like to number the theorems with chapter number (like Figures or Tables), for instance, 1.1 (the first theorem in Chapter 1), 1.2 (the first theorem in Chapter 2)...  Does anyone know how to do it? How do I disable Aero Shake in Windows 7? I'm always accidentally minimizing most of my windows. This is really annoying. How do I disable Aero Shake?