Script executes loop only once
Brace expansion not working in a script
Questions on "All Horse are the Same Color" Proof by Complete Induction What inspired Tauriel's story arc? I know Tauriel is a Jackson created character, but I wondered if anywhere in the legendarium there was fodder for the story arc between her and Kili.  I do not have access to all my books for the time being and recall stories of love between men and elves in the Silmarillion and Appendices but don't remember any such stories between elves and dwarves and wondered if there was any basis of inspiration for this aspect of their relationship within Tolkien's works.   This movie, of course, departs even further from the original than those made before it, but as a story unto itself, I can still appreciate the ride, so if there is no Tolkien basis, what inspired Jackson, Boyens, and Walsh to create this particular arc?  Is there interview info or anything? Why can't I move a window to the top left corner with wmctrl in Unity? I've been playing around with wmctrl to take more control of my windows. I've encountered a weird behaviour where Unity reserves double the space. See this screen shot:    I opened the terminal and moved the window using the top command. It should be at the top left corner (X=0 Y=0). But for some reason there is some margin between the terminal and the Unity bars.  If I understand the man pages correctly it might have something to do with the WA: 65,24.  Can anybody help me to fix this? Why doesn't my systemd user unit start at boot? Performance impact of updating target columns with same values ON CONFLICT This is a question about the inner-workings of Postgres (v10) and performance.  Given a table, github_repos, with a multi-column unique index on org_id and github_id columns, is there any performance difference (or other issues to be aware of) between the two bulk upsert operations below? The difference is that in the first query, the org_id and github_id columns are included in the UPDATE, whereas in the second query they are not. Since the UPDATE runs ON CONFLICT, the updated values of org_id and github_id will be the same as the old values, but those columns are included in the UPDATE because the underlying library I am using is designed that way. I'm wondering if its safe to use as-is or whether I should be explicitly excluding those columns in the UPDATE.  Query #1:  INSERT INTO "github_repos" ("org_id","github_id","name") VALUES (1,1,'foo') ON CONFLICT (org_id, github_id) DO UPDATE SET "org_id"=EXCLUDED."org_id","github_id"=EXCLUDED."github_id","name"=EXCLUDED."name" RETURNING "id"   Query #2:  INSERT INTO "github_repos" ("org_id","github_id","name") VALUES (1,1,'foo') ON CONFLICT (org_id, github_id) DO UPDATE SET "name"=EXCLUDED."name" RETURNING "id"   github_repos table:        Column       |       Type        | Collation | Nullable  -------------------+-------------------+-----------+----------+  id                | bigint            |           | not null |  org_id            | bigint            |           | not null |  github_id         | bigint            |           | not null |  name              | character varying |           | not null |  Indexes:     "github_repos_pkey" PRIMARY KEY, btree (id)     "unique_repos" UNIQUE, btree (org_id, github_id) I want to be able to login to a remote via ssh without having to enter the password all the time.   How do I set it up? Is a different command required to execute a password-less session? Can you be sued for using publicly used images on a blog without copyright permission? I've just made a set of armor by using a male body mesh model I downloaded and selecting certain faces from the model and duplicating them to create viable armor pieces.   Since the pieces are just duplicated from the same mesh male model, then it's still part of the same object.   How do I separate the armor piece from the model to make the pieces separate? If I have a shapefile or geodatabase featureclass that has fields that I want to permanently reorder, is there a tool, script, or utility that will help me quickly accomplish this task? Generally I know you have to create a new field, then populate it with the old values, then delete the old field.  I am hoping there is something already created out there that will help with this. Assuming you don't have FME or another ETL tool available, what is the next best suggestion? This is NOT a view level change (ie- drag/drop the fields in order), but rather write out to a new shapefile or featureclass. I just tried to access a folder like so:  \\somecomputeronmynetwork\somelocation$   When going to this location I'm prompted for a user name and password.  I put one in, and it let me in fine.  Now I need to remove that login, so I can try a different user name and password.  What's the easiest way to do this? Air gap on isolation space The below photo belongs to a PSU. I wonder what was the reason of placing air gaps on the 8 mm isolation. Is it to improve the isolation or provide a thermal relief (although there is no component below the red circled air gap)? I would like to pause a render that I have started, with the intention of resuming it at a later time (but during the same Blender session).  How can I do this? When using the \cite command in figure captions and the ieeetr bibliography style, then  BibTeX numbers the citations as appearing earlier than they do in reality (i.e. the first citation in the document ends up being [42]).  Is there any way to get BibTeX to ignore the \listoffigures section when numbering? How to get memory usage under Windows in C++ How to update Wine to the latest version? Is $C[0,1]$ a Banach space for the $L^1$ norm? Is $C[0,1]$ a Banach space with respect to the norm $\|f\| = \int\limits_0^1|f(t)| \, dt$?   People keep telling me it is, but lets consider: $f_n(x) = x^n$. This function defines a Cauchy sequence, yet the limit clearly isn't a continuous function! As of today, a  has been found affecting versions 1.0.1 through 1.0.1f (inclusive) and 1.0.2-beta.  Since Ubuntu 12.04, we are all vulnerable to this bug. In order to patch this vulnerability, affected users should update to OpenSSL 1.0.1g.  How can every affected user apply this update now? XTerm only display part of some unicodes and Urxvt displays nothing In my case, (U)XTerm does display some unicodes, but only partially. For exmaple: for letters are: 𝒫φϕ𝒟. Here is a screenshot of UXTerm and Urxvt respectively   It seems that the problem is related to the letter space or letter length. By the way, everything is fine with gnome-terminal.  My current .Xresources file is: Xft.dpi:       120 Xft.antialias: true Xft.hinting:   true Xft.rgba:      rgb Xft.autohint:  false Xft.hintstyle: hintslight Xft.lcdfilter: lcddefault  XTerm*faceName:          Fixed XTerm*faceSize:          14 XTerm*reverseVideo:      false XTerm*selectToClipboard: true  UXTerm.vt100*faceName:          Fixed UXTerm.vt100*faceSize:          14 UXTerm.vt100*reverseVideo:      false UXTerm*selectToClipboard: true  URxvt.font:            xft:Fixed:pixelsize=18  URxvt.depth:                      32 URxvt.background:                 #222D31 URxvt*scrollBar:                  false URxvt*mouseWheelScrollPage:       false URxvt*cursorBlink:                true URxvt*background:                 black URxvt*foreground:                 grey URxvt*saveLines:                  5000  How to make XTerm and Urxvt to display those characters correctly? Is it possible? How can I take a photo with everything in focus with my DSLR? I am quite new to DSLRs and one of the first things I noticed was the incredible focus points and appearance of depth that you can achieve. That is great in a lot of scenarios, but not in all. When filming a landscape as a whole, I do not want to have the focus on that single tree, but on the whole skyline.  Is there a way by which you can sort-of "disable" the focus, so that the raw image is recorded without any added blur? I suppose something as simple as this is only a small function you can turn off, but I can't seem to find it in the manual of my camera. I messed up my system earlier, I was greeted with a black screen, when booting in to Ubuntu. When I started up my laptop, I selected the recovery option from the grub menu, and chose fallback at root terminal. I saw that I was able to use the add user command, with it, I probably could use to create a privileged user on my machine.   Isn't that a security issue?  One could have stolen my laptop and at startup chose recovery and add another user, I'm fudged then. Including my data.  Come to think of it, even if you somehow remove that entry, one could boot from a live-CD, get a chroot up and running and then add another user, with the right privileges that allows it to see all my data.   If I set the BIOS to boot at my HD only, no USB, CD/DVD, Network startup, and set a BIOS password, it still wouldn't matter, because you'd still have that grub recovery startup entry.  I am fairly certain that someone from China, Russia can't hack my Ubuntu Trusty Tahr, from the network, because it's secure like that. But, if one has physical access to my - your - machine, then, well, that's why I'm asking this question. How can I secure my machine so that hacking through physical access is not possible?    Bug Report: