Sorting: custom query with orderby meta_value_num THEN by title

i try to run a custom post type query to match following criteria: sort movies first by year in descending order, after that ("inside" the year order) by title alphabetically.      desired output: movie title A, 2006 movie title Z, 2006 ... movie title A, 1996 movie title Z, 1996    i use the following code:  $wp_query = new WP_Query(); $wp_query->query( array( 'post_type' => 'movies',                        'distribution' => 'companyA',                        'meta_key' => 'year',                       'orderby' => 'meta_value_num title',                         'order' => 'DESC',                        'posts_per_page' => -1,                        'post_status' => 'publish', ));   i tried several things but i can only get this "inverse" result:  movie title A, 1996 movie title Z, 1996 ... movie title A, 2006 movie title Z, 2006      if i change DESC, ASC it only changes the title sorting. but i need to apply it to the year and not to the title.  is it the right way to use two orderby values? or do i have to use a meta_query or custom SQL ?   thx in advance!  Here is the resulting SQL Query from $GLOBALS['wp_query']->request    SELECT wp_posts.* FROM   wp_posts        INNER JOIN wp_term_relationships                ON ( wp_posts.id = wp_term_relationships.object_id )        INNER JOIN wp_postmeta                ON ( wp_posts.id = wp_postmeta.post_id ) WHERE  1 = 1        AND ( wp_term_relationships.term_taxonomy_id IN ( 24 ) )        AND wp_posts.post_type = 'movies'        AND ( wp_posts.post_status = 'publish' )        AND ( wp_postmeta.meta_key = 'year' ) GROUP  BY wp_posts.id ORDER  BY wp_postmeta.meta_value + 0,           wp_posts.post_title DESC


Who controls 'accepting of answers' for questions of deleted users

I find several questions like mentioned here:  The question OP is not clickable (and often has a name like user123456) and is probably not existing anymore. These questions become orphans with respect to control over the accepted answer when the OP is gone. Often the orphans are ok, since the 'accepted answer' is (I believe) considered from the viewpoint of the person that asked the questions. So when that person is gone then we might say we do not care about the accepted answer. (A bit of track: from my viewpoint the 'accepted answer' is not only about the benefit to the OP and it serves a wider purpose. Because of that it should in my opinion should be controlled by the community and not just a single person. This is especially the case when the OP that asked the question, is possibly having a knowledge gap, and may not always know what a good answer entails, especially what makes an answer a 'correct' answer. But that's a different issue) What do we do with the control of these orphan questions, and especially when the accepted answer is false? (but there is no OP anymore to change this) This question can be taken as an example case:  It's 3 years old and has an accepted and upvoted answer, but... does that close the case?


Find the last data in a table with conditions

I want to get the latest END BALANCE of customer, when the STATUS is success. Picture of the table and result wanted is attached above.


Donating winning lottery ticket to 501(c)3 Private Foundation: cost-basis deduction + full tax free redemption for foundation?

US 501(c)3 Private Foundations are typically controlled by the primary donator, so that is a nice perk, but in exchange for that perk I realize the tax deductions for donating are significantly lowered than for charities. Aside from being lower, the tax code doesn't recognize appreciated property and only allows for a deduction based on the donating taxpayer's cost-basis: ie. the price they paid for the property no matter its current market value.  When there is a significant delta of price paid vs current redeemable value, it seems this can still be a perk for the donating taxpayer in some circumstances, such as with lottery tickets that are known winners already.  If the donating taxpayer pays $1 for the ticket. Their cost basis is $1. If the ticket is now worth $100,000,000 but has not been redeemed, is it accurate that the donating taxpayer can donate this to their private foundation for a deduction at cost basis, and the private foundation can redeem the $100,000,000 ticket completely exempt from all lottery withholding income taxes?   (Other taxes unique to private foundations are known and outside the scope of this question.)  Most literature I can find is about appreciated marketable securities, and occasionally real estate. It doesn't seem that the tax code specifies any distinction between property, but it also doesn't seem the answer to this question is part of the general collective conscious even if it really is that obvious if my understanding is already correct.


Why is the intensity of Hawking radiation dependent on the size of the black hole it comes from?

I am asking for a non mathematical answer. I think I have a pretty good understanding of physics without the maths, which unfortunately eludes my understanding. It may be the answer would be obvious if I understood the maths, but I don't. As I see it, the event horizon has the same property for any size of black hole; it is the point from which light cannot escape. Given that this property is the same regardless of the size of the hole, it seems reasonable to suppose that the intensity of the Hawking radiation would be constant per unit area of the horizon. I know I am wrong, but I don't know why. A non mathematical explanation would be appreciated.


Provide a summary of an SE site up-front

I suggest providing a summary of the purpose of a StackExchange site up-front (i.e., near the top of the page).  Probably as a "Rounded/Squared Question Mark" button to the left of the site's logo, which upon click will pop up a box containing the site's description. Implemented this way, it won't become a clutter, and yet allow for a long-and-detailed description.  This feature will, IMO, help newcomers quickly find out what a certain SE Site is about.  (In fact, I'm not a newcomer (have been using SE for quite some time), yet when I landed on an SE Site I had to spelunk quite a bit to find out what exactly the site was about, to determine whether my question should be asked in that site or on another.)    Edit: After reading  I have to disagree. That question was specifically about new user. But this question is about a newcomer to an SE subsite, not necessarily a new SE user.  As I have explained in my endnote of the original question, *I* am not a new SE user, yet when I happened on a subsite that I have never visited before, say , I honestly have no idea what the site was about (i.e., what questions are welcome and what are not). And I have been a not-new-user for quite some time I forgot how to find info about the site.  I scroll dooooown, see "About Us", clicked... and off I went to a page about "The StackOverflow Company", not about the SE subsite. Only after clicking "Tour" did I find information to what a subsite is about. And that led me to a new page (or opens a new tab depending if I forgot to hold Ctrl or not).


What's the reason to do all-quad modeling?

After subdivision surface modifier applied tris are quad anyway. Is there something makes sense?


About the proof of the inequality: $\int_0^1 |f(x)|dx\le\text{max}\left(\int_0^1 |f’(x)|dx, \left\vert\int_0^1 f(x)dx\right\vert\right)$

设f(x)导数处处连续，证明： ∫|f(x)|dx≤MAX{∫|f'(x)|dx,|∫f(x)dx|}. 三个都为定积分 x from 0 to 1.  我用到了MAX{A,B}=(A+B+|A-B|)/2.加上|A-B|≥|A|-|B|. 但是和要证的不等号方向相反。  Translation:  Let $f$ be a function such that $f'$ is continuous everywhere, prove     $$\int_0^1 |f(x)|dx\le\text{max}\left(\int_0^1 |f’(x)|dx, \left\vert\int_0^1 f(x)dx\right\vert\right)$$   I have used $\text{max}(A,B)=\frac{A+B+|A-B|}2$ and $|A-B|\ge|A|-|B|$, however what I need to prove has the reversed inequality sign.


How to bind ports for TCP clients when using raw packet sending TCP packets in Python?

I want to simulate a TCP handshake with Python. For example, I want to establish a connection from 192.168.0.101:1234 to 192.168.1.102:80. I followed  and wrote a similar program sending an SYN packet to the server. The server responds an SYN+ACK packet to me, but my operating system sends an RST packet immediately, interrupting the communication.   Thus, I hope to let the client listen to the 1234 port and do no respond automatically. However, after I bind the address with socket.socket(socket.AF_INET, socket.SOCK_STREAM), the Python module sends the RST packets, instead of the system.   How can I achieve such goal? I think I should control the Inernet Layer, but I have no idea how to do that.   Thank you.


I need help with Chown command . I broke my ubuntu

I have accidentally executed this command on my Ubuntu terminal   sudo chown -R 755 /var/www/html/buzo/wp-content/cd ..   Now every folder has this lock like symbol and my desktop has turned black.  What have I done? What do I need to do make it work again as it used to work before?


Regex Too Complicated - replaceAll - large strings preprocessed before deserialize

Given   A JSON string with Apex reserved words (like "currency":"USD" and otherwise undeserializable-into-Date type (like "someDate":"0001-01-01T00:00:00Z" ) An apex method that uses   String s = s.replaceAll('"currency":','"currencyX":')             .replaceAll('"0001\\-01\\-01T00:00:00Z"','null');    before deserializing into a custom Apex type with property String currencyX and Date someDate  When  The incoming Apex string is very large (> 1MB)  Then  Uncatchable error: Regex Too Complicated     What to do?


I would like to draw the following diagram using TikZ package in LaTeX

I'm trying to draw this limbic system (routes of brain connections) using TikZ package in LaTeX    Dashed lines show the learning procedure and circles considered as neurons.  Here's the code I have so far:  \newcommand{\blocwithSum}[3]{   \begin{scope}[shift={#1}]     \begin{scope}[every node/.style={circle, draw, minimum size=2em}]       \node[circle, draw] [blue](#2-c1){};       \node[below left=1em of #2-c1][red](#2-c2){};       \node[below left=1em of #2-c2][cyan](#2-c3){};       \node[below left=1em of #2-c3][green](#2-cn){};       \node[below right=2em and 1em of #2-c1][blue](#2-sum){\large $\Sigma$}; %to draw the sum     \end{scope}     \node[above left=1em and 0em of #2-c1](#2-tt){#2};%Amygdala     \node[draw,blue,fit=(#2-c1) (#2-c2) (#2-c3) (#2-cn) (#2-tt) (#2-sum)](#2){};%to draw the box4     \draw[->,red,thick] (#2-c1)-|(#2-sum); \draw[->,blue,thick] (#2-c2)--++(2em,0) --(#2-sum);     \draw[->,green,thick] (#2-c3)--++(2em,0) --(#2-sum);     \draw[->,cyan,thick] (#2-cn)-|(#2-sum);   \end{scope} }  \begin{tikzpicture}   \bloc{(0,0)}{Thalamus}   \bloc{(4cm,0)}{Sensory Cortex}   \blocwithSum{(9cm,0)}{Orbitofrontal Cortex}   \blocwithSum{(1cm,-5cm)}{Amygdala}   \foreach \ii in{1,2,3,n} {     \node[draw][red](E\ii) at (Thalamus-c\ii-|-5,0){$S_{\ii}$};     \draw[->,blue,thick] (E\ii)-- (Thalamus-c\ii);     \draw[->,red,thick] (Thalamus-c\ii) -- (Sensory Cortex-c\ii);     \draw[->,green,thick] (Sensory Cortex-c\ii) -- (Orbitofrontal Cortex-c\ii);     \draw[->,thick] (Orbitofrontal Cortex-c\ii) -- (Amygdala-c\ii);   } \end{tikzpicture}


A goat is tied to an external corner of a rectangular shed measuring 4 m by 6 m.  If the goat’s rope is 8 m long, what is the total area, in square meters, in which the goat can graze?   Well, it seems like the goat can turn a full circle of radius 8 m, and a rectangular shed's diagonal is less than 8m (actually √52), and so shouldn't it be just 6 x 4 = 24 sq metre? The answer says it is 53 pi, and I have no clue why it is so or why my way of solving doesn't work.   Updated: Oh, and the only area given is that of the shed's. How can I know the full area in which the goat can actually graze on?


Suppress NPE Warning for getSupportActionBar() when called inside Fragments

I am getting a NullPointerException warning below at setDisplayHomeAsUpEnabled method.  if((getActivity()) != null) {    if(((AppCompatActivity) getActivity()).getSupportActionBar() != null) { ((AppCompatActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(false);   }  }   How do I fix this?


everybody.  I'm new to blender and I think I got one of those beginner problems. I am trying to make a goat and one of the faces won't let me loop cut it. It just skips the face.    I would be glad if you could help me.  Thanks!


I am able to get logged into my site, but when I hover over some of the menu options, the links behave in an odd manner and some of the link text disappears etc, some of them sit on top of each other:    Has anybody got any guidance on what might be causing this?


TypeError: undefined is not an object - Safari & IE

runAnimation: function(){   var iframe = document.querySelector('.active iframe');   window.frames[iframe.id].contentWindow.runAnimation(); },   The above code prints the following error in Safari:  TypeError: undefined is not an object (evaluating 'window.frames[iframe.id].contentWindow.runAnimation')   I have tried the answer ,  and , basically every possible solution.  Another interesting thing to point out is window returns undefined on Safari only!    /**  * @property {array} Templates.slide - The template part for each slide  * Html template for app  */  //Iframe Template presenter.Templates.slide = [   '<iframe id="slide-<%= id %>" class="slide" data-disable-back="<%= disableBack %>" data-disable-forward="<%= disableForward %>" data-position="<%= position %>" data-src="<%= url %>">', ].join('\n');     /**  * Default options for the carousel.  * @public  */  //Owl Carousel options  Owl.Defaults = {   ...   // Classes and Names   themeClass: 'owl-theme',   baseClass: 'owl-carousel',   itemClass: 'owl-item',   centerClass: 'center',   activeClass: 'active'  };  /**  * The main view for the presentation  * This renders a collection presentation  * Builds owlCarousel and attaches api controls  */ presenter.PresentationView = Backbone.View.extend({   ...      /**    * Runs slide animation. Called on the slide itself once its loaded    */   runAnimation: function(){     var iframe = document.querySelector('.active iframe');     window.frames[iframe.id].contentWindow.runAnimation();   },   ...  /**  * Adds listners for carousel events. Used to trigger runAnimation along with  * other function  */   carouselEvents: function(){     var self = this;     this.slider.on('translated.owl.carousel', function(){       self.showControls();       self.runAnimation();     });   },    /**  * Standard backbone method. Called when view is instantiated  * @param {object} options - Options passed when creating the view  *                           (such as instanceURL)  */   initialize : function(options){     this.options = options;     this.render();     this.buildSlider();     this.loadFour();     this.carouselControls();     this.carouselEvents();     this.keyNavigation();     this.UIEvent();     this.reScale();   },  });


Why quantising gravity necessarily give us gravitons?

Gravitons are supposed to be the quanta of gravitational field  My question is, if we do not know how to quantize gravity yet, how do we know that quantizing it in principle should give us gravitons, what guarantees that? Why it is always mentioned that gravitons are the gravity force mediators, although we have not quantized gravity yet.


My first question is: How would one solve such problems (in general,squares+rectangles). What should be the general technique?How can this problem be reduced to a mathematical problem?    My second question is: When to be sure that we have counted all the squares in such problems?


I have Server 2003 running in a Virtual Box guest VM. The host is Ubuntu 14.04. I have a mail service running in the guest.  Logged into the guest and  telnet localhost 110   responds with  +OK POP3   The Virtual Box VM is setup with NAT and port forwarding for 110. I have made sure the NIC has a unique MAC address. I have checked that no other VMs are port forwarding 110. Ubuntu firewall is not on. I am able to see the host from other machines and can connect to the guest via Remote Desktop through port forwarding it just won't connect to 110 or 143  In the host (Ubuntu) I type   telnet localhost 110   and it returns  telnet: Unable to connect to remote host: Connection refused   Tried  sudo tcpdump -n icmp   and it didn't show anything being blocked  tried  sudo netstat -tnlp | grep :110   and it showed nothing listening on that port.  EDIT: This is different to the "duplicate" question in that the problem is with VirtualBox. It would seem that VB is not listening and forwarding those ports, however it is port forwarding for other ports.  ANSWER: I thought that if VB was refusing to forward port 110 (for whatever reason) then I should try forwarding some other port (1100) and then change the email client. I did that and that resolved the problem though it would have been better to get a proper answer as this was not a "duplicate" question.


I want to print array rows but with this code I just print last row. How can I print all rows? pq = [[0]*3] * 8 count = 5 M_ids = [3,5,7] for i in M_ids:     print(i)     random_q = randrange(0, count)     random_p = count - random_q     pq[i][0] = i     pq[i][1] = random_p     pq[i][2] = random_q     print('M', pq[i][0], ':', 'p=', pq[i][1], '| q=', pq[i][2]) print(pq)


Having an .apk file, is there any way I can get its source code?


I am using an old 4S and the Power Button is kind of half stuck down. Are there any hints or tricks out there to un-stuck it?


Create account out of anonymous question?

For the sake of simplicity I posted an anonymous question on a Stack Exchange site yesterday. Is there a way to "un-anonymize" the posted question by linking it to an account that will be created (To answer comments and stuff for example)? Since I have given my mail when creating the question, it should be possible right? (I got a mail telling me that I could do it, but when registering, the question still wasn't linked with my account, weirdly. )   does not solve my problem, as it does not work on beta boards (Or at least on some specific boards).


How to not have an equation in the first line using the align environment?

Here is my code:   \begin{align*} (a-bu)e^{-\frac{1}{4}(v^2+u^2)(1+c)+\frac{1}{2}(1-c)u|v|}  &=(a-bx-by)e^{-\frac{1}{4}((x-y)^2+(x+y)^2)(1+c)+\frac{1}{2}(1-c)(x+y)(y-x)}\\ &=(a-bx-by)e^{-(x^2+cy^2)} \\ &=f(x,y). \end{align*}   I have a long equation. My question is as follows: I want to isolate the expression   (a-bu)e^{-\frac{1}{4}(v^2+u^2)(1+c)+\frac{1}{2}(1-c)u|v|}   on the first line so that I don't have an equation on the first line and I want this expression left justified with the other lines (that have the equal sign). How can I do this?


I created a device which gives out diamonds when a lever is pulled. The code is: setblock ~ ~5 ~ minecraft:diamond_ore destroy I want this to run on repeat and give out a diamond everyday or every half-day. It's 1.16.5.


What are the list of symbols found in LaTeX for letters similar to these:   For Mobile Phone - `\mphone` For Phone - `\phone`   What are the other symbols available like for email, home, etc..


Provide a $2$-tensor which is not decomposable on $\mathbb R^4$

Definitions:     A function $f:V^k\to \mathbb R$ is called a $k$-tensor if it takes $k$ members of a vector space $V$, as the input, and is linear with respect to each of the input elements. For example, $f(\alpha v_1,\dots,v_k)=\alpha f(v_1,\dots,v_k)$ and $f(v_1+v',\dots,v_k)=f(v_1,\dots,v_k)+f(v',\dots,v_k)$   $L^k(V)$ denotes the set of all $k$-tensors on the vector space $V$.    Assume that $V$ is a vector space. We say $T \in L^2(V)$ is decomposable if there exist $A,B\in L^1(V)$ such that $T=A \otimes B$.      Question:       On the vector space $\mathbb R^4$, Provide a $2$-tensor which is not   decomposable and prove your claim.   Note: My problem is that i don't know a way of finding such a $2$-tensor. If the question was about finding a decomposable $2$-tensor, I could just find two tensors and the product of them would be the answer. But it's not the case... So, I'm stuck on this...    Any idea?


Please tell me that why aren't we discarding the conventional flow of current despite not being in sync with principle of potential difference

electric current flows from higher potential area (negative terminal) to lower potential area (positive terminal).this clearly indicates that electric flow (flow of electrons) takes place from negative pole to positive pole. then why are we still using the conventional flow of electric current (from positive pole to negative pole) which proposes a false statement - "electric current flows from lower potential area (positive pole) to higher potential area (negative pole)".


Objective-C Translate UIImageView on z-axis

I am wondering if it is possible to take an image view and turn it on the z-axis so that the left side appears closer to the user viewing the application and the right side gets narrower as if it was getting farther away. I was thinking of doing this with OpenGL, but was hoping it could be done with Core Animations.  Has anyone had any experience with this?    UIImageView *front = [[UIImageView alloc] init];  UIImageView *left = [[UIImageView alloc] init];   float trialSide = 30 * 5.7;  front.frame = CGRectMake(180, 280, 360, 295);  front.image = [img croppedImage:CGRectMake(trialSide, trialSide, imgWidth - (trialSide *2), imgHeight - (trialSide * 2))];  left.frame = CGRectMake(149, 280, 30, 295);  left.image = [img croppedImage:CGRectMake(0, trialSide, trialSide, imgHeight - (trialSide * 2))];   [self.view addSubview:front];  [self.view addSubview:left];   CALayer *layer = front.layer;   CATransform3D rotationAndPerspectiveTransform = CATransform3DIdentity;  rotationAndPerspectiveTransform.m34 = 1.0 / -1000;  front.frame = CGRectMake(180, 280, 360, 295);  rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, 30.0f * M_PI / 180.0f, 0.0f, 1.0f, 0.0f);  layer.transform = rotationAndPerspectiveTransform;  [self.view layoutSubviews];


how to parse values from comma separated values using regex for javascript

I have   HOSTNAMEA,HOSTNAMEB,HOSTNAMEC,...   I have a third party workflow tool that can do the looping but can only use regex to parse values. I'd like to get a regex that grabs each hostname and puts into it's own variable in my workflow tool so the results will be  HOSTNAMEA HOSTNAMEB HOSTNAMEC ...   I'm struggling to get a regex that just grabs the text block X between the commas


Hint:  $a^2 -ab +b^2 = (a+b)^2 -3ab.$  I know we can say that there exists an $x,y$ such that $ax + by = 1$.  So in this case, $(a+b)x + ((a+b)^2 -3ab)y =1.$  I thought setting $x = (a+b)$ and $y = -1$ would help but that gives me $3ab =1.$  Any suggestions?


Let R be an integral domain such that any pair b,c has a gcd. Prove if a is irreducible, then a is prime. I think we have to prove gcd(a,bc) | gcd(a,b)gcd(a,c). But I couldn't. Any help?


A function in the LLVM source that calculates array length

In llvm-3.4\include\llvm\ADT\STLExtras.h, i see this function:  /// Find the length of an array. template<class T, std::size_t N> inline size_t array_lengthof(T (&)[N]) {   return N; }   This function returns the array length:  int main(){   const char spaces[] = "dededesdf sdf sdfs fdsf"                         "dadsds jsdfdfs ffjsdklfj dsfds";   std::cout << array_lengthof(spaces); //prints 54   return 0; }   Can someone explain how the function works and also what the parameter T (&)[N] means? Are there any scenarios in which this function will not work?


// aoo.js          const c =950;         function hello(){            console.log(c);            }           export default hello;      // moo.js          import q from './aoo';          console.log(q());   How it is fetching variable c value in              "moo.js"  ,even though we are not exporting it?


change gtk theme on schedule with cron ubuntu 18.04

Good day ... working as a developer made me change my theme regularly, day and night, i have 2 themes "Light & Dark". i made a bash script to change the gtk-theme and shell-theme from cli, it works fine. However, when I issued the script via crontab, it fails to work and reports failure connecting to display and Dbus issues  here is my crontab    * *   *   *   *    DISPLAY=:0.0 /home/newton/scripts/dark-mode.sh   and here is my script  #!/bin/bash export DISPLAY=:0.0 export WAYLAND_DISPLAY=wayland-0  /usr/bin/gsettings set org.gnome.desktop.interface gtk-theme 'Vimix-Dark-Laptop-Ruby'  /usr/bin/gsettings set org.gnome.shell.extensions.user-theme name 'Vimix-Dark-Laptop-Ruby'    Please help me solve this issue, i think it will be helpful to lots of people. Regards Mohammed Gritli


When refering to the user of an application should I use "You" or "Me"?

I am designing an application where I have a list of items. Some have been added by "You" (the user) and some have been added by your colleagues (everyone else)  To show who has added the item I show the name of the person that added it.  For the items you have added instead of the name I show "You".  But then the question arose. When referring to the user of the application should I use "You" or "Me"


I 'm planning to apply for Masters in Computer Science (Non-thesis). I 'm wondering if both, pregnancy and school, can be managed at the same time. Or is better to wait until I get my baby and then apply for the school. I 'm trying to learn from others experiences.


Why does treating differential elements like fractions work so well? I studied calculus from a pure math perspective first, and have only basic knowledge of it, so can someone explain with a rigorous proof or a simple explanation why this hack works? Some people told me that treating differentials like fractions is a sin. Can anyone give me an example where treating differentials like fractions fails to work?


Is `~/Documents` a relative or an absolute path?

This is merely just a vocabulary question, but which keeps turning around in my head.  It comes from a practice exam from a  preparation book. The correct answer according to the book is that ~/Documents is a relative directory because it is relative to the home directory.  However, this book contains an honourable ratio of typos and mistakes so I cannot take for granted everything which is written there. Here I do not agree because for me ~ acts as a variable expanded by the shell into either the content of the $HOME variable or the current user home directory path (cf. ), so the actual path is /home/myuser/Documents which is indeed an absolute directory.  Even , for once, seems of no help to me on this topic (even if it seems to confirm that the book is wrong on this one):     An absolute or full path points to the same location in a file system   regardless of the current working directory. To do that, it must   contain the root directory.      By contrast, a relative path starts from some given working directory,   avoiding the need to provide the full absolute path.   Here again, I do not agree: according to this definition, the path /opt/kde3/bin/../lib which does not depends of the current working directory should be an absolute one, however my current understanding of this matches the book's author making this path a relative one.  A quick web-search is just adding to my frustration, according to :     absolute path - A path relative to the root directory. Its first character must be the pathname separator.   So $HOME/Documents, or even just $HOME would not be considered absolute directories? Or does this definition implies variable expansion? What about the shell's ~ character? Is there any reliable definition of relative vs. absolute directory I can find somewhere and am I wrong all of the way?


Someone knows what it is that dotted cage, what it serves but especially how to remove it?


How to store lots of small text in a SQL Server database?

I have a table with a varchar(max) column that stores text ~4-10KB in size. Data is just being added - never modified, it is a log. My problem is that a table grows too large in size - I would like to keep about 1000000 rows in this table.   I am limited to SQL Server Express and hit the limit on database size. Compression is not available in SQL Server Express and I afraid that Filestream may not be appropriate and the number of files would be too big.   What is the best solution in this case?


how to find the lines by ignoring word sequence, in Linux?

I am trying to ignore the order of the words and searching for the line in one file which has below pattern for example : My Name is ABC. Now I want to change the sequence of words in the same sentence as below : ABC is my name. Can someone  please help me on how should I find this line in linux, if the order/sequence of the words keeps changing ? Thanks in advance.


Analytical mechanics resource recommendation

Is there any book on analytical mechanics that covers all the materials in-depth as in Goldstein but in a more organized way?


Name of 80s sci-fi film involving scientists recording a persons memory

This film was made sometime the 80s I think and was concerned with scientists who developed some device that could be used to record memories. The main story was about one of the scientists dying and using the device to record her death. This resulted in the military getting involved. That is about all I remember but I remember it being a very good and thought provoking film that I would like to watch again. I just cannot remember what it was called though. Does anyone know what this movie is called?


There are many similar questions: this one is about "why do the recommended answers not work in 2021" ?  Based on many similar questions I ran the following: sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade && sudo do-release-upgrade  That downloaded a lot of packages- many of them for 18.04 for some reason. But then at end the result was: ... Setting up libnvidia-ifr1-435:i386 (455.45.01-0ubuntu0.18.04.1) ... Setting up libnvidia-gl-435:amd64 (455.45.01-0ubuntu0.18.04.1) ... Setting up libnvidia-gl-435:i386 (455.45.01-0ubuntu0.18.04.1) ... Setting up nvidia-dkms-435 (455.45.01-0ubuntu0.18.04.1) ... .. Setting up nvidia-utils-435:amd64 (455.45.01-0ubuntu0.18.04.1) ... Setting up nvidia-driver-435 (455.45.01-0ubuntu0.18.04.1) ... Setting up nvidia-compute-utils-435:amd64 (455.45.01-0ubuntu0.18.04.1) ... Processing triggers for mime-support (3.63ubuntu1) ... Processing triggers for gnome-menus (3.32.0-1ubuntu1) ... Processing triggers for libc-bin (2.30-0ubuntu2.2) ... ..Processing triggers for initramfs-tools (0.133ubuntu10) ... update-initramfs: Generating /boot/initrd.img-5.3.0-64-generic Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  I then tried:  sudo do-release-upgrade $ sudo do-release-upgrade Checking for a new Ubuntu release Your Ubuntu release is not supported anymore. For upgrade information, please visit: http://www.ubuntu.com/releaseendoflife  Please install all available updates for your release before upgrading.  Is there a procedure to upgrade from 19.10 to 20.04 that actually works?


I have been using  and this is very helpful in finding details of running sessions and blocking.   I wanted to check whether there is any option to schedule a job based on this procedure and alert me only when there is active blocking on database and blocking is held for more than configurable number of minutes.   Also, alert should be triggered only when it reaches more than configurable number of blocking on database.   I used the details given at  however it sends alert on every run and doesn't seem to check regarding blocking. Sends email whether there is only one query running or multiple queries running, whether it is with blocking or without blocking. Not sure, if I am missing anything.


Convert JavaScript String to be all lower case?

How can I convert a JavaScript string value to be in all lower case letters? Example: "Your Name" to "your name"


What is the meaning of "\;" in "find" command?

What is the meaning of  \;  in  find  command? What is the reason to use it?  In manual I can find example:  find . -type f -exec file '{}' \;   Why not:  find . -type f -exec file '{}'  ?


Limit of Series with differences of Floor function

Problem: Evaluate $$ L=\displaystyle \lim_{n \to \infty} \frac{1}{n} \sum_{k=1}^{n} \left(  \left\lfloor \frac{2n}{k} \right\rfloor -2\left\lfloor \frac{n}{k}\right \rfloor \right).$$  Please help me with this one.  I tried using the sandwich theorem by first constructing the following  $$ 2 \geq \left\lfloor \frac{2n}{k} \right\rfloor -2\left\lfloor \frac{n}{k} \right\rfloor \geq -1 $$ and then summing over. But the limit of the two bounds are different so sandwich theorem doesn't help!. Is it possible to construct sharper bounds?  Also I observed that if we ignore question of continuity, etc. then we can write,  $L= \displaystyle \int ^{1}_{0}\left\lfloor \frac{2}{x} \right\rfloor -2\left\lfloor \frac{1}{x} \right\rfloor dx$  Now I am able to compute the above integral. But is the above process correct? If then how can make it rigorous? Or if any other approach is possible, please tell.


I'm not sure if "is" or "are" would be correct. I've written what I'm trying to say in 2 different ways; one being option A and the other being option B.  Option A: 'What is the name of the company? The name of the company is....'  Or  Option B: 'What are the name of the company? The name of the company are...'


Suppose I have a set $A$ such that $A$ = $\{1, 2, 3, 4, 5\}$ (or $A$ = $\{1, 2, 3, 4\}$ or $A$ = $\{1, 2, 3\}$ or any other finite small set). How can I find the total number of partial order relations on such a set?    I'm trying to wrap my head around the concept, but I'm still not quite getting it. (My instructor talked about a Hasse diagram, but am I always to use those/would it make it way easier?) If anyone could explain this concept a bit more clearly than my notes, that would be very good!


What is the difference between “Size” and “Size on disk?”

Looking at the properties for a Windows file I get two attributes, “Size” and “Size on disk,”  and "Size on disk" is always larger.  What do these two metrics mean?


Can my commander ever not be my commander?

Once and for all: Is there anything that can possibly be done to my commander that would cause it to cease being my commander?    All of these questions ask the same thing, but aren't general enough to be marked as a duplicate.      Is a commander still a commander if it gets turned into a forest?     Is a commander still a commander if it gets turned face down?


LaTeX keeps putting my figure alone in last page

everyone.  I'm writing my thesis and I'm having some trouble with \subfigure package. I have this code below in some part of my text:  Some big text with a few explanations here... \begin{figure}[!h] \centering \subfigure[Fig4.5a]{ \includegraphics[scale=0.50]{Fig.4.5a} \label{Figure 4.5a}} \quad \subfigure[Fig4.5b]{ \includegraphics[scale=0.50]{Fig4.5b} \label{Figure 4.5b}} \subfigure[Fig.45c]{ \includegraphics[scale=0.50]{Fig4.5c} \label{Figure 4.5c}} \caption{Caption from Figure 4.5} \label{Figure 4.5} \end{figure}   This code above is repeated 3 times (because I have a set of 12 charts to place and I have to explain each other) and it fills 4 entire pages (and that's ok, I don't need small charts, I need big ones so it is good to read). Then comes a text with some explanations, I begin another section with a short text and then I include another 2 charts, like this:  \begin{figure}[h!t] \centering \subfigure[Fig4.9a]{ \includegraphics[scale=0.95]{Fig4.9a} \label{Figure 4.9a}} \quad \subfigure[Fig4.9b]{ \includegraphics[scale=0.95]{Fig4.9b} \label{Figure 4.9b}} \caption{Caption from Figure 4.9} \label{Figure 4.9} \end{figure}   The problem begins in this last picture. All the text I type after this last figure (Figure 4.9) comes before this figure and my Figure 4.9 is placed in a single page, alone.  My question: is there a way not to let the Figure 4.9 alone in a single page? I know LaTeX will float my figures and fit it the best way, but I have to pass 5 pages so I can see a chart that was mentioned 5 pages before. As I see it, there is a way for LaTeX to rearrange the space and put some text after Figure 4.9. I tried \pagebreak, but didn't work.  Thanks!


Reapplying for UK Standard Visa after refusal due to Incorrect details

My Visitor visa is refused due to a big blunder I have made while filling the application, which I have realised only after being pointed by a friend. I have mentioned my annual income as monthly income. Ofcourse, it didn't match with any of the financial documents I have provided. That's it case is gone.  It also might have appeared that I'm trying to cheat !  Background :   I planned to visit UK for a cycling event.My relative staying there has provided me a welcome letter, his passport copy and council tax copy. I have provided them Invitation letter from event organisers, Employment letter, pay slips for six months, account statements of My salary account, savings account in another bank, travel Insurance, my flight tickets, and letter provided by relative and rental agreement in India. I thought they will be sufficient for a visitor visa.   My wife will join me after my cycling event is completed. So I have provided her bank account statement, her flight tickets also.I haven't provided any marriage certificate.  In my savings account, there is money, with drawn from my mutual funds, wife's savings and the amount I saved from my salary account.   You can see comments regarding them all in the refusal letter below. Also, I haven't mentioned much about my cycling.  Now since, I have realised my mistake and this event being very important to me, as I'm practising past 2 years for it...I'm planning to apply again on a 1 week priority basis. Here is what I'm planning to do and  my queries.   I'm filling application very carefully and providing my bank account statements again, with a letter to explain that the deposits are from my funds and from wife. Will provide mutual funds statements also, along with wife's employment letter, pay slips, account statement and her tickets. Planning to write a cover letter explaining my cycling achievements and providing them certificates of the same, which gives them Idea that my main purpose to visit is cycling. Proving marriage ceritificate. Giving the Hotel bookings and complete tour Itinerary. Letters from Event organisers and cycling association in India.    Queries :   Should I include the refusal letter or just mention about it ? While it is mentioned in checklist that I should give my travel details, bookings etc, in Guidance document, under section 4 I see that they are to be provided only if requested. So I'm confused, if that section 4 applies to general visitor VISA at all ?    Please advice me and help me go through the process.  Thanks in advance.


Insert graphic at precise place on a page

I would like to put a small graphic in the bottom right corner of a the title page of an article. Is there a way to specify a precise location for a graphic on a page (that has text on it)?   I've tried doing it with a \parbox but haven't been able to so far.


After upgrade from Ubuntu 16 to 18.04, systemd-udevd uses 100% CPU

Since I upgraded from Ubuntu 16 to 18.04, CPU usage is high. Sometimes 100% cpu usage, and when that happens we can't do anything. If we check on the process systemd-udevd, we find it is using 100% CPU. I have followed an answer to this question:  but now I can't use any browser.  I ran the command sudo mv /lib/udev/rules.d/71-nvidia.rules ~ and now I can't install a new browser or use the old one, and I still have this 100% CPU issue.     Note: I have installed Mint 19 version and found the same issue. I just downgraded to Mint 18.3 and CPU and memory usage are fine. Many others also reported the same issue.


I have a Nikon D5100 and want to use some old Cosina manual lenses... what adapter do I need?

I have a Nikon D5100 and some beautiful old Cosina lenses (completely manual) What sort of adapter do I need to buy to use these lenses?


how to protect a folder using password in ubuntu 20.04

I have tried installing both cryptkeeper and gnome-encfs-manager but it was showing unable to locate the packages. Can anyone please help me in installing any one of them or suggest a new one


I've made a matrix in a beamer presentation and I'm trying to style the nodes.  \newcommand\foo{row 1/.style={inuse}} \begin{frame}{Chunks}   \tikzset{     inuse/.style={text=red},     free/.style={text=green},     addr/.style={minimum width=3em},     data/.style={nodes=draw,minimum width=6em},   }   \scalebox{0.6}{   \begin{tikzpicture}[node distance=2mm]     \matrix(magic) [matrix of nodes,ampersand replacement=\&,row sep=-\pgflinewidth,                     column 1/.style={addr},                     column 2/.style={data, column sep=1em},                     %row 1 column 2/.style={inuse},                     %\foo ,                     %\foreach \r in { 1,2,3 } {row \r column 2/.style={inuse}, }                     column 3/.style={addr},                     column 4/.style={free, data, column sep=1em},                   ]     {       100: \& 00000010 \& 110: \& 12345678 \& 120: \& 12345678 \& 130: \& 12345678    \\       101: \& 00000001 \& 111: \& 12345678 \& 121: \& 12345678 \& 131: \& 12345678    \\       102: \& 00000002 \& 112: \& 12345678 \& 122: \& 12345678 \& 132: \& 12345678    \\       103: \& 00000003 \& 113: \& 12345678 \& 123: \& 12345678 \& 133: \& 12345678    \\     };   \end{tikzpicture} } \end{frame}   Of the three commented out lines, the first works and the other two fail. For the \foo macro I get:  Package pgfkeys Error: I do not know the key '/tikz/row 1/.style={inuse}' and I am going to ignore it. Perhaps you misspelled it.   But if I stick the macro body where I tried to use it, no problem. Clearly I'm missing something fundamental about macros, but what?  Invoking \foo in the tikzset gave the same result.  The foreach gives me something totally cryptic:  ! Undefined control sequence. \foreach ...reach \let \pgffor@assign@before@code                                                    =\pgfutil@empty \let \pgff...   Any help much appreciated.


So I know there are precisely $2^{\aleph_0} $ Turing degrees, but is there a proof of this somewhere?


I am looking for a way to convert point cloud collected through a  LiDAR scanner to a perfect 3D model of a town.   The sample data is from vehicle mounted scanner, but final data is going to be from aerial and vehicle mounted scanners.   The final 3D model of the town is supposed to be used as a terrain for a FPS (first person shooting) video game.   I am not sure where to begin. I have some sample data. The data is available in the following formats:   SDW SDC LAS/LAZ   Is it even possible? The point cloud has color information. The sample point cloud that I have has RGB values for each point, but as far as I have tested the City Engine doesn't work with point clouds, it needs meshes, am I right?    For classes, can't I use height function for the points, to define all points at a certain height to be the ground, and everything higher buildings? I need to take the cars out anyway, so maybe I can take the trees out too, then I have just two classes, the ground class and the not ground class (the buildings).


Why windows 8.1 64 bit install programs only in 32 bit?

basically I have a windows 8.1 64 bit but when i download a software (e.g. firefox) it´s installed automatically in 32 bit, why and how can i change it ?


Google Docs thumbnails do not update, can I force an update?

I am working with Google Docs. I make copies of existing documents using the option File - Make a copy.... The document gets copied and I work on the copy and change the copy. When I close it and reopen it the changes I made are applied but in the overview Docs Home the old preview stays.  When is this updated?  Is there an option to force an update?


Looking for a sci-fi movie about astronauts helping aliens fix their craft on the moon

It may be  1 movie or a combination of 2 or more. I would have watched this movie somewhere in the 60's or 70's.   The plot follows astronauts that go to the moon and, while there, discover a disabled alien craft that needs to be repaired. The aliens, who look human, need the assistance of the astronauts so the aliens help the astronauts get back to earth so they can get the parts they need to fix their craft.   The aliens craft was a large round shape and I believe there were robots/androids also inside the alien craft.


Can't turn on wifi on Toshiba Satellite C75D

I installed Ubuntu 14.04 on my new Toshiba Satellite C75D a number of months ago, and everything worked great for months. Then suddenly, I didn't have wifi access anymore.  I can connect by wire.    rfkill list says that my wireless LAN is both hard and soft blocked.  When I try to toggle the switch on the Network Manager to "on" for wifi, it won't let me.  My "hard switch" is the F12 key, but it doesn't seem to to anything.  Someone else had a similar question that didn't seem to get answered, except for the problem they had with suspend: .  Output of lspci -knn | grep Net -A2:   05:00.0 Network controller [0280]: Qualcomm Atheros AR9485 Wireless Network Adapter [168c:0032] (rev 01)     Subsystem: Lite-On Communications Inc Device [11ad:8631]     Kernel driver in use: ath9k   It is not a dual boot system.  I set it up to be Ubuntu only.


Getting class name without instanting an object

class A:     pass  > A().__class__.__name__  -->'A' > A.__class__.__name__ --> 'type'   How can I get 'A' without the parens?


Object.keys() return Object enumerable properties but Looping over Object.keys() return Object methods?

Javascript Object.keys(my_obj) return the keys (ie enumerable property) of my_obj in an array.  But looping in Object.keys(my_obj) array return the methods of my_obj.  Does somebody understand this behaviour ?    Object.prototype.log_key = function() {   keys = Object.keys(this)   console.log('log Object.keys() array return enumerable property', keys)   for (const k in keys) {     console.log('loop in Object.keys() array return method', k)   } }  var my_obj = {   testkey: 'testvalue' }  my_obj.log_key();     Output:   log Object.keys() array return enumerable property [ 'testkey' ] loop in Object.keys() array return methods 0 loop in Object.keys() array return methods log_key


I try to understand how to find a $l$-adic expansion of rational numbers. So I tried with $\frac{1}{2}$. Unfortunately I failed.   What I know\think:  We have two cases. What if $l$ is odd? What if $l$ is even?  I have to find:$$\frac{1}{2} = \sum_{i=\infty}^{\infty} z_i\cdot l^{-i},$$ $z_i\in\{ 1,...,l-1\}$ and $l \ge 2$.


Why does the ESB opening crawl identify Luke as a leader of the Rebellion?

In The Empire Strikes Back, this is part of the opening crawl:  Evading the dreaded Imperial Starfleet, a group of freedom fighters led by Luke Skywalker have established a new secret base on the remote ice world of Hoth.  Why does this say "led by Luke Skywalker?"  Luke may have blown up the Death Star, but he's certainly not a leader of the Rebellion, and this line seems to imply that he's in charge of the entire Rebellion, which is certainly not true.  At first, I thought that this could be a misprint as to his role in A New Hope, but even in ESB Luke isn't seen as a leader.  It's Leia and General Rieekan who are actively taking a leadership role.  And he's certainly not a "leader" in ANH, only one of the pilots. So why does the crawl title Luke as a leader?  Even within the movies, it doesn't seem to make sense.  They're not actively fighting, so it's not even as if Luke is leading troops.


Direct Proof that $1 + 3 + 5 + \cdots+ (2n - 1) = n\cdot n$

Prove that for all integers $n$, $n \geq 1$,   $$1 + 3 + 5 + \cdots + (2n - 1) = n\cdot n$$   How would I go about proving this?


Among various kind of sports / kinds of sports / kinds of sport, I like soccer the best.   Which one is correct? Is there any rule implying that one of them has to be singular between 'kind' and 'sports' if the other one is plural and vice versa?


Linear Algebra - Understanding how to use the Gram Schmidt Orthogonalization Procedure

Use the Gram Schmidt Orthogonalization Procedure to transform the basis $\{(1,2,1), (1,0,1), (3,1,0)\}$ into an orthogonal basis for $R^4$.  I haven't been able to understand how to use the Gram Schmidt Orthogonalization Procedure properly, I just couldn't grasp it during my lecture. If anyone could explain how to do this, that would be awesome!


Today I fond that MariaDB is closed on my server (I dont know why) but its not restarted after crash.  I have already added mariadb to start on boot like:  sudo /sbin/chkconfig mariadb on   I want to ask that how to restart the service after it get closed ? Thanks for help.


I am trying to find the Galois group of $(x^2-2)(x^3-2)(x^3-3)$ over the field $\mathbb{Q}(i\sqrt{3})$. The roots of this polynomial are $\pm \sqrt{2}$, $\zeta_3^k \sqrt[3]{2}$, and $\zeta_3^j \sqrt[3]{3}$ for $j,k=0,1,2$, so that the splitting field over $\mathbb{Q}(i\sqrt{3})$ is $\mathbb{Q}(i\sqrt{3}, \sqrt{2}, \sqrt[3]{2}, \sqrt[3]{3}, \zeta_3)$.  Can someone help me find:   The Galois group over $\mathbb{Q}$ The Galois group over $\mathbb{Q}(i\sqrt{3})$


When I install Cuda it says "no supported version of visual studio was found. Some of the CuDa toolkit won't work properly" do I have to download the whole visual studio or  there is a zip file around


There are $n$ leaves placed in a circle. A monkey travels around it in a peculiar manner. On his $1^{st}$ jumps he skips one leaf and lands on the other. On the next jump he skips two. Then he skips three and so on. Prove that if he has to land in every leaf at least once, $n$ cannot be odd.


Subring is not necessarily ideal, where to start?

I am very new at algebra and currently studying at ring. Now I can find the explanation of "Subring is not necessarily ideal" from         but I still do not understand. Can someone explain it to me? Thanks!


Does observed red shift indicate expanding universe?

The observed red shift of objects is assumed to indicate that those objects are moving away from Earth but is it possible that there could be another explanation for the observed red shift that does not require the expansion of the Universe ?


Can I pluck a polymorphed creature and keep its feathers?

So this is a question about the polymorph and true polymorph spells. Both spells include in their description an explanation as to what happens to the gear of the target of the polymorph spells ...     The target’s gear melds into the new form. The creature can’t activate, use, wield, or otherwise benefit from any of its equipment.   ... but nothing about what happens if you take away a part of the creature, like a feather, does it disappear once the spell is over, do you keep it ?  This is probably a subjective matter who's gonna gather subjective answers, but I don't mind. I have found nothing in the SAC or the erratas about that and even tho my current GM has ruled that I could keep the feather of the hummingbird I had polymorphed into, but I also do feel like it's a debate I could have with every future DM ... might as well see what RPG Stack Exchange thinks ?


Moderators should be able to undelete comments that were deleted by a single flag

Moderators can undelete comments that have been deleted.  This is useful; it allows us to purge a big pile of comments and then undelete the two that added value.  It also lets us undo accidents (hello, moderating on a phone :-) ).  There is one exception to this: if the author of a comment deleted it, mods can't undelete.  That makes sense; we allow people to take back their words without risk of having them come back later.  I've just bumped into a second exception: I came across a comment that was deleted by a single flag, because the comment contained a magic keyword.  The comment also contained useful information, so I tried to undelete it -- and couldn't.  The author of the comment wanted it there (this wasn't a retraction).  A moderator wanted it there.  But a user who is neither was able to prevent me from recovering the comment.  The regular expression behind this expedited flag-deletion is not perfect.  It can't be; it's only a regex.  Sometimes human judgement is needed.  Not all uses of "accept" are bad, and not all occurrences of "+1" mean there's not also something valuable in the comment.  Some users are actively hunting for these comments and flagging them.  They're using scripts, not their own judgement, but even if they were looking at individual comments, they sometimes make mistakes.  Please fix this.


Characterization of weak convergence in $\ell_\infty$

Is there some simple characterization of weak convergence of sequences in the space $\ell_\infty$? If yes, is there some similar claim for nets?   I was only able to come up with a characterization of sequential weak convergence using limit along ultrafilters, which I will describe below. I wonder whether there is some insight into this characterization. (E.g. whether there is some simple reformulations which does not use ultralimits.) Moreover, I do not know whether at least this characterization works for nets, too.  We have the following result describing weak convergence in $C(K)$, see e.g. Corollary 3.138,  in Banach Space Theory by Fabian, Habala et al. (It is a consequence of Rainwater theorem and characterization of extreme points of unit ball in $C(K)^*$.)     Let $K$ be a compact topological space. Let $\{f_n\}$ be a bounded sequence in $C(K)$ and $f\in C(K)$. Then, if $f_n\to f$ pointwise, we have $f_n\overset{w}\to f$.   Moreover we have isometric isomorphism between $\ell_\infty$ and $C(\beta\mathbb N)$, which is described e.g. in the Wikipedia article on  or in  of Carothers' book A short course on Banach space theory. This isomorphism assigns to each bounded sequence $(x_n)$ the continuous function $\overline x$ on $\beta\mathbb N$ defined by $$\overline x(\mathscr U) = \operatorname{\mathscr U-lim} x_n,$$ where $\operatorname{\mathscr U-lim} x_n$ denotes the  of $x_n$ w.r.t the ultrafilter $\mathscr U$.  Combining the above results we get the following characterization:      Let $f^{(n)},f\in\ell_\infty$. The sequence $f^{(n)}$ converges to $f$ weakly if and only if for every ultrafilter $\mathscr U$    $$\lim_{n\to\infty} \operatorname{\mathscr U-lim} f^{(n)}= \operatorname{\mathscr U-lim} f.$$   (The above claim for principal ultrafilters is just a pointwise convergence. But in the above claim the equality is required for free ultrafilters, too.)


Very Low Quality flag not shown for question at -1

This question does not offer me the vlq flag amongst the flags, even though it's at -1.    Could it be that it is hidden once someone else has used it?


Lubuntu can't delete Windows viruses on usb stick

I have Lubuntu 16.10 and I want to clean my usb sticks of Windows viruses but I can't do it. When i try to delete some .exe files they duplicate themselves like program.1 and program.1.1  and so on. There is no error messages.  What's the solution to this?


For command ls     -F, --classify           append indicator (one of */=>@|) to entries   Wikipedia says * represents executable and / dir.  Regular files are not followed by any of the above symbols.  But * follows text file and pdf file too. Are they executables?  Do the -F indicators always mean same as the first field in -rwxrwx---?  It seems like there is no difference between hardlinks and the files  in either the -F indicators or the first field in -rwxrwx---. How do you distinguish them?  Thanks.


Since orbiting bodies are under constant acceleration, this means they are experiencing force.  Considering work = force X distance and work is energy, where does this energy come from?  I understand the force is supplied by gravity, but this work does not seem to 'use up' the gravity.  Thinking about this, I am assuming potential energy is being converted into kinetic energy...yet we don't seem to be consuming the potential energy, so I must be misunderstanding something.  If this could be illustrated with some math, or even a simple analogy, I would very much appreciate it.


Repro: open  Observe: page not found error Expected: some XML


If $\{x:f(x) > a\}$ and $\{x:f(x) < a\}$ are open$\forall~a\in\mathbb{R}$ then f is continuous.

We have the function $f: \mathbb{R} \to \mathbb{R}$.     Question: Show that if the sets $\{x:f(x) > a\}$ and $\{x:f(x) < a\}$ are open for every $a\in\mathbb{R}$, then $f$ is continuous.   My attempt:$f$ is continuous if $A \subset \mathbb{R}$ is open, then $f^{-1}(A) \subset \mathbb{R}$ is open. I can show that the image of $\{x:f(x) >a\}$ is open. Namely $\{f(x) > a\} = (a,\infty)$ is open in $\mathbb{R}$. But this doesn't prove that for any open set $A \subset \mathbb{R}$, we have that $f^{-1}(A)\subset\mathbb{R}$ open as well.    Thanks in advance!


What's the minimum of $\int_0^1 f(x)^2 \: dx$, subject to $\int_0^1 f(x) \: dx = 0, \int_0^1 x f(x) \: dx = 1$?

The question is as in the title: what's the minimum of $\int_0^1 f(x)^2 \: dx$, subject to $\int_0^1 f(x) \: dx = 0, \int_0^1 x f(x) \: dx = 1$? (Assume suitable smoothness conditions.)  A problem in the textbook for the course I am TEACHING (not taking) reduces to minimizing $w_1^2 + w_2^2 + w_3^2$ subject to $w_1 + w_2 + w_3 = 0, w_1 + 2w_2 + 3w_3 = 1$. Of course there's nothing special about the number $3$ here, and so one can ask for the minimum of $\sum_{i=1}^n w_i^2$ subject to $\sum_{i=1}^n w_i = 0, \sum_{i=1}^n iw_i = 1$. At least when $n = 3, 4, 5$, we get $w_i = c_n(i-(n+1)/2)$, for some constant $c_n$ which depends on $n$. So for fixed $n$, $w_i$ is a linear function of $i$. (This is a bit of an annoying computation, so I won't reproduce it here.)  So it seems like there should be a continuous analogue of this. If we have  $$ \int_0^1 f(x) \: dx = 0, \int_0^1 x f(x) \: dx = 1 $$ and $f(x)$ is linear, then we get $f(x) = 12(x-1/2)$, and $\int_0^1 f(x)^2 \: dx = 12$.  Is this the function satisfying these integral conditions with smallest $\int_0^1 f(x)^2 \: dx$? That is, is it the case that $$ \int_0^1 f(x)^2 \: dx \ge 12 $$ for every $f(x)$ satisfying the two conditions above and whatever smoothness conditions are necessary?  I've tagged this calculus-of-variations because that's what it looks like to me. But I don't know the calculus of variations, which is why I can't just solve the problem myself.


Why is /var symlinked to /private/var? I understand the general purpose symlinks serve, but I'm curious what specifically is making use of this link.


What do I have to suppose to say an infinite set has a proper infinite subset and its complement is also infinite?

I have an infinite set $X$, I need to take a proper (countable or not) infinite subset of $X$ so there are theorems that guarantee its existence but it's not clear what set of axiom I need to take, maybe ZFC. Besides, how do I know the complement of that subset is also infinite?


Does the English language have an official Academy?

For some languages, there are academies that decide topics such as grammar and spelling of things, for example, for the Spanish language, there are 22 academies in 22 different countries, all making decisions on spanish grammar in their country. I would like to know if there is something that serves the same purpose for the English language.


Method overloading produce java.lang.StackOverflowError

As I know java has method overloading feature, so I am interesting why method annotated as B produce java.lang.StackOverflowError. I think this might be connected to some recursive call, but I did not have any compiler warnings. Can someone explain why I got exception.      public static void main(String[] args) {         Set<Integer> set = getSet(1);     }      //A     private static Set<Integer> getSet(List<Integer> numbers) {         return new HashSet<>(numbers);     }      //B throwing exception     private static Set<Integer> getSet(Integer number) {         return getSet(number);     }


How do I remove an icon from the top panel in GNOME Fallback mode?

When I right click the Filezilla icon, the only options are "launch" and "properties". How do I remove it from the top panel?


Uncountable basis of vector space of infinite sequences in R

How does one go about showing that the dimension of a vector space of infinite sequences is uncountable? My methods was to try and show the existence of an uncountable, linearly independent of sequences which implies that the basis must be uncountable. I have tried the set of following sequences i.e. 1) An = n^r where r is any real number 2) set of convergent sequences. However, I cant seem to show that they are uncountably infinite dimensional. Any tips?  P.S Other solutions are welcomed but i have read other similar posts and do not understand the solutions


Saving changes made to controls on form?

Question  How can I save "settings" so that they can be used again after the application has been closed?  When I say settings I mean different properties of the controls on my form.  What is the easiest and most appropriate method? I've read you can save to the system registry or a xml file?   Background  I have a form that creates a row in a Table that changes depending on what control is set or change.  I would like to be able to save different configurations and display them in a combobox for repeated use.   Example   The end user fill in all textboxs and ticks checkboxes.  They then click add to favourites They add a favourite name and save The save is then permanently visible in the favourites combobox.   My form


What are some good GUI diff and merge applications available for Ubuntu?

What are some alternatives to WinMerge and the pros and cons of each?


Java URL Connection StreamReader issue reading results

When reading the reply after posting information to a webpage I am getting a strange issue. The console prints "success" but the check fails in the code and false is returned at the end instead of true when the check happens.  The php script for the page that this is hitting is as follows:  <?php     echo "success"; ?>   Eventually it will take in posted information, but for right now I just want to use it for my application to see if it can connect to its target.  public static boolean checkConnect(String cURL) {     try{         URLConnection connect = new URL(cURL).openConnection();         connect.setDoOutput(true);         connect.setRequestProperty("Accept-Charset", charset);         connect.setRequestProperty("Content-Type", "application/x-www-form-urlencoded;charset=" + charset);          OutputStreamWriter wr = new OutputStreamWriter(connect.getOutputStream());         wr.write("this is a test");         wr.flush();          // Get the response          BufferedReader rd = new BufferedReader(new InputStreamReader(connect.getInputStream()));          String line;          String results = "";         while ((line = rd.readLine()) != null) {             results += line;         }           //prints "success" to console.         System.out.println(results.trim());          //fails         if (results.trim() =="success")             return true;         wr.close();          rd.close();      } catch (FileNotFoundException e) {         e.printStackTrace();     } catch (MalformedURLException e) {         e.printStackTrace();     } catch (IOException e) {         e.printStackTrace();     }     return false;  }


Javascript is not applied on contents returned through ajax

Javascript: (Send data and will receive json content)  $('#member_group_dropDown').on('change', function () {     var inputData = {};     inputData.groupId = $(this).val();     if (inputData.groupId != "") {         $.post(myProp.base_url + 'folder/class/method', inputData, function (outputData) {                 $('#selected_group').html(outputData.content);                 $('#selected_group').html();         }, 'json');     }     $('#selected_group').html(""); });   PHP: (The content, which I will get it through ajax)  // assign buffering to variable then, send it for display ob_start(); echo form_open(base_url('folder/class/method'), array('method' => 'post', 'id' => 'update_memberGroup_form')); ?>
          permissions<?php echo $memberGroups[0]['group_name']; ?>
 <?php foreach ($member_permissions as $permission) {     ?>
         <label for="<?php echo $permission['name']; ?>" title="<?php echo $permission['description']; ?>"><?php echo $permission['title']; ?>         <?php if ($permission['input_type'] == 'radio'): ?>             <input type="radio" name="<?php echo $permission['name']; ?>" value="1"> yes<input type="radio" name="<?php echo $permission['name']; ?>" value="0">no         <?php else: ?>             <input type="text" name="<?php echo $permission['name']; ?>" class="required" value="">         <?php endif; ?>
     <?php } ?>
     <input type="submit" class="formButton3" value="edit">
 </form>     <?php $content = ob_get_contents(); ob_end_clean(); echo json_encode('content' => $content));   Now, when Apply an event on part of the content which I have received, as follow:  $('#update_memberGroup_form').on('submit', function () {     alert('hi');      return false; });   it is not implemented.


What do you call a graph where you color a grid based on some measure?

I mean something like  showing the frequencies of a user's public contributions on GitHub.    I really like this kind of chart, as I think that they display the intended data in a really nice and easy to see way, but I have no clue what they are called, so I can't look for a library to help me generate them. Can someone tell me the name of this type of graph / chart?


My Maxdata Artist Harvard SL Pro laptop, dating from 1999, has this port on its back side. I have never seen this anywhere else, neither can I identify the little icon to its side. The size of the port is ca. 1×3 cm. What is it?


Is possible to copy only the log of commits to another project with git? What about discarding old changes to decrease the size of the .git folder?

I had many binary files in my git project. Due to this and the changes I have made, I had a huge .git folder. So I would like to create another project without these binary files and keep the logs and dates of all the commits.  I won't need to come back to a previous version of the project. So I don't care if I lose all the changes I've made because I will keep the old project if I need to check anything.  Is possible to achieve this? If not is there a way to decrease the size of the .git folder discarding old changes?


Windows 7 x64 blue screened every few minutes with error code 124, but worked in secure mode.(EDIT: safe mode) I tried reinstalling windows, which didn't work, so i tried to install various Linux systems which also didn't work. the computer freezes most times on installing or gives a detailed erro rmsg like this one (its always the same with CPU bank stuff):    Super detailed system specs:   The only thing that works is a 2013 version of parted magic, a "repair" linux distro. so we could do all sorts of checks!  btw, disabling cpu cores is not possible in bios.  is this just a simple "cpu is damaged" problem? i found the same cpu for 10€ on ebay  EDit:   @secure mode  its actually called safe mode (sry english is not my first language)  @resetting your BIOS settings to defaults?  yes, i tried that, and enabling disabling different features in bios  @other routine checks like running a memory checking tool  i did alot of test from this disc:  i did different memory checks, cpu tests and hdd checks. nothing interesting came out.  @cpufan  idk how to check this as it is a laptop. i can hear a fan and it dosnt crash or burn during "system stability tester" from parted magic. (wich is a program to stresstest cpu by calculating millions of digits of pi) sensors temperature is at 60°C during this stresstest, (65°C max only hit shortly) so i guess its working  @mobo  ill open it up and edit the post (the mainboard has been swapped by lenovo service)


I have downloaded JDK 7u71 with NetBeans 8.0.2 from . I want to know how to install jdk-7u71-nb-8_0_2-linux-i586.sh on ubuntu. Please help.


What is the purpose or message behind the dog figurine that Bond receives?

When Bond is given the  at the end of Skyfall, he smiles as if he understands the meaning of this figurine.  During the movie, we can see the camera focusing on that figurine at least three times:   When we first see M at her desk. After the MI6 explosion on M's desk. When Bond opens the box at the end.   What is the meaning of this figurine, and what is the purpose of giving it to Bond?


! LaTeX Error: Command \textdegree unavailable in encoding OT1

Solution found  Use of \usepackage{textcomp} allows for \textdegree macro, thanks to @Mico.    I use TeXmaker as an editor and I use Mendeley to generate my .bib file. One entry has a degree symbol in the title. Mendeley encodes into UTF-8 and I therefore use   \usepackage[utf8]{inputenc}   however the degree symbols do not seem to work. I have also tried including  \usepackage[T1]{fontenc}   as per some suggestions on the stackexchange and the error changes from OT1 to T1.  How can I get the degree symbol to work? Thanks.    Edit - MWE (which causes the error):  \documentclass[a4paper,12pt]{article}  % Text and Maths \usepackage[utf8]{inputenc}                                 % Input accented characters from keyboard input   %References and page interlinking  \usepackage[numbers,sort&compress,super]{natbib}        % References - [numbers,sort&compress,super] \bibliographystyle{unsrt}                                   % BibStyle - unsrt keeps 1,2,3 instead of 2,1,3 (?)  \usepackage[final]{hyperref}                                    % adds hyper links inside the generated pdf file \hypersetup{ colorlinks=true,                                                    % false: boxed links; true: colored links linkcolor=blue,                                                     % color of internal links citecolor=blue,                                                     % color of links to bibliography filecolor=magenta,                                              % color of file links urlcolor=blue                                                       % colour of url link } \usepackage{cleveref}                                               % Clever ref - loaded AFTER hyperref!  \begin{document}  test \citep{Zimmermann2009}  \bibliography{/Users/me/Documents/library.bib} \end{document}   .bib entry, error caused by degree symbol in title, I believe.  @article{Zimmermann2009, abstract = {An unusual variety of magnetic, magnetoelectric and ferrotoroidic properties was observed in the lithium-orthophosphates LiMPO(4) with M = Fe, Co, Ni by optical second harmonic generation. In spite of a largely similar magnetic and crystallographic structure the compounds exhibit pronounced differences in the topology of antiferromagnetic 180A degrees domains. In LiCoPO(4) the antiferromagnetic domains coexist with ferrotoroidic, i.e., magnetic vortex domains. For LiNiPO(4) it was shown that the weak ferrimagnetic moment of the LiMPO(4) compounds along the spin direction is rigidly coupled to the AFM order parameter so that the sign of the magnetoelectric effect is reversed by a magnetic field only. Further effects of a static magnetic field on the system are discussed.}, author = {Zimmermann, A. S. and {Van Aken}, B. B. and Schmid, H. and Rivera, J. P. and Li, J. and Vaknin, D. and Fiebig, M.}, doi = {10.1140/epjb/e2009-00223-3}, file = {:Users/matt/Documents/Mendeley Desktop/Zimmermann et al. - 2009 - Anisotropy of antiferromagnetic 180° domains in magnetoelectric LiMPO 4 (M = Fe, Co, Ni).pdf:pdf}, isbn = {1434-6028}, issn = {14346028}, journal = {European Physical Journal B}, number = {3}, pages = {355--360}, title = {{Anisotropy of antiferromagnetic 180° domains in magnetoelectric LiMPO 4 (M = Fe, Co, Ni)}}, volume = {71}, year = {2009} }


Hello I am using Ubuntu 20.04 and I am new to it. See the image below:  I can see here a main PPA and an additional main PPA (Source Code). What's the difference between them? Are both required? Thank you.


How can I prove $2^n > n^2 $ by induction using a basis $> 4$

I've been trying to prove this statement by induction; however, in following the steps I normally take I end up utterly stuck. I know that I must be missing something, but I have been stuck on this for a while now and can't seem to figure it out. Does anyone know how I can get to a sum on the RHS of my proof statements? Any other advice on how to find this?  Prove $**2^n > n^2**$ by induction using a basis > 4: Basis: $**n = 5** **2^n > n^2**$                  32 > 25 Assume: $**2^n > n^2**$  Prove:  $**2^(n+1) > (n+1) ^2**$  $**2^{n+1} = 2^n * 2** $    LHS Prove = LHS Assume + Fix  $**2^{n+1} > (n^2) *2**  $   Utilize assumption $**2^{n+1} > 2(n^2)** $      Could utilize assumption again...  $**2^{n+1} > 1(n^2)**  $       ..doesn't seem to help $**2^{n+1} > (n * 1)^2**   $     Basically just$ n^2$


How to find a function where $f$ is differentiable and $f'$ is unbounded

The problem reads as follows:   Find a map $f: [0,1] →ℝ$ such that $f$ is differentiable everywhere but $f'$ is unbounded.   Obviously $f$ is continuous, and $f'$ is unbounded if   $∀M \geq 0 \ ∃x$ such that $|f'(x)|>M$  How would you go about finding this function?


Site selection dropdown is hidden forever on Android app

The site selection component of the app, if you open, and change to a different app without closing the selection then resume the SE app, the selection tool no longer functions and doesn't drop down anymore.  Typing will fix it, but I want to tap the button.    Tested in editing "Your Sites" and writing Meta Stack Exchange question.  Device: Nexus 6 OS: 5.1.1


How can I see the history of stories I've read on Apple News?

Sometimes I'll be interrupted in the middle of reading a story on Apple News and later when I open the app, it didn't save the story I was previously reading. I want to be able to resume reading the article, how can I find it again?


How electric field and magnetic field propagate through vacuum where there's no charge present?

As we know light travels as an electromagnetic wave...but electric fields and magnetic fields are interactions between charges...they are the forces acting on stationary and moving charges respectively. But when there is no charge how can these fields propagate through free space??


I created a planet in blender a while ago, and now i'm interested in adding volumetric clouds instead of using a 2D texture. I considered adding a bump node to my material, but then it would remove the realism in the image.  This is what I've created:    This is the effect I want to create:      Any thoughts?


Can the additional attack action granted by Haste be used to shove a creature?

(PHB p. 195) states:     Using the Attack action, you can make a special melee attack to shove a creature   Can the additional attack action granted by the haste spell also be used to shove a creature?


releasing a second question concerning ordered stuff and set theory, which is very similar to my first question () which I'm putting here for reference.  The next problem that I'm stuck at in my book is this: we have an ordered triple $(a,b,c)$ and we want to define it using set theory. Why would $\{\{ a\} ,\{ a,b\} ,\{ a,b,c\}\}$ not work? The book requires from me to prove why it is not valid.  Additional info: I don't know how this matters but I'm gonna put it up anyhow. It is written within the book that the correct way to show it is $\{\{ a\} ,\{\{ a\} ,\{\{ b\} ,\{ b,c\}\}\}\}$  EDIT: Now, I consider that the correct case should matter. Besides pointing out why the first case is wrong I'm curious as to why the second one is correct


Iterate through Python dictionary by Keys in sorted order

I have a dictionary in Python that looks like this:  D = {1:'a', 5:'b', 2:'a', 7:'a'}   The values of the keys are mostly irrelevant. Is there are way to iterate through the dictionary by keys in numerical order? The keys are all integers.  Instead of saying  for key in D:     # some code...   Can I go through the dictionary keys in the order 1, 2, 5, 7?  Additionally, I cannot use the sort/sorted functions.


The   of  shows that Revision 4 was made by a user who did not yet have full editing privileges. The edit was  by another user with full editing privileges because s/he clicked "improve edit."  Strangely enough, Revision 5 does not appear in the revision history, nor is it displayed on the main post. There isn't even the text saying that an edit was removed during a grace period.  What happened to Revision 5?  Related: , but that is not for an approved edit case.


What does this gray space in my HDD mean?

It seems like there's something taking up a chunk of extra space and I have no clue what it is or how to check.


What is the purpose of using a decision tree?

I don't understand what is the purpose of the decision tree? The way I see it is, it is a series of if-else. Why don't I just use if-else instead of using a decision tree? It is because it decreases the complexity of my code?  I am still spared from calculating entropy and information gain because there are prebuilt algorithms for them where I just plug in the rules right? (Like ID3)  Why do we use it with machine learning now? Because we don't even have to come up with the rules while before we needed to? The machine learns from the training data and based on the attributes it can predict a result?   Does implementing ML in my code decrease overhead more and it makes my code less complex, more effective, faster?


Quote environment with reference at the end right

I want to define a quote environment such that after the quote on the right occurs the author with page number. My solution is yet the redefinition of the quote environment  \usepackage{amsthm} % pushQED, popQED \newenvironment{aquote}[1]{%   \pushQED{#1}%   \begin{quote} }{%   \par\nointerlineskip\noindent\hfill(\popQED)%   \end{quote}% }   with the following result:    The drawback is the parskip in front of the author, which wastes some space in the first quote, but is right in the second one. If I change my command to:  \newenvironment{aquote}[1]{%   \pushQED{#1}%   \begin{quote} }{%   \noindent\hfill(\popQED)%   \end{quote}% }   I get the following result:    Now the placement of the author's name in the first quote is perfect, but in the second quote I want a parskip in front, like in my first example.   How can I find out, whether the line has enough space to put the author without a parskip behind or if there is not enough space to introduce a parskip to put the author on the next line?


Disable iPhone timed auto lock when an app is running?

Is it possible to disable the timed auto lock on an iPhone when a particular app is running?  I use my iPhone as a GPS and I have a dock that attaches it to my bike. When im using the GPS app id like the timed auto lock to be disabled.


cp with a single argument containing wildcards

If I have the following 2 files and 1 folder:  someuser@computer:~/Desktop/test$ ls -l total 340 -rw-r--r-- 1 someuser someuser  45082 ago  5 09:56 file1.pdf -rw-r--r-- 1 someuser someuser 291836 ago  5 09:56 file2.pdf drwxrwxr-x 2 someuser someuser   4096 ago  5 09:56 this_is_a_folder.pdf   And I run the following command (notice that I ommit the destination):  cp *.pdf   file1.pdf and file2.pdf are copied into the this_is_a_folder.pdf folder.  someuser@computer00:~/Desktop/test$ ls this_is_a_folder.pdf/ file1.pdf  file2.pdf   Obviously *.pdf is expanding into matching items, so it's equivalent to  cp file1.pdf file2.pdf this_is_a_folder.pdf   ... and as this_is_a_folder.pdf is a folder, then the two files are copied to it.  Is this a bug ?  It's obviously a side effect of wildcard expansion and it's not what I would expect to happen.  I would have expected a missing destination file error.


Images not showing on homepage after migration

I have a website with one section not displaying images after migration, the src attribute returns empty urls, the site is intpro.co.zw and the section im referring to is on Latest Properties What could be the problem, its only happening on this particular server.  thanks in advance


ValueError: time data '2018-12-22T00:41:30.926932Z' does not match format '%Y-%m-%d %H:%M:%S'

I'm having troubles converting a time string to datetime object: And i know this question has been asked a couple of times but i haven't been able to find a solution for my question.  Here is my code:  order['created'] = 2018-12-22T00:41:30.926932Z created_at = datetime.datetime.strptime(order['created'],'%m/%d/%Y %H:%M:%S.%f').replace(tzinfo=pytz.utc).astimezone(local_tz)   and this is the error message I get     ValueError: time data '2018-12-22T00:41:30.926932Z' does not match   format '%m/%d/%Y %H:%M:%S.%f'


synchronous reset D flip-flop with three inputs

I can't find the schematic of D flip-flop with synchronous reset , that is , D flip-flop with three inputs, D,CLK and reset ; and two outputs ,Q1 and Q2  I only found the schematic with "two"  inputs,D and CLK;or  "four"  inputs, D,CLK,reset and set,from the Internet.  Can anyone help me??please.......


By "sponge" I mean anything used to suck up liquids from surfaces, such as kitchen towels etc. I assume capillary action is a factor, and also maybe surface area and surface energy. What are the factors involved and what makes a good sponge?  In other words, how can one predict the best materials for creating a sponge?


I am almost complete developing a small indie-style multiplayer game. While I intend to allow people to cheat in single-player, this is obviously not acceptable in multi-player. Does anyone know of any ways to help stop the average Joe from using something like Cheat-Engine to modify parts of the game? I currently plan to have the client upload a MD5 hash of each setting file the game uses (stored as an XML) to the game server for verification every few seconds, but is there anything I can do to stop things like memory-editors, etc?


Exception in thread "main" java.lang.NullPointerException 7

(main method calling classes)  import java.io.*;  public class bob { public static void main(String[] args){     new bert();   new larry();       (creates a file and copys string to it)  public class larry{   bert bertObj = new bert();   public larry(){       try{       File file = new File("text.txt");        if(!file.exists())           file.createNewFile();       PrintWriter pw = new PrintWriter(file);       for(String x: bertObj.string){       pw.println(x);       }       pw.close();   }catch(IOException e){       e.printStackTrace();   }   } }       (reads a file and copies it into a string array)       (i havent initialised the string, i think that maybe the error, though i dont know how many values i will be storing inside it so i do not wish to do            String string[] = new String[100] for example.... what else can i do?)  public class bert {   String string[];   public bert(){       BufferedReader br = null;       try{           br = new BufferedReader(new FileReader("C:\\Program Files\\Java\\jdk1.8.0_101\\THIRDPARTYLICENSEREADME.txt"));           int counter = 0;           while((string[counter] = br.readLine()) != null)           {               counter++;           }           for(int x = counter; x < 4000; x++)               string[x] = "";       }catch(IOException e){           e.printStackTrace();       }finally{           try {               br.close();           } catch (IOException e) {               e.printStackTrace();           }       }   } }


VB6 Program Crashing: Part 2. Advice on fixing Access Violation (0xC00000005)

Related to .  Any advice on fixing the problem below?  After a lot of experimentation with the program, I have discovered several things.   It crashes relatively consistently (90% of the time or so) upon running the line of code, Set Message = New CAPICOM.EncryptedData.  Note that the line above this is merely Dim Message As CAPICOM.EncryptedData. The function that makes that call does not crash when called earlier in the program's execution.  Binary search for error does not work to find the problem, since calling the function in some places mysteriously, unreliably prevents the bug from happening.  Sometimes rebuilding the program seems to impact if the bug shows up.  Yes, it is a heisenbug.  The same issues apply with temporal binary search for error.  Spending 5 hours comparing two versions of the program only to discover that both versions have the bug even though only one of them is currently showing the symptoms is not very productive. The crash is due to an access violation 0xC00000005 Running WinDbg (the windows debugger) shows that there is only one line of code which reads this memory location, LoadPicture(szTmpBMP).  It is called at the end of a scary function which grabs the picture out of a resource and sticks it in a temp file.  I was scared enough of this function that, for the sake of testing, I replaced it with a call to LoadPicture("testcra.bmp"), then didn't call the scary resource function for that bitmap.  This did not help.  Removing this call to loadpicture entirely also did not help, though the debugger could no longer find any points where the affected memory was being read, and the affected memory was no longer at the same location.  This testing was done on a VM, so some memory reads are not necessarily going to be visible to the debugger. Everything works perfectly on Vista (both my local machine and a Vista VM).  The access violation only occurs on XP. I'm using VB6 Version 8176, 6.0.8169


A column in the database I work with contains RTF strings, I would like to strip these out using PHP, leaving just the sentence between.  It is a MS SQL database 2005 if I recall correctly.  An example of the kind of strings pulled from the database (need any more let me know, all the rest are similar):  {\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\fnil\fcharset0 Tahoma;}} \viewkind4\uc1\pard\lang1033\f0\fs17 ASSEMBLE COMPONENTS AS DETAILED ON DRAWING.\lang2057\fs17\par  }   I would like this to be stripped to only return:  ASSEMBLE COMPONENTS AS DETAILED ON DRAWING.   Now, I have successfully managed to strip the characters in ASP.NET for a previous project, however I would like to do so using PHP.  Here is the regular expression I used in ASP.NET, which works flawlessly may I add:  "(\{.*\})|}|(\\\S+)"   However when I try to use the same expression in PHP with a preg_replace it does not strip half of the characters.  Any regex gurus out there?


What is the best way to download a list of stack exchange questions for offline browsing?

I have about 600 favorite questions from the stack exchange network that I want to compile into a single pdf to read offline. Clearly clicking on each one is not an option(repetitive tasks may be for some people, not for me).   Has anyone done this before or have ideas about how to go about it? I was thinking maybe WinHttrack might give me an html file with a lot of fiddling of options but I prefer a single pdf with all the questions scrolling linearly.   Has it ever been suggested that this be incorporated into stack exchange, similar to wikipedia's convert to pdf function?  Solution:  After experimenting with many alternatives, the best way to do this is , which I sorted by descending save date for my purposes:  SELECT P.Id AS [Post Link], 'https://math.stackexchange.com/questions/'+ CAST(P.Id AS nvarchar) FROM Votes V, Posts P, Users U, VoteTypes Vt WHERE P.Id = V.PostId AND U.Id = V.UserId AND Vt.Id = V.VoteTypeId AND U.Id = '##UserId##' AND Vt.Id = '5' ORDER BY V.CreationDate DESC   Save the list as a csv file, download , copy the favorites in batches of 100 links (more than that gets you blocked for a period) to chrono. The url field of the new task looks like it accepts only 1 url, but you can paste as many as is needed already separated by new lines from the csv. Open nitro pro, click combine in the ribbon, and drag the files into the list. Right clicking files in explorer and combine with nitro only adds 44 of the files which would require you to select the rest and is error prone. Important you must convert the files to pdf while you are connected to the internet. Chrono doesn't download the images on the website. WinHTTrack does but it got me blocked after only about 10 favorite links downloaded from either google cache or stack exchange. Also, Adobe didn't render the mathjax when I tried it so nitro was a necessity for my pdf conversion. There are many free html to pdf options as well.


Array Index Out Of Bounds Exception error

i try create a window but i got the following error Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 6     at CreateProject.Window.main(Window.java:20)     enter code here  public static void main(String[] args) {     JFrame frame = new JFrame("gtrged");   JLabel[] labels=new JLabel[6];    for (int i=0;i<10;i++)   {         labels[i]=new JLabel("Column" + i);     }    JTextField[] txt = new JTextField[3];   JPanel panel = new JPanel(new GridBagLayout());     GridBagConstraints cst = new GridBagConstraints();     JScrollBar vbar=new JScrollBar(JScrollBar.VERTICAL, 30, 40, 0, 500);     int f=0;      for(int i =0 ; i<6 ;i++)     {          cst.fill = GridBagConstraints.HORIZONTAL;          cst.gridx = 0;          cst.gridy = f;//          cst.gridwidth = 2;             panel.add(labels[i],cst);       for(int j=0 ; j<3 ; j++)           {       f=f+1;                  int ks=0;             cst.fill = GridBagConstraints.HORIZONTAL;             cst.gridx = 0;             cst.gridy = f;//             cst.gridwidth = 2;                 panel.add(txt[ks],cst);              ks++;       }       f=f+1;      }      frame.getContentPane().add(vbar, BorderLayout.EAST);     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     frame.setSize(1300,700);     frame.getContentPane().add(panel);     frame.setVisible(true); }


Getting polygon shapefile node coordinates and point order

I am trying to get the coordinates of each node of a polygon in QGIS. What I basically did is use the following tools:  Vector -> Geometry tools -> Extract nodes  Vector -> Geometry tools -> Export Geometry column  However only around the first 300 points had successfully obtained coordinate values in the new xcoord and ycoord fields. The other three thousand plus points had null values. What can I do to get the other points' coordinates? Also is there an easy way to get the point order of each node?


How do I split a string in c++ without installing additional libraries to standard Ubuntu version?

I'm relatively new at c++ programming so bear with me if I make any common mistakes.  I have a string that looks like this:  String str = "[abc, abcde, lkejs, abde], [123, 456, 7890]"   I wish to store each of those values into a vector such that it looks something like:  abc abcde lkejs abde 123 456 7890   I've read up on and tried using Boost tokenizer but I'm restricted from installing new libraries into the operating system which this code is supposed to be run.  I've also tried strtok() but that just confuses me even further as it converts my entire string into chars.  Looking through  , I probably would be better off using string::find_first_of() but the examples available there aren't doing much in helping me understand how it works.  Can anyone help me understand the syntax of string::find_first_of() better or is there a better way of splitting strings without the need to install additional libraries like boost does?


How can I cite an authors full name (= first name + last name) in biblatex?  @book{Gladwell2005,     author = {Gladwell, Malcolm},     address = {New York, NY},     publisher = {Back Bay Books},     title = {Blink: The Power of Thinking Without Thinking},     year = {2005}, }   I would then like to cite the book with Malcolm Gladwell's full name. So what I'm looking for is some sort of \citefullauthorname macro.


How to run OS X inside VirtualBox inside OS X inside VirtualBox

I want to have the following virtualization configuration:  Real Apple Hardware: MacBook Pro 13" (2014)   VirtualBox     OS X 10.10        VirtualBox           OS X 10.10   Why? A real reason, actually. I want a CI environment that can be run on each individual developer's machine. So that's the first VirtualBox. Within there, I have several iOS apps that I want to compile independently and which talk with each other over TCP/IP.   Normally you can only run one iOS Simulator at a time. There's workarounds, but I'd rather avoid the workarounds and build and compile and run each iOS app in it's own fully isolated OS X virtual machine.  So I'd have one nested OS X 10.10 VM for App A, another for App B, and then as part of CI, App A and App B would talk to each other over TCP/IP.  Found this  which seems to indicate it might not be possible. (Since OS X 10.10 is 64 bit.)  However, I'd love it if someone could prove me wrong.  I don't want to run multiple virtual machines at the root level because I want to be able to take a snapshot of the entire system of running virtual machines.  Note: The linked question is asking about running Bochs nested, which is not the same as running OS X nested.


I am working with a DirectX application which occasionally renders to child windows and I need to access the raw bytes of the rendered image from the HDC of that child window. When I Bitblt from one child window to another window of my own making I get the desired image so I know it is there.  Any ideas on how I should go about this? The image format also has to be 32bit BGRA.  Thanks


How to prove the diagonal subgroup is a normal subgroup implies that group is abelian?

Let $G$ be a group and consider the subgroup $H=\{(g,g)\mid g \in G\}$ of $G\times G$. Show that if $H$ is a normal subgroup of $G\times G$, then $G$ is abelian. (Hint: consider $(a,e) \in  G\times G$ and $(h,h) \in H$.)   I'm not sure how to prove this since $(a,e)(h,h)=(h,h)(a,e)$ isn't implied even if its a normal subgroup. Is there another way to attack this with the hint given?


Very simple tcolorbox with picture in header

I try to add picture.png in header of tcolorbox. I want to place this picture in bottom title belt.   This is my box:  \newtcolorbox{SimpleBox}{   breakable,   enhanced,   colback=red!0!white,   colframe=red!75!black,   title={\large Simple box}, }   How I can add picture.png?   When I add before } line   \hfill\smash{\raisebox{-11pt}{\includegraphics[width=1cm,height=1cm]{picture.png}}}  I achieve errors...


Are there specific technical considerations that would make it detrimental to put your computer in sleep mode every time?

Often I have a lot of stuff open and don't feel like shutting down my laptop, so I just use sleep mode when I'm transferring it. But I have no idea if this might have any disadvantages.  So my question: are there technical considerations that would make it detrimental to put your computer in sleep mode every time?  Associated implications:   Would any such issues be mitigated by turning off my computer every once in a while?  Is continuous use of sleep mode known to slow down a system in any way, and for what technical reason if so?  Is continuous use of sleep mode known to cause any long-term side effects, and for what technical reason if so??   FYI I'm using Windows 7 on a laptop.


TikZ library "calligraphy" doesn't work anymore

after my recent upgrades of miktex (may, 5) the tikz library calligraphy doesn't work anymore. for example, testing of :   \documentclass[tikz,border=10pt,multi]{standalone} \usetikzlibrary{decorations.pathreplacing,calligraphy} \begin{document} \begin{tikzpicture}   \draw[pen colour={red}, decorate, decoration={calligraphic brace, amplitude=6pt}, thick] (0,0) -- (0,3); \end{tikzpicture} \end{document}   which previously works, now gives error:  ! Undefined control sequence. <argument> \g__prg_map_int   l.707 ...igraphy pen copperplate}{\l__cal_tmpa_tl}  ?    forcing compilation gives correct result.  it seems that with this upgrade is introduced a bug. do anyone can help me with workaround?


I would like to have a folder with all my music which is automatically synced on my Android device (Wifi only, plugged in only, like in SugarSync). Is there any hope for this feature to be implemented in the near future.  This would actually make me pay for U1.


How to enter Ubuntu after installing Ubuntu alongside Windows10?

I followed the instructions to install Ubuntu 16.04 alongside my windows 10 PC.         After I finished installation and restarted the computer, it still brings me back to previous page.


Should moderators be allowed to decline flags on their own comments?

I think I just witnessed a moderator decline a flag raised on his own comment. (I'm hesitant to discuss specifics unless I have to, as I don't mean to put anyone in a negative light.)  Since there are at least 2 other moderators per site, I'm not sure this should be allowed—I feel that either   only uninvolved moderator(s) should be able to view and handle flags on co-moderators' posts, or moderators should be able to view all flags, but a flagged moderator should not be allowed to decline a flag against him- or herself.   I have no personal issue with this moderator. I just felt in this case that there was truth in both sides (the moderator's as well as the flagging user's), and sought a win-win solution, i.e. by improving the disputed answer. Coming back an hour later to see that the moderator unilaterally declined the user's flag—that didn't seem fair to the user...  I am making some assumptions based on the "Last Seen" stat in the moderator tools, so if I'm simply mistaken on what happened, I apologize in advance.


Motion tracking is oriented incorrectly; no depth

I took a quick video on my iPhone 4, and tracked it in Blender. It appears to have tracked quite well. Note that I have some tracks in the foreground and some in the background:    However, after solving, Blender seems to think that all the tracks are basically planar, at a roughly fixed distance from the camera:    I used the tripod solve mode, because the camera isn't moving (just panning/rolling) in the shot, as suggested . Is this correct?  I did select the "iPhone 4" preset, but I didn't change any of the other settings.  What can I do to get the scene to be tracked correctly?     Video file: . Blend file (not packed; video not included): .


“In the outskirts” versus “on the outskirts”

Which of the following sentences is correct, and why?     I bought a house in the outskirts of the city.   I bought a house on the outskirts of the city.