Moving file from deleted folder to its original path using bash should check for file existence with same name at original path
How do I prompt for Yes/No/Cancel input in a Linux shell script?
Keyboard backlight not working on an Asus N56V See .  The FN keys are not working  Using answer in  I installed the asus-wmi-dkms_0.2_all.deb.gz package  Now, using xev I see that the keys emit keycodes (for backlight keys xev says for fn-f3 and fn-f4 keycode 237)  But no keyboard backlight, also volume keys have no effect  ================ original question ========================================  I cannot enable the keyboard backlight Seems that the leds class is missing I've not found the classes used in   Description of my framework:  ===========================================================  Machine: Asus N56V laptop  ===========================================================  Software   Kubuntu 12.04 amd64  kernel (3.5.0.5-generic) and drivers from xorg-edgers fresh X crack ppa   ===========================================================  Hardware and problems   after installation do not boot - SOLVED using boot-repair every couple of hours the system freezes - SOLVED using 3.5 kernel keybord FN keys - NOT WORKING Keyboard backlight - NOT WORKING Nvidia GEFORCE GT - NOT USED glxgears says 60 fps Ethernet Atheros card - SOLVED install alx driver external subwoofer - SOLVED adding options snd-hda-intel model=asus-mode4   ==========================================================  Solutions  see the answers to the  and  question.  ========================================================== I am trying to make folder that everyone can view and can't copy,modify.    For all answers.I thinking about specially ms office files. I tried following methods  Software  - copy protect    - anti copy    This method can't protect save as and upload  MS office macro    Users can enable,disable macros.  MS office restriction    This is best choice but can't protect from file uploading.   Almost I found the solution. Way is combination of MS office restriction and restrict access from browsers using firewall or antivirus. But I don't exact how to do this. Here's a module with castellated pads attached to an eval board:  (source: ) Looking closely at the wires interfacing with the castellated pads, they're clearly soldered to the eval board. However, they don't look like they're soldered to the module, but rather they're being pressed against the pads with the tension in the wire. It also looks like the free end of the loops are protruding down into a channel cut in the PCB. Do these kind of connectors/metal loops have a name? Convergence in Probability When running a Java app from eclipse my ImageIcon shows up just fine.  But after creating a jar the path to the image obviously gets screwed up.  Is there a way to extract an image from the jar at runtime so I can then open it up?  Or, is there a better way to do this?  I'd like to distribute a single jar file if possible. Book where human thoughts are affecting the universe Basically our thoughts are ruining everything. Like when humans are taught stars are giant balls of gas. To the rest of the universe they aren't but humans think it and destroy alien planets. I think they come to seal us off from the rest of the universe. Let $\mathscr{F}$ be a collection of connected subsets of a metric space $M$ such that $\bigcap\mathscr{F}\ne\emptyset$. Prove that $\bigcup\mathscr{F}$ is connected.   If $\bigcup\mathscr{F}$ is not connected, then it can be partitioned into two disjoint, non-empty subsets $A,B$. Let $x$ be a point in $\bigcap\mathscr{F}$. Then either $x\in A$ or $x\in B$. I don't know where to go from here. How does an arcane focus work with an Eldritch Knight? My PC is an Eldritch Knight. I was wondering what is an Arcane Focus? Do I need to have it in my hand? If I get the War Caster Feat does my arcane focus become obsolete? Difference between Simple Past and Past Perfect What is the difference in meaning between the two examples below?   When she returned home from office, she was shocked to see that her husband and daughter were missing. (Simple Past)  When she returned home from office, she was shocked to see that her husband and daughter had been missing. (Past Perfect)    FIRST QUESTION: For me example #1 gives only idea of Status of her missing husband and daughter and example #2 gives idea of completed action/situation of missing husband and daughter before she reached home. Is this right? SECOND QUESTION: Is example #2 past perfect or past perfect continuous? How to mass delete your photos in your iPhone? I cannot do it in the phone itself, neither in iPhoto.  How can you delete all your photos in iPhone? 2 orderby in wp_query with 2 custom fields I'm triyng to display hotels (taxonomy which i have created) by two 'orderby' with wp_query but i'm not success.  Results looks likes:  Hotel 1 :       2 persons          5 stars Hotel 2 :       2 persons          4 stars Hotel 3 :       2 persons          3 stars Hotel 4 :       3 persons          5 stars Hotel 5 :       5 persons          5 stars Hotel 6:        10 persons         2 stars Hotel 7:        10 persons         1 star   The first 'order by' is on the number of persons(the biggest in first) and the second 'order by' is on the rating in stars (so, if several hotels have the same number of persons, the hotel with the biggest stars rating would be in first).  Below my code. I have tried to add an array inside an array with meta_query but it doesn't work.  $args=             array(                                     'post_type' =&gt; 'hotel',                                     'Services' =&gt; $Services,                                     'Town' =&gt; $Town,                                      'meta_key' =&gt; 'Number_persons',                                     'orderby' =&gt; 'meta_value_num',                                     'order' =&gt; 'ASC',                                        'meta_query' =&gt; array(                                                            array(                                                                'meta_key' =&gt; 'Rating',                                                                'orderby' =&gt; 'meta_value',                                                                'order' =&gt; 'DESC',                                                               )                                                        )                  );   $the_query = new WP_Query( $args );   Thanks a lot :) Prove that $(x^2 + x+2)$ ideal is a maximal ideal in $F_3[x]$ ring.  I know the theorem about factor rings and fields     B ideal from A ring is maximal iff A/B factor-ring is a field   How can I use the theorem here? How do I capture the moon and its surrounding context? I wanted to photograph the full moon against a beautiful deep blue sky. I ended up with blown-out highlights of the moon:    So I switched to spot metering and captured the moon, losing the blue sky in the process:    I want a single photo that shows both the moon and the surrounding context (in this case, the blue sky). Doing an exposure fusion in Photomatix Essentials did not help:    Nor did HDR fusion (again in Photomatix):    Notice that the detail in the moon was lost in both cases, and the sky was also messed up in both cases: exposure fusion lost the beautiful blue color, while HDR created more texture than was actually present in the sky. I toggled Photomatix's option to remove ghosts, but that didn't help, either.  How do I photograph the moon together with its surrounding context (in this case, the blue sky, but in other cases, a tree, buildings, etc) without blowing highlights or shadows? I'm using a Sony NEX-5R, with the longest focal length lens I have, and with manual focus when needed.  Thinking I should fuse the photos manually, I tried opening the images as layers in Acorn, with the darker photo on top and with opacity set to 50%, and tried all 15 - 20 blending modes (normal, dodge, lighter, darker, multiply and so on), but none of them seemed to work. I'm afraid I don't know enough to use layers effectively. What blending mode and opacity and order of layers should I use for this task?  I don't have Photoshop, but do have Lightroom 5, Acorn and Nik Collection.  (In case you are about to recommend software, please note my requirements: I use a Mac, I would be willing to pay $20-30, and I don't want to use command-line software.) Placeholder for body off in Android app The placeholder for the body field (the word "Body") is strangely placed in the Android app, seems a bit too high:    Could reproduce using:   Samsung Galaxy 4a.  Android version 4.4.2  App version 1.0.54 Moto X (2013), Android 4.4.4 App version 1.0.60 Why do you have to use copy_to_user()/copy_from_user() to access user space from the kernel? How much marmelade can I bring into the US? I want to bring homemade berry marmelade in little glass jars with me to the US from Europe as gifts for friends. I have found the following site on importing foods into the US  and would assume that marmelade falls under the condiments category, which should be admissible. However, I am wondering however if there is any limit to how much one is allowed to bring. Will there be any issues if, say, I bring 3 kilograms (6 lbs 10 oz)?   Also on related note, would they be suspiscious when they see many glass jars in my bag? Do I risk getting my bag searched or getting asked what the jars are? Is there anything I can do to avoid any such trouble? $x^{x^{x^{\dots}}}=2$, what is the value of $x$? I came up with this little simple exercise, stating:  $x^{x^{x^{\dots}}}$ infinite times is equal to $2$, find $x$.   As we're dealing with infinity, we can just separate the first $x$ and get $x^2=2 \implies x=\sqrt2$  But then I thought what if we change $2$ to $4$? Now we get $x^4=4 \implies x=\sqrt[4]4=\sqrt2$  Something went wrong, can someone explain? Power series of a function I am wondering if there are any functions $f(x)$ such that it cannot be expressed as a power series of $x$? This might turn out to be a silly question, but I can't think of one at the moment.   Thanks! Algorithm to detect intersection of two rectangles? I'm looking for an algorithm to detect if two rectangles intersect (one at an arbitrary angle, the other with only vertical/horizontal lines).  Testing if a corner of one is in the other ALMOST works.  It fails if the rectangles form a cross-like shape.  It seems like a good idea to avoid using slopes of the lines, which would require special cases for vertical lines. Problem  Let $n \geq 3$ be an odd number and let $G=\{1,...,2n\}$ be a group of order $2n$. Let $\phi:G \to S_{2n}$ be the morphism defined by $\phi(g_i)(g_j)=g_ig_j$ and let $H=\phi^{-1}(A_{2n})$. Show that $H$ is a proper normal subgroup of $G$.  So basically the result of this problem is that every group of order $2n$, with $n$ odd, is not simple.   The morphism $\phi$ can be seen as the action of $G$ on itself by left multiplication. Since $A_{2n} \lhd S_{2n}$, then $H=\phi^{-1}(A_{2n}) \lhd G$. I am stuck at showing that $H \neq \{1\},G$. All I could think of is that $G$ has an element $g$ of order $2$, then $\phi(g)$ is of order $1$ or $2$, but it is easy to see that $\phi(g)=1$ if and only if $g=1$, so $ord(\phi(g))=2$. I don't know which are the elements of order two in $S_{2n}$. I would appreciate some help to solve the problem, thanks in advance.