body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
I use my phone for communications and work on the go. I use a windows 10 tablet connected to external mouse/keyboard and monitor. Many programs such as email and contacts etc., are duplicated on each hardware. Is it likely to be possible to run Windows 10 in a virtual box on an Android device, - so I can still use the Android phone for communication and emulated Windows 10 with the external monitor/keyboard for desktop use at the same time? Virtual box, I mean something like Oracle’s Virtual Machine which lets you run other operating systems in a window on top of the main operating system. | I would like to run Windows XP as a virtual machine on my Android tablet. Since Android is based on Linux, is it possible to compile VirtualBox to run in Android? If not possible, is it possible to run WinXP as a virtual machine in any way on an Android tablet? |
I was reading a proof that submanifolds $M^d \subset \mathbb R^n$ with $d<n$ has measure zero. In the proof they use the fact: Let $f:U\longrightarrow\mathbb{R}^n$ $\mathcal{C}^1$ where $U$ is an open susbet of $\mathbb{R}^n$, then if $E$ is a borelian of null measure, then $f(E)$ is of null measure too. If I have this result, I know how to conclude. Can you help me showing this lemma? Thank you! Let $B$ be a closed ball of $U$ and $E$ a borelian of null measure, then since $f$ is $\mathcal{C}^1$, there exists a $K>0$, such that $f$ is $K$-lipschitz continuous (by compacity of $B$ and by mean value inequality). We conclude that the image by $f$ of a cube $C$ of measure $\delta>0$ is a set of measure at most $K^n\delta$. For all $\varepsilon>0$, we can cover $E\cap B$ by an union of cube $C$ such that $\lambda_n(C)\leq\varepsilon$. I don't understand this one since we don't think we have compacity of $E\cap B$... I just understood that we can obtain a $f(C)$ arbitrarily small if we take a cube $C$ arbitrarily small. | Why does a Lipschitz function $f:\mathbb{R}^d\to\mathbb{R}^d$ map measure zero sets to measure zero sets? It is easy to prove this statement if the domain is bounded. Is there any way to extend the argument to unbounded domains? Can anyone give me some hint, or show me a simple proof sketch? |
I'm pretty new to java, and my doubly linked list addFront method and addRear method works fine, but only dequeue method doesn't works. In the main method, I making a test to remove front element using dequeueFront ()method, when I remove front element it works, but If I continued removing front element, Exception in thread "main" java.lang.NullPointerException at DoublyLinkedDeque.dequeueFront(DoublyLinkedDeque.java:97) comes out, Line97 is the frontNode.previous=null I just wondering how to remove front element form the double linked list properly. public E dequeueFront() throws NoSuchElementException { if(frontNode!=null) { E frontElement=frontNode.element; frontNode=frontNode.next; frontNode.previous=null; frontNode.next=null; numElement--; if(numElement==0) rearNode=null; return frontElement; } else throw new NoSuchElementException(); } | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
Let $f:\mathbb{C}[x,y] \to \mathbb{C}[t]$ be a homomorphism that is identity on $\mathbb{C}$ and sends $x\to x(t),y \to y(t)$ and such that $x(t),y(t)$ aren't both constant. Prove $\ker(f)$ is a principal ideal. | I have been having trouble with an exercise in my abstract algebra course. It is as follows: Let $f: \mathbb{C}[x,y] \rightarrow \mathbb{C}[t]$ be a homomorphism that is the identity on $\mathbb{C}$ and sends $x$ to $x(t)$ and $y$ to $y(t)$ such that $x(t)$ and $y(t)$ are not both constant. Prove that the kernel of $f$ is a principal ideal. |
I am trying to implement a click tracking on a page with some ajax calls, based on JWPlayer's opensource "Showcase" solution. The page is basically a list of videos, and when clicking to see a video, the bottom video recommendations changes. I have jquery selectors that works just fine, but when the content changes, the clicktracking do not works anymore. My original was to define a function. Calling it immediately for the first time, and then triggering it on click on the current elements + a delay.... but that last one do not works.... Any ideas? var tc_r_clc = function() { // BLOC TEXT $(".jw-card-title").on("click", function () { var v = $(this).closest(".jw-card-title").text(); var y = $(this).closest(".jw-card-title").attr('href'); alert(v + "---" + y); }); }; // FIRST TIME tc_r_clc(); // REFRESH ON CLICKS $(".jw-card-controls, .jw-card-description, .jw-card-title, .jw-button-link").on("click", function () { window.setTimeout(tc_r_clc, 500); }); | I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option. |
Trying to identify a story: I once read an anthologized short story in which a man is scheduled to be executed for a minor offence. I believe the narrative was conducted entirely in letters back and forth between people like his lawyer, relevant authorities, and other such figures. As the situation progresses his fate remains unavoidable for one absurd reason or other (holidays, rules, automatic mechanisms.) Does this ring a bell for anyone? Thanks! | This was a short story told in a series of letters. The protagonist starts by writing a letter to a utility company about an error in his bill. By the last letter he is on death row trying to get his sentence commuted. Each letter is slightly misunderstood. I think it's from the late 60's and may have been in anthology like "Orbit". |
I just made marinara sauce yesterday, sauced some pasta with some and put the rest in a mason jar. How long can I expected this to stay fresh? It's completely sealed-off in a mason jar, I used canned tomatoes and fresh ingredients to make it. Also, was just making some fresh pasta and accidentally pre-heated all of the marinara in the microwave enough that it began steaming: can I seal-off any that I don't use and save for a later date? For reference, Marinara and/or Tomato Sauce is not listed in the "storage guide." | How do I know if a given food or ingredient I have is still good, or if I should discard it? How can I best preserve a food or ingredient? This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed. |
A colleague with Brunei Darussalam passport is flying from Delhi to Manchester and will transit in Brussels fro a few hours? Does he need a transit visa in Brussels? | I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows: Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland |
Can I travel to France & Italy with a valid schengen visa issued for business purpose by Netherlands in an expired passport . Biometrics done in 2018. Visa is valid till 2021 with multiple entry allowed. Now I am travelling to France & Italy with family as a tourist. Is the visa valid for entry into these countries | I'm an Indian National. I have a Type C Schengen Business Visa which is valid from 26-11-2015 to 26-11-2020. I received it when I intended to travel to Netherlands, although I have not used it. When I applied for a spouse endorsement, the passport on which the visa is stamped was cancelled and a new passport was issued. Now, I plan to travel to Italy on business from July 8th to 16th. Can travel with the same visa in old passport, or should I cancel the existing visa and apply for a new one? I contacted the Netherlands Embassy call center (not VFS Netherlands) which responded that I can use it without any issues. However, they have not confirmed it by email. I asked about any immigration issues in Italy and was told me that, if I have a valid itinerary and invitation letter from the office, there should be no problem. I was also told that Italian immigration authorities are able to contact the Dutch, if necessary. I emailed the Italian Embassy in Mumbai ([email protected]) and await its response. |
I am trying to read a line in a file and set a string equal to that and write it to a file FileOut. I am currently reading all lines before this to get to the line needed as follows; FileInputStream TempIn = new FileInputStream(TempOut); BufferedReader br = new BufferedReader(new InputStreamReader(TempIn)); for(int i = 0; i < totalNumberOfCaves+1; i++) { br.readLine(); } String tempRoute = br.readLine(); br.close(); BufferedWriter writeRoute = new BufferedWriter(new FileWriter(FileOut)); writeRoute.write(tempRoute); writeRoute.close(); However I am getting an error staring Exception in thread "main" java.lang.NullPointerException at java.io.Writer.write(Unknown Source) at Dijkstra.main(Dijkstra.java:169) Line 169 relates to the following writeRoute.write(tempRoute); I am unsure as to why I am getting this error, any advice would be appreciated. Thanks. | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
I'm creating some robots for my tank game. I want them to find each other and shoot each other down, so I'm trying to implement a way for them to turn towards each other, and turn the shortest way. For instance, if we where T1 (tank 1), how could I figure out if I where to turn right of left, and at what angle to turn if Tank1 (us) position is (8906,76), facing is 23 degrees. Tank2 (enemy) position is (888,61) 0/360 is straight up. The way I've tried to do is to decide what quadrant the enemy is of myself. But that leaves out a 45 degree angle to fail. I know there is some archtan but I cant simply get a grip on them... | I am working on some movement AI where there are no obstacles and movement is restricted to the XY plane. I am calculating two vectors, v, the facing direction of ship 1, and w, the vector pointing from the position of ship 1 to ship 2. I am then calculating the angle between these two vectors using the formula arccos((v · w) / (|v| · |w|)) The problem I'm having is that arccos only returns values between 0° and 180°. This makes it impossible to determine whether I should turn left or right to face the other ship. Is there a better way to do this? |
Is there an easy way to query MySQL data and convert the data into a PHP data-only object or a PHP assoc array? Are there already exisiting frameworks/libraries that do so? Before everyone jumps to the answer, I have to clarify - NO, I am not talking about MySQLi's fetch_object or fetch_assoc, or anything similar like those. I am talking about querying multiple tables and having the data stored in objects/assoc arrays in a hierarchical way. For example, if I have MySQL tables like the followings: Table `Person` id | name 1 | John 2 | Mary 3 | Sue 4 | Peter 5 | David Table `IsMarriedTo` personId1 | personId2 1 | 2 2 | 1 3 | 5 5 | 3 Table `HasChild` personId1 | personId2 1 | 3 2 | 3 2 | 4 Well, let's say I want to query about John and all his related family members. Ultimately, I would like to have a PHP assoc array like this: $person = array( 'id' => 1, 'name' => 'John', 'IsMarriedTo' => array( array( 'id' => 2, 'name' => 'Mary', 'HasChild' => array( array( 'id' => 3, 'name' => 'Sue', 'IsMarriedTo' => array( array( array( 'id' => 5, 'name' => 'David', 'IsMarriedTo' => array(), 'HasChild' => array() ) ) ), 'HasChild' => array() ), array( 'id' => 4, 'name' => 'Peter', 'IsMarriedTo' => array(), 'HasChild' => array() ) ) ) ), 'HasChild' => array( array( 'id' => 3, 'name' => 'Sue', 'IsMarriedTo' => array( array( array( 'id' => 5, 'name' => 'David', 'IsMarriedTo' => array(), 'HasChild' => array() ) ) ), 'HasChild' => array() ) ) ); If you ask me to write SQL queries for this example, hmmm...yes, I konw how to write them. But I just want to know if there is an easier/non-manual way to query for the data and convert the data into a PHP data-only object or a PHP assoc array. It would be better if there are already exisiting frameworks/libraries that do so. In real world applications, table relationships are not so simple like the example above. Well, database schemas may not be necessarily very complex either, but sometiems, querying for one simple thing will involve too many tables, and manually rebuilding the data object or array in PHP from database data is very repetitive and error-prone. Even if there may not be simple non-manual alternative methods out there for the example above, but sometimes I wonder: do anyone feel and agree that getting database data and rebuilding the PHP objects/arrays is just a repetitive chore? Tens, if not hundreds, of new queries are written everyday. They may be different from one another but their pattern are more or less the same. With PHP and MySQL being such mature technologies for so long, surely there must be some kind of frameworks/libraries that do these kind of repetitive things already. Don't your think so? EDIT Some people has flagged this as duplicate. I am not sure if this question is really a duplicate. May be it is, but still... if you think it is, can you at least be kind and provide some links to other similar questions with answers? Please note that I am not just talking about a problem easily solved by ORMs here though. I am talking about hierarchical data structure on PHP built from multiple database tables.... and there may be access loops involved if not carefully handled. Can ORMs easily tackle this? If so, please show me some light and show me links of other similar questions that have been answered. I am not an expert in ORMs but I really doubt if they can easily handle such. | Is there a good object-relational-mapping library for PHP? I know of /ADO, but they seem to only provide abstraction of differences between database vendors not an actual mapping between the domain model and the relational model. I'm looking for a PHP library that functions similarly to the way does for Java and NHibernate does for .NET. |
Why can't I spoof my wifi card's mac address to 1F:2E:3D:4C:5B:6A. Is that address invalid? | I wonder, why can't I change my mac address by doing this: sudo ifconfig wlan0 down sudo ifconfig wlan0 hw ether 03:a0:04:d3:00:11 The error is SIOCSIFHWADDR: Cannot assign requested address I googled but found nothing valuable. P.S As usual, I can't do this. Nothing works. I took the new mac address which was incremented by 1 from my current one (old 11:11:11:11:11:cf, new 11:11:11:11:11:d0) sudo ifconfig wlan0 down sudo ifconfig wlan0 hw ether 11:11:11:11:11:d0 There was no error, it even connected to wifi automatically after I did this (even though I didn't do sudo ifconfig wlan0 up). I though it won. However, when I did sudo ip addr I've seen the same mac address as it had before. Nothing was changed. |
I'm trying to visualize a table inside a fancyhead. This table has only the yellow central column. The problem is that when I go to compile and open the document with Acrobat DC, I don't see the top line of the cell. This is my markup: \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage[demo]{graphicx} \usepackage[hidelinks]{hyperref} \usepackage{array} \usepackage{lastpage} \usepackage{lipsum} \usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor \usepackage{fancyhdr} \usepackage[hmargin=2cm,top=4cm,headheight=65pt,footskip=65pt]{geometry} \setlength{\parindent}{0.95cm} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhead[CE,CO,LE,LO,RE,RO]{} %% clear out all headers \fancyhead[C]{% \begin{tabular}{|m{3.0cm}|m{10.0cm}|m{2.5cm}|} \hline codice di riparto & \cellcolor{yellow}\centering TITLE \\ vediamo cosa c'è\\ ma poi cosa succede & \centering \tiny{Pag. \thepage\ di \pageref{LastPage}\\ Data: 17/05/2013\\ Rev. 0}\tabularnewline \hline \end{tabular} } \thispagestyle{fancy} \begin{document} %\chapter{Chapter title} %% add this if you want the fancy style also on the first page of a chapter: \section{Section title} \subsection{non lo so} \lipsum[1-10] \end{document} And this is the rendering of the table (wrong): I wonder if I forgot something to define the table, or the color of its cell. | I'm using the xcolor package to colour the top row in a table. This is displayed properly using PDF viewers such as Preview or Skim (Mac). But using Adobe Reader 10.1.3 (either Windows or Mac) doesn't display the table line properly. But removing the colouring for the table fixes it. Here is the example that works as expected: \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline {\bf Test ID } & {\bf Task } & {\bf Expected} & {\bf Actual} & {\bf Outcome} \\ \hline 5.1 & Something & Something & Something & Success \\ \hline 5.2 & Something & Something & Something & Success \\ \hline 5.3 & Something & Something & Something & Success \\ \hline 5.4 & Something & Something & Something & Success \\ \hline \end{tabular} \end{table} And here is the example with a coloured row: \begin{table} \caption{Table showing Feature 5's Functional Tests} \hspace*{-0.5in} \begin{tabular}[h!]{|p{0.6cm}|p{4cm}|p{5cm}|p{4cm}|p{1.5cm}|} \hline \rowcolor{gray!25} {\bf Test ID } & {\bf Task } & {\bf Expected} & {\bf Actual} & {\bf Outcome} \\ \hline 5.1 & Something & Something & Something & Success \\ \hline 5.2 & Something & Something & Something & Success \\ \hline 5.3 & Something & Something & Something & Success \\ \hline 5.4 & Something & Something & Something & Success \\ \hline \end{tabular} \end{table} Removing the \rowcolor{} command replacing it with \cellcolor{} creates the same view. Any idea how to fix this? I've tried printing it out of Adobe and the lines print fine, but as this will be read on as a soft copy it's pretty important. . Any idea how to fix this? |
Hope y'all doing fine, My question may be so lame sorry but wanted to know the answer.. how to root a android device I have mobile of Sony Ericsson Xperia Mini (ST15i) I bought that before 3 years, still use the thing it's still good working condition but on the latest update of the software which it sucked all my internal memory now i have only 100 MB to usable and latest update of Facebook alone is 25 MB + extra data 30 + cache 10 MB and total is 65 MB (rough calculation) so thought of removing the unwanted default apps which came with the update which were uninstallable searched for removing, said that the best bid is to root our device and so can you guys please guide me how to root I checked with SuperOneClick it never worked | I searched it a while and found some articles regarding Xperia Mini X10 also on XDA but I couldn't understand them easily. So I want help from you geeks who can give me the lighted way with simple steps to root my phone. I want a step by step guide about to root this model. I'm a not much familiar with this technology so please guide me through some detailed answer. |
We are under attack since about 2 weeks now and did as much as we can to protect oursefs. mod_reqtimeout is doing the job now but I am confused as what is it that they are hiting I found this post and ran cut -f 2 -d '"' yourweblog.log|cut -f 2 -d ' '|sort|uniq -c|sort -nr|more the result is strange 548308 - 4517 / 31794 http://www.mysite.com/ what is this - ? Traffic tail shows hundreds of 186.153.249.149 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 201.240.116.165 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 201.240.116.165 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 190.42.110.72 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 190.42.110.72 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 190.40.68.68 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 190.40.68.68 - - [12/Aug/2013:16:31:28 -0500] "-" 408 - "-" "-" 186.1.87.251 - - [12/Aug/2013:16:31:29 -0500] "-" 408 - "-" "-" 186.1.87.251 - - [12/Aug/2013:16:31:29 -0500] "-" 408 - "-" "-" 189.252.92.187 - - [12/Aug/2013:16:31:29 -0500] "-" 408 - "-" "-" 189.252.92.187 - - [12/Aug/2013:16:31:29 -0500] "-" 408 - "-" "-" and 408 is mod_reqtimeout dropping them any help is appreciated | This is a about DoS and DDoS mitigation. I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth. Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too! This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own. Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case. It also goes away after a few hours. Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening? Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed. As soon as I started it up again, this happened again and it crashed again. How is that similar, and what can I do about it? |
Prove that there does not exist any holomorphic function $f(z)$, such that $|f(z)| =\frac{K}{\cosh x}$ where $K>0$ is a constant, and $x=Re(z)$. My idea is to use the maximum modulus principle. $|f(z)| =\frac{K}{\cosh x} = \frac{2K}{e^x+e^{-x}} \leq K$. An entire function with bounded modulus must be a constant. This leads to a contradiction. My question is, in my attempt, I assume $f$ to be holomorphic on $\mathbb{C}$. Is it possible to prove the same result when $f$ is holomorphic on $\Omega$ where $\Omega$ is a domain? And is it possible not to use maximum modulus principle? Thank you for any help! | An analytic function $f(z) = f(x+iy)$ in $\mathbb{C}$ cannot have modulus $\frac{A}{\cosh(x)}$ for some constant $A \neq 0$. Can we do so simply using the Cauchy-Riemann Equations? I tried working by contradiction: Say there is such a $f(z)$. Given $f(z) = u(x,y) + i v(x,y)$ is analytic, it satisfies: $u_x = v_y$ and $u_y = -v_x$ We also see that: $$|f(z)|^2 = u(x,y)^2 + v(x,y)^2 = (\frac{A}{\cosh x})^2$$ I tried reaching a contradiction, but seem to be getting lost in a mess of reformulations. My start point is: $$u_x = v_y \text{ and } u_y = -v_x$$ along with $$u(x,y)u_x + v(x,y)v_x = -A^2 \frac{sinh x}{(cosh x )^3}$$ and $$u(x,y)u_y + v(x,y)v_y = 0$$ I would appreciate some hints! |
I'm making brownies for the first time, so I went with cake-like but everyone wants chewy. I agreed but realized it was too late. They're already in the oven, how do I fix it to chewy? | I've tried many different brownie recipes and most of mine bake to a cake-like consistency. The brownie holy grail for me is crusty top chewy brownies. What can I add/remove/do that will make my brownies chewier? |
s is a list of lists of integers with all values initialized to zero. I would like to increment only the first element of the first row by one, but the following command increments the first element of every row by one. How may I achieve this? In [6]: s = [[0]*4]*4 In [7]: s[0][0] += 1 In [8]: s Out[8]: [[1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0]] Okay! Thanks for the advice, the problem was in my construction of s. | I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3 The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]] Then I changed one of the innermost values: my_list[0][0] = 5 Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]] which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it? |
I have a 2D game, with a camera that follows the main player. In the game the camera may also rotate the view around the player / zoom in or out on the player. Let's say I want to add a mini-map to the bottom right of the screen. Is there any way that I can draw the mini-map on the screen so that it is not affected by the camera's zoom / rotation? Is there a way to draw directly to screen coordinates instead of the world coordinates? Or do I have to perform a transform on the mini-map whenever the camera rotates or zooms. Thank you for any help | Hi I am making a 2D game, where the Camera is able to rotate / zoom in or out on the camera focus (the player usually). However my game also contains a mini-map, and so far whenever I have to rotate / zoom my camera the mini-map rotates and zooms accordingly. This behaviour was expected, but now I am a little stuck on "un-doing" the changes the view transformation has on my mini-map. What I want to happen is to essentially keep my mini-map statically in the same position throughout the game no matter how the camera rotates or zooms. I am extremely rusty with my linear algebra / 3D transformations but I have tried the following... My first thought was, I thought all I had to do was to transform the mini-map origin point with the view matrix, then undo the scaling of the zoom against the mini-map width / height. The zooming was fixed, but the mini-map still rotated so this did not work. My second try, I remembered to undo the change of a matrix, I would have to multiply the transform by its inverse. So I tried to calculate the inverse matrix, however the determinant of the view matrix was 0, so I could not find an inverse. Ok... well I guess I'll just see if I can get the rotation down, since I got the zoom to work... So I transformed my mini-map origin by the inverse rotation matrix applied by the view matrix... The mini-map is rotating now, but is not staying in the fixed position I was hoping for. I was wondering, if anyone here can give me a push in the right direction, or a hint towards a more elegant solution overall. If people would like more information I can upload images, show code... But what I wrote above is exactly how my code would look. Thanks for any help! |
When I'm playing Minecraft and try to mine iron ore, it breaks into pieces. But then, there aren't any blocks on the ground to pick up. I don't have any problems with picking up stone blocks and wood, and I can even pick up coal. I am using a pickaxe and I don't have the same problem in my other worlds. Is there a problem with my settings? | I am on Peaceful mode, and I am using a Wooden Pickaxe. Whenever I mine Iron Ore, it just disappears. Am I doing something wrong? |
My four players have decided on the following plan: once a week, they all cut off three pieces of their hair and give it the others. This way, if another character is ever killed, they can pull out the hair to resurrect them. They will use the Raise Dead ritual since they only need an unspecified part of the player to be able to resurrect them. I really really dislike this gamey way of playing, but I could find no reason why this would be against the rules. Am I missing something? | In 4th ed, the Raise Dead ritual specifies that "you must have a part of the corpse of a creature." Is a part removed from a living body considered a part of the corpse once the original body has died? Or does it have to be a part removed once the person is a corpse? For what it's worth I've already made a ruling in my own game. That ruling is "maybe." Because it's a tenuous use of the spell it sometimes works and sometimes doesn't. In the case of a removed finger providing resurrection insurance, I'm going with the caster making a religion check. That value is the percentage of a chance that it'll work. This rewards higher level casters (which is important because it means the players will always be seeking out a better insurance policy), but it's never a sure thing. |
I'm switching from Windows to Ubuntu and I'm quite a beginner in GNU/Linux in general. I download many web pages to consult them offline and I want to hide folders related to them.(the folder containing the images, the CSS, the Javascript...) I know I have to put a period before the folder's name. But when I want to hide this folder then the elements (images, CSS...) aren't shown because the HTML page point to webpage_files/something.css and no .webpage_files/something.css I run on Ubuntu 16.10 and my desktop environment is Cinnamon. Some informations about my Packard Bell laptop: $ uname -a Linux zubuntu 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Thanks. EDIT: I want files to be hidden in the terminal. I already tried the .hidden file trick and it didn't work. EDIT 2: Many users marked my question as duplicate. Are you stupid ? Excuse my language but I posted this question one week ago and all you find to do is mark my question as duplicate ? If you read carefully my question you will see that I want my files hidden in the TERMINAL, not in nautilus. | I'm wondering if it's possible to hide a folder without renaming it with a dot on the Desktop. Ubuntu 12.04 Thanks |
I understand that some isotopes of an element have a shorter half life, and decay more quickly into other elements. Other isotopes are described as stable and no half life is stated. For elements that have a stable isotope, does this isotope still have a half life, just a very long one? Are there isotopes which do not decay spontaneously, or do all isotopes have a half life? | What minimum half-life an isotope should have to be considered stable? |
I've got a job listing running with the standard 30-day term. I'd like to pause the listing for now because we are about to conduct some interviews and are not interested in any further applicants for the time being. Currently there doesn't seem to be a pause option. Is there one? Have I missed it? Can I do something else that is effectively pausing the job listing? | I want to expire a job listing I have on Careers because we are very close to hiring a particular candidate. But if I do expire the job listing, can I republish it without cost should the candidate we intend on hiring not end up actually taking on the position? There are still about 15 days left on the job listing, so I don't want to just lose those 15 days should I republish it later. |
I am trying to open an xterm windows from within a shell script, this script is meant to open an xterm window that stays open with a custom name, This is what i have xterm -e -T "Minecraft Plus" | I find useful the gnome-terminal feature of editing (and creating) profiles with the option of holding the terminal open after the command exists. (I like to use context menu file manager to run commands to display info about a file in a terminal, to show info in a terminal while processing, etc.) I wasn't able to find the same feature in other terminals, so I have to install gnome-terminal even when it's not the default terminal. Are there other terminal emulators with this feature? Is there a command to be used in a given terminal that would have the same effect? I want, with a single line (to be added as context menu entry), to open the terminal, run a command and display info in the terminal window that stays open. Example: in pantheon-files (elementary os) I add a context menu entry for media info using a contractor file with a line like Exec=xterm -hold -e "mediainfo -i %f" (according to a comment below) or Exec=gnome-terminal --window-with-profile=new1 -e "mediainfo -i %f". |
In Software & Updates / Livepatch I get this notification "Livepatch requires an internet connection." with a disabled switch in front of it. I am online so internet connection is up & running. Screenshot Software & Updates: I tried to enable Livepatch by clicking Learn more in the Livepatch tab, got a token from the , entered that in terminal according to the code provided: sudo snap install canonical-livepatch sudo canonical-livepatch enable [insert token here] Then I get this error: *2019/04/20 19:41:37 error executing enable: Livepatchd error: The platform Ubuntu 19.04 is not supported. exiting.* Any idea what's going on here? I thought Livepatch in 19.04. | Last night I thought to check whether Canonical Livepatch service is working fine after upgrading to Ubuntu 18.10 from Ubuntu 18.04. I know it was meaningless since it was working fine in Ubuntu 18.04. But to my surprise when I ran sudo canonical-livepatch status --verbose I got the error: 2018/11/03 23:11:05 error executing status: Livepatchd error: The platform Ubuntu 18.10 is not supported. exiting. I am now confused, is the problem only on my system? OR Is Canonical Livepatch service not supported on Ubuntu 18.10? I would therefore like to request my fellow Ubuntu 18.10 users to do the check and if someone knows the reason/solution please reply to this thread. |
I had a system with AMD 7950 video card installed, than I upgraded the video card to R9 280X and reinstalled the driver to the latest version AMD Catalyst™ 14.1 Beta Driver I did this for reinstall the card config: sudo aticonfig --initial -f --adapter=all but now I still get the old version: aticonfig --odgt --adapter=all Adapter 0 - AMD Radeon HD 7900 Series Sensor 0: Temperature - 29.00 C | I've installed 11.10 and the proprietary ATI drivers using "additional drivers" The performance of my system is absolutely awful and it shouldn't be. I tried to remove the proprietary drivers using the Additional Drivers tool and it appears to remove them. However after I reboot I cant get back into my desktop properly (the panel and launcher go missing). This doesn't seem to be an isolated problem in 11.XX. covers how to restore the desktop (panel and launcher), but the guide doesn't fix my problem though. Whenever I do sudo unity --reset it runs through its normal processes until it hangs at setting update "run_key" and never gets past that. I must reinstall the proprietary drivers using jockey-text or jockey-gtk in order to get back to my proper desktop. Interestingly enough the system performance seems improved while it is in its "broken" state (missing panel and launcher). I think restoring the default drivers may solve my problems but I cant figure out how to do it. |
In my company's Sharepoint website, each user account includes Display Name (LastName, FirstName and Initial). I need a selective View based on the User's name. I'm not using People Picker, so I can't use [Me] for filter by "Created by" or "Modified by". I will have a page where a user may have an approval section, so what I'm looking for is when ever the user appears on the form, display the item as part of the filter view. I'm currently using Sharepoint 2013 soon going to O365 SharePoint. Thank you for your inputs. How can I do this using Javascript | I'm running SharePoint 2013, I would like to have a Current User Filtered View using Javascript. the [Me] would not be feasible because I'm not using the "People Picker" as the field type. I used a text field in 4 different text fields. For instance, Field1_Text, Field2_Text, Field3_Text and Field4_Text can different Users. The form will have four different approval process; however, I would like to display the form whenever one of those text field has the current user listed. The Current User Filter Web Part, only allows for one field to be selected not all four fields, so that approach won't work either. A custom view will be used for the date of the item. For instance, "Created Date" Filter = [Today] + 15. The data would only be displayed if the current user is listed on one of those approval "Text_Field" as noted above and the form was created 15 days from [Today]. But, my main concern is the Javascript aspect. I'm trying to get myself up to speed on the topic. Let me know if there is anything else that I can provide. As far as the .JS code, I'm very limited since I'm trying to read and learn from many of the posting on this site. Thank you. |
Let $a,b,c\geq 0$ s.t. $$(a^2-a+1)(b^2-b+1)(c^2-c+1)=1.$$ I have to prove that $a^2b^2+b^2c^2+a^2c^2\leq 3$. I notice that $(a^3+1)(b^3+1)(c^3+1)=(a+1)(b+1)(c+1)$. The solution from has a mistake. | Let $a, b, c\geq 0$ s.t.$$(a^2-a+1)(b^2-b+1)(c^2-c+1)=1$$ Show that $ a^2b^2+a^2c^2+b^2c^2\leq 3$. My idea: I denote $a+b+c=x$, $ab+bc+ac=y$ and $abc=z$. Then I have $$x^2+y^2+z^2-xy-xz-yz+2z-y-x=0$$ I have to show that $$y^2-2xz\leq 3$$ I tried to prove it with the sign of trinom, but it doesn't work. |
This sounds simple but I want to export all my commands and their outputs/messages from the terminal screen to a text file so that at later point of time I can refer what commands I run along with their outcomes. | I want to create a text file which will add each command I am going to run on the terminal as a new line entry in the text file. i.e., I need to keep a record of what are the things I'm doing in the terminal. Further if I can keep a record of outputs I'm getting in the terminal, along with the inputs in the terminal, as a text file, it will be much better. Each time I forget a command I have to search again in the Internet for the command. Can I can make a file like above? |
I'm an accidental DBA and need help determining a course of action regarding transaction log files on several databases. I ran Brent Ozar's sp_blitz to see what areas of concern there might be on an instance of SQL Server 2012 and one of the things I saw was transaction log files that are bigger than the data file. On one database the data file is at 3.33 GB and the log is 5.19 GB. The others have a ratio that's about the same. The instructions for this scenario indicates that the log file might need to be shrunk, but only if the database is in Full recovery mode. This database is set to Simple recovery. Should I shrink the log files or just leave them alone? Thanks for your time. | This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this: In SQL Server - What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size? |
Ubuntu server 16.04 installed on a virtualbox vm - no Xorg. Trying to change resolution same way as with previous ubuntu versions. in /etc/default/grub: GRUB_GFXMODE=1152x864 GRUB_GFXPAYLOAD=keep ran update-grub as root and rebooted - resolution works during grub menu but as boot continues it reverts to 800x600. I have tried manually setting the grub_gfxpayload value, using keep, using a different resolution, all do the same thing and ONLY on the 16.04 vm that i have. I have a 14.10 vm and these settings work fine (all of them, actually). Also tried vga= (which is deprecated), tried using uvesafb which doesn't launch (modprobe doesn't start it correctly and thus the second step of the answer mentioning it doesn't work), and vesafb which gives me the following error: modprobe FATAL: vesafb not found in /lib/modules/(kernel name)/ I'm wondering if this is an issue with VMs specifically, since I can do this part on my standard computer, which is also running 16.04. Perhaps the drivers for Virtualbox cause the framebuffer to not start properly? Not sure why it'd only be on 16.04 and not previous versions, though. | When my computer goes to console mode (booting up, shutting down or Ctrl + Alt + F1)), the text is super big. I can't take a screenshot of it, but it looks like a 640 x 480 resolution. My monitor normally works at 1440 x 900. I remember that the console text that appeared while installing from the CD was nice and small. How can I make the console text look like it looked while booting from the CD? |
I had installed Photoshop under Playonlinux , but i got a problem with fonts in the dialog; for example when i want to create a new PSD document as shown: I had searched in google for a solution , and i had seen many people said that they resolved the problem by installing Microsoft fonts but i din't find it. | When I install "Installer for Microsoft TrueType core fonts" (ttf-mscorefonts-installer) from the Software Center on 14.04, it gives a positive response--but after this I get a download error. It seems that the files actually providing the fonts are never retrieved. Is there any way to resolve this? |
Hi I am looking to change individual end caps in Illustrator and don't seem to be able to find out how to do it or is it not possible | How could I mix rounded and square caps in one single path in Illustrator? For example, I need to make a rounded cap on the starting point and a square one on its end? See the screen capture underneath. |
If light has mass, it must follow equation $m=\frac{m_0}{1-\frac{v^2}{c^2}}$. Hence must have infinite mass and must have infinite momentum. As we are not killed by the strike of light, so light must have zero mass. If so then light must not experience any force. But it doesn't escape from black hole, means experiencing force. Both the facts are contradictory so what about the mass of light. | I understand that a black hole bends the fabric of space time to a point that no object can escape. I understand that light travels in a straight line along spacetime unless distorted by gravity. If spacetime is being curved by gravity then light should follow that bend in spacetime. In Newton's Law of Universal Gravitation, the mass of both objects must be entered, but photon has no mass, why should a massless photon be affected by gravity in by Newton's equations? What am I missing? |
I am novice, I saw several post saying that for merge you need to select all ( pressing A) and then Control+J but in my case it doesnt work (I think that is because are separated objets) I added a screenshot with better explanation I have downloaded learn to paint it,I need to merge both objects to UV unwrap | I'm creating side skirts for a truck and I am duplicating the frames I want. The problem is it's making the duplicated object into another object. How do I put it into the same one? |
I am a newbie to Ubuntu OS, so don't really have much idea of how things work. Well, m trying to install Cisco Packet Tracer 7.1.1, Now i don't really know how to do that. I have already downloaded Packettracer from the netacad.com. Please if anyone can help me out here. Thanks in Advance. Also need help for installing VMware. | I have downloaded and extracted the packet tracer file, then I used this command as root chmod +x install then I ran (as root) ./install Then I used this command ./set_ptenv.sh but whenever I run this command packettracer it just doesn't start |
I got nothing on Ubuntu snap store by searching "Simple net speed". So, suggest me a speed indicator for 20.04 and how to install it. | I use system monitor with 16.04 in Unity. Currently, I get all the graphs and text indicator for Disk on top panel. I want to have net speed displayed instead of Disk. How can I do that ? |
The question is very basic. Which properties do we want to see in the residuals of a regression and why? To be more specific I mean the empirical residuals not the theoretical. | I had a question about interpreting the graphs generated by plot(lm) in R. I was wondering if you guys could tell me how to interpret the scale-location and leverage-residual plots? Any comments would be appreciated. Assume basic knowledge of statistics, regression and econometrics. |
I'm using 13.10. I want to remove LibreOffice Writer from my "open with..." menu for html, xml and tex documents, because I almost never use writer (except when someone sends my a word document) and I certainly never use it for html, xml or tex. I have found the following related posts: (1) Suggests: Enter the contextual menu of the file and go to the Properties of it. Then, go to Open with tab, right click on the application you want to remove and click on Forget association. However there is no "Forget association option" in properties > Open With (2) In re this solution here is the MimeTypes from /usr/share/applications/libreoffice-writer.desktop: MimeType=application/vnd.oasis.opendocument.text;application/vnd.oasis.opendocument.text-template; application/vnd.oasis.opendocument.text-web;application/vnd.oasis.opendocument.text-master; application/vnd.sun.xml.writer;application/vnd.sun.xml.writer.template; application/vnd.sun.xml.writer.global;application/msword;application/vnd.ms-word; application/x-doc;application/x-hwp;application/rtf;text/rtf; application/vnd.wordperfect;application/wordperfect; application/vnd.lotus-wordpro; application/vnd.openxmlformats-officedocument.wordprocessingml.document; application/vnd.ms-word.document.macroenabled.12; application/vnd.openxmlformats-officedocument.wordprocessingml.template; application/vnd.ms-word.template.macroenabled.12; application/vnd.ms-works;application/vnd.stardivision.writer-global; application/x-extension-txt;application/x-t602; (line breaks added for legibility). I do not know whether "I had to manually change all mentions of userapp-xnview.sh-C2F5D4.desktop to XnView.desktop" in (2) means change in .desktop files (i.e. in my case change contents libreoffice-writer.desktop) or change the name of of the desktop file userapp-xnview.sh-C2F5D4.desktop to XnView.desktop. But, there are no mentions of userapp-xnview.sh-C2F5D4.desktop in libreoffice-writer.desktop nor do I have any userapp-xnview.sh-C2F5D4.desktop in ~/.local/share/applications/mimapps.list or /usr/share/applications. I have not ~/.local/share/applications/defaults.list (should I create one? In which case, what should be its contents; defaults work fine) and here is contents of ~/.local/share/applications/mimapps.list: [Added Associations] application/xml=komodo-edit.desktop; text/html=komodo-edit.desktop; [Default Applications] application/xml=komodo-edit.desktop text/html=komodo-edit.desktop which makes no reference to Writer. I have no /.local/share/applications/libreoffice-writer.desktop file. (3) Consult response to (2). Any suggestions? | I have one problem. Just look at image: So I want to remove one of Dev-C++ IDE and Microsoft Visual Studio Version Selector (I've tried to install Microsoft Visual Studio and it doesn't works,and one of the Dev-C++ IDE too). But I don't know how to change that list. I am using Ubuntu 11.10. |
I have a table and a button that generates a new row for the table. Qty Product name Price Subtotal 1 Product A $50 $50 Here's my jquery code for the add new row button $("#add").click(function() { $("#transactionData > tbody").append($('<tr> <td><input type="number" class="qty" id="qty" value="1" aria-label="Search" class="form-control" style="width: 100px"></td>' + '<td><select class="form-control custom-select" id="productList" name="productList" aria-label="Default select example">' + '<?php foreach ($productList as $prod) : ?>' + '<option value="<?= $prod['productName'] ?>"><?= $prod['productName'] ?> </option>' + '<?php endforeach; ?>' + '</select></td> <td class="price" id="price">20000000</td>' + '<td class="subTotal" id="subTotal">$64.50</td>' + '<td class="project-actions text-left">' + '<a class="btn btn-danger btn-sm" id="deleteButton"><i class="fas fa-minus"></i></a>' )); }); The qty cell is an input that has jquery code that will set value of Subtotal $('.qty').on('input', function() { var price = $(this).closest('tr').find('.price').text(); var subTotal = this.value * price; $(this).closest('tr').find('.subTotal').html(subTotal); }); I already use class selector and $(this).closest('tr') but it wont work on rows that i generated with the button. | I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option. |
I'm a complete newbie and was wondering if I had set up something wrong. I used the 20th Century fox blend and successfully rendered 600 jpg images. Looking good, except that about 30% images have a corrupt T in "Century". I've spent several hours going through about 200 frames trying to smooth the error out with Gimp. Just wondering what cause the fault and if there is any way to correct it a bit quicker.. | I was following on creating a watch and noticed that when I rendered the watch, some pieces were messed up. I'm new to 3D modeling and I've just learned Blender, I can't explain it well, so here's a picture: Other examples: I don't know if it's a problem with my World texture, the object, or the object's texture/material, so I can't even guess how to fix it. What causes this? Is it possible to fix it? |
I constantly hear that websites which are updated frequently do better in terms of SEO, so I was wondering: do blog comments count? I'm guessing they do, since they show that the website still has a 'lifeblood' to it - but I thought it'd be wise to check here first. | I've been trying to answer this question myself by researching and searching on google but I haven't been able to come with a final answer. I have some hypothesis I would like share anyway: The average website intends to reach the higher audience possible. User generated content by comments is an efficient way of increasing the relevance and the valuable information of the average website. Indexing comments will make any site attractive to spammers. Indexing comments is more convenient for new/low-traffic websites than it is for old/high-traffic websites. The web in general is currently choosing not to index comments in the average website because of fear to the SPAMMERS. The average author of a content-valuable comment would like his comment to be indexed Not indexing comments discourages the creation of content-valuable comments. So, what do you think finally? Is it positive or negative for the average website to allow search engines to index user comments? Why? |
If temperature is just the average kinetic energy of particles, why would moving air feel colder rather than warmer? | So I asked my science teacher how wind could feel colder than normal air when the particles would be moving faster than normal air particles, meaning that they would have more kinetic energy and a higher temperature. My teacher told me that the faster rate of particles hitting your body would mean that the heat would leave faster than in normal air, but I was confused as to why they would take energy. Eventually, I figured out that the air particles have kinetic energy separate from their velocity and my teacher confirmed this. He also confirmed that the particles would vibrate in place while they are moving. How is this possible, and how does the vibration dictate the heat transferred, and not the velocity? |
Making a RPS game for a school assignment import random #player score p1 = 0 p2 = 0 #add score def AddScore(a,c): print(a + " +1") if c == "hum": p1+=1 else: p2+=1 #gets player choices while p1 < 3 or p2 < 3: print("Rock, Paper, Scissors, Shoot!") a = int(input("Rock, Paper or Scissors? (1, 2, 3):")) b = random.randint(1,3) if a == b: print("Draw!") elif a > b and a != 1: AddScore("Human", "hum") elif a == 1 and b == 3: AddScore("Human", "hum") elif b > a and b != 1: AddScore("Computer", "comp") elif a == b and a == 3: AddScore("Computer", "comp") print(p1) print(p2) returns error on lines 9 and 21: UnboundLocalError: local variable 'p1' referenced before assignment | The following code works as expected in both Python 2.5 and 3.0: a, b, c = (1, 2, 3) print(a, b, c) def test(): print(a) print(b) print(c) # (A) #c+=1 # (B) test() However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons: Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error? The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists. Could someone please explain this behavior? |
It surprises me when I hear someone using "do" in situations where I think it is unnecessary, as in these two examples. I do need help. I do have the strings. Are these correct? Does this 'do' make any difference to the sentences I would expect to see here? I need help. I have the strings. | This morning I read this sentence (see ): On July 24th and again on July 29th, Egyptian police did shoot dead unarmed African migrants attempting to cross that border. Why "did shoot" and not "shot"? |
I have a flight with 3 stops, the last one in Atlanta, before I arrive at México. I was planning to stay a couple days in Atlanta, so I won't use the last connection. Since the cost to change the ticket is expensive I would rather to buy a new ticket just from USA to Mexico. My question is, should I notify to the airline about this? Immigration in USA could see this action like suspicious? | Say I want to book a flight from Fort Lauderdale to Chicago. Say the airline also flies to St. Louis from Fort Launderdale but has a connecting flight through Chicago. If I book that flights from FLL->ORD->STL and just get off in Chicago, what possible problems can I run into, assuming I didn't check any bags and only have carry on? This scenario exist for Southwest, but I wanted this be more of a general question that would apply to all airlines. |
I am upgrading my bike which is exciting but I can't spend too much. Do I sacrifice carbon for aluminum if that gives me the option to go full suspension. Do I go for a solid carbon hardtail that may sacrifice some of the trail comfort for the durability. How much of an advantage is the full suspension over hardtail if you can only buy one for $1500? | I'm considering buying a mountain bike and have narrowed it down to two models (make and model aren't important for this question). One model is a full suspension bike (front and back), the other is front suspension only. What are the advantages/disadvantages to going with a full suspension vs front suspension? (I'd prefer answers from people with experience riding both types of bikes.) EDIT To answer some of the questions looking for more detail... The 2 bikes are roughly in the same price range, around $1000 USD (the full suspension is slightly more money), and my plans are to ride it primarily in some single track trails that are in the area. There will be a lot of hills and rocks and such. I doubt there will be any on-road riding involved. |
I'm the developer for a small online webstore. We've just moved a subsection of products (the bodyboarding products), off surfhq.co.uk on to bodyboardhq.co.uk to sell them there instead. We didn't want to sell on both stores as search engines don't like duplicate pages - and domain2.co.uk has much better seo for bodyboarding - the site has been run as an active blog for sometime - we've only just added the cart. My question is, should I be using a 301 redirect on the old product pages (sending users to the new pages on domain2.co.uk), or should I just serve up a 404 not found? Google search currently lists a lot of broken links (I've gone down the 404 route for fear that permanent redirects will result in one of our sites being penalised). EDIT My question is not answered where the 301 is to the home page and the products have been deleted. My products have been moved to another domain (the 301 would be to the product on the new domain). Also I'm concerned with the SEO effect on both domains. | I know this question is someway similar to where they recommend using 404, but after reading where they suggest to use 301 when changing site URLs (in the specific case was due to redesign/re factoring) I get a bit of confused and I hope someone could clarify for this specific example: Let's say I have an eCommerce site, let's also say the final user inserted some interesting items in the site and the eCommerce webapp created the item pages at the URLs: http://...?id=20, http://...?id=30 etc. Now let's say some of these interesting items got many external links toward them from many other sites because some people found those items very interesting and linked to them. After some years the final user deletes those items, so obviously the pages and URLs http://...?id=20, http://...?id=30, etc. now do not exist anymore, but still many pages on the web are linking toward them. What should the eCommerce site do now, just show a 404 page for those items? But, I'm confused, wouldn't this lose all the Google PR passed by the external links to the items pages? So isn't it better to use 301 redirect to HOME PAGE that at least passes the PR to the HOME PAGE? EDIT: Well, according to answers the best thing to do so far is to do a 404/410. In order to make this question more complete, I would like to talk about a special case, just to make sure I understood. properly. Let's say the user creates those items again (the ones he previously deleted at point 4), maybe he changes a bit their names and description, but they are basically the same items. The webapp has no way to know these new added items were the old items so it obviously create them as new items with new URLs http://...?id=100, http://...?id=101, does it makes sense at this point to redirect 301 the old urls to the new ones? ANOTHER EDIT (It would be VERY IMPORTANT TO UNDERSTAND): Well according to the clever answers received so far it seems for the special case, explained in my last EDIT, I could use 301, since it's something of not deceptive cause basically the new pages is a replacement for the old page in term of contents. This is basically done to keep the PR passed from external link and also for better user experience. But beside the user experience, that is debatable (*1), in order to preserve PR from external broken links why not just always use 301, In my understanding Google dislikes duplicated contents, but are we sure that 301 redirect to HOME PAGE is seen as duplicated contents for Google?! Google itself so if they consider 301 as duplicated contents wouldn't that be considered duplicated contents too? Why do they suggest it? Let me provoke you: “why not just add a 301 to HOME PAGE for every not found page?” (*1) as a user, when I follow a broken URL from some external link to some website's page I would stick more on this website if I get redirected to HOME PAGE rather than seeing a 404 page where I would think the website does not even exist anymore and maybe I don't even try to go to HOME PAGE of the website. |
I am trying to fit multivariate regression models to my data; however, I get singularity warnings. Please find a part of my data below: Cat_1 <- c("LP", "LP", "LP", "LP", "GR", "GR", "GR", "LD", "LD", "LD", "LD", "LD", "LD", "TE", "TE", "TE", "TE", "TE", "NI", NA, NA, NA, NA, NA, NA, "CA", "CA", "JO", "CA", "CA", "TI", "PR", "TI", "TI", "AQ", "TI", "AQ", "TI", "KI", "AT", "AT", "SA", "SA", "SA", "SA", "SA", "SA", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", NA, NA, NA, "TS", "TS", "GE", "PR", "PR", "PR", "PR", "PR", "PR", "PR", "PR", "PR") Cat_2 <- c("CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CR", "CY", "CY", "CY", "CY", "CY", "EG", "GR", "GR", "GR", "IT", "IT", "IT", "IT", "IT", "IT", "IT", "IT", "SP", "SP", "SP", "SP", "SP", "SP", "SP", "SP", "TN", "TN", "TN", "TN", "TN", "TN", "TN", "TN", "TN", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "TR", "GR", "SP", "SP", "SP", "SP", "SP", "SP", "SP", "SP", "SP") Cat_3 <- c("EX", "EX", "EX", "EX", "PE", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "DR", "DR", "DR", "DR", "DR", "PE", "EX", "EX", "EX", NA, NA, NA, "PE", "PE", "PE", "PE", "PE", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "DR", "DR", "DR", "DR", "DR", "DR", "DR", "DR", "DR", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "DR", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX", "EX") Cont_1 <- c(0.00, 0.00, 0.00, 0.00, 22.00, 22.00, 22.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 27.00, 27.00, 27.00, 27.00, 27.00, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 55.00, 55.00, 55.00, 55.00, 55.00, 55.00, 55.00, 55.00, 33.78, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 45.00, 50.00, 50.00, 50.00, 20.00, 20.00, 48.00, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78, 33.78) Response <- c(0.3474338, 0.3459840, 0.3459840, 0.3516871, 0.4205923, 0.4055125, 0.4175813, 0.6818209, 0.6857756, NA, NA, NA, NA, 0.5174143, 0.3546506, 0.5418190, 0.6052847, 0.5385959, 0.3295108, 0.5209747, 0.5199027, 0.5209747, 0.4618320, 0.6849975, 0.4132942, 0.3019946, 0.3281736, NA, NA, NA, 0.3865485, 0.4562354, 0.4198557, 0.3209418, 0.2956085, 0.3920888, NA, NA, 0.4949614, 0.4949614, 0.4949614, 0.5185092, 0.5185092, 0.5185092, 0.5185092, 0.5185092, NA, 0.7081736, 0.7081736, 0.7081736, 0.7174453, 0.7174453, 0.7174453, 0.6790109, 0.6790109, 0.6790109, 0.7050356, 0.7050356, 0.7050356, 0.6922349, 0.6922349, 0.6922349, 0.6922349, 0.6922349, 0.6922349, NA, NA, NA, 0.6265795, 0.6265795, 0.4186085, 0.6110061, 0.6288103, 0.5619780, 0.5793262, 0.6648705, 0.4948839, 0.5891485, 0.5565717, 0.5347567) myData <- data.frame(Cat_1, Cat_2, Cat_3, Cont_1, Response) When I try to fit: lm(Response ~ Cat_1 + Cat_2, data = myData) or lm(Response ~ Cat_1 + Cont_1, data = myData) I get singularity warnings. Why do singularities happen and how I can overcome this issue? I would appreciate any help or advice. Thanks, | I get the above warning in Stata when I run a (clustered-panel pseudo-Poisson ML gravity-) regression. Observations are pairs of countries and the regression includes dummies for each combination of country and year (2005-2012) as well as a lagged variable of one continuous independent variable. If I drop either the set of dummies or the lagged variable, it works fine. But of course I'd like the dummies AND the lag to be in that regression... Can anyone tell me what causes that warning and how I can work around it? Results can be found here: (note: I am aware that the dependent should not be logged) |
Let $V$ be an infinite-dimensional $K$-Vector Space and $f_1, f_2, \dots, f_n, g \in V^*:=\operatorname{Hom}_K(V, K)$. Proof the following statement: (i) $g\in L(f_1, f_2, \dots, f_n) \Leftrightarrow \bigcap _{i=1}^{n}\ker(f_i) \subseteq \ker(g)$. The proof for a finite $V$ already exists. Now what if $dim(V)=∞$? | Here is the statement : Let $E$ a finite $\mathbb{K}$-vectorial space and $\phi_1, \ldots, \phi_p, \psi$ a collection of linear forms on $E$ such that : $\bigcap \limits_{i=1}^p\ker(\phi_i)\subset \ker(\psi)$. Then $\psi \in \operatorname{span}\{\phi_1,\ldots, \phi_p\}$. The suggestion is to make an induction on $p\ge 1$ (I already know that this method is not the fastest way) : For $p=1$ then $\ker(\phi_1)\subset \ker(\psi)$. If $\phi_1 \equiv 0$ then $\ker(\phi_1)=E$ so $\psi \equiv 0$ and the statement is true. If not, we have the fact that $\phi_1$ and $\psi$ are linearly dependent so $\psi \in \operatorname{span} \{\phi_1\}$ and the statement is also true. Now we want to check the statement for $p+1$. We suppose $\bigcap \limits_{i=1}^{p+1}\ker(\phi_i)\subset \ker(\psi)$ and we want to prove that $\psi \in \operatorname{span}\{\phi_1,\ldots, \phi_{p+1}\}$. If all the linear forms are null then $\psi \equiv 0$ and the statement is true. If not, we have $\bigcap \limits_{i=1}^{p+1}\ker(\phi_i)\subset \bigcap \limits_{i=1}^p \ker(\phi_i) \subset \ker(\psi)$ so by the induction's hypothesis, $\psi \in \operatorname{span}\{\phi_1,\ldots, \phi_p\}$. Moreover (not sure) $\ker(\phi_{p+1})\subset \ker(\psi)$ so $\psi \in \operatorname{span} \{\phi_{p+1}\}$. Then I'm stuck... Thanks in advance |
I read part of this when I was 12 or 13ish about the 1997 time frame and it was not new. I'm pretty sure it was pollen that caused the feral behavior (behavior returned to normal afterwards). Orgies were involved. If i remember correctly hard cover had a lunar eclipse on it. | I'm trying to figure out the title of a series I read when I was younger. As far as I can remember, it started with a spaceship crashing on a planet in book 1. Some plants on that planet had weird effects on the people of the ship, not sure what kind though. All of the books afterwards are set centuries or even millennia later, about the rebuilt civilization where "magic" or some kind of powers were around. I'll update if I remember anything more specific. |
Let $I$ be an index set, $\{Y_i: i \in I\}$ a collection of random variables on $(\Omega, \mathcal{F}, \mathbb{P})$ and $\{X_n : n \in \mathbb{N} \}$ a countable collection of random variables on $(\Omega, \mathcal{F}, \mathbb{P})$. In my understanding, given $Y_i: \Omega \to \mathbb{R}$, $\sigma(Y_i) = \{ Y^{-1}(B): B \in \mathcal{B}(\mathbb{R})\}$ is the smallest $\sigma$-algebra on $\Omega$ such that $Y_i$ is a random variable. However, an exercise asks me to prove that \begin{align} \sigma\{Y_i: i \in I\} = \sigma\{ Y_i^{-1}(B): i \in I, B \in \mathcal{B}(\mathbb{R})\}, \end{align} which is (according to me) trivial. Is this true? | Im doing a course on measure theory and I'm stuck on one of the exercises. Take $\{Y_{\gamma}:\gamma \in C\}$ as an arbitrary collection of random variables and $\{X_{n}: n \in N\}$ to be a countable collection of random variables I now want to show that $$\sigma \{Y_{\gamma} : \gamma \in C\}=\sigma\{Y^{-1}_{\gamma}(B): \gamma \in C, B \in Borel\}$$ So i need to show that both $\sigma \{Y_{\gamma} : \gamma \in C\}\subset\sigma\{Y^{-1}_{\gamma}(B): \gamma \in C, B \in Borel\}$ and $\sigma\{Y^{-1}_{\gamma}(B): \gamma \in C, B \in Borel\}\subset\sigma \{Y_{\gamma} : \gamma \in C\}$ hold. I know that for a single random variable X you have $\sigma(X)=\{X^{-1}(B): B \in Borel\}$. How do I expand this for the collection of random variables? I then also have to show that if $Fn=\sigma\{X_{1},...,X_{n}\}$ and $A=\cup_{n=1}^{\infty}F_{n}$ then $$\sigma(A)=\sigma\{X_{n}: n \in N\}$$ Can anyone help me with this? |
Let $(G,*)$ be a finite semigroup with identity. Prove that $G$ is a group iff $G$ has only one element $a$ such that $a^2=a$. For the right direction, since $G$ is a group with identity, then there exists $a=e_G$ i.e. $a^2 = a$. Isn't it? For the left direction, what should I do? | Let $G$ be a finite semi-group with identity such that it has only one idempotent.Is $G$ a group? It only remains to show that for any $a\in G$ $\exists b\in G$ such that $ab=ba=e$ where $e$ is the identity of $G$ Also $e$ is the only idempotent of $G$ .How to proceed next? |
I am using Quickblox sdk to integrate chat into my app. I have created the Quickblox Session and also logged in user into "Chat Service". But, when I try to send a message to the "Recipent" the application crashes, throwing following exception: Attempt to invoke virtual method 'void com.quickblox.chat.QBAbstractChat.sendMessage(com.quickblox.chat.model.QBChatMessage)' on a null object reference Given below is my code: QBChatMessage chatMessage = new QBChatMessage(); chatMessage.setBody(strMsg); chatMessage.setProperty(PROPERTY_SAVE_TO_HISTORY, "1"); chatMessage.setDateSent(System.currentTimeMillis() / 1000); chatMessage.setMarkable(true); try { qbChatDialog.sendMessage(chatMessage); } catch (Exception e) { e.printStackTrace(); } | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
I cannot seem to get this proof right, which is to show that roots common to $z^{m}-1=0$ and $z^{n}-1=0$ where $\gcd(m,n)=d$ is given only by all the roots of the equation $z^{d}-1=0$. For starters, if we let $m=d\lambda_{1}$ and $n=d\lambda_{2}$, where $\lambda_{1}, \lambda_{2}\in\mathbb{Z}^{+}$, then $z^{d\lambda_{1}}=1$ holds, and so does $z^{d\lambda_{2}}=1$. I do not know how to formalize this. Any hints are appreciated. Thanks. | For all $a, m, n \in \mathbb{Z}^+$, $$\gcd(a^n - 1, a^m - 1) = a^{\gcd(n, m)} - 1$$ |
Show that for every prime number $p$: $$|\{1\leq x \leq p^2 : p^2 | (x^{p-1}-1) \}|=p-1$$ I'm not really sure how to approach this, any ideas? | Let $p$ be a prime number. Show that the congruence $x^{p-1} \equiv 1 \pmod {p^2}$ has precisely $p-1$ solutions modulo $p^2$ I know the statment above is true for modulo $p$, but how is this imply to modulo $p^2$ |
I am working on some review problems right now and am extremely stuck on how to solve problem - any help would be so appreciated. We are told to consider the following combinatorial problem: Unit Intersection: Let X = {1, 2,...,n}. Given a family of subsets $S_1,...,S_m$ of X, determine whether there is a subset T of X such that for all i,|T ∩ $S_i$| = 1 ? I am then trying to prove that Unit Intersection is NP-complete using a reduction from Exactly-One-3SAT. In the Exactly-One-3SAT problem, we are given a 3CNF formula, and need to decide whether there is an assignment to the variables such that every clause contains exactly one true literal. In a 3CNF formula, every clause has at most three literals. A clause in a 3CNF formula may contain repeated literals. I've been working for hours trying to find a way to solve this problem, but am so stuck right now. Thank you in advance for any help. | I am extremely stuck on how to go about this problem and any help would be so appreciated. We are told to consider the following combinatorial problem: Unit Intersection: Let X = {1, 2,...,n}. Given a family of subsets $S_1,...,S_m$ of X, determine whether there is a subset T of X such that for all i,|T ∩ $S_i$| = 1 ? I am then trying to prove that Unit Intersection is NP-complete using a reduction from Exactly-One-3SAT. In the Exactly-One-3SAT problem, we are given a 3CNF formula, and need to decide whether there is an assignment to the variables such that every clause contains exactly one true literal. In a 3CNF formula, every clause has at most three literals. A clause in a 3CNF formula may contain repeated literals. I've been working for hours trying to find a way to even start this problem, but am so stuck right now. Thank you in advance for any help. |
I have the following code: import bge from bge import logic def property(cont): own = cont.owner if 'Recoil_Level' in own and 'Section' in own: level = own['Recoil_Level'] sec = own['Recoil_Section'] else: print('Missing properties in object') return if (level >= 0) and (level <= 0.5): own['Recoil_Section'] = 1 if (level > 0.5) and (level <= 2.9): own['Recoil_Section'] = 2 if (level > 2.9) and (level <= 4.9): own['Recoil_Section'] = 3 if (level > 4.9) and (level <= 9.9): own['Recoil_Section'] = 4 if (level > 9.9) and (level <= 19.9): own['Recoil_Section'] = 5 if (level > 19.9): own['Recoil_Section'] = 6 cont = logic.getCurrentController() property(cont) Everytime I run this script, the console says the following "No module named 'bge'," why is this happening and how can I fix it? Any help is appreciated. Thanks! | I am trying to go trough a simple Blender tutorial in which I need to use module Rasterizer. Unfortunately my Blender has no such module. As far as I know Blender has its own Python so there should be no collision with other EDIT: Yes, question concerns BGE. As fas as I saw I have none of the modules that should be in Blender: no bge for example. I dont think there is need to get the link to the tutorial, as Blender Python console simply states that script failed, and the script is: import Rasterizer or import bge both fail. EDIT2: I have downloaded a new version of Blender 2.68a. When it starts writes: found bundled python. I have for example bpy module but no bge module. It seems I have absolutely no Game Engine module. What a pity! :( |
What I want to do is to access a web page that has some elements displayed in a grid and some buttons that implement the filtering functionality. The problem is that when I get the list of elements and try to inspect their properties, the error "The Element is not Attached to the DOM" is thrown every time. Nothing that I have tried seems to work. What I noticed though was that after applying a filter, the grid with objects reloads with the filtered results and this may cause the error. How I can get rid of this error? This is the code that I have (I am using Page Objects): // field container containing all the elements @FindBy(id = "MainContent_dtUnitsRepeaterDesktop") private WebElement gridContent; @FindBy(css = "div.sizes") private List<WebElement> unitSizes; //method returning the list of web elements that hold the text I need public List<WebElement> getUnitSizes() { List<WebElement> units = gridContent.findElements(By.cssSelector("div.sizes")); driverWaitObject.until(ExpectedConditions.visibilityOfAllElements(units)); return units; } //method that is extracting the text from each web element public List<String> checkElementResults(List<WebElement> elemList) { for (WebElement elem: elemList) { unitType.add(elem.getText()); } return unitType; } // method to check and return public List<String> checkElementSizeResults() { return facilityPageObject.checkElementResults(facilityPageObject.getUnitSizes()); } As far as I have noticed the call that generated this error is at line "unitType.add(elem.getText());" Any suggestions would be welcome (I am a beginner of Selenium WebDriver automation). | I am using Selenium 2/WebDriver for automation. I have a table and am trying to select a row in it. When the test runs, I can see the row become highlighted as if it is clicked, but then immediately I get the "org.openqa.selenium.StaleElementReferenceException: Element is no longer attached to the DOM" error and the test fails. The code is the following: @Test public void rowSelection() throws Exception { SeleniumHelper helper = new SeleniumHelper(); action = new SeleniumActionHelper(driver); helper.login(); String testUrl = navigateToUrl("option/listOptions.xhtml"); driver.get(testUrl); WebElement table = findElementById("tableSection:dataTableWrapped_data"); List<WebElement> allRows = table.findElements(By.tagName("tr")); for (WebElement row : allRows) { List<WebElement> cells = row.findElements(By.tagName("td")); for (WebElement cell : cells) { WebElement listName = cell.findElement(By.xpath("./* [text()='body_build']")); listName.click(); } } } I have put a Thread.sleep(2000) in front and after the listName.click() action, but neither has helped. Any help would be greatly appreciated. |
Is there any way to alterate weak interaction and thus the rate of beta decay by making it slower or faster? If yes, how? Would radiating some extra bosons or neutrinos, perhaps in a focused beam, change the rate somehow? | Is there a way to extend or reduce the half-life of a radioactive object? Perhaps by subjecting it to more radiation or some other method. |
Can anyone please tell me How can I show the icon in the middle of the image left and right side? I tried many solutions but they not worked. .slide { display: inline-block; font-size: 16px; line-height: 20px; padding: 7px 4px; margin: 5px; cursor: pointer; height: 32px; width: 32px; background-color: #2874f0; border-radius: 50%; color: #fff; text-align: center; } .image { height: auto; width: auto; max-height: 350px; max-width: 100%; display: block; margin: 0 auto; } <div style="width:100%" (click)="open_slider()"> <a class="slide">></a> <img style="" src="https://www.vsss.co.in/Admin/uploads/472075/POLAN.jpg"> <a class="slide"><</a> </div> | I have a div with two images and an h1. All of them need to be vertically aligned within the div, next to each other. One of the images needs to be absolute positioned within the div. What is the CSS needed for this to work on all common browsers? <div id="header"> <img src=".." ></img> <h1>testing...</h1> <img src="..."></img> </div> |
Is it possible to boot Ubuntu from USB and have it store the changes to settings, created files and installed apps in an enrypted file located on the HDD that is mounted at boot? If so will the process impair bootup speed much? The goal would be maximum security if you make the USB read-only and the peristent store is encrypted. | If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about. I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install. To do this, I need to install the nVidia drivers first (sigh). To do this, I need changes to persist a reboot. To do this, I need to really install Ubuntu on a USB key. How do you do that? What I tried I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu: sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso ...but the installer didn't detect the disk properly. |
Let $f:[a,b]\to \mathbb{R}$ be twice-differentiable (i.e. $f'$ and $f''$ exist) on $[a,b]$ and $f'(a)=f'(b)=0$. Prove that there exists $c \in (a,b)$ such that $4\cdot|f(b)-f(a)|/(b-a)^2 \leq |f''(c)|$. I guess the prove uses the mean value theorem but I cannot figure out how. | Let ${\rm f}:\left[a, b\right]\to\mathbb{R}$ be twice differentiable, and suppose $$\lim_{x\to a^{+}} \frac{{\rm f}\left(x\right) - {\rm f}\left(a\right)}{x - a} = \lim_{x\to b^{-}}\frac{{\rm f}\left(x\right) - {\rm f}\left(b\right)}{x - b} =0 $$ Show that there exists $\xi \in \left(a, b\right)$ such that $\displaystyle{% \left\vert\vphantom{\Large A}\,{\rm f}''\left(\xi\right)\right\vert \geq \frac{4\left\vert\vphantom{\Large A}% \,{\rm f}\left(a\right) - {\rm f}\left(b\right)\right\vert} {\left(b - a\right)^{2}}}$. I don't know how to start. Any hints ?. |
After turning my laptop on, this message appeared and I tried all the ways that are told on the internet but didn’t worked:( My laptop has AMD Vega graphics. Please tell me the solution step by step as simple as possible, thanks in advance! | dev/sda1: clean, 552599/6111232 files, 7119295/24414464 blocks After I turn on my laptop this message appears. The system never boots, the message just stays there. |
I received a email saying that I would need to check again within 12 hours. However when I check my ETA status at I got this: You have a current ETA to travel to Australia. The Australian Electronic Travel Authority System has reported the following data and conditions apply to your ETA: Expiry Date 05 JUN 2013 Period of Stay 3 Months Number of Entries Multiple Employment Conditions Employment Prohibited The Expiry Date of the ETA is the latest date on which you may enter Australia with this ETA. The Period of Stay is the longest time you may spend in Australia on any one visit. The Number of Entries is the number of times you may enter Australia with this ETA. Am I approved or not? | I would like to know is my visa application being approved or not I receive an email saying I need to check on eta.immi.gov.au after 12 hours but after I check in I just received this only : Reference number expire date 5 April 2017 period stay 3 months entries multiple visa condition NO WORK- business visitor activity only that's all so how do I know if this application is approved or not? Can someone assist me? |
I've seen a few cases of processes that don't respond to kill -9. Most recently, I've seen both lsusb and reaper get stuck and be unresponsive to kill -9. (After trying all the usual signals first) How do I tell Linux to kill the process no matter what? | I have a process I can't kill with kill -9 <pid>. What's the problem in such a case, especially since I am the owner of that process. I thought nothing could evade that kill option. |
Search for tag doesn't work in mobile web. I.e. entering tag name and then Enter on on-screen keyboard does nothing: | I want to filter questions based on some tag that I enter in the search bar in the Tag section of the mobile version of Stack Overflow. But when I write my tag name inside the search bar & hit enter, it does nothing. I tried entering the tag names inside square brackets as well but still nothing happens. At first I thought the problem would be with my browser so I switched to Google Chrome mobile version and guess what? It doesn't work there either. Why doesn't it work? is this some kind of known bug? Browsers tested on: Uc & Chrome My Phone: Lenovo p2 Os: Android 7 |
I am finding difficulty in constructing a proof as requested in the following: Let $F$ be a subfield of the complex numbers and let $T$, $D$ be the transformations on $F[x]$ defined by $$ T \left( \sum_{i=0}^n c_i x^i \right) = \sum_{i=0}^n \frac{c_i}{1+i} x^{i+1}$$ and $$ D \left( \sum_{i=0}^n c_i x^i \right) = \sum_{i=1}^n i c_i x^{i-1}.$$ I am asked to show that $DT = I$, where $I$ is the identity. (Please note the indices on the above sums.) Clearly, $T$ and $D$ correspond to integration and differentiation, respectively. I felt that this proof should be straightforward, but I'm not able to get it quite right. Here is what I have: $$ \begin{align} (DT)\left(\sum_{i=0}^n c_i x^i \right) &= D \left(\sum_{i=0}^n \frac{c_i}{1+i} x^{i+1} \right) \\ &= \sum_{i=1}^n c_i x^i \end{align} $$ This uses the definitions of the operators, as given. However, the lower index in the last sum is $i= 1$, which is one higher than the $i=0$ in the original sum that $DT$ was applied to; in loose wording, the constants are gone (i.e., we integrated and then differentiated but the constants in the original expression are now gone). The value of this lower bound makes sense because of the $c^{i-1}$ term; if $i$ can be zero, we would have $x^{-1}$, which is not defined in this contact. To me, resolving this seems impossible, based on the definition of the operator $D$ as given in the text; no matter what the train of logic is, I do not see a way for the lower bound of the final index to be zero, which seems to me to be necessary in order to conclude that $DT =I$. I do not see how to get around this in order to complete this proof. Where is my error? A comment on my question suggests that we can simply index the aforementioned sum from $i=0$ since $ic_ix^{i-1}$ can be taken to have value zero for $i = 0$. However, the second part of this exercise asks to show that $TD \neq I$, which does seem to rely on the indices of the sums in the given definitions. Where is the subtlety here? This is Exercise 9 in Section 3.7 of Linear Algebra by Hoffman and Kunze. | I have a homework problem from Hoffman and Kunze's Linear Algebra. Let F be a subfield of $\mathbb{C}$ and let $T$, $D$ be the transformations of $F[x]$ defined by $$\begin{align} T\left(\sum_{i=0}^n{c_ix^i}\right) &=\sum_{i=0}^n\frac{c_i}{i+1}x^{i+1} \\ D\left(\sum_{i=0}^n{c_ix^i}\right) &=\sum_{i=1}^nic_ix^{i-1} \end{align}$$ These look like the anti-derivative and derivative operators. I am to show that $DT=I$ but $TD\neq I$. So, $$DT\left(\sum_{i=0}^n{c_ix^i}\right)=D\left(\sum_{i=0}^n\frac{c_i}{i+1}x^{i+1}\right)=\sum_{i=1}^n{(i+1)}\frac{c_i}{i+1}x^{i+1-1}=\sum_{i=1}^n{c_ix^i}.$$ It is close, but my index is off by 1, and so they can't be equal since I am missing my constant term. What am I missing? Do I need to rewrite the argument in the derivative operator before I operate? |
I am new to blender and am trying to make a gemstone. I already have it modeled and am on to texturing but the tutorial I found uses a glass bsdf but I don't have one in my add node selection. I tried googleing it but all I found were more tutorials. Do I need to turn something on or download it? Thanks in advance. | I have been following tutorial until I started adding nodes. The problem is that he has completely different nodes than I have. Even nodes that are created at start are different (I have Material and Output and he has Render Layers and Composite). Have I missed something or should I use different nodes than he? |
My applications requires to iterate over a vector and delete certain elements which doesnt satisfy the requirements. Which is the most correct way? I believe the following way is incorrect.Reason: I am getting segmentation fault. std::vector<ObjectX> vec1; //Fill in vec1 std::vector<ObjectX>::iterator itVec1 = vec1.begin(); for(;itVec1 != vec1.end(); ++itVec1) { if (Oracle(*itVec1)) vec1.erase(itVec1); } | I want to clear a element from a vector using the erase method. But the problem here is that the element is not guaranteed to occur only once in the vector. It may be present multiple times and I need to clear all of them. My code is something like this: void erase(std::vector<int>& myNumbers_in, int number_in) { std::vector<int>::iterator iter = myNumbers_in.begin(); std::vector<int>::iterator endIter = myNumbers_in.end(); for(; iter != endIter; ++iter) { if(*iter == number_in) { myNumbers_in.erase(iter); } } } int main(int argc, char* argv[]) { std::vector<int> myNmbers; for(int i = 0; i < 2; ++i) { myNmbers.push_back(i); myNmbers.push_back(i); } erase(myNmbers, 1); return 0; } This code obviously crashes because I am changing the end of the vector while iterating through it. What is the best way to achieve this? I.e. is there any way to do this without iterating through the vector multiple times or creating one more copy of the vector? |
I'm new to programming and so I bought a book to help me learn C++, in the book it asks me to do a practice assignment where I must create a program that allows me to take input of multiple usernames and passwords, match them, and also allow someone who incorrectly enters information to try entering it again. I've wrote the following program in order to do so. If anyone can also shed any light on how to make the program allow for retry of username/password entry without ending the program that would also be greatly appreciated. Thank you! #include <iostream> #include <string> using namespace std; int main() { string username1="Varun"; string username2="Agne"; string username3="Geetha"; string username4="Mohan"; //Usernames for accounts string pass1="PassworD"; string pass2="PASSWORD"; //Passwords for accounts string pass3="password"; string pass4="Password"; string Uattempt; //User input for username string Pattempt; //User input for password cout << "Please enter your username.\n"; cin >> Uattempt; cout << "Please enter your password \n"; //Asks for username and password entry by user cin >> Pattempt; if(Uattempt!=username1 || username2 || username3 || username4) { cout << "Access Denied. Incorrect username or password. Please retry.\n"; //If username does not match possible entries, program will ask to retry } if(Pattempt !=(pass1||pass2)&&(pass3||pass4) { cout << "Access Denied. Incorrect username or password. Please retry.\n"; //If password does not match possible entries, program will ask to retry } if (Uattempt&&Pattempt==username1&&pass1||username2&&pass2||username3&&pass3||username4&&pass4) { cout << "Access Granted. Welcome " + <<Uattempt<< + ".\n"; } else { return 0; } } | This question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written C++ book. It is way too big and complex for doing this. In fact, it is so big and complex, that there are very many very bad C++ books out there. And we are not talking about bad style, but things like sporting glaringly obvious factual errors and promoting abysmally bad programming styles. Please edit the accepted answer to provide quality books and an approximate skill level — preferably after discussing your addition in . (The regulars might mercilessly undo your work if they disagree with a recommendation.) Add a short blurb/description about each book that you have personally read/benefited from. Feel free to debate quality, headings, etc. Books that meet the criteria will be added to the list. Books that have reviews by the Association of C and C++ Users (ACCU) have links to the review. *Note: FAQs and other resources can be found in the and under . |
I have currently installed Ubuntu to my laptop as a partition since I will start using it for work. I actually prefer Ubuntu as my main OS, so I will just keep Windows for irrelevant things as games and programs as Office packages and Photoshop. This is the distribution I currently have for my partitions: Windows OS (195GB) - ntfs Ubuntu OS (180GB) - ext4 /home directory for Ubuntu (25GB) - ext4 Shared data partition for both OS (75GB) - ntfs In a first instance I tried to keep the /home directory partition as the one which will be used as the shared data, but I found out that Windows does not allow to write on ext4 partitions on a native way and some problematics programs or not immediate solutions had to be used. For these reason, I created another partition with ntfs extension in order to share my programming projects and other stuff between both operative systems. This is later mounted on Ubuntu on /media/data/ on start and accessed by symbolic links I created on my /home directory. As far as I have been testing, the implementation works fine and I have not experience any problem opening files in both OS, but I am not sure if this solution is an advisable one or if it may lead to possible future problems or losses of information. Is there any risk on this implementation greater than the one I would have on a default one? Otherwise, do you recommend me to perform any changes or to implement the partitions in any other way? | I have a 500GB SSD in which i would like to have both Windows and Ubuntu. My plan is to have something similar to this: Windows 8.1 and ubuntu 14.04 Uefi boot an efi partition (created by windows installer) which will have Grub as bootloader 150GB ntfs for Windows 15GB ext4 for Ubuntu (root) 35GB ext4 for Ubuntu (home) ~8-16GB swap for Ubuntu (I have 16GB RAM) ~284-292GB ntfs for Data shared for both Windows and Ubuntu My current setup is 200GB ntfs Windows 300GB ntfs for Data I plan to shrink both the Windows and the data partiton in order to achieve my desired plan. My questions: Does the order of partitions matter? Does it matter if the ubuntu partitions are not at the end/beggining of the drive? Does the swap partition behaves better if its the last/first partition? Can I use the shared NTFS Data partition between windows and ubuntu without encountering problems? Do I have enough space for my ubuntu /home partition (thinking that I'll have access to the ntfs shared partition)? Edit: Laptop, Asus N56jr, i7, 16Gb Ram, SSD samsung 850 evo 500gb Windows 8.1 and Ubuntu 14.04 |
I do want to order CTP by year. I have a taxonomy called 'annee' (year), and a CTP called 'moto' (motorbike). Issue is, when im trying to order by the taxonomy, it's ordering only by taxonomy ID, and not by Taxonomy Value. Do you have any solution ? if ( is_post_type_archive( 'motos' ) ) { $query->set( 'posts_per_archive_page', 24 ); $query->set( 'order', 'DESC' ); $query->set( 'orderby', 'meta_value_num' ); $query->set( 'meta_key', 'annee' ); return; } Thank you. | My question is simple, I'm using WP_Query to retrieve some custom type posts filtering by a taxonomy using tax_query. Now my problem is I would like to orderby the taxonomy, but from documentation and searching on the web I can't find a solution. The orderby in WP_Query lets you order by a bunch of fields even custom meta fields but it doesn't seem to support taxonomy. Any pointers in the right direction? Thank you all. |
For my thesis I'm doing a factorial Mixed ANOVA in which I look at gender differences. As it's a mixed ANOVA, everyone goes through the same conditions. The problem however is that I have 10 men and 26 women in my sample. Therefore the groups that I compare when looking at gender, aren't equal. I was wondering if there was a specific test I could do to calculate how problematic this difference in gender ratio is and if there is a test I could do to make up for this discrepancy? | If you have unequal sample sizes in cells, then the order in which you enter model terms changes your results for sequential or Type I SS. The first variable to enter the model is allocated its unique variance plus the variance shared by the second variable, then the second variable gets only its unique variance. If you have two predictor variables, say whether you get a drug or placebo and whether you think you get a drug or placebo, and you want to look at their relationship to some symptom, and you want to ignore the effect of knowing whether you got the drug, because all you are really interested in is the relationship between getting the drug and the symptom, then which predictor variable would enter into the model first? I have been reading answers to questions on this site, and sometimes people are told to enter what is thought to be the most important variable first, but then in ANCOVA situations they are told to enter the covariate first. Is this contradictory advice, or is the covariate really the most important variable? Additionally, would an ANCOVA always use Type I SS? Thanks for your help. |
I noticed today (and either did not notice yesterday or it was not happening yesterday) that when I'm reviewing close votes on StackOverflow and I toggle open the section to see more information about what people have voted for this question previously, I see: off-topic: Questions asking us to <b>recommend or find a tool, library or favorite off-site resource</b> are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, <a href="http://meta.stackexchange.com/q/139399/">describe the problem</a> and what has been done so far to solve it.).AsHtml() Where I expect this text to be unescaped so that it renders as HTML. The .AsHtml() at the end makes it look like something isn't being closed somewhere. | I was reviewing in the close votes when I clicked the "more" link for the specific close reason. I saw the following: As you can see, the markup is not rendering. There's also a call to .AsHtml() in there which is obviously not markup. Browser is chrome 31.0.1650.63 |
I have a problems with wp_editor() . Somewhere in my plugin, i want to dynamically add fields some are basic input, and there is also an editor. I use ajax to add these fields, and all is going as planned except for the editor fields throwing the error : "Uncaught TypeError: Cannot read property 'canvas' of undefined" Is there any specific way dealing with wp_editor in ajax request or am i missing something ? php side : add_action( 'wp_ajax_add_new_proposition_callback', array(&$this, 'add_new_proposition_callback') ); public function poll_manage() { $nb_prop = 0; <form method="post"> <div class="meta-box-sortables ui-sortable" id="propositionlist"> </div> <input type="button" value="Ajouter une proposition" class="button" id="addnewprop" /> <input type="hidden" name="nbprop" id="nbprop" value="<?php echo ($nb_prop+1) ?>" /> </form> } public function add_new_proposition_callback() { $prop_id = isset($_POST['prop_id']) ? (int)$_POST['prop_id'] : 1; echo '<div class="postbox propositionx" id="propositionx-'.$prop_id.'"> <h3 class="collapseh" id="p'.$prop_id.'"><span class="collapsiblespan handle"></span>'.$prop_id.' : New proposition</h3> <div class="collapsediv" id="eltac'.$prop_id.'"> <div class="formelt"><label for="propo'.$prop_id.'">Proposition</label> <input type="text" id="propo'.$prop_id.'" name="propo'.$prop_id.'" class="thepropo" size="60" value="" /></div> <div class="formelt"><label for="descrq'.$prop_id.'">Description</label>'; wp_editor( '', 'descrq'.$prop_id, array('teeny'=>true, 'editor_class'=>'thepropoc') ); echo $content.'</div> <div class="formelt">Answer <ul><li><label><input type="radio" class="open" name="open'.$prop_id.'" value="1" /> yes</label></li> <li><label><input type="radio" class="open" name="open'.$prop_id.'" value="0" /> no</label></li> </ul></div> </div><!-- .collapsediv --> </div><!-- .propositionx --> '; die(); } js side : ... $('#addnewprop').click(function(){ var params = { "action": "add_new_proposition_callback",//callback function "prop_id": $('#nbprop').val() }; $.ajax({ data: params, type: 'POST', url: php_data.ajax_url, success: function(data, status) { onSuccessAddNewProposition(data); } }); }); function onSuccessAddNewProposition(data){ $('#propositionlist').append(data);//append proposition $('#nbprop').val(parseInt($('#nbprop').val())+1);//update proposition count } Thanks in advance PS: I'm using WP 3.8.2 | Does anyone know how o load wp_editor via AJAX in WordPress? My markup and editor is getting loaded properly but editor controls are not getting loaded properly, it may be because Javascript is not running in AJAX call. Any help would be appreciated. |
I have a strange problem. Today I moved a site from staging to production and the site work fine but I cannot se the images. I can see in ftp the picture but drupal do not serve it in the page. I already tryed to clear cache. In the reports log I there is a lot of Unable to generate the derived image located at public://styles/ensemble-small/public/anne ristorcelli s.png. errors but I do not understand what I can do. The GD tookit works fine.. I checked it. I tryed to re-upload some images but do not work and I can't see they in the editing page too. Can someone help me to solve this? UPDATE: I tryed to delete the images generaten in the staging server to verify the correct working of the images modules. The images was ok. So the problem is in server request? If I try to see the image directly I have this error: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. | Today I uploaded my site to the server, and I get errors like the following: Unable to generate the derived image located at public://styles/sponsor_image/public/TerraThermaSponsorLogo.png. Image styles cannot generate images. I have tried to set permissions on styles/* folders with chmod -R 775 styles/, and even tried chmod -R 777 styles/. The folder's owner is OK. I don't get what can be wrong. The directory associated with public:// is sites/default/files, and it is OK. |
I was watching some videos on algebra and found someone said that $$ \frac{1}{\sqrt 2} $$ $$= \frac {\sqrt 2}{2} $$ Can someone explain this to me please? | How $\frac{1}{\sqrt{2}}$ can be equal to $\frac{\sqrt{2}}{2}$? I got answer $\frac{1}{\sqrt{2}}$, but the real answer is $\frac{\sqrt{2}}{2}$. Anyway, calculator for both answers return same numbers. |
Let's say I have a character who has Booming Blade and is a level 3 Sorcerer, and level 2 Fighter, would that still count as having levelled Booming Blade? Or do I need the Sorcerer class to reach level 5? | Cantrips seem to be the only type of spell that cares only about your class level. However, in the multiclassing section they are not mentioned, does this mean that cantrips use your character level, instead of your class level? Does this mean a Warlock 2 / Fighter 15 can cast an Eldritch Blast with 4 beams just like a level 17 Warlock? |
What are the differences between morals and ethics? Are morals standards of behaviour that everybody in a certain group can agree on or is that an ethical code of behaviour? To the Vikings doing the 'right' thing might have been participating in the tradition of finding other villages and ransacking and stealing. This was part of their ethical code of behaviour. Could it be said to be immoral or amoral? | I am currently writing an essay on artificial moral agents, and I need to explain the difference between ethics and morals. However, I am finding it really hard to find a good book or research paper which contains a citable definition. Could someone point me in the right direction? |
I'm looking to raise my blinds every morning using an rpi/Arduino and a motor. The blinds are lifted by a cord that loops near the bottom. I've checked that the cord requires about 20N force to pull down, and the gear turning the cord loop at bottom will have a diameter of 6 cm. Which motor should I buy? Min torque needed ~ 20*3 = 60 Ncm. Min speed ~ 20 rpm | So I'm trying to do some insane home DIY with my room blinds. I'm trying to make them adjust (go up and down) automatically. Now for this, obviously, I will need a motor. The blinds I'm working with don't require much strength to pull down, but a fair bit to pull them up (using the little string/cord), So I'll need something fairly powerful, but slow. I'm taking a look at a few gear motors on site, but I have no idea which one would be right to use for this kind of task. Could anyone help me out? |
I am looking to create terrain hillshading for my maps that contain a small region of the US. I intend to show about eight to ten states at a time (at about ~1:5,000,000 scale). It has been some time since I created a map, but if I recall correctly, I believe the options are to either use imagery or a DEM. Either way I still face a problem: The raster data I have found (Natural Earth) is not of sufficient quality. I cannot find a bulk download option anywhere for open source DEM data or imagery such as the SRTM. An example of the what I am trying to accomplish is below (source: ) | USGS has been moving towards serving data through . They have several WMServices through their website that serve elevation data to the public (hillshade & DEM). The problem is that geoprocessing tools in ArcToolbox won't accept these layers as inputs. Where can I download (free) DEM gis data that I can use in analysis? I'm specifically interested in the 1/3 arc second (~10m) or the 1 arc second (~30m) data. Currently I'm going through the USGS NED Tile download tool, which has ~4 files per county. My areas of interest cover about 50 counties -- I don't see myself manually downloading these files one by one. |
When I run my latex the document is set, but it takes a long time and I have lots of warnings like this: Overfull \hbox (4.0pt too wide) has occurred while \output is active What does this mean? | I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean? |
I have two div that each of them has an image and a caption. I want image center vertically or fill div element without stretching or Any unusual resizing. I searched and use any suggestion Like - and answers of some questions in stackoverflow, but none worked. I want use and display this elements responsive I use this pictures for test: .border_slide { overflow: hidden; } .other_titles { margin-top: 5px; height: 120px; } .other_titles div { width:49.5%; margin-bottom: 5px; } .other_titles_cap { position: absolute; z-index: 100; width:100%; background-color: rgba(69,69,69,0.4); height: 70px; margin-top: 80px; transition: all 0.3s ease 0s; } /*.other_titles_cap:hover { margin-top: 0; height: 150px; }*/ .title2 { height: 150px; background-color: #9bfff0; /*margin-left: 15px;*/ float: right; } .title2 img { margin-top: 0; transition: all 0.4s ease 0s; } .title2:hover .other_titles_cap { margin-top: 0; height: 150px; } .title2:hover img { width: 115% !important; opacity: 0.8; transform:translate(7%,-10%); -ms-transform:translate(7%,-10%); } .title3 { height: 150px; background-color: #ffd5c4; float: left; } .title3 img { /* transform: translate(7%,-10%); */ -ms-transform:translate(7%,-10%); margin-top: 0; transition: all 0.4s ease 0s; } .title3:hover .other_titles_cap { margin-top: 0; height: 150px; } .title3:hover img { width: 115% !important; opacity: 0.8; transform:translate(7%,-10%); -ms-transform:translate(7%,-10%); } <div class="other_titles"> <div class="border_slide title2"> <div class="other_titles_cap">title of Post2</div> <img class="" src="https://i.stack.imgur.com/k6HuQ.jpg" style="width:100%"> </div> <div class="border_slide title3"> <div class="other_titles_cap">title of Post3</div> <img class="" src="https://i.stack.imgur.com/90ten.jpg" style="width:100%"> </div> </div> I Mostly need this for responsive mode in width size below 520px. You can test this here: | I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support. <body> <div>Div to be aligned vertically</div> </body> How can I center a div vertically in all major browsers, including Internet Explorer 6? |
While trying to install Netbeans 8.0 in my Ubuntu 14.04 I get the following error: Can`t initialize UI Running in headless mode Exception: java.awt.HeadlessException thrown from the UncaughtExceptionHandler in thread "main" I have previously installed openjdk 7 and yet it's not working for some reason. | I used NetBeans for Java development on Windows and remember finding it in the Ubuntu Software Center on Natty, but now it's gone. Is there a PPA I can use or will it be re-added to the official repos? |
I remember a short I saw on TV many years ago about time as a continuum, I think a train? there were men who fixed things that were out of place. It was an explanation of why you would think your glasses were on the table. They would not be there but when you went back, they were there. The invisible workers were supposed to always be ready to have everything in place. A woman was planning to dust a high bookcase, so they sprinkled dust on it right before she dusted. I think she ends up accidentally seeing one of the time fixers. I always think of this story when I am missing something and then it shows up. Can anyone help? | I'm trying to find an episode from what I think is a sci-fi TV series produced sometime in the 80s or 90s. In the episode, a man and another character(s) finds himself stuck in the interval between two seconds. In that interval, he witnesses a crew of workers whose job it is to destroy the "old" second (everything in it; house, yard, the rest of the world) and build a near duplicate of the upcoming second. The man is discovered by this "time construction crew" and is told that since he's seen the truth about this in-between time world, he can never return to his time. He will simply disappear. He manages to hide at the last minute and the time crew has run out of time to catch him. The "real" world catches up as the next "second" ticks into place. I thought this might have been an Amazing Stories episode but upon reviewing summaries of those two seasons, I don't think I saw it there. Does anyone know this episode and series? There were other good episodes in this Twilight Zone-like series. |
[![enter image description here][2]][2] How I do I fix those strange patches? I tried hours of subdividing areas and such but to no luck.. Is there a simple fix? Could someone people help, I'd be glad to share the Blender file I just really need to get this finished as soon as possible. Blender file, would be amazing if you could help :) | While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered. The blackening effect is visible in the viewport too. How can I solve this problem? |
That is $$ f(f(z)) = \sin z $$ where $$ z \in \mathbb{Z} $$ | Find all (if that's possible) functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(f(x))=\sin x.$$ This is a problem a friend gave me. He said he saw it on a book a long time ago, but he couldn't remember what book. I literally have no idea how to solve this so I can't post my attempt here. |
I have found some cheap flights from London to Tokyo on Google Flights which I plan to purchase. However, the flight has a layover - the legs are London to Moscow, then Moscow to Tokyo. I thought that, rather than spend 4 hours in a Moscow airport, perhaps I could try purchasing my flights separately to allow a whole day in Moscow, and I'll spend a night exploring the city. However, when I search on the same dates for Moscow to Tokyo, I find that that leg of the flight by itself is far more expensive than buying the combined flight to from London to Tokyo. Is there a reason for this? Is there a convenient way to find flights which purposefully extend layovers for a day or so? | Based on the question , I got curious. Is there a guide or resource that describes how the price of a ticket is determined? When you search you often see curious effects like cheaper tickets for a flight from A to B with a layover compared to a direct flight. This seems counter-intuitive from an outsider's perspective since you fly twice. Also one way tickets more expensive than 2 ways. It can be a short set of rules. Something that helps someone to get started with finding good prices. I know these can be very complex and they probably change over time and over airline interests but there is probably a simplified set of rules that can be enunciated. |
I can't make a screencast. The options in my login screen didn't work so I edited /etc/gdm3/custom.conf by deleting the # before WaylandEnable=false using terminal, and saved the file. The error remains, even after restarting my laptop. When I press Ctrl+Alt+Shift+R to start recording what is on my screen it just open this link and NO recording. When I use the VLC App to record my screen it gives me this error Your input can't be opened: VLC is unable to open the MRL 'screen://'. Check the log for details. | After upgrading to Ubuntu 17.10 I noticed some of my screencasting applications are not working, for example screencasting tools like SimpleScreenRecorder and vokoscreen. () Also I noticed features like screenshot from GIMP is not working properly, producing blank screenshots (). Shutter too is producing glitchy screenshots (). Screen-sharing option on Skype is also not working (). The issue occurs sometimes on later Ubuntu releases too. Why is this happening and how do I fix this? |
How would you unit test the nested function f1() in the following example? def f(): def f1(): return 1 return 2 Or should functions that need testing not be nested? | I come from the Java world, where you can hide variables and functions and then run unit tests against them using reflection. I have used nested functions to hide implementation details of my classes so that only the public API is visible. I am trying to write unit tests against these nested functions to make sure that I don't break them as I develop. I have tried calling one of the nested functions like: def outer(): def inner(): pass outer.inner() which results in the error message: AttributeError: 'function' object has no attribute 'inner' Is there a way for me to write unit tests against these nested functions? If not, is there a way to trigger the name munging for function names like you can for class variables by prefixing them with __? |
For a foreigner, the usage of 'In + time' and 'after + time' are kind of confusing.. The system will be turned off in 5 minutes. The system will be turned off after 5 minutes. I'm confused because many translations in my language are just the same. Based on my research and study, 1) is right. But I want to make sure. In a dictionary, IN means after a particular length of time. (F.Y.I) I want to mean that... like... the system will be turned off when 1min, 2min, 3min, 4min...has elapsed and (finally) 5min ! = the system shutdowns. And if possible, could you explain what the difference is between them? | The class will be over in 10 minutes. The class will be over after 10 minutes. I know the first is correct but why? |
I have an old U.S. passport in my maiden name and valid Indian tourist visa. I have now new U.S. passport with my new name. Can I travel with both passports and name change certificate and be okay? or do I have to obtain a transfer of visa? | I have an Indian visa valid till 2013 in my old passport. But since I just got married I'm changing my surname and hence changing my passport. Will my Indian visa in my now old passport be valid, provided I have all Marriage documents? |
I use maven to create war files for my app. The war file in turn uses some 3rd party libraries. The app is run on Jboss 4.x. Now we are moving over to Jboss 7. Some of the 3rd party libraries are provided by default in Jboss 6, hence I would not like to include them when I build my war file for it. The problem I have is I need to support the build of war files for both versions of Jboss without doing too many changes. I need to include the 3rd party lib's in the war file if I want it to be deployed for 4.x but do not want it to be included when i do the build for Jboss7. I looked at maven dependency but I think that is not the way. Is there any way for me to achieve it. | Is it possible to have a different set of dependencies in a maven pom.xml file for different profiles? e.g. mvn -P debug mvn -P release I'd like to pick up a different dependency jar file in one profile that has the same class names and different implementations of the same interfaces. |
I am currently trying to create a ResourceDictionary. I have 2 projects (The main project with App.xaml & MainPage.xaml and another project which contains only subpages) and want to define a ResourceDictionary with different styles for specific elements in my subpages. E.g. I have a ListView with some TextBlocks and Images and want every TextBlock to have the same style. How do I achieve that? Is it correct to save the ResourceDictionary in the main project and implement it in the App.xaml? If so, how can my subproject use these Resources? Some more information on how my project looks like: MainProject MyResourceDictionary.XAML <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:MainProject"> <Style x:Key="ListViewTextBlock" TargetType="TextBlock"> <Setter Property="FontSize" Value="24"/> <Setter Property="Foreground" Value="White"/> </Style> </ResourceDictionary> App.xaml <Application.Resources> <ResourceDictionary Source="ResourceDictionary/MyResourceDictionary.xaml"/> </Application.Resources> SubProject MySubPage.xaml <ListViewItem ...> <Grid...> <Grid.ColumnDefinitions.../> <TextBlock Grid.Column="0" Style={?} Text="Give me style!"/> <Image...> </Grid> </ListViewItem> | I have resource dictionary files (MenuTemplate.xaml, ButtonTemplate.xaml, etc) that I want to use in multiple separate applications. I could add them to the applications' assemblies, but it's better if I compile these resources in one single assembly and have my applications reference it, right? After the resource assembly is built, how can I reference it in the App.xaml of my applications? Currently I use ResourceDictionary.MergedDictionaries to merge the individual dictionary files. If I have them in an assembly, how can I reference them in xaml? |
Is there a way to convert from Uri to URL? I need this for a library I'm using, it only accepts an URL but I need to use an image on my device. | I am trying to get a FileInputStream object on an image that the user selects from the picture gallery. This is the android URI returned by android.provider.MediaStore.Images.Media.INTERNAL_CONTENT_URI content://media/external/images/media/3 When I try to construct a java URI object from this object, I get an IllegalArgumentException with the exception description Expected file scheme in URI: content://media/external/images/media/3 whereas the android URI shows the scheme as content Update: Never found a solution for the original question. But if you want the byte stream of an image in the pictures gallery, this piece of code will do that. Bitmap bitmap = Media.getBitmap(getContentResolver(), imageUri); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.JPEG, 40, bytes); ByteArrayInputStream fileInputStream = new ByteArrayInputStream(bytes.toByteArray()); |
My phd advisor send me a tex version of his slides, I try to update it, but when I run it, the result is totally ruined (for example, all the graphs do not download at the right place, the slides are totally "deconstructed", the first page is totally blank, I also see that bullets are not installing correctly, I do not know where it come from). My knowledge about latex is quite narrowed. Would you know where would it come from? Thank you very much in advance. Images of the result (on the left) with the original (on the right). Edit: It seems that the problem would come from the use of theme... When I do not use any theme, things appear better. | I'm trying to include graphics in my Latex-file, which I compiled with latex+dvipdf on OS X. Latex however returns this error: "Cannot determine size of graphic" My graphic is exported from PowerPoint, so I have tried both .pdf and .png. I get the same errors for both. Sample code that doesn't work: \begin{figure}[htb] \begin{center} \leavevmode \includegraphics[width=0.8\textwidth]{graph.png} \end{center} \end{figure} If I have to manually set some measurements of the image, please tell me how I can find out those measurements. I need the image to take up about 80% of text width and be centered. Thanks. |
Many says that the level 70 hell fire ring is easier to get. Other said it's much harder than the level 60 hell fire ring. Well, I have a hard time finding people wanting to do keywarden. So, how do I get huge xp reward? | Is there a limit for the bonus experience % that you can get? Say you equip Cain's Laurel, socketed with a Star ruby +25% 2 other Cain's set items +30% hellfire ring +35% This will give you 90% bonus experience, is there a limit? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.