A Plugin ( download monitor ) saves uploaded files in a certain folder called "dlm_uploads" within the WP upload directory. All files are visible in Media Library. Unfortunately the upload path cannot be changed in the plugin. can I hide this folder in the media library? thanks
I have some section where user can upload CV and profile images,  I'm using the native attachment functions,  $attachment_cv_id = media_handle_upload( 'candidate_cv', 0 ); if ( ! is_wp_error( $attachment_cv_id ) ) {     // We link this file to the post      // add_post_meta( $result , 'wpcf-cv-file', wp_get_attachment_url($attachment_cv_id)); } else {     $submit_candidate_errors[] = lang("Hubo error subiendo la CV"); }   Is there any way I can hide this files from the media section in the wp-admin? ( perhaps changing its folder )  Thanks  -EDIT-  i'm trying like Dave suggested, adding a meta: 'rrhh-file'  $attachment_id = media_handle_upload( 'apply_file', 0 );  if ( ! is_wp_error( $attachment_id ) ) {     // The image was uploaded successfully!     add_post_meta($attachment_id, 'rrhh-file', true); }   And even that it has the attribute:  var_dump(get_post_meta(1200)); // last id I uploaded die();   Prints out:  array(4) {   ["_wp_attached_file"]=&gt;   array(1) {     [0]=&gt;     string(20) "2017/06/image001.jpg"   }   ["_wp_attachment_metadata"]=&gt;   array(1) {     [0]=&gt;     string(666) "a:5:{s:5:"width";i:523;s:6:"height";i:122;s:4:"file";s:20:"2017/06/image001.jpg";s:5:"sizes";a:2:{s:9:"thumbnail";a:4:{s:4:"file";s:20:"image001-150x122.jpg";s:5:"width";i:150;s:6:"height";i:122;s:9:"mime-type";s:10:"image/jpeg";}s:6:"medium";a:4:{s:4:"file";s:19:"image001-300x70.jpg";s:5:"width";i:300;s:6:"height";i:70;s:9:"mime-type";s:10:"image/jpeg";}}s:10:"image_meta";a:12:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";s:11:"orientation";s:1:"1";s:8:"keywords";a:0:{}}}"   }   ["rrhh-file"]=&gt; // &lt;-- here   array(1) {     [0]=&gt;     string(1) "1"   }   ["_edit_lock"]=&gt;   array(1) {     [0]=&gt;     string(12) "1498731595:1"   } }   With this action this attachment still shows up in the media library  add_action( 'pre_get_posts', 'wpse_hide_cv_media_list_view' ); function wpse_hide_cv_media_list_view( $query ) {     // Bail if this is not the admin area.     if ( ! is_admin() ) {         return;     }      // Bail if this is not the main query.     if ( ! $query-&gt;is_main_query() ) {         return;     }      // Only proceed if this the attachment upload screen.     $screen = get_current_screen();     if ( ! $screen || 'upload' !== $screen-&gt;id || 'attachment' !== $screen-&gt;post_type ) {         return;     }      // Modify the query.     $query-&gt;set( 'meta_query', [         [             'key'     =&gt; 'rrhh-file',             'compare' =&gt; 'NOT EXISTS',         ]     ]);      return; }   Any idea what i'm missing?
Query works in SQL Server 2005 but syntax error for SQL Server 2000 Protect .NET code from reverse engineering? Obfuscation is one way, but it can't protect from breaking the piracy protection security of the application. How do I make sure that the application is not tampered with, and how do I make sure that the registration mechanism can't be reverse engineered?  Also it is possible to convert a C# application to native code, and  is too costly.  C# provides lot of features, and is the ideal language for my code, so writing the whole codebase again in C++ is out of the question.  Secure certificates can be easily removed from the signed assemblies in .NET. I would like to know how to get the version information of an installed program that doesn't have the      --version or -version   method implemented. I'm getting the following error when trying to update a taxonomy field value via REST api:  {   "error": {     "code": "-1, Microsoft.SharePoint.Client.ClientServiceException",     "message": {       "lang": "en-US",       "value": "Cannot deserialize data for type Microsoft.SharePoint.Taxonomy.TaxonomyFieldValueCollection."     }   } }   The request:  https://server/_api/web/GetFileByServerRelativeUrl('/Shared Documents/file.txt')/ListItemAllFields  {   "__metadata": {     "type": "SP.Data.Shared_x0020_DocumentsItem"   },   "Title": "some title",   "Project": {     "results": [       {         "Label": "Term1",         "TermGuid": "897bdf7f-08d6-44b9-a71a-ddc4cf131664",         "WssId": 5       }     ]   } } Why LastModifiedbyid in Trigger.new gives old value I have noticed the strange behaviour of salesforce due to which even my code broke down in production.  I was trying to stop the user from updating some field..I used before udpate trigger and code like Trigger.new[i].LastModifiedbyId..  Ideally it should give the current user in Trigger.new[i].LastModifiedbyId in  but it gives oldrecordLastModifiedbyId..  Although userinfo.getuserid resolves the problem later.  Any idea about this behaviour of salesforce. Isomorphism of quotient modules implies isomorphism of submodules? Let $A$ be a commutative ring, $M$ an $A$-module and $N_1, N_2$ two submodules of $M$.  If we have $M/N_1 \cong M/N_2$, does this imply $N_1 \cong N_2$?  This seems so trivial, but I just don't see a proof... Thanks! Javascript close alert box I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. onkeypress).  From my research, it doesn't look like that's possible with the built-in alert() function.  Is there a way to override it and have control over the dialog box that it opens?  Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box. Close/minimize/maximize button not appearing I was playing around with compizconfig. I don't remember what exactly I clicked. Since then, the close/minimize buttons and the sidebar vanished. I use 12.10 version. Please help me out. Sentence vs proposition Currently I have a script.sh file with the following content:  #!/bin/bash wget -q http://exemple.com/page1.php; wget -q http://exemple.com/page2.php; wget -q http://exemple.com/page3.php;   I want to execute the commands one by one, when the previous finishes. Am I doing it in the right way? I've never worked with Linux before and tried to search for it but found no solutions. I checked this  but didn't fully understand it.   I know that the volume of a right circular cone is $V = \frac{1}{3}\pi x^2h$  I know that I must take the first derivative and set it equal to zero, which will find the maximum.   My problem is how to deal with the variable $h$, the height?   How can I rewrite that in terms of $x$ or $r$.      I have tried to implicitly differentiate this equation, but that wasn't helpful for me. Before marking this post duplicate or voting to get it closed (the reason for which I simply don't get just because it is a grammar forum after all! If I am seeking recommendation for a book that means I will be coming back someday to the same site for my doubts also provided I get a not so harsh reply!), please read this and help this MBA aspirant.   A little about myself and my research so far. I am a very critical reader of English Grammar and the kind of person who aims at perfection.  Currently, I am keen on taking on English grammar again after a certain gap. Well, I am aiming for MBA, so preparing for entrance exams for the same.  I bought the religiously followed Wren and Martin and started studying it chapter by chapter. I was surprised when I read the pronouns chapter. I studied all the rules given and then started practising but it came as surprise when I found when many of the attempted questions were wrong. The reason simply being the rules for those specific sentences were not given.   For example:     We scored as many goals as they/them?    According to me, the answer should be they, but it's them according to the solution manual. Worse still, the solution manual offers no explanation for this.  So after a chat with my teachers I was suggested to follow the blogs of grammarians and look for any rules for the sentences that have contradictory answers!  I did so and was clarified by  post of pronouns, Rule 5.  Then I saw a book by the same author. I was momentarily happy. It was Momentarily because the reviews on Amazon were too bad about this book. After reading a couple of forums about the book I found a common statement saying that no grammar book is exhaustive.  So, it's okay for me to have more than one. And my simple question is what will be a good and almost exhaustive (if not fully exhaustive) book of English grammar to help get through the subtle usages of English in my management entrances  which is crisp and to the point and yet covers all important rules and syntax, and most importantly having practice tests at the end with solutions and explanations? I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work.  I have a file named .Xmodmap in my home folder which contains the desired mappings. If I run it manually it works fine, so there is no error there. In order to make it run on startup, I have tried:     Using various .xinitrc containing one of the following commands:      xmodmap .Xmodmap xmodmap ~/.Xmodmap   /usr/bin/xmodmap /home/NAME/.Xmodmap if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi  Using .Xresources instead of .xinitrc with the same variations. Setting it as a startup application.   None of the above works in Ubuntu 13.04 (64-bit). I also saw a few ideas about globally changing the keyboard mappings, but most of them were not applicable in Ubuntu 13.04 (i.e. the corresponding files did not exist where specified) and I prefer not to touch the global settings anyway. MySQL convert date string to Unix timestamp Proving a limit of a trigonometric function: $\lim_{x \to 2/\pi}\lfloor \sin \frac{1}{x} \rfloor=0$ In a situation where say a group (or at least a plurality) of men is being addressed — for example on a sign passed by many married men — which is correct?  &quot;Remind your wife.&quot;  or  &quot;Remind your wives.&quot; Should the eigenkets be weighted in $|P\rangle = \sum\limits_{r}|\xi^r\rangle$? Page 37 of Dirac's book The Principles of Quantum Mechanics, states  The condition for the eigenstates of $\xi$ to form a complete set must thus be formulated, that any ket $|P\rangle$ can be expressed as an integral plus a sum of eigenkets of $\xi$, i.e. $$|P\rangle = \int |\xi'c\rangle\; d\xi' + \sum\limits_{r}|\xi^rd\rangle$$ where the $|\xi'c\rangle$, $|\xi^rd\rangle$ are all eigenkets of $\xi$, the labels c and d being inserted to distinguish them when the eigenvalues $\xi'$ and $\xi^r$ are equal, and where the integral is taken over the whole range of eigenvalues and the sum is taken over any selection of them.  I find it inconsistent that the eigenkets under the integral are weighted by what appears to be a differential eigenvalue $d\xi'$, yet all the eigenkets under the summation are weighted by the value 1. Is this correct? I bought my kids a PC and installed 12.04 (Unity) on it.  The bottom line is, I want my children to use the computer unsupervised while I have confidence they cannot access anything inappropriate.  What I have looked at:  I was looking at Scrubit a tool which allows me configure my wifi router to block content and this solution would also protect my other PC and mobile devices.  This may be overkill as I just want the solution to work on one PC.    I also did some Google searches and came across the application called .  My experience of OSS is that the best solutions frequently never appear first on a Google search list and in this case I need to trust the methods therefore my question is very specific.   I want to leverage your knowledge and experience to understand What is the best way to restrict adult content on 12.04 LTS as this is important to me.  It maybe a combination of things so please don't answer this question "try this or that", then give me some PPA unless you can share your experience of how good it is and of course if there are any constraints. Questions in titles need to be repeated, why?  To me this pattern seems ridiculous. But I frequently encounter the "not a real question" situation, when I put my question in the title, then the context for that specific question in the 'question body'.     So:  I am to take it that the title is almost completely irrelevant for establishing subsequent question body is asking? I choose my titles to expose the actual question so it need not be repeated below. If questions need to be repeated in the body, could we simply title it "A question, click here and read below" ?   Tagged bug, as I have found this "problem" to be quite reproducible.  Steps to reproduce:   Ask a question with the clear, simple question in the title, and the evidence/context/example in the question body. Await close votes. Given $\int_0^{\infty}e^{-x^2}dx = \frac{\sqrt{\pi}}{2}$, evaluate $\int_0^{\infty}e^{-a^2x^2-\frac{b^2}{x^2}}dx $ Given $$\int_0^{\infty}e^{-x^2}dx = \frac{\sqrt{\pi}}{2}$$ evaluate:   $$\int_0^{\infty}e^{-a^2x^2-\frac{b^2}{x^2}}dx. $$   I can find that  $$\left(ax+\frac{b}{x}\right)^2 = a^2x^2+2ab+\frac{b^2}{x^2}$$  therefore: $$\int_0^{\infty}e^{-a^2x^2-\frac{b^2}{x^2}}dx = e^{2ab}\int_0^{\infty}e^{-\left(ax+\frac{b}{x}\right)^2}dx$$  but I can't find any clue then.