Making crafted items usable in adventure mode

In a map I'm making the player has to survive while locked in a maze. To stop them from breaking out, they will be in adventure mode. However, I still want them to be able to craft items and use them with specified blocks. I have tried several methods already but they all have a flaw.  One method is to have a scoreboard objective called item and giving certain item entities a specific score using something like:  /scoreboard players set @e[type=Item] item 1 {Item:{id:"minecraft:sapling"}}   Then it is possible to select these items with:  /entitydata @e[type=Item,score_item=1,score_item_min=1] {Item:{tag:{CanPlaceOn:["dirt"],HideFlags:24}}}   This works but it requires the item to be dropped, which isn't a problem for saplings, but for tools and other craftable items, it becomes a hassle.  To fix this, I'm currently clearing tools without damage and giving the player a slightly damaged tool in return:  /clear @a minecraft:stone_axe 0 1   /give @a minecraft:stone_axe 1 1 {CanDestroy:["log","log2","leaves","leaves2"],HideFlags:24}   This doesn't work for items without damage values (e.g. torches), but I don't mind these having to be dropped as there aren't too many of these. However, there is another problem. In the nether, the player will have access to an enchantment table and an anvil. This means they can repair enchanted tools, which will cause them to be cleared and replaced with unenchanted ones as soon as they go back to the overworld.  I also thought about using a stat.craftItem scoreboard objective and giving them the usable item if they craft it. However, this would result in the player having a duplicate of every item they crafted, as I think it is impossible to select an item without NBT-data in the /clear command.  Is there any way to make this work? And if not, would it be better to have the player drop all crafted items or have duplicates of them all?


Is there free android emulator for ubuntu 16.04?

is it best to run on Windows via virtual box? i really couldn't find anything.


Error parsing PCC subspaces from PCCT: ACPI PCC probe failed

I have a Lenovo Thinkpad e540 laptop with dual graphics, Intel integrated and Nvidia GT 740m Discrete. After changing from nouveau drivers to Nvidia binary driver 346.82 proprietary before login screen I've got a message:  [0.646495]Error parsing PCC subspaces from PCCT [0.646521]ACPI PCC probe failed.   Kernel version:  3.19.0-26-generic #28~14.04.1-Ubuntu SMP Wed Aug 12 14:09:17 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux   I've read somewhere that if I put in grub file quiet splash nomodeset that will fix this, but that doesn't work for me, then I get into login loop.  How can I fix this?


my hard drive is located in /media/ronin_cunningham/408242E58242DED2 and I want to change the name 408242E58242DED2 to StorageDevice. How would I do this from the terminal?  Thanks.


Unable to install amavisd-new on Ubuntu 16.10

I am running Ubuntu 16.10 and trying to set up postfix. But my amavis installation is not happening smoothly.  apt upgrade   gives  Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up amavisd-new (1:2.10.1-4ubuntu1) ... Creating/updating amavis user account... Job for amavis.service failed because the control process exited with error code. See "systemctl status amavis.service" and "journalctl -xe" for details. invoke-rc.d: initscript amavis, action "start" failed. amavis.service - LSB: Starts amavisd-new mailfilter Loaded: loaded (/etc/init.d/amavis; generated; vendor preset: enabled Active: failed (Result: exit-code) since Mon 2016-11-14 19:56:05 IST; 9ms ago Docs: man:systemd-sysv-generator(8) Process: 5465 ExecStart=/etc/init.d/amavis start (code=exited, status=1/FAILURE) Nov 14 19:56:05 lenovo amavis[5465]:   The value of variable $myhostname is...en Nov 14 19:56:05 lenovo amavis[5465]:   a fully qualified domain name; perha...h. Nov 14 19:56:05 lenovo amavis[5465]:   You must explicitly assign a FQDN of...me Nov 14 19:56:05 lenovo amavis[5465]:   in /etc/amavis/conf.d/05-node_id, or...'s Nov 14 19:56:05 lenovo amavis[5465]:   network name! Nov 14 19:56:05 lenovo amavis[5465]: (failed). Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Control process exited, ...=1 Nov 14 19:56:05 lenovo systemd[1]: Failed to start LSB: Starts amavisd-new ...r. Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Unit entered failed state. Nov 14 19:56:05 lenovo systemd[1]: amavis.service: Failed with result 'exit...'. Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package amavisd-new (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: amavisd-new E: Sub-process /usr/bin/dpkg returned an error code (1)   How can I fix this?


I need some clarification for why the probability of the union of three events is equal to the right side in the following:  $$P(E\cup F\cup G)=P(E)+P(F)+P(G)-P(E\cap F)-P(E\cap G)-P(F\cap G)+P(E\cap F\cap G)$$  What I don't understand is, why is the last term(intersection of all) added back just once, when it was subtracted three times as it appears from a Venn Diagram?  Here on page 3, this is explained but not in enough details that I can understand it:


Will a piece of ice, floating on water in a beaker, rise or fall when I add oil on top of water?

There is a beaker of water with ice floating on top of it. If I add oil (lighter than water and ice) to it such that it forms a layer above water and ice is suspended between those layers. Does the ice rise or fall from its previous level?   specific gravity of  ice = 2/3 specific gravity of oil = 1/2


Can you use Magic Jar against creatures who have had their creature-type changed into "humanoid"?

Here's a question: can you use Magic Jar against creatures who have had their creature-type changed into "humanoid"?  For example, using the 'Mask' option of Nystul's Magic Aura on a dragon to change it's aura into a 'humanoid'; the spell says: "You change the way the target appears to spells and magical effects that detect creature types such as a Paladin's Divine Sense and the Symbol spell."  Symbol is obviously not a Divination spell, and neither is Magic Jar (and Divine Sense isn't even a spell), so presumably they would be tricked in similar fashion - but even if Magic Jar were tricked in this way, would/should the spell continue as normal (with you in the dragon body, for this example)?  Also, True Polymorph can turn our dragon into a humanoid, so could this trick also work?  just to get logistics out of the way, a wish-magic jar could allow for a quick transition and our dragon may already have burned through their legendary resistances and has been feebleminded for maximum effect. BUT let's assume that, with the logistics taken care of, only the magical say-so stands in the way...so, could this trick work?


mapping of the real line to interval [0,1)

What is a mapping (bijection) of the real line (−∞,∞) to the interval [0,1)? I'm trying out logs and exponentials but they don't seem to work?


How to import external modules from Blender's scripting tab?

Imagine this simple script below (just a simple example) where I call a javascript file using Naked execute_js. I can run this from my system command line because I installed Naked using pip. from Naked.toolshed.shell import execute_js, muterun_js    output= execute_js('D:\\myFolder\\myJavaScript.js)  Now, to use it from inside blender, I downloaded the package so I have all the file in: D:\myFolder\modules\Naked  In blender, I have this script where I add the path to the Naked files: import sys sys.path.insert(0, 'D:\\BLENDER_EARTH_PROJECT\\modules\\Naked') output= execute_js('D:\\myFolder\\myJavaScript.js)  But I still can't access execute_js. What am I missing here? Is this not the correct way to do this?


sudo apt update always giving Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

So I am on my college network which requires me to sign in to the browser before I start using the internet. I do so succesfully but on a clean install of Ubuntu, when I try to do sudo apt update, I get the following output:  $ sudo apt update Get:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease [2,847 B] Err:1 http://in.archive.ubuntu.com/ubuntu xenial InRelease                     Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [2,854 B]     Err:2 http://security.ubuntu.com/ubuntu xenial-security InRelease              ... Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [2,855 B]    Err:3 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease ... Get:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [2,857 B] Err:4 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) Fetched 11.4 kB in 0s (18.3 kB/s) Reading package lists... Done E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) ... E: Some index files failed to download. They have been ignored, or old ones used instead.   But when I do wget http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease, I get this output success:  2017-04-01 05:34:57  http://in.archive.ubuntu.com/ubuntu/dists/xenial/InRelease Resolving in.archive.ubuntu.com (in.archive.ubuntu.com)... 91.189.88.162, 91.189.88.149, 91.189.88.152, ... Connecting to in.archive.ubuntu.com (in.archive.ubuntu.com)|91.189.88.162|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 246846 (241K) Saving to: ‘InRelease.3’  InRelease.3         100%[===================>] 241.06K   110KB/s    in 2.2s      2017-04-01 05:35:00 (110 KB/s) - ‘InRelease.3’ saved [246846/246846]   Clearly I have internet access from my browser and on wget but when I do sudo apt (or apt-get) update I get this error.  PS: This question is not similar to other threads as their solutions do not seem to work on mine        As I have found out, this problem is happening only to me, not others on the college network. Despite setting up the network according to instructions, this still happens. Any more help would be appreciated  EDIT: So as it turns out, 50% of us in the college are facing this issue, while 50% aren't despite having no issues with the hardware and sudo apt update before the last week. Thanks to @David Foerster for helping me throughout all this time.  As it stands, the issue has been raised to our college's networking department :)


Alert users of max question limit BEFORE writing the question!

This has happened to me a lot of times and it drives me crazy, after writing a very detailed question, taking snapshots of my app behavior, pasting code and such I click submit and I get the message "You have exceed the 3 question limit per day" or something similar.  I never have any idea how many questions I've asked or how near I am the daily (or monthly) limit so it drives me crazy to spend time writing the question and only after finishing being told I cannot ask it. Would it be possible to show a message on top of the question form so I don't type the question?


Can leaked nude pictures damage one's academic career?

I have an ex who has posted nude photos of me online in the past, linked to my online social media, and posted my full name and where I live. I am concerned he may do so again once he finds out I'm now in a PhD program (he's very jealous of any success I have), and may link to my school bio page, or worse.   Revenge porn is illegal in my state, and the case against him is currently pending. I have also gotten the photos taken down with a DMCA letter (I hold the copyright over the photos in question). At this point, I am concerned with how a future attempt could affect my career.  I can handle the embarrassment now that I've been through it once, so if that's the biggest concern, I can deal. I just don't want to lose a career over it, given how small academia really is and how a reputation might follow one around.  My question is, if I don't change my name (I've considered this, assuming I can keep him from finding out) and my photos are circulated and discovered by faculty or students, how likely am I to be thrown out of my PhD program or later lose a job as an untenured prof? Is a name change worth it?   (If it makes any difference, they are essentially just topless portraits; I'm not engaged in any sexual activity or anything weird, and were taken 10 years ago when I was very young and foolish.)


How do I check whether a module is installed in Python, and install it if needed?

In terminal, after I start Python, how will I know what are the modules present in python? Suppose I need to learn the modules NumPy and SciPy.   How will I install it if it is not installed?  How will I know if it is already installed?


Why doesn't Windows 7 Ultimate (64-bit) contain folder system64 like system32 in xp?

I don't know about vista. I never used it. I just moved from XP (32 bit) to Windows 7 Ultimate (64-bit). I was expecting c:\windows\system64 directory similar to c:\windows\system32. Why is still entire system is located in system32? Why isn't there any system64 directory?


Something (I'm not sure what) created a directory and file named \dev\nul on my C: drive. With a dir command, it appears to be a normal file with a size of 949 bytes, but interestingly, with another file utility it looks like this:  [a-----]  2-25-2014 23:56:38  949   \\.\nul   If I try to do del \dev\nul I get this:  The filename, directory name, or volume label syntax is incorrect.   Same results with rd \dev /s. If I use my file utility, I get this:  -rm  \\.\nul...FAILED: The parameter is incorrect.   Deleting it from an Explorer window yields the same error.  Although it appears to be harmless, I find it annoying and want it gone. Does anyone know how to make this file go away?


Show that $ \lim_{(x,y) \to 0} \frac {|x|^ \alpha |y|^ \beta} {|x|^ \gamma + |y|^ \delta} \text {exists} \iff \alpha/\gamma + \beta/\delta > 1.$

Ted Shifrin on this site posed an interesting problem to me: show that   $$ \lim_{(x,y) \to (0,0)} \frac {|x|^ \alpha |y|^ \beta} {|x|^ \gamma + |y|^ \delta} \text {exists} \iff \frac\alpha\gamma + \frac\beta\delta > 1, \,\,\,\,\text{where } \alpha, \beta, \gamma, \delta >0$$  I think I've got the $(\Leftarrow)$ direction as follows: assume WLOG that $\gamma \leq \delta$. Then switch to polar coordinates and get   $$\frac {r^ {\alpha + \beta} (*) } {r^\gamma (1(*) + r^{\delta - \gamma}(*))},$$  where $(*)$ represents some trig stuff that is bounded near zero.   Edit: I need to make sure that $(1(*) + r^{\delta - \gamma}(*))$ is bounded below here.  The other direction is giving me some trouble. It seems we need a lower bound for the fraction (something to force to zero), and I'm not sure where to find one. In particular, I'm not sure what to do with the denominator. Any ideas?


Reclassifying multiple rasters using ModelBuilder or ArcPy using ArcMap10.1 or 10.2

I have a folder with more than 500 raster (DEM) and I want to reclassify (equal interval method) each of them but number of classes in each case is determined by the number of 100m elevation bands. i.e number of classes =(max elevation- minimum elevation)/100. I have obtained max and minimum elevation of each raster from GetRasterProerties tool. How do I put this custom number of classes for each raster?


Nameless positional argument to Python kwargs method

I am using  abort() method when constructing an error response in REST. The example given has a named argument message  def abort_if_todo_doesnt_exist(todo_id):     if todo_id not in TODOS:         abort(404, message="Todo {} doesn't exist".format(todo_id))   The output is   {     "message": "Todo asd doesn't exist. You have requested this URI [/todos/asd] but did you mean /todos/<todo_id> or /todos ?" }   In my scenario, I already have a custom exception type  class InvalidParameter(Exception):     status_code = 400      def __init__(self, message, status_code=None, resource=None,                 field=None, code=None, stack_trace=None):         Exception.__init__(self)         self.message = message         if status_code is not None:             self.status_code = status_code         self.resource = resource         self.field = field         self.code = code         self.stack_trace = stack_trace      def to_dict(self):         rv = {}         error = {}         rv['message'] = self.message         error['resource'] = self.resource         error['field'] = self.field         error['code'] = self.code         error['stack_trace'] = self.stack_trace         rv['error'] = error         return rv   and a specific structure of JSON response for errors:  {     "message": "Project name 'GGO' already exist.",     "error": {         "resource": "Project",         "field": "project_name",         "code": "already_exists",         "stack_trace": "(psycopg2.IntegrityError) duplicate key value violates unique ..."     } }   Problem Code  I have to use two named arguments  except InvalidParameter as err:     abort(err.status_code,                  message=err.to_dict()['message'],                  error=err.to_dict()['error'])   When I use this     except InvalidParameter as err:         abort(err.status_code, err.to_dict())  I get the error   TypeError: abort() takes 1 positional argument but 2 were given // Werkzeug Debugger   How can I pass the entire err dict as a parameter?


Is there any difference between the terms "arguments" and "parameters" in jQuery?

I know the difference between arguments and parameters, but I'am a bit confused about how jQuery uses these terms.  For instance, jQuery defines as "parameters" the options passed to the  method. These shouldn't be declared as arguments because you pass your own values?  Then, on  function you can find many times the terms "parameters" and "arguments". For example, if you search for the beforeSend property, you'll see:     The jqXHR and settings objects are passed as arguments.   But, in another section you'll also see:     The callback hooks provided by $.ajax() are as follows:      beforeSend callback option is invoked; it receives the jqXHR object   and the settings object as parameters.   Does it mean that jQuery uses equally the terms "parameters" and "arguments"?


\cite does not refer to items of thebibliography environment

I am using the thebibliography-environment to produce a bibliography for my Latex-file. Iniating the bibliography this way works perfectly fine.  My problem is that I can use any argument for the \cite-command, and it will just be presented in the output in the following manner:  \cite{lalala}:   \citedoes not refer to the items of \thebibliography-environment.  This is my preamble:  \documentclass{Vortrag(2)} \newcommand{\defeq}{\vcentcolon=} \newcommand{\eqdef}{=\vcentcolon} \usepackage[all]{xy} \usepackage{multirow} \usepackage{multicol} \usepackage{paralist} \usepackage{tabto,array} \usepackage{dsfont,lipsum} \usepackage{blkarray} \usepackage{tikz} \usepackage{amsmath} \usepackage{enumitem} \usepackage{listings}   This is the (I think) relevant part of the Vortrag(2).cls-file:  \NeedsTeXFormat{LaTeX2e} \ProvidesClass{Vortrag}[2014/11/03 besides page geometry fully set up scrreprt class]  \LoadClass[fontsize=12pt, ngerman, twoside=true, twocolumn=false, DIV=calc]{scrartcl}    \RequirePackage[backend=biber]{biblatex}  \RequirePackage[colorlinks=true,pdfstartview=FitB,bookmarks=false, urlcolor=3, linkcolor=5]{hyperref} \hypersetup{     colorlinks=true,     linkcolor=5,     linktoc=page, %Optinen: page - name - all }  \RequirePackage[top=3cm, bottom=3cm, inner=2cm, outer=2cm]{geometry} \RequirePackage{tocloft} \setlength{\cftbeforesecskip}{4pt} \setlength{\cftbeforetoctitleskip}{2.3ex \@plus.2ex} \setlength{\cftaftertoctitleskip}{2.3ex \@plus.2ex}  \RequirePackage[utf8]{inputenc}                                  \RequirePackage[ngerman]{babel}                               \clubpenalty 10000 \widowpenalty 10000  \setkomafont{captionlabel}{\color{3}\bfseries} \setcapindent{1em} \KOMAoption{captions}{tableheading, figuresignature}  \RequirePackage{dsfont, mathtools, amssymb, delarray, graphicx, nicefrac,mathrsfs}  \RequirePackage{xspace} \RequirePackage[amsmath, thmmarks, hyperref]{ntheorem} \makeatother   I got the cls-file from a friend and I don't know the meaning of every command.  My aim is to use \cite, such that it produces just a number of cited article/book.


No BoundingBox in LaTeX for a JPEG figure

I am creating a pdf file with MiKTeX editor. I am including a figure as follows:  \begin{figure}     \centering     \includegraphics[width=0.9\textwidth]{MonitoringConcept.JPEG}     \caption{Monitoring concept for energy and comfort}     \label{MonitoringConcept} \end{figure}   In the header, I have added these packages:  \usepackage{lineno,hyperref,subfig,graphicx}   However, in the compilation time I get an Error. The message is the next one:  ! LaTeX Error: Cannot determine size of graphic in MonitoringConcept.JPEG (no BoundingBox).    Do you know what the problem could be? Thank you very much in advance!


Computing eigenvectors for PCA: what to do about the freedom to choose the sign?

After an eigenvector computation for PCA, I get the eigenvector $(a, b)$ where $a=b$. This means that if I choose $a=1$, then also $b$ would be equal to $1$, and if I choose $a=2$, $b$ would also be equal to $2$. So the vectors $(1, 1)$, $(2, 2)$, $(3, 3)$, etc. would all be valid as they are pointing in the same direction. I can use any of those vectors to compute my principal component in that direction.  My issue is now as follows: What if I had chosen $a=-1$, then I would also choose $b=-1$. So the vector $(-1, -1)$ would also be considered valid. But, because of the negative, I would instead generate a principal component facing the opposite direction. This would completely change my PCA result.   My question then is: How do we handle these negatives in PCA? They seem to produce a completely different result relative to the positive vectors.


I have downloaded eclipse-platform-3.7-linux-gtk-x86_64.tar.gz.  Using Ubuntu 10.10  64-bit on Intel 64-bit processor.  While trying to unpack the contents (either double-click or right-click & open-with-archive-manager) I get this error:  gzip: stdin: unexpected end of file
 tar: Unexpected EOF in archive
  tar: Error is not recoverable: exiting now   Is there any remedy to repair it? or is the downloaded file corrupt & needs to be re-downloaded?


I have read many articles on this confusion but i am still confused...   My simple question is -   What is $0^0$?   What is the present agreement to this?   I feel that it should be 1 as anything to the power zero is one....  I am currently a school student so i would like a more of a school based answer..  So incase it comes in my exam i should know what to write:)


Combine the first two commits of a Git repository?

Suppose you have a history containing the three commits A, B and C:  A-B-C   I would like to combine the two commits A and B to one commit AB:  AB-C   I tried  git rebase -i A   which opens up my editor with the following contents:  pick e97a17b B pick asd314f C   I change this to  squash e97a17b B pick asd314f C   Then Git 1.6.0.4 says:  Cannot 'squash' without a previous commit   Is there a way or is this just impossible?


How do I create a template for thesis title page?

My university wants my thesis title page to be formatted in a certain way (see left image below) and I was able to do it in LaTeX (see right image below):    I used the following LaTeX code to do the formatting:  \begin{titlepage} \begin{center}  \textsc{\Large Title of Thesis or Dissertation}\\[0.5cm]  % Title \HRule \\[0.4cm] { \huge \bfseries FIRST LAST NAME \\ Hometown and State \\[0.4cm] }  \HRule \\[1.5cm]  \begin{minipage}{0.8\textwidth} \centering \large \emph{Previous degree \textsc{DEPARTMENT}}\\ ALMAMATER, YEAR \end{minipage}  \vspace{3cm}  A Dissertation presented to the Graduate Faculty of the UNIVERSITY NAME in Candidacy for the Degree of Doctor of Philosophy  \vfill Department UNIVERSITY NAME\\ EXPECTED GRADUATION DATE  \end{center} \end{titlepage}   However, I would like to go a step further and make some sort of template that I can give to the university that parametrizes the details.  I know how to do this in common object-oriented languages like C++ and Python, but I don't even know where to begin in LaTeX.  The pseudo code for what I'm looking for would allow a user to create the title page like the following:  import university_thesis_style_template  \thesis_university_name{CURRENT_UNIV} \thesis_title{TITLE} \thesis_author{AUTHOR_NAME} \thesis_almamater{DEGREE}{UNIV}{YEAR} \thesis_almamater{DEGREE2}{UNIV2}{YEAR2} \thesis_department{DEPT_NAME} \thesis_graduationdate{GRAD_DATE}   which would output the code above.  Can anyone help me make and install the "package" that would allow me to set this up?


VPS Cron and other email going to spam folder

I have a new vps and I need to setup some cron jobs on it to notify me of what's happening on the server. I've tested with sendmail and emails are indeed leaving the server, but on my email they are arriving as spam. What are the steps I need to do to configure the box propperly? Its a fresh VPS with Scientific Linux installed. Can someone point me in the right direction? Thanks.  I might add that from other vps I have the mail goes to the inbox directly. Also This is from a subdomain I own that is pointing to another server on a A Record.  Edit: Here are the SPF Records already created:  Delivered-To: mypersonalEmail@gmail.com Received: by 10.114.184.100 with SMTP id et4csp1203226ldc;         Sun, 24 May 2015 14:44:42 -0700 (PDT) X-Received: by 10.180.101.3 with SMTP id fc3mr25461787wib.47.1432503882045;         Sun, 24 May 2015 14:44:42 -0700 (PDT) Return-Path: <root@server.rjmarques.com> Received: from server.rjmarques.com ([1.123.123.1])         by mx.google.com with ESMTP id dx2si9334561wib.2.2015.05.24.14.44.41         for <mypersonalEmail@gmail.com>;         Sun, 24 May 2015 14:44:41 -0700 (PDT) Received-SPF: pass (google.com: domain of root@server.rjmarques.com designates 1.123.123.1 as permitted sender) client-ip=1.123.123.1; Authentication-Results: mx.google.com;        spf=pass (google.com: domain of root@server.rjmarques.com designates 1.123.123.1 as permitted sender) smtp.mail=root@server.rjmarques.com Received: by server.rjmarques.com (Postfix, from userid 0)     id 2A498528D; Sun, 24 May 2015 21:44:41 +0000 (UTC) Date: Sun, 24 May 2015 21:44:41 +0000 To: mypersonalEmail@gmail.com, to@server.rjmarques.com Subject: Test User-Agent: Heirloom mailx 12.5 7/5/10 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20150524214441.2A498528D@server.rjmarques.com> From: root@server.rjmarques.com (root)  This is a test   And the spf record:  v=spf1 mx a ptr ip4:1.123.123.1 ~all


Convert particle system to animated meshes

I've started trying to make a 3D model that I will end up exporting to an augmented reality app but I've hit a problem in terms of the particle system. The app wants the 3D file in .dae(collada) format which blender allows, but it doesn't seem to export particle systems. I've read that blender doesn't support exporting particle systems at all so I'm now focused on converting the particle system to lots of meshes which will (hopefully)animate using key frames. Then I can export all the meshes and the particles will 'work'.  Currently I'm just using a standard particle system emitting small icospheres. I've tried a few different techniques, such as 'make duplicates real' and using a particle instance instead but they don't seem to animate. Instead it just freezes the current frame into an object(which exports fine but is not what I want). I've also tried recording the animation in the blender game engine but particle systems don't work with it so that didn't work either.  Any help would be appreciated! Thanks


Why are usernames allowed to be composed entirely of non-visible Unicode characters?

on Ask Different appears to have no name due to invisible Unicode characters:    he's the #2 user on the site:    Why is that allowed? I think it is confusing for users, e.g. when they will see at the bottom of an answer:    It's not clear who answered, not clear what the rep numbers and badges are related to, and not clear how you can @reply to that user in the comments!


In a sentence "What's up, my friends?" should I put a comma between "what's up" and "friends"?

In a sentence "What's up, my friends?" and "Hey, everyone!" should I put a comma between "What's up" and "friends" and "Hey" and "everyone" respectively? Is there a particular set of rules?


How to change font size for specific lstlisting

I have a java lstlisting and it is too big and does not mach a single page.  Is there any way to specify font for specific listing, not all listings in document?


Movies Where Reality Changes at Night and People Wake Up to a Different World Every Day

I am looking to identify a movie where the world is changed every night and people wake up in a different world.  The only scene I can remember is of a City (vaguely 'Gotham' in muted colors) being torn down and then rebuilt while people sleep.  IIRC the people are unaware that this is happening.  English language, probably late eighties early nineties.  Also I dimly believe that this movie reminded me of another one with a similar plot line, so there may be two different movies that answer this question.  N.B. I am not thinking of "The Truman Show" or "The Langoliers".


Cross object dependant picklist validation

Hi i am having a two picklist in salesforce  one is on account object and one is on contact object. If i am having a1,a2,a3 as picklist values in both.  if i select a value in contact is a1 and in contact's account is a2 then it must show an error


Create a directly-executable cross-platform GUI app using Python

Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux.  The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this and point me in the right direction please?


Python - Group neighbor elements into tuples in a list?


I need to create a Table Of Appendices and I don't know how doing this. I don't find solution on  or on LaTeX documentation.  The table of appendices must look like a classical table of contents with chapters names but without pages numbers.  Someone can help me to do this ?  \documentclass[12pt]{report}  %%%%%% USE PACKAGE %%%%%%  \begin{document}  \tableofcontents  %%%%%% A LOT OF CHAPTERS WHICH ARE ON THE tableofcontents %%%%%%   \newpage \addcontentsline{toc}{chapter}{APPENDICES}  \vspace*{8cm} \begin{center}     \Huge\textbf{APPENDICES} \end{center}  %%%%%% TABLE OF APPENDICES HERE %%%%%%  \appendix  \chapter*{A - Document SOLR}     \begin{figure}[h!]         \centering         \includegraphics[scale=0.70]{./images/document_solr.png}     \end{figure}  \chapter*{B - Administration des rapports}     \begin{figure}[h!]         \centering         \includegraphics[scale=0.40]{./images/page_gestion_rapport.png}     \end{figure}  \chapter*{C - Extrait rapport mensuel}     \begin{figure}[h!]         \centering         \rotatebox{90}{             \includegraphics[scale=0.40]{./images/extrait_rapport.png}         }     \end{figure}  \end{document}   EDIT 1 :  I added :  \usepackage{etoolbox} \usepackage{appendix}  \usepackage{tocloft,titlesec} \newcommand{\listappendixname}{Tables des annexes} \newlistof{appendix}{apc}{\listappendixname}  \AtBeginEnvironment{appendices}{%   \clearpage   \addcontentsline{toc}{chapter}{Annexes}   \write\@auxout{%     \string\let\string\latex@tf@toc\string\tf@toc% Store the original `\tf@toc` file handle     \string\let\string\tf@toc\string\tf@apc%    }% Naughty trick   \titleformat    {\chapter}    [display]   {\huge\bfseries\filcenter}    {\Large \MakeUppercase{\@chapapp} \thechapter}    {1.5ex}{}   {} }  \AtEndEnvironment{appendices}{%   \write\@auxout{%     \string\let\string\tf@toc\string\latex@tf@toc%    }% Naughty trick, restoring the old `\tf@toc` number, to be able to write stuff to the real `.toc` again. }   And :  \newpage \addcontentsline{toc}{chapter}{Annexes}  \vspace*{8cm} \begin{center}     \Huge\textbf{Annexes} \end{center}  %%%%%% NEW LINES %%%%%%  \listofappendix  \begin{appendices}     \chapter{Proof of Theorem One}     \chapter{Proof of Theorem Two} \end{appendices}   I obtain this error : ! Improper \spacefactor.\@->\spacefactor\@m {} \begin{appendices}


bus error in C program when trying to assign value to an dereference pointer

I'm trying a simple C program. #include <stdio.h> int main() {     int *ptr;     *ptr = 1;     printf("%d\n", *ptr); }  doesn't work and result in % gcc -o main main.c % ./main [1]    66272 bus error  ./main  while #include <stdio.h> int main() {     int *ptr;     int i = 1;     ptr = &i;     printf("%d\n", *ptr); }  works as expected. Is *ptr = 1 an invalid syntax? Also, what does bus error exactly mean?


Why does `type which` say that `which is hashed`?

In case of shell-builtins (eg type itself):  $ type type type is a shell builtin  $ which type <Doesn't return anything since it's a shell builtin, silently exits>   In case of commands (normally) (eg python):  $ type python python is /usr/bin/python  $ which python /usr/bin/python   In case of which (which is a command located at /usr/bin/which)  $ type which which is hashed (/usr/bin/which) $ which which /usr/bin/which   Why does type which say that which is hashed? What is the significance of which being hashed and what does it actually mean?


Mobile app doesn't order by favourite tags

I've noticed recently that when I open up Stack Overflow via the iOS app, my favourite tags don't seem to play a part in displaying me relevant questions.  addresses highlighting issues, but my mobile display is populated by questions that I have no experience in answering:    Vs the Stack Overflow desktop or mobile website:    Question  I find this annoying - is there any reason that this occurs? Is it simply missing the "order by favourite tag relevance" criteria from the query?  I'd love to be active in the Java, C# tags etc but my involvement with Stack Overflow currently is focused towards PHP, SQL, jQuery etc...


Once an Area 51 proposal has entered the commitment phase, is there a deadline by which it needs to achieve critical mass?  I found a couple questions lamenting about how long it takes to get enough commitments (e.g., ), so presumably it's a long time.   But does that mean a site could reach beta a year after entering the commitment phase? 6 months? Or are proposals intended (either manually or automatically) to be quashed after a month or two due to lack of critical mass?


Wolves? What wolves? I have only spotted ONE wolf in playing minecraft for the past two weeks!  Can anyone tell me where I can find one? Is there some sort of biome they prefer? Are the spawning rules for wolves any different from regular critters?


Proper casing in citation/bibliography titles using biblatex/Biber

My understanding is that bibtex lets the citation style handle capitalization of titles, which is what I would expect from an automated citation tool. Do biblatex and Biber also do this? The document I am working on with these tools seems to be preserving the capitalization in the bib database, which is NOT what I want, and I haven't found any clear references that explain what the expected behavior is.


I'm writing a document with lots of numbered items, and I would like each of those items to be contained on a single page (rather than split across two pages). Is there a way to do this? samepage doesn't seem to work.  For example, if the following two items were too big to fit on the same page, I would like item 2 to move to the next page:  \begin{enumerate}  \item Blah blah blah ... ...  \item More babbling ... ...  \end{enumerate}


An exercise using uniform boundedness principle

Let $(V, \| \cdot \|)$ be a normed space and suppose that $(x_n)_{n\in\mathbb{N}} \subset V$ has the property $\sum_{n=1}^{\infty} |\phi(x_n)|<\infty$ for each $\phi \in V^*$. Prove that   $$ \sup_{\|\phi \| \leq 1} \sum_{n=1}^{\infty} |\phi (x_n) | < \infty. $$  I know that I'm supposed to show what work I have done. But I couldn't get started on this exercise. So it would be helpful if it could be pointed out where to start.


How can all integral values on an elliptic curve be found?

Here :    an upper bound for the integral values on an elliptic curve is given.  But this bound is so large that it is of no use in practice, if all integral points have to be found.      How can I find all integral points in practice ?    In the above article, it is mentioned that a "sum" of solutions is again a solution. But I do not think that all solutions can be found this way in general, or is this actually the case ? Moreover, it can be difficult to find one solution or to prove that none exists. Who can help ?  The given answer contains a lot of links, but I would prefer to have either at least the main ideas or how I can determine the solutions with PARI/GP, my favorite calculator-program. Moreover, I noticed that most implemented methods rely on unproved conjectures, if I did not misinterprete it. This would be not really satisfying.


Syntaxis anomaly: array^ What does ^>^ mean?

During study Uart, I found this symbol ^ which immune to google. Here code that I can not understand: array<object^>^ objectArray = SerialPort::GetPortNames();


Does the Ubuntu 13.04 disk image fit on a CD?

I am currently out of blank DVD's so my question is: Can I burn the iso to a CD instead or does it have to be a DVD?


Badges earned are shown in the achievements with the current site's badge symbol

On the achievement screen, badge award notifications use the badge symbol of the site you're currently viewing, not the one you earned the badge on.  This is confusing because, for example,  has a distinctive badge symbol that makes me think I earned a badge there at first glance, even though the site icon is from another site. The expected behavior is to take each badge symbol from the relevant site.


Pretty print nested dictionary, with a limit

Enhancing this , I got:  def pretty(d, steps = -1, indent = 0):     for key, value in d.iteritems():         c = 0         print '\t' * indent + str(key)         if isinstance(value, dict):             pretty(value, indent+1)         else:             print c             if(c == steps):                 return             c += 1             print '\t' * (indent+1) + str(value)   which dreams of printing until a certain number of values of the original key are printed. For example, without a limit:  1 5299     1 1229     1 2068     1 7223     1   but when steps = 2, then it would print:  1 5299     1 1229     1   The reason its dreams are not coming true is that c is not a static variable (like one would do in C, I tried static c = 0 and got a syntax error), thus at every call of the recursion, c is created again, it doesn't remember its former value.  How would one do this in Python?


Recently, there was a user in the Tavern who was... um, either highly delusional or a bot. In any case, since unfortunately no employees were around at the time, it took us almost a full hour to get enough people to spam/offensive/abusive flag one of his messages in order to get a measly 30-minute chat ban.  All of us in Teachers' Lounge felt so helpless in that we could barely do anything in order to... well, be moderators. Even our custom "other" flags went unhandled since no employees were around at the time.  Therefore, I hereby propose that we assimilate chat.MSE into chat.SE!    , but it was from a long time ago, and things have changed.   chat.meta.SO is no more. The reasoning provided for having a separate meta chat was:     And MSO? hmm... well... er... hmmm... MSO is a curious beast; in part it discusses stackoverflow.com and in part it discusses the Stack Exchange Network.   That no longer applies after the MSO/MSE split. chat.SO is active enough to have a separate thing, but chat.MSE is much less so. (This is obviously true given the fact that it took over an hour for a single blue person to appear.) The above point is especially exemplary considering that most users with chat moderation privileges on Chat.SE don't have those privileges on Chat.MSE. In order to participate in Chat.MSE, users without the association bonus need to have explicit participation on this site. This is unlike Chat.SE, where any user whose combined rep across all sites is 20+ can chat in any chat room on any site (except Stack Overflow).  Meta isn't even as special as it used to be (yes yes I know, we're very special unicorns, but just listen to me), since it's now basically a "normal" site (in the technical sense. The users are... well, we're something different.). Since it's actually much less active than other *.SE.coms, I don't see why it's treated so differently.


Does Ubuntu run just about any program I can run on windows?  I'm not a coder, can I still effectively use Ubuntu?


Whenever I select the camera, a white object type of thing appears on the screen. It is unselectable unlike other objects, but it can be move with left click. It also does not let me use the camera to view option. I will add an image of it for a better understanding.  As you can see, it is in a cross-like shape.


Version 18.04 sudo apt-get update  I am trying to "update" but am getting the following message:  Err:1 http://archive.ubuntu.com/ubuntu bionic InRelease   Could not resolve 'archive.ubuntu.com' Err:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease   Could not resolve 'archive.ubuntu.com' Err:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease   Could not resolve 'archive.ubuntu.com' Err:4 http://archive.ubuntu.com/ubuntu bionic-security InRelease   Could not resolve 'archive.ubuntu.com' Reading package lists... Done W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic/InRelease Could not resolve 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Could not resolve 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-backports/InRelease Could not resolve 'archive.ubuntu.com' W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/bionic-security/InRelease Could not resolve 'archive.ubuntu.com' W: Some index files failed to download. They have been ignored, or cold ones used instead.   I have tried to follow various solutions for this but cannot resolve it.  I have tried to update using ethernet in case it was the wifi. I still get the same error.  I have tried to do:   echo "nameserver 8.8.8.8" | sudo tee /etc/resolvconf/resolv.conf.d/base > /dev/nell   but get  tee: /etc/resolvconf/resolv.conf.d/base: No such file or directory


How long should we wait to go for the first stroll

Our daughter is 8 days old right now. Depending on to whom we speak (doctors and nurses and friends) there are various opinions as to when to go for a first walk.  How long should we wait before we take our child outside?  PS. can't create tag yet. Add "stroll" or "walk" please.


“If” in dependent clause, and “then” in independent

If it’s not raining outside, I’ll go to the park.   If it’s not raining outside, then I will go to the park.   If I could speak English, I would go to London.   If could speak English, then I would go to London.  What’s the difference in meaning between those independent clauses? Is “then” unnecessary to use, or does it convey a different meaning here?


I have been working on a whack-a-mole project over the last couple weeks and I ran in to an issue maybe a week ago when trying to click on new mole images that are generated.  The goal here is to simply generate an image of a mole in a gamespace div, and each mole can be clicked to increase the user's score.  When I run the program I am able to click on the first mole image to increase the score counter, but all other moles are not clickable.  There are some other functions in here such as randomX() that are not used in this stage.  I used those later for generating images in random locations.  I would really appreciate any help, thanks in advance!    var userScore = 0; //Global variable for score counter var gameTimer = 30; //Global variable for game timer  $(document).ready(function() {   $("#start_button").click(function() {     gameStart();     $("#mole").on('click', scoreIncrease);   }); });  function randomY() { //function to calcualte random y-value between 0 and 300   var y = Math.floor((Math.random() * 300) + 0);   return y; }  function randomX() { //function to calculate random x-value between 0 and 600   var x = Math.floor((Math.random() * 600) + 0);   return x; }  function scoreIncrease() { //function that adds to user score and updates #score element   userScore++;   $('#score').html(userScore + ' pts'); }  function timerDecrease() { //function that decrements gameTimer and sets text for #timer   $("#timer").html(gameTimer + ' seconds left');   gameTimer--;   setTimeout("timerDecrease()", 1000); }  function addMole() {   var t = $('#gamespace').append('<img id="mole" src="img/mole.jpg" />');   t = setTimeout(addMole, 3000); }  function gameStart() {   $('#timer').show(); //show timer   addMole(); //call addMole function   $('#gamespace').css('background-color', 'brown'); //change #gamespace background color   $('#content').css('background-color', 'green'); //change #content background color   timerDecrease(); } <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>


Proof that the Rubik’s Cube group is 2-generated

Singmaster (1981) writes, on page 32 of his Notes on Rubik’s Magic Cube:     Frank Barnes observes that the group of the cube is generated by two moves:   \begin{align*} \alpha &= L^2 B R D^{-1} L^{-1} &=(RF,RU,RB,UB,LD,LB,LU,BD,DF,FL,RD)& \\ &&\cdot (FUR,UBR,LDB,LBU,DLF,BDR,DFR)\\ \beta &= UFRUR^{-1}U^{-1}F^{-1} &=(UF,UL)_+(UR)_+(UBR,UFL)_-(URF)_+ \end{align*}   Observe that $\alpha^7$ is an $11$-cycle of edges and $\alpha^{11}$ is a $7$-cycle of corners, that $\beta$ affects the edge and corner left fixed by $\alpha$, and that $$\beta^2 = (UF)_+(UL)_+(UBR)_-(UFL)_-(UFR)_-$$ [...] The remaining details are left as an exercise.   I hadn't seen this notation before, so I'll explain it here.     Notation like $(LU, BD, DF)$ means an edge cycle, in which:         The $L$-$U$ edge moves to the $B$-$D$ edge's place, with the $L$ half ending up on the $B$ face, and the $U$ half ending up on the $D$ face.   Similarly $BD \to DF$ and $DF \to LU$.         The notation for corners is similar.      Notation like $(UF, UL)_+$ is a twisted cycle: again, $UF \to UL$, but now $UL \to FU$; the final edge gets flipped when cycling back to the first edge. For corners, the notation is similar, but corners rotate, they don't flip. A subscript $+$ means clockwise rotation, a subscript $-$ means counterclockwise rotation.      $(UR)_+$ means a single edge is flipped. $(UBR)_-$ means a single corner is rotated counterclockwise.   I would like to show that this is indeed true, by writing each element in $\{F,B,L,R,U,D\}$ as a product of elements in $\{\alpha, \beta, \alpha^{-1}, \beta^{-1}\}$ – preferably, having those product be as short as possible. How would I go about finding them? (I'm okay with using software like GAP – if it is at all computationally possible.)


Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a DLL with accessible functions I just export them using the standard __declspec(dllexport) directive.  Then access them either dynamically via LoadLibrary() or at compile time with a header and lib file.   How do you do this when you want to export an entire class (and all it's public methods and properties)?  Is it possible to dynamically load that class at runtime and if so, how?  How would you do it with a header and lib for compile time linking?


Exclude All International Traffic from Google Analytics

How do you exclude any & all traffic that isn't from USA & Canada in Google Analytics?


How to proof "(𝑃∧𝑄)→¬(¬𝑃∨¬𝑄)" is a tautology

That is part of my homework and I really have no idea about that. Really need some help. There is the question: In our proof system for Sentential, if there is a proof of ℬ from 𝒜 then 𝒜→ℬ is a tautology. Use a proof to show that the following sentence is a tautology. (𝑃∧𝑄)→¬(¬𝑃∨¬𝑄)


Prove $\forall x\in\mathbb{Z}, k!\mid x(x+1)(x+2)\cdots(x+k-1)$.

I need some help with this problem, can you help me?     Given $k\in\mathbb{Z}^*$ prove $\forall x\in\mathbb{Z}, k\mid x(x+1)(x+2)\cdots(x+k-1)$.   Sorry that one is pretty easy, I made a mistake.  The problem is:       [Update] Given $k\in\mathbb{Z}^*$ prove $\forall x\in\mathbb{Z}, k!\mid x(x+1)(x+2)\cdots(x+k-1)$.


iCloud storage full: "Not Enough Storage". Backups exceed 5GB

Just like everyone else, I get the notification that my iCloud is full and no backup can be made. iOS gives me the suggestion to upgrade my storage on my iCloud account. Because I only want to store my settings, phone numbers and other 'light' stuff, I see no reason to upgrade. I think a few gigabytes should be more than plenty to backup my device(s).  What is taking all the space on my iCloud?  First I checked on my Mac - OS X Mavericks  On OS X I have checked the following in 'System Preferences' -> 'iCloud':   Backup 4.44 GB Documents 550.7 MB Mail 5 MB     Okay, my major storage exists of the type 'Backup'. I Guess these are the backups from my iPad and iPhone, but System prefs gives me no further clue. Lets look at my iPhone  I got out my iPhone - iOS 8.4  I go to 'Settings' -> 'iCloud':   iCloud Drive ON Photos ON   iCloud Photo Library OFF My Photo Stream OFF iCloud Photo Sharing ON  Mail OFF Contacts, Calendars, Reminders, Safari, Notes, Passbook ON Backup, Keychain, Find My iPhone ON     Then I go to 'Settings' -> 'iCloud' -> 'Storage':   Total storage 5.0 GB Available 15.9 MB     I go to 'Settings' -> 'iCloud' -> 'Storage' -> 'Manage Storage':     LAST BACKUP FAILED      An additional 5 GB of storage is required. To   continue backing up this iPhone do one of the following:         Change your backup options   Delete some data   Buy more storage      Also, it gives me the following use of my data:  Backups:   iPhone backup of 4.3 GB iPad backup of 137.4 MB   Documents & Data:   Some documents with a total of 534.6 MB     Okay, so all my storage goes to 'Backups'. Lets select the iPhone backup (and here is where I get lost...)  'Settings' -> 'iCloud' -> 'Storage' -> 'Manage Storage' -> 'iPhone Backup':     BACKUP OPTIONS      Choose the data you want to back up.   An additional 5.0GB is required to back up   this iPhone   Next Backup Size 5.0 GB ⚠   Photo Library 2.3 GB OFF WhatsApp 550 MB OFF Keynote 238 MB OFF     There is no space requiring stuff to backup and still is it taking 5.0GB... What does my phone want to backup that takes 5.0 GB of space? Is there a way to visualise this? I only want to backup some settings and contacts, no major stuff...  How can I backup my stuff with the default 5 GB?


Existence proof of the tensor product using the Adjoint functor theorem.

Can one prove the existence of the tensor product by the adjoint functor theorem? (of, say, modules over a commutative ring) If yes, how would one check the SSC (solution set condition) for the hom functor?


Why are Walter and Georgina servants of the Armitage family?

Towards the ending of Get Out (2017), it is revealed that Grandpa Armitage and his wife had their conciousnesses transferred to Walter and Gerrgina respectively. If so, why are Walter and Georgina still servants of the Armitage family? There is a scene in which Rose's mom is rude towards Georgina. In the video Chris was shown during phase 2 of the Coagula procedure, Grandpa Armitage appears to be the leader of their cult, why would he transfer his consciousness into Walter's body and be the house help?


How is a cubic root done in gnome-calculator?

I don't know which buttons I have to click or what key combination to type to calculate a cube root.


String comparison doesn't work in while loop

Noob Java question: Why won't this Do While loop accept the user input? When I use a different variation (such as int for the answer), it works. But when I look for a string, it never accepts the string and escapes the loop.  This works:  int value = 0; do {     System.out.println("Enter a number: ");     value = scanner.nextInt(); } while(value != 5); System.out.println("Do while loop has ended.");   This doesn't work:  String pass; String word = "word"; do {     System.out.println("Enter password: ");     pass = scanner.nextLine(); } while(pass != word); System.out.println("Password accepted.");   Thanks


Why is gradient descent and it's variants used instead of BFGS and L-BFGS for training neural nets?

My understanding is that BFGS and L-BFGS solve the same type of optimization problems as GD and it's variants.   Why is GD the go to algorithm for training neural networks?


Need help to solve these two trigonometric functions?

I can't figure out how to solve these functions. Any help or links to examples on how to do these will be much appreciated.  Thanks.


How to prove that $\frac{a+b}{2} \geq \sqrt{ab}$ for $a,b>0$?

I am reading a chapter about mathematical proofs. As an example there is: Prove that: $$(1) \space\space\space\space\space\space\space\space\space\space\space \frac{a+b}{2} \geq \sqrt{ab}$$ for $a,b>0$. There is stated that the thesis for the proof is short multiplication formula: $$(2)\space\space\space\space\space\space\space\space\space(a+b)^2=a^2+2ab+b^2$$ Substracting from the short multiplication $(2)$ formula $4ab$  and using square root yields the proof by implication. (here ends the example in a book)  Please tell me if I am right about it:    we are considering only $a,b \in \Re^+$ $(1)$ can be transformed into $a-2\sqrt{ab}+b \geq0$ which is an equivalent short multiplication formula $(x-y)^2=x^2-2xy+y^2$ taking into account assumptions squared number is always equal or greater than zero. the implication says that if squared number is greater than zero then $(1)$ is true.   My first question is: is my thinking proper?  My other question is why the authors use $(a+b)^2$ and susbstract $4ab$ instead of starting with $(a-b)^2$. I am also confused about the symbols used - in $(1)$ and $(2)$ authors used $a$ and $b$ - is this just coincidence? Or this would be OK as well if in the first and second $a$ and $b$ were the same numbers?


What would have happened if Brook Died from eating a Second Devil Fruit?

I saw a post about "Creating your own Devil Fruit Powers".. Most OP would be having two abilities. Then I remember that eating Two Devil Fruits = your body to explode.   So.. I was thinking, What would have been the Result if Brook (Alive) would have died by eating a second Devil Fruit? Would his Yomi Yomi no Mi powers activate and revive him and if so, he is a person that was able to eat two devil fruit and live which means, two abilities?


How to make a surface with a transparent background in pygame

Can someone give me some example code that creates a surface with a transparent background in pygame?


Often times I hear people say "I got it offline" to mean they downloaded it from the internet, is this an accepted term or should it be "I got it online"?


Why didn't Professor Dumbledore kill the Dark Lord when they met in the Minstry?

In Harry Potter and the Order of the Phoenix chapter 36, we see  Professor Dumbledore dueling with the Dark Lord in the Ministry of Magic.  From their exchange, it seems that Professor Dumbledore is not fighting to kill.     ‘You do not seek to kill me, Dumbledore?’ called Voldemort, his scarlet eyes narrowed over the top of the shield.  ‘Above such brutality, are you?’      ‘We both know that there are other ways of destroying a man, Tom,’ Dumbledore said calmly, continuing to walk towards Voldemort as though nothing had happened to interrupt his stroll up the hall.  ‘Merely taking your life would not satisfy me, I admit –’   Why did Professor Dumbledore not try to kill the Dark Lord?    At that time, Professor Dumbledore may have suspected that the Dark Lord has another Horcrux, so he would not truly die, but only become a bodyless spirit.  Even so, that would have been a huge setback to the Dark Lord’s plans, as evidenced from Professor Dumbledore’s explanation in Philosopher’s Stone chapter 17.     ‘[… Voldemort] is still out there somewhere, perhaps looking for another body to share … not being truly alive, he cannot be killed.  He left Quirrell to die; he shows just as little mercy to his followers as his enemies.  Nevertheless, Harry, while you may only have delayed his return to power, it will merely take someone else who is prepared to fight what seems a losing battle next time – and if he is delayed again, and again, why, he may never return to power.’   This question may be a special case of


I'm trying to read a txt file using this code.  This is my function which reads the file:  public class Open_File {             public void fct(File file) throws IOException {             String line = null;         FileReader fr = null;         {             try             {                 fr = new FileReader( file );             }              catch (FileNotFoundException e)              {                   System.out.println( "File doesn't exists" );                 e.printStackTrace();             }             BufferedReader br = new BufferedReader( fr );              try             {                 while( (line = br.readLine()) != null )                 {                     System.out.println( line );                 }             } catch (IOException e) {                 // TODO Auto-generated catch block                 e.printStackTrace();             }             finally{                 br.close();             }         }     } }   And this is my main function, where I give the path:   public static void main(String[] args) throws IOException {     Open_File o = null;     File file= new File("C:/test.txt");     o.fct(file);     System.out.println("réussi"); }   The problem is that the execution throws a NullPointerException  Exception in thread "main" java.lang.NullPointerException     at test.main(test.java:17)   Please could anyone give me a solution for this problem.


What does .append() function do in python?

I have this code right here that I was using and I was trying out the .append() function. x=[1, 2, 3, 4] x.append(5) print(x)  But what does the .append() function actually do?


JSP Nullpointer Exception when HashMap.keySet()

I have a very annoying problem.   I have developed a website with JSP and everything works perfectly on my local PC when I run it in Netbeans.  But if I put it on my Tomcat 7 server, one page gets an Null Pointer Exception at the line hsFilter.keySet():  ConcurrentHashMap<String, LinkedList<String>> hsFilter = (ConcurrentHashMap<String, LinkedList<String>>) session.getAttribute("hashMap_typ"); Set<String> set = hsFilter.keySet(); Iterator it = set.iterator();   The Tomcat log says the following:     java.lang.NullPointerException    at   org.apache.jsp.jsp.dynamisch_005fmitglieder_jsp._jspService(dynamisch_005fmitglieder_jsp.java:947)    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)     at   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)     at   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)     at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)     at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)     at   org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)     at   org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)     at   org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)     at   org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)     at Servlet.MainServlet.doPost(MainServlet.java:137)     at   javax.servlet.http.HttpServlet.service(HttpServlet.java:647)  at   javax.servlet.http.HttpServlet.service(HttpServlet.java:728)  at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)     at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)     at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)     at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)     at   org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)     at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)     at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)     at   org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)     at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)     at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)     at   org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)     at   org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)     at   org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)     at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)     at java.lang.Thread.run(Unknown Source)   The really crazy thing is that the page gets loaded half way through and breaks in the middle. If I log in as admin everything works but if I login as user it gets a NPE.  I hope someone can help me because I'm really new into JSP.  Greets


Can I travel on recently issued visa on my cancelled unexpired passport, where I also have new passport?

I have a cancelled passport (which was valid until 2020), and I also have a new passport valid until 2027, as I have applied for a new passport due to lack of pages.  Recently, I have received a visa for Oman, with my cancelled passport details on it. Can I travel on such a visa with my old passport details?


How to create two PDFoutput from the same source

I have a very long source file. I would like to prepare from this source two PDF files:   PDF contains all of the source file PDF containing only a few, marked earlier parts of the source file.   How I should mark source file and how prepare main file in LateX, to achieve point 2?


Are there any major differences in performance between http and https?  I seem to recall reading that HTTPS can be a fifth as fast as HTTP.  Is this valid with the current generation webservers/browsers?  If so, are there any whitepapers to support it?


Is Fisher's exact test right for this problem?

Let's say I have 4 plants and I measure something under 2 conditions. For example:  The entries in the table show how many times I saw something under condition (C1 or C2) for plant (P1, P2, P3 or P4).         P1,  P2,  P3,  P4  C1    0   20    0   19  C2  100   80  180  150    Now I would like to answer the question "what is the probability that these 39 times of seeing something is unevenly distributed between these 4 plants"?   I am much interested in observation like this, rather than, say:        P1,  P2,  P3,  P4  C1   25   20   15   19  C2  100   80  180  150    Is it right to use Fisher's exact test for this? I just extended the question from a 2*2 table to 2*4.


Proving $\lim_{x \to +\infty} f(x + \sqrt{x}) - f(x)=0$ if $|f'(x)|\le \frac1x$ for $x > 1$

Given a differentiable function ${\rm f}:\left(1,+\infty\right) \to \mathbb{R},\quad$ and $\quad\left\vert\,{\rm f}'\left(x\right)\,\right\vert \leq \frac1x\,,\ \forall\ x>1$.  $$ \mbox{Prove that}\quad \lim_{x \to +\infty}\left[\vphantom{\Large A}% {\rm f}\left(x + \sqrt{x\,}\,\right) - {\rm f}\left(x\right) \right]=0 $$


How do you see what applications you've authorized on Stack Exchange with OAuth access?

I'm working on an app that integrates with Stack Exchange's OAuth interface, . I can approve the application, but can't figure out how to find the apps that I've approved.    How do I disable or at least view this after I've approved it?


How to create alternating rows in a table?

Sometimes you can see in books tables, that have alternating background color for rows in a table to support readability. How I can achieve this with LaTeX?  And yes, I could put macros \odd and \even into each row, but in that case I would have to change all following rows, if I input later another row into the table. I want TeX to decide itself, which row is odd or even and put the appropiate style into it.


I want to create a motion trail effect for a sword like known in games look at that example if you have an solution that looks not as fancy as in the picture don't mind to post it. I'll accept anything useful.


Two different papers with the same title, how to split them up in Google Scholar

A friend of mine ended up in a weird situation that they're looking for advice about: they published two different papers under identical titles. Google Scholar lists both papers with the same number of citations, and with the citations listed being the combined list for both papers.  What should they do? One solution might be to change slightly one the titles. They might do this by adding "a review" at the end of one of the papers, as it is a review paper. Are there better ideas?


Improper integral $\int_0^\infty\frac{f(ax)-f(bx)} x \, dx$

$f(x)$ is continuous for $x \geq 0$, and $\lim_{x \to \infty} f(x) = \ell.$   How do I show that for any $a, b > 0$, we have $$\int_0^\infty \frac{f(ax)-f(bx)} x \, dx = (f(0) - \ell)\log\frac{b}{a}$$  I was thinking something along the lines of we can express it in the form $$\lim _{m \to 0}\int_m^1 \frac{f(ax)-f(bx)}{x} \, dx +  \lim _{n \to \infty}\int_1^n\frac{f(ax)-f(bx)}{x} \, dx$$ but then I'm stuck and don't know how to proceed.


So this popped up    But the prompt makes absolutely no sense since the post is locked.  Should this be fixed?


How to compare mixed effect model with one random effect to one without random effect in R

Essentially comparing:  glm1 = glmer(Mortality ~ CCI + PatientRace + PatientSex + age_cat + (CCI | FacilityIdentifier),               data = tmp, family = binomial,               control = glmerControl(optimizer = "bobyqa"), nAGQ = 1)   to   m1 = glm(Mortality ~ CCI + PatientRace + PatientSex + age_cat,           family=binomial, data = tmp)   To determine if the random effect is a significant contributor, hopefully to show that each facility doesn't have varying practices in measuring CCI that may affect interpretation of mortality. Would appreciate any advice.


What's an English idiom for "you can't observe without disturbing" that won't run afoul of scientists?

We typically use either Heisenberg's Uncertainty Principle or Schrödinger's Cat when we want to talk about a situation where you can't observe a state without altering it. A good example of this situation is the question: Am I interrupting you? The question itself is an interruption, but you can't know the state of the person (amenable to interruption or not) until you ask. It's been my experience that using Heisenberg or Schrödinger is likely to earn you a lecture from the nearest pedant. Removing every person in my life who's fond of the phrase "Well, actually..." is not an option because:  I work in tech I'm one of them  But I'd love it if this community could supply me with whatever idiom we used to evoke this situation before our two estimable German friends came along. Because I found success with this approach in , I'm going to put some near misses here: Near Misses  "catch-22" - Too general. I'm after a more specific sense of the inability to observe a state without changing it (which itself is a catch-22).


I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value between 0 and 1.  To my question; I am wondering whether there is a colouring method for my lines in tikz that defines the colour by a value. For example I may want a high utility value to be red and a low utility level to be green and values in between are gradients of the booth. Is this possible in some way?  EDIT: The answer in the link is useful. I am now updating all my values to my lines manually; is there perhaps a way to retrieve them from a vector?


How to interpret the output of XGBoost importance?

I ran a xgboost model. I don't exactly know how to interpret the output of xgb.importance.  What is the meaning of Gain, Cover, and Frequency and how do we interpret them?  Also, what does Split, RealCover, and RealCover% mean? I have some extra parameters   Are there any other parameters that can tell me more about feature importances?  From the R documentation, I have some understanding that Gain is something similar to Information gain and Frequency is number of times a feature is used across all the trees. I have no idea what Cover is.  I ran the example code given in the link (and also tried doing the same on the problem that I am working on), but the split definition given there did not match with the numbers that I calculated.  importance_matrix   Output:             Feature         Gain        Cover    Frequence   1:            xxx 2.276101e-01 0.0618490331 1.913283e-02   2:           xxxx 2.047495e-01 0.1337406946 1.373710e-01   3:           xxxx 1.239551e-01 0.1032614896 1.319798e-01   4:           xxxx 6.269780e-02 0.0431682707 1.098646e-01   5:          xxxxx 6.004842e-02 0.0305611830 1.709108e-02  214:     xxxxxxxxxx 4.599139e-06 0.0001551098 1.147052e-05 215:     xxxxxxxxxx 4.500927e-06 0.0001665320 1.147052e-05 216:   xxxxxxxxxxxx 3.899363e-06 0.0001536857 1.147052e-05 217: xxxxxxxxxxxxxx 3.619348e-06 0.0001808504 1.147052e-05 218:  xxxxxxxxxxxxx 3.429679e-06 0.0001792233 1.147052e-05


Hit rep cap, but didn't get the R-E-S-P-E-C-T hat

I hit the reputation cap in S.O. Actually by more, I had 194 rep when the last upvote gave me 6 points (to be 200). I got the bronze badge, but didn't get the R-E-S-P-E-C-T hat.  I got most of the points that day by edits. Is that the reason?


Bypass BIOS password set by faulty Toshiba firmware on Satellite A55-S1065 laptop?

I want to rescue this 7 year old laptop that has been crippled by a glitch in its BIOS:     'A "Password =" prompt may be displayed when the computer is turned on, even though no power-on password has been set. If this happens, there is no password that will satisfy the password request. The computer will be unusable until this problem is resolved. [..] The occurrence of this problem on any particular computer is unpredictable -- it may never happen, but it could happen any time that the computer is turned on. [..] Toshiba will cover the cost of this repair under warranty until Dec 31, 2010.' -   As they stated, this machine is "unusable." The escape key does not bypass the prompt (nor does any other key), thus no operating system can be booted and no firmware updates can be installed. After doing some research, I found solutions that have been suggested for various Toshiba Satellite models afflicted by this glitch:   "Make arrangements with a Toshiba Authorized Service Provider to have this problem resolved." -. Even prior to the expiration of Toshiba's support (see above), there have been reports that this solution is prohibitively expensive, labor charges accruing even when the laptop is still under warranty, and other reports that are generally discouraging:     "They were unable to fix it and the guy who worked on it said he couldn’t find the jumpers on the motherboard to clear the BIOS. I paid $39 for my troubles and still have the password problem." - .   Since the costs of the repairs can now exceed the value of the hardware, it would seem this is a DIY solution, or a non-solution (i.e. the hardware is computer graveyard material). Build a Toshiba parallel loopback by stripping and soldering the wires on a DB25 plug to connect connect these pins: 1-5-10, 2-11, 3-17, 4-12, 6-16, 7-13, 8-14, 9-15, 18-25. -. According to a list of supported models on pwcrack, this will likely not work for my Satellite A55-1065, as well as many other models of similar age. - Disconnect the laptop battery for an extended period of time. This laptop already sat in a closet for several months without the battery connected. The poor thing! Clear the CMOS by short circuiting a specific pair of solder pads. Examples given for other Satellite models:   Toshiba Satellite 1800:     "Underneath the RAM there is black sticker, peel off the black sticker and you will reveal two little solder marks which are actually 'jumpers'. Very carefully hold a flat-head screwdriver touching both points and power on the unit briefly, effectively 'shorting' this circuit." -  Toshiba Satellite A105:     "You will have to jump the two solder squares at label C88." -  Toshiba Satellite L300:     "Short the B500 solder pads on the system board." -     Wiping the CMOS might clear the password prompt issue, but I cannot locate a jumper or a battery on this board. Nothing that looks remotely like a battery can be removed (everything is soldered). See for yourself:      Update: Matt located a pair of solder pads marked "reset." I shorted the circuit several times, but the password prompt still remains.   Possibly related questions:


Man goes to space, learns alien language but forgets own

I read this short story from an anthology years ago, so I don't remember much of the details. It may have been written in the 50s to 60s.  It involves a man who has to visit a space station or an outpost in space, is exposed to alien writing and gradually ends up being unable to read his own written language. However, he is then able to read the alien writing.  Edit: There are probably more important details I'm missing here. This seems to have taken place in a small outpost/station in space, in a smaller enclosed space.


Me and Energy      I'm trying to move along with my study of non-advanced physics but not grasping what energy really is, is driving me nuts.  Whenever i see anything about energy ( Kinetic, Potential, Energy in light ) i don't precisely understand what it is talking about and I can't move forward.     Begins of Understanding  After searching in  and reading a Feynman's article I was able to have a basic idea of what energy is about.         Given we determine a physical system ( a portion of the universe ), there is a quantity associated with that physical system at each instant of time that we call energy. If the physical system is isolated, that quantity shall be conserved as time passes ( Law of Conservation of Energy ).     Also, that specific quantity ( called energy ) is the sum of a set of other quantities, each of which related to mutually exclusive ( else, the sum of the quantities would be less or more than the total energy ) characteristics of the isolated physical system ( each one corresponds to a different energy form and we have formulas to calculate them ).       Doubts, many doubts But i'm still far away from grasping it.     1 - Do we have a well-defined set of mutually exclusive energy forms for each physical system, such that their sum corresponds to the total energy of the system ?      What are them, exactly ?    More detailed explanation about Doubt 1 I can read about many kinds of forms ( chemical, thermal, nuclear, electric, kinnetic, potential, mass, light, etc,etc ) but this tells me nothing about the well-defined set of mutually exclusive energy forms.     For instance, the listed ones are certainly not mutually exclusive, afterall we could just see thermal energy as a mixture of kinnetic energy ( sensible thermal energy ) and potential energy ( latent thermal energy ). Same thing for chemical and nuclear ( a kind of potential energy at the atomic-level ).    We could even extrapolate that for mass ( a kind of potential energy inside the nucleons ). In the end, almost all kinds of energy form could be viewed as Kinnetic ( related to the system's motion ) and Potential ( related to the position of the system within a force field ) , but what about light ? Are kinnetic and Potential energy forms applied to things which are always matter , so light is not included ? How does light fits in the picture of energy of physical systems, which are decomposable into mutually exclusive energy forms ?        2 - I talked so much about Physical systems but this was because i needed to refer somehow to the thing WHICH posseses energy. The problem is that i don't really know what a physical system exactly represents.Defining it as a portion of the universe ( as Wikipedia defines it ) , tells little about what it is.  Is "portion" refering to specific matter in the universe ( which might occupy different regions of the space, along of time ), or is "portion" refering to specific volume in the space-time of the universe ?   What about light ? Is it a physical system ? It better be, afterall it posses energy.        There it is ... all my doubts that are driving me crazy understanding energy.       I don't expect to fully solve the problem of defining what energy is, i just want to have a solid understanding of what people are talking about when they mention energy.      Some clarification, or suggestion of materials to read would be imensely helpful.


How to prove that $GL(n,\mathbb R)$ is not connected subset and open subset of$M_n (\mathbb{R})$

let $n\gt1$  be a fixed natural number, $S:=${$A $: $M_n (\mathbb{R})$ be all real matrix,define this meter for all $A=[a_{ij}]$ $B=[b_{ij}]$   $d(A,B)$:=max{|$a_{ij}-b_{ij}$|:i,j=1,2,2...,n} and $GL(n,\mathbb R)$ is set of all $n\times n$ non singular matrix how to prove that $GL(n,\mathbb R)$ is  not connected and open subset of $S$ ?  thanks in advance


I'm trying to conduct a two sample t-test on  on food and drink workers in the Seattle MSA to see if there is a mean difference in levels of employment before and after the enactment of an increase in the minimum wage after April 1, 2015. The background for this project is that many people say that an increase in the minimum wage will force low-skill employers to cut their staff in order to minimize costs.  I've included my code below but some have indicated that my statistics aren't correct. Is there a better way of doing this with a t-test? How could I do a regression analysis on this same data? Would I have to create a new variable with the minimum wage for each corresponding observation date?  The data into two variables (observations before and after the minimum wage increase took effect),.  #seattleData <- read.table(file=file.choose(), 2 # header=T, sep=",",)  food_drink_workers <- seattleData$food_drink_workers  afterMinWageLaw <- food_drink_workers[304:346]  beforeMinWageLaw <- food_drink_workers[1:303]  boxplot(beforeMinWageLaw, afterMinWageLaw)  options(scipen = 100)  t.test(beforeMinWageLaw, afterMinWageLaw, mu=0,   alternative "less", conf=.95,   var.equal = FALSE, paired = FALSE)   Results:  Welch Two Sample t-test  data: beforeMinWageLaw and afterMinWageLaw  t = -36.92, df = 160.8, p-value < 0.00000000000000022  alternative hypothesis: true difference in means is less than 0 95 percent confidence interval:  -Inf -38.87279  sample estimates:  mean of x mean of y  103.8059 144.5023


Firstly, we are told that Dr Mann was the best of all of them and he knowingly went to that planet that it might very well be the end if the planet was unsustainable.  Since the planet was indeed a failure, why would he transmit incorrect data. The reasoning that he was desperate to see some human faces seems incoherent.  Secondly, knowing that the planet was a failure and with the available resources all of them could very well return to earth or go to plan B. If he was so interested in living, then he could have gone along Cooper to Earth. Killing the other guy through the bomb in the robot and killing Cooper seemed illogical to me.  Thirdly, how is he able to go to 'Endurance' that too before Cooper and Dr Brand? She picked up Cooper through her spaceship, but exactly from where did Mann get his spaceship?  Fourthly, why does Mann even want to go to Endurance? What are his intentions? Does he want to go back to Earth or is he interested in completing plan A on his own?


I have a small hierarchy of objects that I need to serialize and transmit via a socket connection.  I need to both serialize the object, then deserialize it based on what type it is.  Is there an easy way to do this in C++ (as there is in Java)?  Are there any C++ serialization online code samples or tutorials?  EDIT: Just to be clear, I'm looking for methods on converting an object into an array of bytes, then back into an object.  I can handle the socket transmission.


For sufficiently large $n$, Which number is bigger, $2^n$ or $n^{1000}$?

How do I determine which number is bigger as $n$ gets sufficiently large, $2^n$ or $n^ {1000}$?  It seems to me it is a limit problem so I tried to tackle it that way.  $$\lim_{n\to \infty} \frac{2^n}{n^{1000}}$$  My thoughts are that, after some $n$, the numerator terms will be more than the terms in the denominator so we'll have something like $$\frac{\overbrace{2\times 2\times\cdots \times 2}^{1000\text{ factors}}}{n\times n \times \cdots \times n} \times 2^{n-1000}$$ At this point, I was thinking of using the fact that $2^n$ grows faster slower than $n!$ as $n$ gets larger so the limit, in this case, will be greater than $1$, meaning $2^n$ is bigger than $n^{1000}$ for sufficiently large $n$. This conclusion is really just a surmise based on a non-concrete formulation. Therefore, I'd appreciate any input on how to tackle this problem.


natural/reverse scrolling usability studies

I am wondering whether there are any usability studies out there regarding natural vs. reverse (traditional) scrolling. I tried to google the matter a bit and it seems natural scrolling took off with some Mac OS version - but remains controversial even in the Mac community.  I generally find using a trackpad clumsy - mainly with regards to scrolling. I have, however, only really used reverse scrolling. My issues are only compounded by natural scrolling, but I am wondering whether it might end up being a better experience if I invested the time needed to get used to it.  I guess Apple must have had some intelligent reason for imposing a standard that needs so much getting used to on the part of their users. IS there any evidence that natural scrolling is a switch worth making?


What would be the advantage of a 2x2 ANOVA compared to 2 separate pairwise comparisons?

I have an experiment where I measure the effect of a manipulation on two different groups of participants, and the variable that I manipulate also has two levels. Thus, I can essentially use a 2x2 ANOVA to analyze the results. But it is also possible for me to measure the effect of the different levels of the variable first on Group 1 and then on Group 2, by using paired-samples t-tests.   Is there a rule of thumb to decide what needs to be done in this case? I think one advantage of using an ANOVA could be the option to investigate the interaction between the different groups and the different levels of the variable. Perhaps one could also argue that an omnibus analysis is also a better choice from a stylistic point of view.   But is there a very compelling conceptual reason to prefer a 2x2 ANOVA over two separate pairwise comparisons in my case? And if so, what would it be?


How to make the Wireframes for these lights?

I am trying to reproduce on my CNC a wireframe skull that was etched on acrylic and put into an LED base. It is made by a company called Bulbing; I found it on Youtube. I was hoping that some one might be able help me with this project. Useful  about these lamps.    -from .  Edit: To clarify what the original asker is looking for, How do you take a 3d model and give it a wireframe appearance then output it as a 2d image (preferably vector)?  The objects in the picture are flat pieces of clear acrylic with LEDs at the bottom.  The light reflects off the engraved areas, and if a 2d view of a 3d wireframe is engraved it has the 3d effect shown in the image.


Do sequences in $\ell^p$ belong to some $\ell^q$ for $q<p$?

For every $p\in [1,\infty)$, consider the set $\ell^p$ of real sequences $x=(x_n)=(x_1,x_2,\ldots)$ such that $\sum_{n=1}^\infty |x_n|^p<\infty$. This is a Banach space with the norm $\Vert x\Vert_p=(\sum|x_n|^p)^{1/p}$.  I have the following problem:     Is it true that $\ell^p=\bigcup_{1\leq q<p}\ell^q$ for $p>1$?   I don't think it is true, but I'm having problems to show this. Clearly, the statement is true for some $p>1$ iff it is true for every $p>1$.  I'm trying to find a sequence $(a_n)$ such that $\sum |a_n|^s$ converges iff $s\geq 1$. I've tried many sequences (such as $(n^{1+1/n})$, involving $\log$, etc...), but none of them worked.


I have come across this question and I am just not able to find a good answer to it.  In Java, I can create a thread in 2 ways:  1.Implementing Runnable Interface  public class RunnableInstance implements Runnable {     public void run() {         // functionality goes here     } }   A new thread created as follows :   public class Client {     public static void main(String[] args) {         RunnableInstance runnableInstance = new RunnableInstance();         Thread thread1 = new Thread(runnableInstance);         thread1.start();     } }   Advantages of using this method :   The Client class can inherit any other class. The Client class can implement any other interface. Creating a thread this way actually separated the job(RunnableInstance) and  the runner(Client). If the functionality written in run() is not required to be run as a separate thread, I can directly use it without creating a thread.   2.Extending the Thread class :  public class ThreadInstance extends Thread {     ThreadInstance() {         super("myThread");     }     public static void main(String[] args) {         new ThreadInstance().start();     } }   As evident from advantages of using Runnable :   This class cannot inherit any more classes, as it already extends Thread. It mixes job and runner in one class. For these reasons a programmer may prefer to use Runnable.    The Thread class itself implements Runnable interface and provide an empty implementation of run().   ## Questions ##   Why is it done inside Thread class, when we already have a cleaner way to define a job(functionality of a thread)?   I found some answers like  a. When we are sure about a thing only being executed asynchronously, we can follow this approach in that case.  b. We can define the job in RunnableInstance's run() and then execute asynchronously by attaching the Runnable instance to a thread.   OR  We can execute the code inside run() normally by calling run() method wherever needed.  In this case, if I know I have to execute a method normally, why would I implement Runnable and then define my functionality inside run() ? I can do it anywhere.  What actually is the reason behind providing these 2 ways of creating threads in Java?  People might find it duplicate, but I did not find a convincing answer. Why 2 ways, when Runnable is the cleaner way? And why would I implement Runnable and write my code in run() ,if I don't have to use it with a thread. What apart from the stuff described above actually let them provide these 2 ways.


How do I change the font in the list under Coursework to match the font in the rest of the latex document using awesome-cv?


Massive spam users and spam entries despite triple layer protection

I'm going a little nuts here. The entire point of my site resides on the idea of people registering for the site to contribute content. But I get spam accounts created at least once every minute. Im mass deleting these accounts and the content they create every single time I visit my own site.   I currently use  with the CAPTCHA as the default method (not text analysis) and I have text analysis set to every other form across my site, I use the  module set to and properly configured Akismet (had good results from Wordpress), and also have Spamicide enabled and properly configured.   But spam users are still being made in some very insane amounts, and generating content all over my site; which leads me to wonder if they're even using the forms at all any more to generate content on my site..   EDIT  may have been a little paranoia but I changed the user credentials to my database just to be sure. And yeah, user accounts by the dozens still being created..   I just tried out the  module by exposing the form element with Firebug and writing anything in it. Sure enough the form doesn't register the account.   The Captcha works perfectly too.  Note: I understand Captchas is not good enough (Spam bots these days can solve captchas), but its the only option I get from Mollom.


Can there be significant new changes in physical features of Humans due to evolution in 10000 years of span?

Humans migrated from Africa about 60000 years. And in these years humans physical features undergone significantly in terms of skin color, hair, eye color and facial features.   So, with this we can say that given 10000 years of span we can see a significant noticeable new changes in physical features of humans? like some humans with new skin color (apart from today's white, black and brown), new color eye balls, big heads etc.?


Good ways for learning and cramming formulas?

I got an exam coming up and its numerical based (its pre-university level exam) but really tough. I want to know about various ways and methods to learn formulas. I know how can I  derive them but its time consuming. I want to know how you people learnt these formulas?


I have a domain with permalinks set to   /%postname%/    but now I would like to change to  /%category%/%postname%/    I thought who ever now come from a book mark to  will automatically go to  but instead it shows "not found". Is canonical built in feature by default? If not how to enable it? I use the SEO plugin that came with Genesis.   I checked this  but doesn't help in my case to get the redirectmatch as its different approach. Using a plugin is not helping as I have to manually type in all the urls.   Can someone please advise me on how to handle this either fix canonical or using redirectmatch rule via .htaccess?  regards


Static IP address for local network host

How to set static IP address for host in local network?   I have a several PCs connected in network via wi-fi.   Each of this PCs have local IP address (like 192.168.1.2).  After rebooting IP address can be different 192.168.1.2 or 192.168.1.3 and etc.


In game engine, all texts change color to white

Before render:    After render:    The render is set to blender game. How do I fix this?    When I want add a material for a text, in first step I'm selected text then set a material color on diffuse option (like green color) for that:    but in the rendering time, this problem is occurred:    This problem only occurs to texts.


How do I use NGINX as a frontend for a Legacy (Apache) Webserver

I have an NGINX server setup that is already hosting two applications, and SSL is set up on that NGINX server.  Now, I need to setup the NGINX server to be a front-end for a legacy Apache application so that the service that the legacy application is providing can be reached via SSL/HTTPS.  How do I configure my NGINX server to be a "pass through" server to the legacy application?


How do I force the refresh of javascript files in a browser?

I've been using quite a bit of JQuery, KnockoutJS and other JavaScript stuff for a web app I am building. Most of the JS is off in its own nice separate files. The issue I have is that the browsers cache those files so when I push a change people have to refresh a few times before they get the updated file. Recently I made a significant change to how some data was passed and the cached versions of the files caused some errors and worse, some data to get erased.  How do people handle this? Is there a way to force refresh of files?


what does the ldapad error: "additional info: objectClass: value #2invalid per syntax mean?

I am working on CentOS 7. I have already exported my Active directory database from windows server 2012. Now I need to import it to my new solution in OpenLDAP! I tried to import my file : ldapmodify -Y EXTERNAL -H ldapi:/// -f exportuser.ldf I got an error: SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 adding new entry "dc=sis,dc=infra" ldap_add: Invalid syntax (21)         additional info: objectClass: value #2 invalid per syntax  This is a part of my ldif file: dn:dc=sis,dc=infra changetype: add objectClass: top objectClass: domain objectClass: domainDNS distinguishedName: DC=sis,DC=infra instanceType: 5 whenCreated: 20140903112404.0Z whenChanged: 20200710114957.0Z subRefs: DC=ForestDnsZones,DC=sis,DC=infra subRefs: DC=DomainDnsZones,DC=sis,DC=infra subRefs: CN=Configuration,DC=sis,DC=infra uSNCreated: 4099 dSASignature:: AQAAACgAAAAAAAAAAAAAAAAAAAAAAAAAFZdkFLMGb0aPv8u9xkFAiw== repsFrom::  AgAAAAAAAADwAQAAoQQAAEk0WhMDAAAArh8ZFQMAAADZBgAA2AAAABgBAABwAAAAERERERERERERER  ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER  ERERERERERERERERERERAAAAAKpXAQAAAAAAAAAAAAAAAACqVwEAAAAAAK5eK8JSo2VLj8lZCMtB4q  W2BWGS+bZXS5Ih2qP3nk/NAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAEAABgAAAAAAAAAkAAAAAAA  AAAAAAAAYwAyADIAYgA1AGUAYQBlAC0AYQAzADUAMgAtADQAYgA2ADUALQA4AGYAYwA5AC0ANQA5AD  AAOABjAGIANAAxAGUAMgBhADUALgBfAG0AcwBkAGMAcwAuAHMAaQBmAGEAcwB0AC4AaQBuAGYAcgBh  AAAAAAAAAAAAYwAyADIAYgA1AGUAYQBlAC0AYQAzADUAMgAtADQAYgA2ADUALQA4AGYAYwA5AC0ANQ  A5ADAAOABjAGIANAAxAGUAMgBhADUALgBfAG0AcwBkAGMAcwAuAHMAaQBmAGEAcwB0AC4AaQBuAGYA  cgBhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== repsFrom::  AgAAAAAAAADwAQAAblMAAJkvBQ8DAAAAWh8ZFQMAAAC6BgAA2AAAABgBAABwAAAAERERERERERERER  ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERER  ERERERERERERERERERERAAAAALrDDAAAAAAAAAAAAAAAAAC6wwwAAAAAANGWjIQnKUVChkMTYKaH0u  6nIrWbtxGPSZF02Z788HncAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAEAABgAAAAAAAAAkAAAAAAA  AAAAAAAAOAA0ADgAYwA5ADYAZAAxAC0AMgA5ADIANwAtADQAMgA0ADUALQA4ADYANAAzAC0AMQAzAD  YAMABhADYAOAA3AGQAMgBlAGUALgBfAG0AcwBkAGMAcwAuAHMAaQBmAGEAcwB0AC4AaQBuAGYAcgBh  AAAAAAAAAAAAOAA0ADgAYwA5ADYAZAAxAC0AMgA5ADIANwAtADQAMgA0ADUALQA4ADYANAAzAC0AMQ  AzADYAMABhADYAOAA3AGQAMgBlAGUALgBfAG0AcwBkAGMAcwAuAHMAaQBmAGEAcwB0AC4AaQBuAGYA  cgBhAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA== uSNChanged: 88191049 name: sis objectGUID:: L2ettnpuxEaavgfWpC5gUQ== replUpToDateVector::  AgAAAAAAAAACAAAAAAAAALYFYZL5tldLkiHao/eeT83zVwEAAAAAAEk0WhMDAAAApyK1m7cRj0mRdN  me/PB53MzDDAAAAAAAiiEFDwMAAAA= creationTime: 132388553973680553 forceLogoff: -9223372036854775808 lockoutDuration: -18000000000 lockOutObservationWindow: -18000000000 lockoutThreshold: 0 maxPwdAge: -36288000000000 minPwdAge: -864000000000 minPwdLength: 7 modifiedCountAtLastProm: 0 nextRid: 1001 pwdProperties: 1 pwdHistoryLength: 24 objectSid:: AQQAAAAAAAUVAAAAyCaS81zYH0PmTWik serverState: 1***  Some help please


Lets say i have a piece of code like that:  String name1 = someObject.getClass().getName(); System.out.println(name1);//The result of println in console is: entities.player.Shotgun  String name2 = someObject.getClass().getSimpleName(); System.out.println(name2);// The result of println in console is: Shotgun  String name3 = someObject.getClass.getName().substring(16); System.out.println(name3);//The result of println in console is: Shotgun  if(name1 == "entities.player.Shotgun")System.out.println("condition1 true"); if(name2 == "Shotgun")System.out.println("condition2 true"); if(name3 == "Shotgun")System.out.println("condition3 true");   In my opinion all three if clauses are true but in reality only first fires in console: condition1 true. My question is why? What is the problem here?


Remove duplicates from list of complex objects

I have objects which contain a dictionary and a name (string). I want to loop through these objects, compare their dictionaries and names, and if any dictionaries & names are exact matches, I want to remove all duplicates, then return a list of objects where none of the dictionaries & names match.   Here is what I have so far:  private void removeDuplicates(List<MyObject> objectList) {     List<Dictionary<string,string>> listOfObjDicts = new List<Dictionary<string,string>>();     List<string> nameList = new List<string>();       foreach(MyObject object in objectList)      {          nameList.Add(MyObject.name);          listOfObjDicts.Add(MyObject.dict);      }      //compare name & dictionary against all other objects, then remove any duplicates from objectList. }   It is probably safe to assume that even this structure of a foreach loop iterating over the list of objects isn't great - because I want to return a list of objects, not a list of names and a list of dictionaries. I'm pretty stuck on this. Some people have mentioned LINQ, but I really have no experience or ability to read/understand LINQ syntax.


Do the tag scores now update more often?

I've posted an answer on Meta Stack Overflow four hours ago. Appears it was my twentieth answer with the  tag, so I got the  tag badge. I was surprised because the tag badges are usually awarded around UTC 3:00 AM. Well I thought, maybe the script was too late.  Then it got downvoted, and to my greater surprise, my tag scores soon went down too. Again, I'd expect it to happen at UTC 3:00 AM.   Has something changed recently?    The tag scores have already updated twice since (), which seems to be inline with the downvotes I was getting. Now I've removed the answer, let's see if I get the badge revoked and the scores updated again.    The score of the  tag . Strangely enough,  isn't updating inline with  and the tag badge is still here.  , after a delay,  (the badge is still here...).  So yes, the score definitely updates now more often.