I have a problem with This code in C# :   main class { var trick = new Object(); } ....... public void AddTabWithCheck(List<Urls> url) {  //Some Code   foreach(Urls link in url){      var thread = new System.Threading.Thread(p =>         {             lock (trick)             {                 Action action = () =>                 {                     addTab(link);                 };                 this.Invoke(action);                 if(link.Host == "google")                     System.Threading.Thread.Sleep(5000);             }         });         thread.Start(); } }   I had problem to do a Time Delay in winapp form.   I coudnt use thread sleep , while(withDatetime) or similar becouse inside the WinAPP there is a WebControl Browser and i wish add some page in a loop with some delay time without freeze the UI. Neither timer is a good solution cause it's hard to handle for my situation.  So a User suggests me to use this Solution (the ones with Thread). I thought that it worked without problems but only now i realize that if i put in my loop it's take only last element (of loop)  and create X threads all with the same element.  For a better explanation :  i have this List<Urls> url ;   with this Class   public class Urls {             public string Host { get; set; }             public String url { get; set; } }   Now i cant understand why if i add that code inside a simple Foreach , when the threads start all use the last element of loop.  I already checked if the List is correct ,  adding a MessageBox to show the current Object   before the thread code , and it change properly.

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I've been trying to install google earth and get these dependency issues related to lsb-core. When I try to install lsb-core I get more dependency issues with it.   jacob@jacob-desktop:~$ sudo apt-get install lsb-core Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  google-earth-stable : Depends: ia32-libs but it is not installable  lsb-core : Depends: lsb-invalid-mta (>= 4.1+Debian11ubuntu4) but it is not going to be installed or                      mail-transport-agent             Depends: at             Depends: m4             Depends: mailx or                      mailutils but it is not going to be installed             Depends: ncurses-term but it is not going to be installed             Depends: pax             Depends: alien (>= 8.36) but it is not going to be installed             Depends: libc6-i386 but it is not going to be installed             Depends: lib32z1 but it is not going to be installed             Depends: lsb-security (>= 4.1+Debian11ubuntu4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   any advice??

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


If I have found a publisher that will publish my dissertation, is this ok, to publish your original dissertation as a book. if so are there things you should leave out of dissertation like appendix or signature page.

I have just completed a PhD by research, which I think has some merits in being available as a book (This is, of course, my personal opinion). The research cuts across several fields (e.g. sociology, public policy).  I am wondering what I need to do to take the next step.  In particular:   How do you turn an academic piece like the dissertation (which is written for the examiners) into a book (which is for the general public)? How do I find publishers who specialise in my field?


My goal is to charge small metal ball/cylinder (steel ball - roughly 1 cm in diameter) to the maximum possible capacity.   One way to do it is to build a custom capacitor with metal ball being one of the electrodes.   I am curious how can I measure charge on this ball? The only thing that comes to my mind is to monitor current while charging and take into account resistance. Are there simpler ways to accomplish it?

I would like to use capacitors salvaged from old electronics, but I currently don't have an LC meter.    What would be some really simple circuits, that would convert capacitance to something I can measure (voltage, current, frequency)?


Which is correct?       Dear Jay, I was contacted by Sue on behalf of herself, John, and you.     or       Dear Jay, I was contacted by Sue on behalf of herself, John, and yourself.

If you are talking on behalf of you and someone else what is the correct usage?  On behalf of my wife and me On behalf of my wife and I On behalf of me and my wife On behalf of myself and my wife On behalf of my wife and myself ...  My understanding is that after that phrase you would carry on talking in first person.


[Microsoft Excel 2013]  This row looks like it should auto fit to the height of just 1 line, but autofit is not working here. I've checked and there are no merged cells, and I've even disabled wrap text on all the columns just in case it's causing some weird behavior. Does anyone have any ideas?  Like this:

For every generation of Excel I can remember (including 2010, which I'm using now), Excel's "Auto Size Row" features sometimes fails to actually auto size a row when the cell contains wrapped text. When it works properly, all the text is revealed and there is no additional space below the last line of text. When it fails, it adds extra space below the text. To make matters worse, what you see is not always what you get, i.e., text that appeared okay on screen gets cut off when it's printed. You also get different sizing depending on whether you are zoomed in/out or at actual size.  Simple test case:  Why is there a one-line gap after the text in cell A1 but not in A2?  (To reproduce: set width of column A to 17.14 (125 pixels), text wrap on, and cell alignment top.)  (I double-checked that I applied Auto Fit Row Height to both rows. Zoom level is 100%.)    Is there any known remedy for this without resorting to manually adjusting the row heights (which is not practical for more than a handful of rows)?


Suppose I have a line $Ax+By+C=0 $ and another line $ \alpha x +\beta y +\gamma=0$ and I add the two equations, what does the new equation represent geometrically?

I was wondering why it is almost impossible to find a geometrical explanation of why adding two linear equations helps us to find a solution of a system of linear equations? Am I right that adding two linear equations will result in an equation of a line which will pass through a point where two linear equations intersect?  If it is right then I completely don't understand why such a crucial point in understanding how to solve systems of equations is never properly taught even at a university level.


I want to include a value of variable into regex pattern.    The following code is the familiar.  var regex = /(.)\1{2}/;   I want to do like The following.  var number = 2; var regex = /(.)\1{number}/   How to do that ?

I would like to create a String.replaceAll() method in JavaScript and I'm thinking that using a regex would be most terse way to do it.  However, I can't figure out how to pass a variable in to a regex.  I can do this already which will replace all the instances of "B" with "A".  "ABABAB".replace(/B/g, "A");   But I want to do something like this:  String.prototype.replaceAll = function(replaceThis, withThis) {     this.replace(/replaceThis/g, withThis); };   But obviously this will only replace the text "replaceThis"...so how do I pass this variable in to my regex string?


$$\sum_{k=1}^{10} \binom{10}{k} $$  I know the answer is $2^{10} - 1$ but I don't know how to get to the answer.

I'm well aware of the combinatorial variant of the proof, i.e. noting that each formula is a different representation for the number of subsets of a set of $n$ elements. I'm curious if there's a series of algebraic manipulations that can lead from $\sum\limits_{i=0}^n \binom{n}{i}$ to $2^n$.


Im currently creating a program that works like a slot machine, the user writes "Spin" and then it generates some random numbers in the form of an array and then prints them off for the user to see.  The problem is i can quite figure out how to print out the array so that it can be used later to find matches. Here's the code so far:  public static int listofNums(int NUM_VALS)  {     NUM_VALS=3;     Random rn=new Random();     int[] list=new int[NUM_VALS];     int i=0;     list[0]=rn.nextInt(10);     list[1]=rn.nextInt(10);     list[2]=rn.nextInt(10);      for(i=0;i<NUM_VALS-1;i++){         System.out.print(list[i]+" ");     } return list[i]; } public static int addPoints(int numMatches){     int score=50;     numMatches=0;     switch (numMatches) {         case 1: numMatches=0;             score=score-1;             System.out.println("Sorry, you lost 1 point.");             break;         case 2: numMatches=2;             score=score+5;             System.out.println("You gained 5 points!");             break;         case 3: numMatches=3;             score=score+20;             System.out.println("You gained 20 points!");         case 4: numMatches=4;             score=score+750;             System.out.println("Jackpot! You gained 750 points!");     }     return score; }         public static void main(String[] args) {     final int NUM_VALS=3;     int[] list=new int[listofNums(3)];     int[] newList;      newList=list;     boolean stop=false;     String command;     Scanner scnr=new Scanner(System.in);     System.out.println("Welcome to high stakes slot!");     System.out.println("Type 'Spin' to spin the wheel, type 'Stop' to see hoe much youve won!");      while(!stop)    {         command=scnr.next();         if (command.equals("Spin"))     {             System.out.println(newList[0]); }   And when i run the program, it prints out something like this:  Welcome to high stakes slot! Type 'Spin' to spin the wheel, type 'Stop' to see hoe much youve won! Spin 0 Spin 0  I don't know what I'm doing wrong, help will be greatly appreciated! Thank you so much.  Update:  After looking over what was given to me to see if this was a duplicate, the difference between my problem and what was said in the other thread is: -Im using random numbers to generate my array, as well as, having to do so by makeing a reference to a method, ie, i cant just put a bracket in the back of the declared array.  Or so i think.  Update:  I have gotten rid of the printed out reference, but now it just prints out 0 when the user "Spins".

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


What does the different color of uniform shirts signify in the Star Trek movies of the reboot series? In Star Trek Into Darkness Kirk orders Chekov to wear a Redshirt in place of a Yellow one to work in place of Scotty. In the original series, the colors were a little different and also have some ambiguity but in the reboot series, there are only 3 colors used Red, Yellow, and Blue. So what are the different colors of uniforms used in the Star Trek reboot series?

When looking at the evidence for this question () it became apparent that the key colours of the uniforms are not the same in different series.  I'm not sure whether there is a definitive guide to what the colours are (perhaps an answer can clarify) but the key difference I noticed was that command personnel in Star Trek TOS wear a yellow shirt and ops (including security) wear red). This seems to be reversed in Star Trek TNG.  Is there any rationale for the changes?


I have read  which claims that the listed search engines are not able to show the unlinked doc&XML in its results. My questions are  Have any one else experimented like this? This information seems old, does these engines are learned to crawl them too?   Any updates on these. Thank you.  -PS.  I have seen other duplicate questions which are not answering my question.  1) My question is about any experiments have been carried after 2008. 2) the question quoted for duplicate doesn't provide any reference to the questions asked by that questions OP. 3) I have mentioned that I have read them.and not answering my questions

Me and a friend are having a debate where she claims that every and all subdomains will get crawled/indexed by google unless you specifically tell it not to, and I'm saying that if a page isn't linked to from anywhere then it shouldn't get crawled.  For example, let's say I own example.com and I make a new subdomain with a weird  random name such as adayinthewoods.example.com and I throw a wordpress installation on there that I plan to use for testing purposes.  What would have to happen for google to start crawling and indexing this? Is google going to look at the whois records and see that I've added a subdomain in my DNS table and then start crawling it as a result? Is the fact I've installed wordpress on it making my installation "ping search engines"? How does that work? How do top level domains get crawled when it's a brand new domain? I assume the mechanism there is different from random subdomains.  What if I add a new page in my root folder called "noOneWillEverSeeThis.html", could that ever get crawled/indexed if it wasn't included in any sitemap and wasn't linked to from anywhere?  Would really appreciate a solid answer from someone that understands what's going on with this.  Thanks much


The hand crossbow has to properties, ammo, and light, but you need a free hand to load the crossbow so how is it light if you need both hands.

In the equipment section of the D&D basic rules, it lists "light" as a weapon property of the hand crossbow.  The "light" property offers the following attributes:     Light.  A light weapon is small and easy to handle, making it ideal for use when fighting with two weapons. See the rules for two-weapon fighting in  chapter 9.     So, this would mean I can use my hand crossbow in two weapon fighting... Great! However, in the TWF rules in chapter 9 it says the following:     When you take the Attack action and attack with a light melee weapon   that you’re holding in one hand, you can use a bonus action to attack   with a different light melee weapon that you’re holding in the other   hand.   Two weapon fighting only applies to melee weapons! Why does the hand crossbow have the light property? What purpose is it serving?  Now with the addition of the Feats in the players handbook my question still remains. The feat for crossbow expert says the following:     Crossbow Expert   Thanks to extensive practice with the crossbow, you gain the following benefits:           You ignore the loading quality of crossbows with which you are proficient.     Being within 5 feet of a hostile creature doesn't impose disadvantage on your ranged attacked rolls.     When you use the Attack action and you attack with a one-handed weapon, you can use a bonus action to attack with a loaded hand crossbow you are holding.      As you can see the feat replaces the Two weapon fighting rules, and so the light keyword is still not needed.


is used on main sites to indicate old questions that are off topic due to new rules. These posts have collected a lot of votes and are referenced much. Historical locking is used to prevent these posts from being deleted.  locked by Moderator ♦ Mar 16 at 20:01 This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: .  On Meta sites, historical locks are used to mark posts where voting should be frozen for all answers. Examples are contests that have been completed, closed pro-tem moderator nomination threads or long-completed (or abandoned) feature announcements. I think the standard lock reason is not applicable for all these cases. As these cases make out the overwhelming majority of meta posts that are historically locked, I propose to change the reason on MSE and on all per-site metas to something more appropriate, for example:  locked by Moderator ♦ in 4 hours Voting on this question and answers was only appropriate in the past. To preserve the original state and voting results, this post and its answers are frozen in time and cannot be changed or voted on.   Similiar feature requests:   (proposes to create a totally new lock, I propose just a rewording)

This may be a low use-case request and there may be a better way to manage it than this request but I'd like to see what the possibilities are to make it possible to avoid using the "historical lock" option with its default text on questions that aren't actually bad questions but that are designed to only be answerable for a specific period of time. For reference, here's the historical lock text:  This question and its answers are  because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.  This came up as an issue to me on M&TV Meta. We have a  where people nominate their favorite answers from the quarter and voting is open for a limited period of time, at which point our current solution is to use a historical lock to prevent future voting. This has a couple of downsides:  As seen in the lock explanation, it states that the question is off-topic, which it is not, and necessitates our mods to write a comment explaining that it is not a bad question.  The question leaves the recently active queue, making it very difficult to find without searching for it specifically. So, despite this question being answered as recently as January 16th, it is no longer in its proper place.   Is it possible to get a form of "lock" that prevents additional answers and votes but does not have these two side effects?


I have a class, Tile, that has a constructor with parameters of a Color object:  class Tile { public:     static const int size = 32;      Tile();     Tile(Color &color);      void render(int x, int y);      Color getColor();      ~Tile(); private:     Color _color; };   Then I have a subclass, TileGrass, which inherits Tile:  class TileGrass : public Tile { public:     TileGrass();     ~TileGrass(); };   Now the issue is that the TileGrass needs to inherit the Tile constructor with the Color parameters. But, the TileGrass object already knows what color it needs to give to the superclass, so I don't want to have to pass in a Color object when creating a new TileGrass object. In Java I can do something like this:  public class TileGrass extends Tile {  public TileGrass() {     super(color object); } }   How can I do something like this in C++?

What are the C++ rules for calling the base class constructor from a derived class? For example, I know in Java, you must do it as the first line of the subclass constructor (and if you don't, an implicit call to a no-arg super constructor is assumed - giving you a compile error if that's missing).


I have mobile application which calls to an API (api.example.com) setup in web. For easy debugging purpose I would like to route this api calls to a server setup in my LAN. I have Bind9 setup on a machine and ADSL router has configured to use this DNS server. Also I've setup Apache virtual host for api.example.com.   So I'm interesting to know is there a way I can route/resolve api.example.com to my local apache server (192.168.1.5) by entering some records.

With OpenDNS now needing one to be on the pro package to have filtering turned on, being on a tight budget, we are in need of free DNS filtering.  After reading , I collected SquidGuard blacklists and concatenated domains in the categories i needed into one big list. I then fed it to  generating a file containing about 2 million zones.  named-checkconf parses it just fine, but reloading named takes almost 10 minutes, then it wont resolve anything, and the server slows down to a crawl. Removing the include results in named working properly again.  Whats the proper way to set up BIND9 to work as a DNS firewall efficiently? If it's possible to also block any domain that resolves to specific IP addresses that would solve the whole problem.   I'm running bind as non-authoritative, just a caching server.


EDIT: I know that this is a trigger topic. I know there is a hell of posts out there. I don't need to be told, that I should switch, neither why. I want to know, what is wrong with those trees. If there is a post out there explaining it, I would happy accept that. But an answer like "The trees must be wrong because different calculation shows that odds are 1/3 and 2/3" does not answer why the trees are wrong.  Another question on Monty-Hall-Problem:  I totally understand all reasoning behind the classic problem and it pitfalls when it is not completely defined. I am also familiar with the Bayes' Theorem. I wanted to do a round up on the topic for a blog post and while I was tinkering with illustration I stumbled upon a thing I can solve:  I tried to illustrate the problem with a complete tree of possibilities. Without loss of generality I can assume that the car is behind door three and I have three start cases, where the player can choose door one, two or three:  Case 1       Case 2       Case 3  [G][G][C]    [G][G][C]    [G][G][C]  ^               ^               ^  Case 1 expands to only one possible branch, Monty has to open door two. After that the player can stay or switch. Case 2 is similar:  Case 1 [G][G][C] -> [G][X][C] -> [G][X][C] Stay: Goat  ^            ^        |   ^                        -> [G][X][C] Switch: Car                                  ^ Case 2 [G][G][C] -> [X][G][C] -> [X][G][C] Stay: Goat     ^            ^     |      ^                        -> [X][G][C] Switch: Car                                  ^  Case 3 is the tricky one. Since the player picked the right door, Monty has two possible alternatives, the case is branching into two, then into four:  Case 3 [G][G][C] -> [X][G][C] -> [X][G][C] Stay: Car        ^  |         ^  |         ^           |            -> [X][G][C] Switch: Goat           |                   ^           -> [G][X][C] -> [G][X][C] Stay: Car                     ^  |         ^                        -> [G][X][C] Switch: Goat                            ^  And here's my dilemma. I got 2 goats and 2 cars while staying and also 2 goats and 2 cars while switching. My first reasoning was to say, the both sub-trees in case 3 are equivalent, therefore I would have 2 goats and 1 car with Stay and 1 goat and 2 cars with Switch, as expected. But then case 1 and case 2 should also be equivalent and I would be down to 1 and 1.  I found another clue: I give Monty the possibility to choose. If I define the problem as: Monty must open the goat-door with the lowest number, everything would be fine again. But: How can the choice of the door by Monty affect the state-probability of being on a car-door?  Again: I know, this can't be right. I know, how to calculate all the stuff, but I can't figure out, what is wrong with making this tree and counting good events vs possible events.

I just learned about the Monty Hall problem and found it quite amazing. So I thought about extending the problem a bit to understand more about it. In this modification of the Monty Hall Problem, instead of three doors, we have four (or maybe $n$) doors, one with a car and the other three (or $n-1$) with a goat each (I want the car).  We need to choose any one of the doors. After we have chosen the door, Monty deliberately reveals one of the doors that has a goat and asks us if we wish to change our choice.  So should we switch the door we have chosen, or does it not matter if we switch or stay with our choice?  It would be even better if we knew the probability of winning upon switching given that Monty opens $k$ doors.


I would like to know can any Lorentzian manifold be 3+1 foliated? I would like to know when a 3+1  of a Lorentzian manifold exists and when it does not exist. If a 3+1 foliation does not exist, can it have other kinds of foliations?

When trying to do physics on a more general pseudo-Riemannian manifold we want to require that there is a foliation of this manifold into three-dimensional subspaces. By this I mean we would like to have a way of splitting our spacetime $M$ into a part that we call space and one we call time. This is necessary, for example, in order to write the two-form $F$ that represents the electromagnetic field as $F = E \wedge dt + B$. I know that this is possible if we assume $M$ to be compact, but this implies that there are closed time-like geodesics (I have been told I would not know a proof). What are the necessary and sufficient conditions for such a foliation to exist? I would also appreciate it if you could inform me about books/resources that go into these sorts of questions. I have looked into books about GR, but they don't seem to talk about these sorts of things.


I found line sed 's~ ~~g' in a shell script on a Linux system. What is this ~?

I would like to know what it really does with following scripts used with sed command.  sed -e 's:<F0_M>:<o,f0,male>:' \           -e 's:<F0_F>:<o,f0,female>:' \           -e 's:([0-9])::g' \           -e 's:<sil>::g' \           -e 's:([^ ]*)$::' | \   First and second scripts looks like we are transforming text of type <F0_F> to <o,f0,female>. But what about the last three where it involves '::','g' and '$' sign. In most of the documentations they have used '\' and '/' in most of scripts. But here they have used ':' instead of slashes. Can some one explain above three scripts?


If $n,k\in\mathbb N$, solve $$2^8+2^{11}+2^n=k^2$$  It's hard for me to find an idea. Some help would be great. Thanks.

I need some ideas (preferable some tricks) for solving these two problems:     Find the largest number $n$ such that $(2004!)!$ is divisible by   $((n!)!)!$      For which integer $n$ is $2^8 + 2^{11} + 2^n$ a perfect square?   For the second one the suggested solution is like this  : $ 2^8 + 2^{11} + 2^n = ((2^4)^2 + 2\times2^4\times2^6 + (2^ \frac{n}{2})^2 ) \Rightarrow n=12$  But I can't understand the approach,any ideas?


I'm a brand new user and a first timer to this type of site - I like to use all the resources available when I have a question or a problem (research, google, bing, etc.) so I came here when I got my first real road block in my script where I couldn't find the answer anywhere, but I can't use many of the features (ex: chat) on this site until someone, somehow finds my question in the mist of many, answers it, or gives enough 1 ups... Why is that? How are we supposed to build Reputation when it seems questions by new users are a needle in a haystack to find because they have little or no Reputation? Just curious...       P.S. I saw "How does “Reputation” work?" and "How to gain rep (new users)?"     before posting my question and I didn't mean for it to appear that I was asking a      duplicate question, sorry)    In order to clarify, I just wondered if there was a way to improve this wonderful site to make it easier and more helpful on us newbies who know basic to little knowledge of JavaScript who design websites as hobby?   By the way great site before becoming a member the search engine I used always put this site at the top of their list and I was able to find many useful answers to solve my code issues. Thank-you.  My Question:

Seems like a stupid question, but I'm after a nice solid answer if possible.  I joined SO a while ago to ask the odd question, but recently I'm starting to use it more often.  I've been reviewing the 40 max items (20 first posts/20 late answers) per day, and editing anything I see wrong with them (lots of +2's)... flagging them... etc.  I've also been  per day.  But other than commenting where I can and answering the odd question, I'm only  (1k at the moment).  I might just be overeager, but I was hoping some high-rep users might be able to write a little something on how they earned their stripes?  I've , and to be honest I was hoping I'd get a hit, because it sounds like a stupid question... anyways, here you go!  Also, I'm not referring to how to gain rep on Meta, since it's a bit of a fluke I've earned the rep I have on here. I'm asking about main SO.


Another problem has risen about my Earth. When the camera starts to go away from the Earth, these weird fragments appear. I've figured out that it's the Earth map coming through the clouds and atmosphere but only at a distance. They're far apart enough and I don't know if it's a setting that causes this.

I have recently started using blender and one of the models I'm working on has dark shadows along edges. I started this model from scratch. I can't remember them being there when I first started the model, but I had trouble joining areas together and think I've pressed something I shouldn't have. However, there are so many options I'm not sure what I did.  Here is an image of what I mean   The one on the left has the shadow. As a test I started a new model, which is on the right in the image, and as you can see it doesn't have any shadows.  Also, occluded vertices partially show through the model. Occlusion doesn't work properly.   In orthogonal view small darkened triangles appear along the the edges.    I don't really want to start the model again from scratch so any ideas on how to remove this shadow would be great. Thanks.


Let $(X, \mathcal{A}, \mu)$ be a measurable space. I want to prove that is $f: X \longrightarrow \mathbb{R}$ is measurable, non-negative and its integral on $X$ is finite, then $\forall a>0$ the set $$A = \{x ∈ X : f(x) ≥ a\}$$ is $\mu-$finite (that is, $\mu (A) < \infty$). I think I could use  lemma to prove this statement but I don't really know how to do it. Could someone help me?

I'm stuck with some problem of my Integral Calculation in Several Variables course. The problem goes like this:     Let $A\subset \mathbb{R}$ be a measurable set with $m(A)<\infty$, and $f:A\longrightarrow [0,\infty)$ a Lebesgue-measurable function. Prove that:   $$f\in L^1(A)\Longleftrightarrow \sum_{n}^{\infty}m(\{ x\in A : f(x)\geq n \}) < \infty.$$   The notation I used is:   $m$ as the Lebesgue measure function $L^1(A)=\{ f:A\rightarrow \mathbb{\overline{R}} : \int_{A}|f|\,\mathrm{d}m<+\infty \}$   I've started defining the set $A=f^{-1}([0,\infty))$ as a numerable sum of disjoint measurable sets (because it's said it's measurable) $\sum^{\infty}_{k=0}\cup I_k$, being each $I_k$ the real interval $[k,k+1)$. I imagine I should come to some conclusion like that any unbounded (upper bound) sets of $f(x)$ with $(x\in A)$ have measure $0$.


There is a list of polygons List<Polygon> Polygons defined by these classes.   How can I order that list, so that the polygon are ordered first by the X property of their Points and then by the Y property of their Points in an ascending order.  public class Polygon {     public List<Point2D> Points; }  public class Point2D {     public double X;     public double Y; }   Update: For example consider these polygons:  (A) (0, 0) -> (5, 1) -> (5, -3) -> (0, -3) -> (0, 0) (B) (0, -10) -> (5, -9) -> (5, -13) -> (0, -13) -> (0, -10) (C) (10, 0) -> (15, 1) -> (15, -3) -> (10, -3) -> (10, 0)   the sorted output:  (A) (0, -10) -> (5, -9) -> (5, -13) -> (0, -13) -> (0, -10) (B) (0, 0) -> (5, 1) -> (5, -3) -> (0, -3) -> (0, 0) (C) (10, 0) -> (15, 1) -> (15, -3) -> (10, -3) -> (10, 0)

I have two tables, movies and categories, and I get an ordered list by categoryID first and then by Name.  The movie table has three columns ID, Name and CategoryID. The category table has two columns ID and Name.  I tried something like the following, but it didn't work.  var movies = _db.Movies.OrderBy( m => { m.CategoryID, m.Name })


Suppose we are asked to solve the following summation  $$\sum_{i=1}^{n} (i2^{i-1})$$  Below is my attempt at solving this..  I know that the quotient rule for exponents can help me simplify the summation.  $$\sum_{i=1}^{n} (i2^{i}/2)$$  now i can extract the constant from the summation..  $$ 1/2\sum_{i=1}^{n} (i2^{i})$$  this is where i am stuck.. can anyone give me some advice on what to do next?

I want to know the general formula for $\sum_{n=0}^{m}nr^n$ for some constant r and how it is derived.  For example, when r = 2, the formula is given by: $\sum_{n=0}^{m}n2^n = 2(m2^m - 2^m +1)$ according to   Thanks!


I know how to calculate residues of several functions, but I really don't know what residue is. Is there any way to really explain what residue is?

The residue theorem that states that if   a) $U$ is a simply connected and  open subset of the complex plane,   b) $a_1,\dots,a_n$ are finitely many points of $U$,  c) and $f$ is a function which is defined and holomorphic on $U\backslash \{a_1,\dots,a_n \}$,  d) $\gamma$ is a rectifiable and positively oriented curve in $U$ which does not meet any of the $a_k$, and whose start point equals its end point,  then $$ \oint_\gamma f(z)\, dz = 2\pi i \sum_{k=1}^n   \operatorname{Res}( f, a_k ). $$ Question: What is the intuitive explanation of this theorem ?   I appreciate a explanation like geometry ( whit Java Applet ? ). But algebric explanation are welcome. I know the proof of this theorem, I'm just trying to understand the intuition ( if exists ) this theorem.  I'm motivated to get an intuition of this theorem because he gave a wonderful explanation of the intuitive of an part of fundamental theorem of calculus using the properties of the  telescopic sums, mean value theorem and Riemann sum whit partition $\{a=x_0<x_1<\dots<x_n=b \}$ of interval: \begin{align} F(b)-F(a)= & \sum_{k=1}^{n}[F(x_k)-F(x_{k-1})] & \mbox{ telescopic sum } \\ = & \sum_{k=1}^{n}F^\prime(x_k^*)[x_k-x_{k-1}] & \mbox{Mean Value Theorem} \\ = & \sum_{k=1}^{n}F^\prime(x_k^*)\Delta x_k & \mbox{Riemann sum} \\ \approx & \int_{a}^{b}F^\prime(x)\, dx & \end{align}  It makes me think that there may be an explanation as elegant as this (but not necessarily following the same reasoning) in understanding the theorem of residues.


This maybe a silly question, why there is no Length property for queue or list, but only Count? And similarly why there is Length property for array?  Thanks

From using a number of programming languages and libraries I have noticed various terms used for the total number of elements in a collection.  The most common seem to be length, count, and size.  eg.  array.length vector.size() collection.count   Is there any preferred term to be used? Does it depend on what type of collection it is? ie. mutable/immutable  Is there a preference for it being a property instead of a method?


It's well known that beating the market is difficult, and most actively managed funds aren't really doing all that much better, especially after accounting for fees. So if that's the case, why the hell do banks invest so much money in active asset management, why do portfolio managers even exist, and why do these people get any customers? Who is it out there that says "yup, I'm going to take all of this money, and NOT invest it in a index-linked mutual fund, but instead give it to some guy in a suit pretending to be an expert and demanding expensive fees just so he can offer me the exact same return I'd get from the S&P 500"? And now I bet somebody will say "SOME managed funds do beat the market, just look at A, B, and C", yeah buddy that's called survivorship bias. Come back in 5 years and we'll be talking about fund x, Y, and Z.

The general consensus is that the single best indicator of a fund's future performance is the its expense ratio . If you look for more than 5 minutes online you discover the  approach to investing; the , etc. It looks like the less you pay for a fund (and therefore the less it's managed), the better it does in the long run.  So why is it that in peoples' 401(k)s there are so many high-cost actively managed funds? Furthermore, why are there so many high-cost actively managed funds in the first place? Shouldn't the market reflect the fact that actively-managed funds typically don't beat the index they benchmark to and and react by purging itself of these crappy funds?


I have a JavaScript object named page.cat.lastResponseText.  This object has the following string value:  {     "orderBy":"",     "orderDesc":false,     "rows":[         {"catIndId":"3","indId":"1","catId":"2"},                  {"catIndId":"4","indId":"4","catId":"2"}     ],     "totalResults":2,     "totalPages":1,     "pageSize":2,     "currentPage":1 }   How I can convert this string into a JSON object? And how do I then get the values for object such as cat.rows or cat.totalResults?

Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


With this question I got   $\cos\alpha=-\sqrt{3}$ and $-r\sin\alpha=1$   thus $r\sin\alpha=-1$. Both of these are negative, so my solution should be in third quadrant. In the answer however, it is in first quadrant and I don't understand why. I got $\alpha= 210^\circ$ but the answer is $\alpha=30^\circ$.

My answer for this question was $2\sin(θ - 30)$, but the answer in the textbook says $-2\sin(θ - 30)$. I tried to use the concept of odd functions so using the idea that $-\sin(θ)= \sin(-θ)$.   So $-2\sin(θ-30) = 2\sin(30-θ)$ but that still is not the same as my answer and I was wondering why?   In addition, the question also asks to give the maximum and minimum values of the function and the values between $0$ and $360$ at which they occur.  I get:   max value $y = 2$ max $x$ at $θ = 120$  min $y$ value = $ -2$ min $x$ at $θ = 300$  But the textbook answers say:   max value $y = 2$ at $θ = 300$  min value $y = -2$ at $θ = 106.3$   I am quite confused as to why.  Thank you.


I have a little problem with a script of mine. I execute a command in background using sudo and I try to retrieve the PID of the command in a variable.  the code is the following:  #!/bin/bash  sudo badblocks -o $2 $1 &   PROCESSID=$(pgrep -P $!)  echo $PROCESSID   I executed every command one by one in a shell and it works fine but when i launch the script it doesn't work. I've other command to obtain the PID such as "ps --ppid $! -o pid=" but it doesn't work either.  if you have any idea why?

To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.


I have looked everywhere but can't find a TV show I am having flashbacks of! Here is what I remember  Based in space on an alien planet there is conflict with any alien race the main character is a pilot? Marine? the big thing I remember is the main character's sister is missing, she landed on the planet before him. Finding her is the long-running story arc late nineties, aired on a major network the whole series felt like it was filmed at night

I remember watching this TV show in the early- or mid-nineties (I think) that was about a war between humans and a mysterious alien race. At least some of the episodes focused on learning new things about the aliens. Specifics that I recall:   The aliens were called "chigs" or "chiggers" or something like that. [I'm not really certain on this bit, to be honest, but I do recall there was some kind of slang term the characters used for the aliens that always made me think of some kind of insect.] The show focused on a particular group of human soldiers/pilots (they seemed to do as much space combat as ground combat, as I recall). The show featured a brand new element, although I forget what it was called, and there was even an updated periodic table that included it. Pretty much all of the aliens' technology was based on this element and its unique properties.   It was a pretty dark show (both in theme and in actual lighting), and they seemed to go out of their way to never give the audience a good view of the aliens (probably trying to increase the mysteriousness of them); in fact, I seem to recall one episode in particular where they had captured the dead body of one of the aliens, and yet they still refused to give the audience a clear look at this creature.  I believe it was short-lived, canceled after just 1 or 2 seasons (possibly mid-season, I seem to recall story arcs remaining unresolved). I remember really enjoying the show, and would love to look it up again and re-watch it, but not remembering the title makes that a bit awkward...  If you need more detail, please ask -- I remember bits and pieces of several of the episodes, and with some prompts I should be able to provide additional details.


I'm saving my source code from my Java textbook exercises and I realise I have a compilation error whenever I save my file using names like " 2-15.java" along with "public class 2-15" in my source code  is there a way so I can name it starting with a number or it is profited in Java?

What characters are valid in a Java class name? What other rules govern Java class names (for instance, Java class names cannot begin with a number)?


I think the area I fermented in was too warm for my Brewers Best Weizenbier.  About 75 degrees instead of the recommended 68-72.  Bubbles were flowing though my airlock for a couple of days, but then stopped. The instructions with the kit said it'd bubble for 4-6 days. I'm assuming it's done fermenting, but afraid it did so too fast and not sure if that's a bad thing.   Advice of next steps?  Go ahead and bottle?  Reyeast?

How long do you wait before taking corrective action if your fermentation doesn't start?  Are there any other good ways to tell if it's just taking a while to get going?


I have an iMac with a PowerPC chip in it. Can Ubuntu run on it? I have Mac OS X 10.4.11 running on it right now. The brand is Apple.

I'm using iMac PowerPC G5 1.8 GHz, 1GB RAM, 160GB HDD, and 10.5.4 Leopard OS.  I want to run Ubuntu on my iMac. Please can anyone tell me which version will run in my system?


Lets say I have a function which I have defined:  def command("filename", function, error):   For 'function' I can input one of the following two functions:  def linear:     return x  def exponential:     return e**x   I want to save the figure under a name depended on the function used. So the name of figure will be something like this: filename_function.jpg  The command for this is plt.savefig(filename_+????+'.png')  How do I input the name of the specific function used into saved file?  So if my command is command("hello.txt", linear, error), then my save file should read hello_linear.png.   Update: Thanks everyone. I am new to Python, and I guess I caught myself tied up in nonsense approaches to something that can be implemented very simply. The answer is function.__name__ exactly as written.

In Python, how do I get a function name as a string, without calling the function?  def my_function():     pass  print get_function_name_as_string(my_function) # my_function is not in quotes   should output "my_function".  Is such function available in Python? If not, any ideas on how to implement get_function_name_as_string, in Python?


I'm a little confused why our book defines an ideal $IJ$ in $R$ (where $I$ and $J$ are ideals) in such a complicated way:  $$IJ=\left\{ \displaystyle\sum\limits_{i=1}^n a_i b_i\mid n\geq 1 ,a_i\in I, b_i\in J \right\}$$  How is this different that defining more simply as:  $$\{ab\mid a\in I,b\in J\}$$ Since $\{ab\}$ is closed on addition then elements of the form $a_1b_1+\cdots +a_mb_m\in\{ab\}$, which sure does seem like it is equal to $IJ$. Am I missing something here?  Thanks.

Where does the "naive definition" of the product of two ideals $I$ and $J$, $IJ = \{ ij \mid i \in I, j \in J \}$ fall apart? (The product of two ideals $I$ and $J$ is defined to be $IJ := \sum_i a_ib_i$, where each $a_i$ is in $I$ and each $b_i$ is in $J$.)  Note: This is a question from a problem set I'm working on. I am not expecting a full solution for the answers, but I'd like some help knowing where to look. It seems to work fine in $\mathbb{Z}$ and $\mathbb{C}[x]$.


It says I need 10 rep to answer this question because of a spam lock, but I have 37 and cannot add my answer.    Furthermore, I made a rather larger bounty on another question and now I can't add comments to any questions. This seems like a rather unusual restriction, as I should never just "lose" that privilege that I earned a long time ago, there should be a cap on wagering away so much rep that I can't function anymore or contribute meaningfully, despite having a relatively trusted account.

Questions can be protected (i.e. marked "highly active").   What does it mean for a question to be protected? Why are some questions protected? Who can protect and unprotect questions? Who can answer a protected question? How are protected questions displayed? When should I protect or unprotect a question? When does the Community user protect a question?


I have a ubuntu server running, just a small project. My auth.log file is 22mb big and it is full of stuff like: Failed password for invalid user milka from **** port **** ssh2 Received disconnect from **** port ****: Bye Bye [preauth] Disconnected from invalid user milka **** port **** [preauth] Invalid user root1 from **** port ***** pam_unix(sshd:auth): check pass; user unknown pam_unix(sshd:auth): authentication failure; *****  The ***** mean that in the log file is stuff I'm not sure if I can post it without security risks. What does the logs mean?? Do someone try to hack me??? Please help :( EDIT: the entrys started 3 days ago and the attack run constantly since that

What measures can/should I take to make sure that security around my SSH server is absolutely impermeable?  This will be community wiki from the start, so lets see what people do to secure their servers.


I have a form that is being submitted through ajax. It's not reloading the page, it just shows a success message, which is what I want. On my page I can have several forms with different ids but same class. I'm targetting the class for submit. But I have two different types of forms, new ones and existing ones (add or update basically). The update ones are working fine, but the add ones are giving me a browser alert when I try to exit the page. They think they are not already submitted.  Here's my code:      $("#simulation-table").on('submit', '.simulation_form', function(event){         event.preventDefault(); //prevent default action          var post_url = $(this).attr("action"); //get form action url         var request_method = $(this).attr("method"); //get form GET/POST method         var form_data = $(this).serialize(); //Encode form elements for submission         var form_id =$(this).attr("id");          $.ajax({             url : post_url,             type: request_method,             data : form_data         }).done(function(response){             response = JSON.parse(response);             if ((response.success === true || response.success == 'true') && (response.new === false || response.new == 'false')) {                 alert_float('success', response.message);                 $formSub = $('body').find('#' + form_id);                 $formSub.find('.edit-field input').each(function () {                     $(this).attr('readonly', true);                 });                 $formSub.find('.save_button button').prop('disabled', true);             } else {                 alert_float('success', response.message);                 $formSub = $('body').find('#' + form_id);                 $formSub.find('.edit-field input').each(function () {                     $(this).attr('readonly', true);                 });                 $formSub.find('.save_button button').prop('disabled', true);                 $formSub.removeAttr('id');                 $formSub.attr('id', 'simulation_form_' + response.insert_id);                 $formSub.find('input[name="id"]').val(response.insert_id);                 $formSub.attr('action', admin_url + 'leads/simulation/' + response.insert_id);             }         });     });   I have to change the form ids for the add function after receiving the success response, that's why I have that last piece of code. Why am I receiving this browser alert for changes not submitted?   My problem is not with the submit event, as it is triggering and completing successfully. The browser (Firefox in this case) is alerting me if I'm sure that I want to exit the page since some data might not be saved, but the form was submitted correctly.  EDIT: Updated code after marked as duplicate. Did not solve

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.


My input is an int[102], my purpose is to group my input to an int[6] and store them in a variable that I will use after. I am working in this program : int[] data = new int[] { 0, 0, 2, 1, 0, 2, 0, 0, 2, 1, 1, 0, 0, 0, 2, 1, 1, 1, 0, 0, 2, 1, 1, 2, 0, 0, 2, 1, 2, 0, 0, 0, 2, 2, 1, 1, 0, 0, 2, 2, 1, 1, 0, 0, 2, 1, 0, 2, 0, 1, 0, 0, 1, 0, 0, 0, 2, 2, 0, 1, 0, 0, 2, 1, 2, 1, 0, 0, 1, 0, 1, 2, 0, 1, 0, 1, 0, 0, 0, 0, 2, 2, 2, 1, 0, 1, 0, 0, 1, 1, 0, 0, 2, 1, 0, 2, 0, 0, 2, 2, 1, 0 };  // input a data  Console.WriteLine("Datalength is : ", data.Length); // display data lenght of my input  // console display : Datalength is : 102 int[] datagrouped = new int[6];      // I delared a variable where I want to store my output    int coef = (data.Length / 6) + 1; // I declared an int coef to determine the number of datagouped I will get in output Console.WriteLine(("Coef is : "), coef);  for(int j = 0; j<coef; j++)    {      for (int i = 0; i < data.Length; i++)         {            datagrouped[i] = data[(data.Length/coef)*i];            // Console.Write("{0}", datagrouped);         }    }  In output I want to get : 0, 0, 2, 1, 0, 2 0, 0, 2, 1, 1, 0 0, 0, 2, 1, 1, 1 0, 0, 2, 1, 1, 2 0, 0, 2, 1, 2, 0 0, 0, 2, 1, 1, 1 .....  I really appreciate any help. kind regards

Is there any way I can separate a List<SomeObject> into several separate lists of SomeObject, using the item index as the delimiter of each split?  Let me exemplify:  I have a List<SomeObject> and I need a List<List<SomeObject>> or List<SomeObject>[], so that each of these resulting lists will contain a group of 3 items of the original list (sequentially).  eg.:   Original List: [a, g, e, w, p, s, q, f, x, y, i, m, c] Resulting lists: [a, g, e], [w, p, s], [q, f, x], [y, i, m], [c]   I'd also need the resulting lists size to be a parameter of this function.


how to remove icon links from gnome panel?

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


On mobile, after you dismiss the notification of a tag badge you were tracking, a strange layout appears.        I guess there are some broken HTML element or CSS rendering problems causing this.  Can this be fixed please?

On the mobile web after new privilege is earned, reputation block contains some design issues:   no margins poor text color inside bar         By tapping on "track the next one" link, page have been refreshed:   no margins empty block in the middle obscure content         Only after manual refreshing, page looks fine again:        It is hard to reproduce because you need to earn next privilege which takes a lot of time. But I believe it's no too hard for developers :)


I remember they imported dolphins but not sharks for some reason I don't remember. The story involved a spaceship crewman, I think he was in trouble for some reason. I think there were some planet citizens revolting against an interstellar government and the crewman ended up getting tied up with the rebels somehow.  I hope I'm not confusing two stories in my head, but I can't say for certain that I'm not.

Looking for the title of a book I read about 5 years ago though I believe the book was a lot older.  Essentially the main male character was on a task and was travelling with a group of people. The mode of transport if I recall was a boat and they were on a remote planet travelling via a river. One of the group was a father to a young female infant. There's a reference to alien artefact/temple that essentially reverse aged a female scientist (the baby) a day at a time and the father is trying to undo it. Also a line I remember is the father used to say see you later alligator and the daughter will reply that awhile crocodile until a day where she forgot.  Another fellow traveller was a pilgrim and his male disciple. There are several other male and female travellers all had different reasons to travel to that location.  The aliens was located within the temple (time locked?) Were invisible to humans. Killed any that entered. Got the impression that they were quadpeds with organic blades/razors that cut people.  I believe the book may be part of a series. The male author though I don't recall the name, has written other works that have received awards. The book or series may have received one too. Which is probably why I decided to read it in the first place.  Question never asked anywhere else. I am from Australia, book was a paper copy bought locally.


How can I exclude a given label from a search, effectively finding all the email that do not have that label applied? I've searched Google, SuperUser, and  to no avail.  Here are the searches I've tried, none of which work:   !label:work NOT label:work not label:work -label:work   The reason this may not be a duplicate: After some more experimentation it seems that the - operator would work, except that it doesn't exclude entire conversations if any one message in the conversation has the label. I need my search to exclude any conversation in which one or more messages has the specified label.  How can I achieve this behavior?  Per Gianni Di Noia's advice, I tried making a filter that matches emails labeled work and then re-applies the label work. Unfortunately, after some testing with another email account I have I found that this does not work because it is never triggered. Filters are triggered based on the properties of the incoming email, not on the conversation to which Gmail assigns that email. Google warned me of this even before I did my testing:

I need to find, in Gmail, a list of all my unread messages — which I can get via is:unread or label:unread or l:^u — which do not have the label "ZDNet."  In other words, my requirement is this:  I have 185 e-mails which are "unread" in my Inbox. I have 174 "unread" e-mails which are labeled "ZDNet." I need to find the 11 e-mails in my inbox that are not part of the group of 174.  How can I do this?


Scenario: There is download button in web Application. Now I need to download Multiple files via a Button click.  Map<String, Object>preferences=new Hashtable<String, Object>(); preferences.put("profile.default_content_settings.popups", 0); preferences.put("download.prompt_for_download", true); preferences.put("download.default_directory",downloadpath); preferences.put("profile.content_settings.pattern_pairs.*.multiple-automatic-downloads", 4 ); preferences.put("profile.content_settings.exceptions.automatic_downloads.*.setting", 4 ); ChromeOptions options = new ChromeOptions(); options.addArguments("--no-sandbox", "--disable-extensions", "--disable-gpu"); options.setExperimentalOption("prefs", preferences); DesiredCapabilities cap = DesiredCapabilities.chrome(); cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); cap.setCapability(ChromeOptions.CAPABILITY, options);   These are options for ChromeOption. I am not much aware of ChromeOption/FirefoxOption.

Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = self.browser.find_element_by_link_text('link text') href = link.get_attribute('href') download = self.browser.get(href) print download  That fourth line prints "None", presumably because I haven't manually clicked the Save button, and even if I had, I doubt WebDriver would be able to "see" the file. Any ideas? I'm using Firefox as my browser-under-test, and I understand that the file handling for downloads is somewhat browser and/or OS-specific.


If $A→B$ is $A$ strong and $B$ weak? For instance, the "strong inequality" $5<6$ implies the "weak inequality" $5≤6$. Is there anything more to it than that? I've seen the terms "stronger/weaker condition" or "stronger/weaker tests" used a few times. But I'm not sure if what I understand is entirely correct.

I was doing some review of propositional logic from Enderton's book. In one section(pg. 26 of the 2nd edition), he explains the idea that given wffs $\sigma_1, \sigma_2, \cdots, \sigma_k$ and $\tau$, one can use truth tables to check whether or not $\{ \sigma_1, \cdots, \sigma_k \} \models \tau$. Then he gives some examples of how one might in an educated way avoid checking all combinations of assignments of the propositional variables used in the sigmas and in $\tau$. This part looks o.k to me.  But then Enderton says "The stronger the antecedent(the expression on the left side), the weaker the conditional." He then gives the examples  \begin{align} (P \wedge Q) &\models P \\ (P \rightarrow R) &\models ((P \wedge Q) \rightarrow R) \\ (((P \wedge Q) \rightarrow R) \rightarrow S) &\models ((P \rightarrow R) \rightarrow S) \end{align} What does he mean by this? Which antecedent is stronger, the first or the third? Maybe a question to start out with is: what do "strong" and "weak" even mean here? Thanks for any help/clarification!  Sincerely,  Vien


I wanted to make a magnifying glass in blender. I added in a circle and gave it a little thickness. Gave it a casual glass shader too. But all I got was this:   There is no magnification at all. Does anyone know how to make a lens that actually magnifies ? I would also like to know how to control the power of the lens. EDIT- I understand that you need a curved surface for the bending of light but how do I make a curved lens? I'm newbie to blender sorry if this question sounds stupid.

I'm fairly new to blender and not a graphics person by any stretch of the imagination. I've been having some success though modelling semi-reflective glass for a project I wish to build (physically) and I'm wondering if it is possible to model the effects of a lens. The lens I wish to model is a double-convex type. It has a diameter of 120mm and a focal-length of 301mm. Is this something that can be modelled in blender and if so, how? I'd like to be able to position the camera close to this lens and reproduce the magnifying effects of the lens on the scene behind the lens as well as depth-of-field effects.  Thanks a lot.


first time as an OP here. problem: Having an issue with the first upload form(code below its under  the third field set). It ignores the set action = "uploads.php" code bit and when you click the UPLOAD CV button it runs the sent.php code instead of its own. PS there are no errors codes when the code is run, Would sincerely appreciate the assist. attempts to fix: Tried to switch same result, run code through debuggers no errors detected, changed the submit buttons from  to  code:` <form id="msform" action="sent.php" method="post">

Apply for position

Personal informatiion

Upload Documents

    <fieldset>
Apply for position

Provide information as promted below.
     <input type="text" name="username" placeholder="Name in full" />     <input type="text" name="worktype" placeholder="Attatchment/Internship"/>     <input type="text" name="email" placeholder="Email"/>     <input type="text" name="phone" placeholder="Phone number"/>     <input type="button" name="next" class="next action-button" value="Next"/>   </fieldset>    <fieldset>
Personal Information

More about you.
     <input type="text" name="Gender" placeholder="Gender"/>     <input type="text" name="Ethnicity" placeholder="Ethnicity"/>     <input type="text" name="Institution" placeholder="Institution"/>     <input type="text" name="Course" placeholder="course"/>     <input type="button" name="previous" class="previous action-button" value="Previous"/>     <input type="button" name="next" class="next action-button" value="Next"/>   </fieldset>  <fieldset>
Upload documents

Provide your cv and Application documents in word and pdf, format respectively.
        <form action="uploads.php" method="POST" enctype="multipart/form-data">
           <input type="file" name="file">           <button type="submit" name="submit">UPLOAD CV</button>
       </form>

       <form action="upload.php" method="POST" enctype="multipart/form-data">
           <input type="file" name="file">           <button type="submit" name="submit">UPLOAD DOCUMENTS</button>
       </form>

 <button name="previous"> Previous </button> <button type="submit" name="submit">Submit</button> </fieldset> </form>`

Is it possible to nest html forms like this  <form name="mainForm">   <form name="subForm">   </form> </form>   so that both forms work? My friend is having problems with this, a part of the subForm works, while another part of it does not.


I need a word that will give the illustration of a room "crowded" or "filled" with furniture. I know those words are not correct, so could someone give a more eloquent way of describing the room?

There is a popular idiom in Russian for describing a really crowded place: "(there's) no room for an apple to fall" ("яблоку негде упасть").   I struggle to think of anything similar in English, and the dictionaries I consulted were of no help, simply translating it as "crowded" or not even including it at all.  The context would be something and anything along the lines of     The place was so crowded that [X].   The room was full to the extent that [Y].   The street/square was [Z].   At the top of the hat charts, there is [no room for an apple to fall].     Which is to say, I am not married to any sentence structure in particular — I'll gladly rewrite from scratch to use a vivid and idiomatic adjective or noun, word or phrase, metaphor or saying, rather than try and shoehorn it into a sentence it does not feel itself welcome in.


I am using Ubuntu 18.04 LTS. I have installed MATLAB which is in /usr/local/Matlab/R2018a/bin/matlab I want to create a COMMAND (like matlab) in Terminal, so that I can open MATLAB after running that command (rather than using Desktop Launcher).   Checked all possible post available in Ask Ubuntu but cant executed. Please help if you have a proper solution.

I've installed Matlab on my Ubuntu 18.04. Every time I want to open it I need to call it.  /usr/local/MATLAB/R2017a/bin/matlab   I think it is too long and waste of a little time. There has to be an easier way to open it. How can I open it simply by writing its name or is there any easier way?


I recently installed Ubuntu´s recent os 14.04 and am unable to install the driver for my wireless adapter which is the Linksys WUSB6300. Is there any way to configure the driver in any way, or should I purchase another one?

I've been using the Linksys USB6300 Adapter but when I switched to Ubuntu it stopped working since its only compatible with Windows. I've tried using ndiswrapper and although it says my windows driver is installed, my device isn't showing up. Anyone know how I could get this wireless network adapter working? Thanks.  lsusb  Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 012: ID 05c6:6766 Qualcomm, Inc.  Bus 001 Device 006: ID 0bda:0153 Realtek Semiconductor Corp. Mass Storage Device Bus 001 Device 005: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB Bus 001 Device 004: ID 04ca:007d Lite-On Technology Corp.  Bus 001 Device 003: ID 04ca:008a Lite-On Technology Corp.  Bus 001 Device 010: ID 13b1:003f Linksys  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Php function to prevent SQL injection.  I am developing a Wordpress project wich I require users to insert some data of their need.  I have created new tables in database for my use, though, now I need to be safe and protect from SQL injection.  For this use I have created following var.  function sql_escape($var){ if(is_string($var)) { $result = strip_tags(addslashes(str_replace(array('SELECT', 'select', 'DELETE', 'delete', 'INSERT', 'insert', 'JOIN', 'join', 'CREATE', 'create', 'UPDATE', 'update', 'FROM', 'from', 'WHERE', 'where', '*', '=', '+', '-', '<', '>'), '...', $var))); return $result; }  if( is_numeric($var) || is_float($var) ){     $result = $var;     return $result; }}   Do you think this could be enough ? Thanks everyone for support.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


I'm required to covert the variable:  pi_string = "3.1415926"   into a float. Here's what I'm dealing with:

In Python, how can I parse a numeric string like "545.2222" to its corresponding float value, 545.2222? Or parse the string "31" to an integer, 31?  I just want to know how to parse a float str to a float, and (separately) an int str to an int.


Currently I have a dropdown list based on an enum in a viewmodel. The enum in the viewmodel looks like this:  public enum Frequency {     [Display(Name = "Daily")]     Daily,     [Display(Name = "Weekly")]     Weekly,     [Display(Name = "Monthly")]     Monthly }   In my razor view, I create the dropdown like this:  @Html.EnumDropDownListFor(model => model.Frequency, "--- Select frequency for assignment ---", new { @class = "form-control", id = "frequency" })   And the model gets referenced in the razor view like this:  @model MyApplication.ViewModel.MyViewModel   This works great. However, I want to make a dropdown select list for this instead. I have seen lots of posts that do this with a select list you create in either the controller or the view itself, but I would like to use the enum that comes from the viewmodel. Is this possible? Is it possible to do this without editing the controller?  Any help/guidance is greatly appreciated. Thanks.  Update  I was able to get this working based on  (Suggested in a response). I changed the view like this:  Html.DropDownList("Frequency", EnumHelper.GetSelectList(typeof(MyApplication.ViewModel.Frequency)), "--Select frequency--", new { @class = "form-control", id = "frequency" })   Thanks!

I'm trying to use the Html.DropDownList extension method but can't figure out how to use it with an enumeration.  Let's say I have an enumeration like this:  public enum ItemTypes {     Movie = 1,     Game = 2,     Book = 3 }   How do I go about creating a dropdown with these values using the Html.DropDownList extension method?  Or is my best bet to simply create a for loop and create the Html elements manually?


I'm trying to put \psaxes command inside a caption. I have tried \verb, \lstinline and alltt package and nothing works. Whats wrong?  \documentclass[                12pt,                a4paper,                openright,                %twoside,                oneside,               % Use twoside no lugar de oneside para impressão                dvipsnames,                chapter=TITLE,         % títulos de capítulos convertidos em letras maiúsculas                section=TITLE,         % títulos de seções convertidos em letras maiúsculas                english,                brazil]{abntex2}  \usepackage[                 alf,                 abnt-emphasize=bf,                 bibjustif,                 recuo=0cm,                 abnt-etal-cite=4,                 abnt-etal-text=it]{abntex2cite}             % Para gerar a Bibliografia \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{textcomp}  %\usepackage[showframe, pass]{geometry}                     % Habilitar para ver as margens \usepackage{standalone} \usepackage{verbatim}                                                        \usepackage{alltt}                                          % Para comentários                    \usepackage{comment}  \newcommand{\IBGEtabfontsize}{\ABNTEXfontereduzida} \AtBeginDocument{%   % comandos auxiliares para manipular os captions dentro do comando \IBGEtab.   \newcommand{\configurecaptions}{\captionstyle[\raggedright]{}}   \newcommand{\configureseparator}{\captiondelim{: }}   % Define o comando \IBGEtab{}{}{} com caption e legenda da largura do conteúdo tabular, tabular*, etc   % Parece funcionar com qualquer pacote   \newsavebox{\myptabbox}   \newlength{\myptabboxwidth}    \newcommand{\IBGEtab}[3]{%     \savebox{\myptabbox}{{\IBGEtabfontsize #2}}%     \settowidth{\myptabboxwidth}{\usebox{\myptabbox}}%     \centering%     \parbox{\myptabboxwidth}{%     \configurecaptions     #1%     \par%     {\IBGEtabfontsize%     #2%     }%     \par%     #3}%   }   \let\ibgetab\IBGEtab }  \newcommand{\mequa}[3]{\IBGEtab{#1}{#2}{#3}}  \newcommand{\Caption}[1]{ %     \begin{Spacing}{1.5} %         \caption{#1} %         \end{Spacing} % }  \newcommand{\Fonte}[2][\fontename]{ % %   \vspace{-3pt}     \vspace{10pt}         \fonte[#1]{#2}     \vspace{-5pt} }  \begin{document}    \begin{quadro}[h!]        \centering       \Caption{\label{qua:psaxes} Test\verb|\psaxes|.}         \mequa{}{          \begin{tabular}{lll}          \toprule                   Nome & Tipo & Padrão\\                   \midrule\midrule                      axesstyle  & axes|frame|none  & axes \\                   \bottomrule          \end{tabular}       }{          \Fonte{Test.}      }   \end{quadro} \end{document}   And i get:

verbatim environment is not working in figure caption. Checked  and  is not working.  \documentclass[11pt, double space]{article} \usepackage{amsmath} \usepackage{graphicx} \usepackage{color} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[english]{babel} \usepackage[autostyle, english = american]{csquotes} \MakeOuterQuote{"} \usepackage{cprotect}  \begin{document} \begin{figure}[!h] \caption{Sample 1 \cprotect\begin{verbatim} \tau(A) = e^{\chi_0A/(KD_p(K+A))} \end{verbatim} per hour.} \label{fig:singlecell_chemo} \end{figure}  \end{document}   I have tried cprotect package also. Any help.


I've recently immigrated to Ubuntu and I don't know that much about it.i would be thankful if you could tell me step by step how to add ruby and python to Ubuntu 14.10. thanks

I am interested in setting up a Ruby on Rails environment on my 10.10 laptop.   Is there anything special I need to keep in mind for installation (i.e. that could be new or unique to 10.10)?   Are there any suggested walkthroughs that I could follow along with?  Thanks in advance.


I have a Type D long stay visa issued by Germany. On the visa itself, the Valid For label states Deutschland.  Can I enter the EU through Spain on this visa?   Edit: This is not a question about entering other Schengen states after I reach Germany. It is about the port of entry into the EU.

I am an Indian national. Right now I am staying in Israel. I will be moving to Germany on the last week of this month with german national visa directly from tel aviv. Ticket price of direct flight is high. So I am thinking to buy either Air France or LOT for travelling having layover at Paris or Poland. Am I allowed to do that? I mean is it mandatory to enter in Germany first? May I travel with these airlines with proper transit visa?


"In two thousand AND eight blah blah blah until two thousand AND thirteen blah blah blah"  Is there some grammar rule that if you're stating a year you should say "and" within a number or is there a rule that in politics you should say "and" within a number?

I saw a post on  which links to a video where a person . Is he saying a large portion of the numbers wrong? Back in high school my algebra teacher was extremely picky.  If we were going to say the number 135, we would say one hundred thirty-five.  If a person said one hundred and thirty-five my teacher would interpret that to mean 100.35.  Was my algebra teacher wrong, or did Jon just waste over 80 hours counting to 100,000 incorrectly. I tried searching the web, but searching for ‘numbers and’  doesn’t work very well.  Can you point me to a reference or style guide that describes how to properly say large numbers?


I have encrypted passwords specific to each environment. It has some special characters. Below is one sample from development environment (which has forward slash)      $$Param_INFA_USER=USR_DF     $$Param_INFA_PASS=1OFR6pSbNq/yvLtpxHbC9E9KvloTj5tRGpzr9dCMD7E= v_prst_pwd=`grep -i "\\$\\$Param_INFA_PASS" param_file.parm` | tr -d ' ' v_lbl_pwd=`grep -i "\\$\\$Param_INFA_PASS" param_file.parm | cut -d '=' -f1` sed -i 's/'$v_prst_pwd'/'$v_lbl_pwd'='$envspfc_pwd'/g' param_file.parm sed -i s/$$Param_INFA_PASS=**1OFR6pSbNq/yvLtpxHbC9E9KvloTj5tRGpzr9dCMD7E=**/$$Param_INFA_PASS=ABC/g param_file.parm   I am trying to replace passwords and got below issue.  sed: -e expression #1, char 74: unknown option to `s'   How to escape special characters when replacing a string which is a  variable (not aware of position of special characters).

Take the following script:  #!/bin/sh sed 's/(127\.0\.1\.1)\s/\1/' [some file]   If I try to run this in sh (dash here), it'll fail because of the parentheses, which need to be escaped. But I don't need to escape the backslashes themselves (between the octets, or in the \s or \1). What's the rule here? What about when I need to use {...} or [...]? Is there a list of what I do and don't need to escape?


How do i convert this string using PHP > 48512885 to > $485,128.85 I tried this  But the output is 48,512,885.00


What is this black line in my rendered view?  Also, I think there's a problem in my 3d view. There are also some lines in my object I can't explain.  I have tried to change the scale and modifiers, but nothing works.

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?


Like many SO users, I check the unanswered queue periodically to find ... well, questions that need answers.  However, roughly a tenth of the "unanswered" questions I view aren't unanswered at all: they have an answer, but it's in the comments.  These questions sit perpetually in the unanswered queue because no one wants to answer an already-answered question (and you kinda look like a jerk if you steal the answer someone else posted as a comment and put it in answer form).  Now the real solution here would be to let lower-power users just convert these comments in to  answers.  The unanswered queue would clear so much faster, and there would be rejoicing through the land.  But apparently (judging by related questions) that idea is hated here.  However, a similar compromise was reached in the other direction, with converting answers to comments, by making it a diamond-only activity.  Why not make that an option for these cases?  Then, given that only "diamond" moderators would be able to convert comments, shouldn't there be some way in the site for non-diamond users to do something to get these "already answered unanswered questions" out of the queue?  If you magically know (or came here and read that) diamond mods can do the conversion, then you might flag the question and put a custom message in requesting a conversion.  But if you don't know that you're out of luck.  So what I'm thinking is, why not add another "flagging option":   it needs ♦ moderator attention   very low quality answered in comments other  it doesn't belong here, or it is a duplicate it is spam it is not welcome in our community   This way any user could solve the "answered unanswered question" problem, or at least contribute to the solution, and the site would naturally guide them towards that (when appropriate).  Alternatively, converting comments to answers could be handled more flagging to close.  In other words, leave diamond users out of the process entirely, just add the new flagging option, and then if X people flag a comment as an answer it gets converted?

This has been , but a long time ago, and got closed for a rather confusing reason (converting comments to answers is not an "exact duplicate" of converting answers to comments), so I'm going to bring it up again.  I think it makes sense to have a user (not asker) option to convert a comment they posted on a question to an answer on the question, if it turns out it led to the asker figuring out the answer. We've all seen askers reply to comments with "@foo Hey, that was it! Post that as an answer and I'll accept it"; why not make it simple for the user to do that? It seems trivial to implement, and there's no formatting issues like there is going from answers to questions. I'm not sure how it could be "abused", because you need less rep to answer a question than to comment on it. I don't know if the answer's post time should be the time of the comment or the time it was converted; I think probably the latter. I also don't know if the comment should be deleted, left alone, or replaced with a link to the answer; again I think probably the last


My OS is Windows 7 (a localized version of this OS). I want to be able to enter any character in the applications mentioned in the title. I've tried some methods described on SE sites, including:    To be able to input characters using Unicode, run C:\Windows\regedit.exe, inside the application navigate to Computer -> HKEY_CURRENT_USER -> Control Panel -> Input Method and right-click -> New -> Key and name the key(/folder) EnableHexNumpad. On the right-hand side of the application, the type, which is set to REG_SZ, is OK, but you need to set the value to 1: double-click under Name and enter the value 1 in the popup window that shows up. Then close the regedit.exe application and reboot the system for the changes to take effect.    But this does not work for me: Word 2007 intercepts Alt + keyboard plus and thinks I want to insert an equation. Notepad thinks that I want to pull down a menu from the top when I press Alt. And I've even tried inserting the + key with SHIFT+= after keeping the Alt key pressed by no luck. And it doesn-t seem to work in chrome and firefox either.  Thank you for your help.

This is in Windows, but answers for other operating systems can be handy to others.  Most guides say something to the effect of "hold down the Alt key and type in the code on the keypad".  This works fine for decimal codes (like 65 for 'A'), but not for  codes (like  for 'A').  Some applicatons provide other facilities that will allow hexadecimal Unicode character codes to be typed and then transformed.  Word allows you to type the code (such as 200f) and then convert it to Unicode by typing Alt-X.  I'm looking for a general method of doing this that will work with the standard input.


So I am trying to learn python and wrote a small program to give me the Fibonacci numbers. While I know that they can be defined recursively. I wanted to use the known mathematical formula for Efficiency. My code is very simple:  from math import sqrt def F(n): return ((1+sqrt(5))**n-(1-sqrt(5))**n)/(2**n*sqrt(5)) zahl = int(input("Welche Fibonacci Zahl möchten Sie: ")) print(F(zahl))   When I execute it, it gives me weird rounding Errors, for example for the Input 6 I get  8.000000000000002  instead of the expected 8.0. Does anyone know where this rounding error Comes from and how to avoid it. I was hoping that the Standard sqrt function in the math library was working precise enough! I am using Python 3.5 (32bbit) if that helps.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


For this question, I tried to apply the derivative limit formula on it but I have a problem with the square root there: $$\lim_{\Delta x \rightarrow 0}\frac{\sqrt{x+\Delta x}-\sqrt x}{\Delta x}$$ If I divide each term by $\Delta x$, as $\Delta x \to 0$，I get $1$ but this is not the correct answer.  I have also tried to expand $(x + \Delta x)^{1/2}$ by using binomial expansion but I forgot the ways to  apply it on the power of $1/2$.  Anyone know how to solve it by using differentiation from first principle?

This is an analysis question so we use the definition that the derivative of a function is, $$\lim_{x\to c} \frac{f(x)-f(c)}{x-c}$$ But I'm not really sure if I should just continue to say that $x=c$ for now as the second $x$ perhaps as if $f(x) = \sqrt c$. Obviously if we leave $x$ as is, $(f(x)-f(x)) = 0$ and the lim is $0$, but this is obviously not the case since $f'(x) = \frac{1}{2}\sqrt x$


In C# 3.0, is it possible to determine whether an instance of Type represents an Anonymous Type?

Is there anything to use, to determine if a type is actually a anonymous type? For example an interface, etc?  The goal is to create something like the following...  //defined like... public static T Get<T>(this IAnonymous obj, string prop) {     return (T)obj.GetType().GetProperty(prop).GetValue(obj, null); } //...  //And then used like... var something = new { name = "John", age = 25 }; int age = something.Get<int>("age");   Or is that just the beauty of an anonymous type? Nothing to identify it self because it takes a new shape?  Note - I realize that you can write an extension method for the object class, but that seems like a little overkill, in my opinion.


According to , reconnaissance is a noun. However, in the provided examples I feel it has a role for describing another name.     reconnaissance aircraft   a reconnaissance mission   Could someone explain how it is still a noun in such examples?

According to Wiktionary there is a noun . Does this suggest nuisance can be an adjective? Is it?


Let $\mathbb{M}=\langle M,\circ, e\rangle$ be a monoid. We say that   $\mathbb{M}$ is finitely generated when there exist finitely many   elements in $M$ such that each element of $M$ may be generated using   only these elements.      For example, $\langle A^*,\circ, \epsilon \rangle $ is finitely   generated if only and only alphabet $A$ is finite. Show that the class   of finitely generated monoids is not axiomatized.   My solution Let assume that there exists a such set of sentences $\Delta$ that $\mathbb{M} \models \Delta \iff \mathbb{M} \in \mathbb{M_K}$ where $ \mathbb{M_K}$ is a class of finitely generated monoids.  So, let's consider a language $L = \langle A^*, \circ, e \rangle$ where $A = \{a \}$ So $A$ is a finite set, therefore $L$ is a finitely generated monoid. So, $L \models \Delta$.  Let $\Delta' = \Delta \cup \Gamma, \Gamma = \{\exists w w = b_0,  \exists w w = b_0 \circ b_1, \exists w w = b_0 \circ b_1 \circ .. \circ b_n | b_0, .., b_n \text { are pairwise different and } n \in \mathbb{N}$.   Now, for every finite $\Delta_0 \subseteq \Delta'$ it is easy to point the such finitely generated $L_2$ that $L_2 \models \Delta_0$. From the compactness theorem there exists the model ( a language $L'$) for $\Delta', L' \models \Delta'$. But, $L' \models \Delta \cup \Gamma $ and it is not possible because $L'$ is not finitely generated while $\Delta$ force that. Contradiction.  Ok?  I would like to solve it using Ehrenfeucht-Fraisse game, but I don't know how to start. Please help.  Especially, what does it mean that two words are in relationship?

Let $\mathbb{M}=\langle M,\circ, e\rangle$ be a monoid. We say that   $\mathbb{M}$ is finitely generated when there exist finitely many   elements in $M$ such that each element of $M$ may be generated using   only these elements.         For example, $\langle A^*, \cdot, \epsilon\rangle$ is finitely   generated if only and only alphabet $A$ is finite.   Show that the class of finitely generated monoids is not axiomatized.      I would like to use Ehrenfeucht-Fraissé games to prove it.  I solved some tasks about showing not-axiomatization with these games, however mentioned exercises were about graphs.  So my solutions are based on relations (edges, degrees..). Here, I have no idea which side of this exercise should be attacked by me.     Help me please.  Edit after hints of @Noah Lets suppose that such $\Delta$ exists. Then, lets extend signature by constans: $c_1,c_2,...$ and let $\Delta'=\Delta\cup \Gamma$, where $\Gamma=\{\forall_{x\in A}\forall_{y\in A}x\circ y \neq c_i:i\in\mathbb{N} \}$.  Of course we have infinitely many elements not generated by rest of elements. Using compactness theorem we conclude contradiction. Let $\Delta_0\subseteq\Delta'$ will be finite set. Then it is easy to see that it is satisfable - We can add properly many elements to $A$ generated by nothing and assign to them finitely number of constanst $c_i$.     What do you think about this solution ? If I am wrong, tell me where.


I upgraded ubuntu, and since every PPA is disabled by default, I want to be able to list all packages that I have installed but aren't inside any enabled repositories. I want a command (or a series of commands) that performs a similar function as pacman -Qm on ArchLinux.

I suppose you could build a list of all packages that would be installed if you started with an empty apt database and installed everything that deborphan -a currently tells you. Then compare that with what's currently installed.  The difference would be packages that cannot be retrieved automatically with the current list of repositories.  I've no idea where to start with that though.


I was trying like this: Let $I=\langle f(x),g(x) \rangle$. Then $4=f(x)q_{1}(x)+g(x)q_{2}(x)$. But $deg (4)=0$. So $deg(f(x))=0$ and $deg(g(x))=0$. So $f(x)=a$ and $g(x)=b$ where $a,b \in \mathbb{Z}$. Then I am stuck. Is this the correct way? Any help is appreciated.

How do you construct, for each $n\geq 1$, an ideal in $\mathbb Z[x]$ of the form $(a_1,a_2,\dots,a_n)$ with $a_i\in \mathbb Z[x]$ such that it is impossible to have $(b_1,b_2,\dots,b_m)=(a_1,a_2,\dots,a_n)$ with $m<n$ and $b_j\in\mathbb Z[x]$?   Thank you!


I need to convert a LocalDateTime to UTC date, here is my code      LocalDateTime ldt = LocalDateTime.now();     System.out.println("Local date Time " +ldt);      ZonedDateTime ldtZoned = ldt.atZone(ZoneId.systemDefault());      ZonedDateTime utcZoned = ldtZoned.withZoneSameInstant(ZoneOffset.UTC);      System.out.println("UTC Zone"+utcZoned);      Instant i = utcZoned.toInstant();     System.out.println("Instant "+i);     Date out = Date.from(i);     System.out.println("date from Instant "+ out);   The output comes as   Local date Time 2019-05-08T16:23:53.109 UTC Zone2019-05-08T22:23:53.109Z Instant 2019-05-08T22:23:53.109Z date from Instant Wed May 08 16:23:53 MDT 2019   Till 3rd statement all is good. But when we get Date object from Instant it converts the Date object back to Local Time.   How can we get Date object as UTC from LocaldateTime??

When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?


I am planning to buy an xbox 360 console. my budget permits me acess to only the 4 GB one which needs extra space for many games' install. I have an external HDD of size 40GB. My question is can I divide it into partitions such thet I can use one for gaming on xbox and the other for data storage.


i've searched the net, and apparently this should be normal. in forums, i see people having 8, 10, even 20 instances. but i counted mine, and it reached 68. maybe this is the reason why one core of my cpu is way more loaded than the others, affecting my gaming experience. please help :(   here's a screenshot of process explorer and the cpu load graphs:

Today I upgraded to the Creators Update by running setup from the ISO mounted locally. When I got back to my computer I opened Task Manager and saw my memory usage was a lot higher than it was previously (it's now almost 6GB memory usage at idle after logging in instead of 2-3GB with the previous Windows build) - the processes tab revealed that there were upwards of 60 different instances of svchost.exe running. This 6GB figure is just for process memory - not including memory used for caching or "standby".  I ran tasklist /svc to get a listing of which services were in which processes and it lists almost every svchost.exe instance as only having one running service contained within (with the exception of a handful of instances that are running a few system services).  Here's  my output:  Image Name                     PID Services ========================= ======== ============================================ System Idle Process              0 N/A System                           4 N/A smss.exe                       440 N/A csrss.exe                      612 N/A wininit.exe                    700 N/A csrss.exe                      708 N/A services.exe                   776 N/A lsass.exe                      784 KeyIso, Netlogon, SamSs, VaultSvc svchost.exe                    888 PlugPlay svchost.exe                    908 BrokerInfrastructure, DcomLaunch, Power,                                    SystemEventsBroker fontdrvhost.exe                936 N/A svchost.exe                   1000 RpcEptMapper, RpcSs svchost.exe                    104 LSM winlogon.exe                   544 N/A fontdrvhost.exe                420 N/A svchost.exe                   1072 DeviceInstall dwm.exe                       1136 N/A svchost.exe                   1164 BFE, CoreMessagingRegistrar, MpsSvc svchost.exe                   1424 lmhosts svchost.exe                   1432 W32Time svchost.exe                   1440 nsi svchost.exe                   1448 wudfsvc svchost.exe                   1528 hidserv svchost.exe                   1628 Dhcp svchost.exe                   1716 Dnscache svchost.exe                   1748 EventLog WUDFHost.exe                  1792 N/A svchost.exe                   1908 TimeBrokerSvc svchost.exe                   1952 NlaSvc NVDisplay.Container.exe       1968 NVDisplay.ContainerLocalSystem svchost.exe                   1324 Themes svchost.exe                   1596 ProfSvc svchost.exe                   1944 EventSystem svchost.exe                   1052 netprofm svchost.exe                   2116 StateRepository svchost.exe                   2256 SENS svchost.exe                   2296 AudioEndpointBuilder svchost.exe                   2304 FontCache (etc)...   I know you can configure individual services to run in their own instance of svc with the sc config <serviceName> type= own command, but to my knowledge I've never run this command.  I took a quick look at Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and it looks like the Type key values for most of these services is missing the flag bit at 0x10 which controls if a service runs in its own svchost.exe instance or not. I wonder what could have effected this change.  Has anyone else observed this behaviour before or after installing Windows 10 Creators Update? If it is a default configuration change, will it have any implications on system performance or stability?  I suspect it will increase system stability because if a service crashes it won't bring down other services - but this comes at a massive cost of RAM - but I've never experienced a service crashing on me - or at least ever noticed it (instead the worst problem I've had is with wuauserv consuming 100% CPU for hours on end - and that's not a problem process isolation will solve).  (I just noticed: they finally added an address bar to the Registry Editor!)


Can we travel to India via Frankfurt (transit) with an expired Canadian visa? We do not have any other country's visa.  I am an Indian Citizen and my Canadian visa expired last Nov 2018. Now returning back to India from Canada.  Please assist!

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


I am coding a PHP script, but I can't really seem to get it to work. I am testing out the basics, but I don't really understand what GET and POST means, what's the difference? All the definitions I've seen on the web make not much sense to me, what I've coded so far (but since I don't understand POST and GET, I don't know how to get it to work:      <form name="mail_sub" method="get"> Name: <input type="text" name="theirname">
 Email:&nbsp; <input type="text" name="theirpass">
 <input type="submit" value="Join!" style="width:200px"> </form> <?php if (isset($_POST['mail_sub']))     {      echo $_POST['theirname'];      } ?>

What's the difference when using GET or POST method? Which one is more secure? What are (dis)advantages of each of them?  ()


I am trying to get CustomerID and I keep getting an error. Here is my code:  SELECT CustomerID, FirstName, LastName,Line1,Line2, City, State, ZipCode FROM Customers INNER JOIN Addresses     ON Customers.CustomerID = Addresses.CustomerID;   My error is:Ambiguous column name 'CustomerID'. How can that be when I used a JOIN statement. any thoughts?

When executing the following (complete) SQL query on Microsoft SQL Server 2000:  SELECT B.ARTIFACTTNS, B.ARTIFACTNAME, B.ARTIFACTTYPE, B.INITIALBYTES, B.TIMESTAMP1, B.FILENAME, B.BACKINGCLASS,         B.CHARENCODING, B.APPNAME, B.COMPONENTTNS, B.COMPONENTNAME, B.SCAMODULENAME, B.SCACOMPONENTNAME  FROM (SELECT DISTINCT A.ARTIFACTTYPE, A.ARTIFACTTNS, A.ARTIFACTNAME        FROM (SELECT DISTINCT ARTIFACTTYPE, ARTIFACTTNS, ARTIFACTNAME              FROM CUSTPROPERTIES WHERE PNAME = 'AcmeSystemName' AND PVALUE = 'MyRuleGroup'                    UNION SELECT DISTINCT ARTIFACTTYPE, ARTIFACTTNS, ARTIFACTNAME                            FROM CUSTPROPERTIES WHERE PNAME = 'AcmeSystemDisplayName' AND PVALUE = 'MyRuleGroup') A,             (SELECT DISTINCT ARTIFACTTYPE, ARTIFACTTNS, ARTIFACTNAME              FROM CUSTPROPERTIES WHERE PNAME = 'AcmeSystemTargetNameSpace' AND PVALUE = 'http://MyModule') B  WHERE A.ARTIFACTTYPE = B.ARTIFACTTYPE AND A.ARTIFACTTNS = B.ARTIFACTTNS AND A.ARTIFACTNAME = B.ARTIFACTNAME) A, BYTESTORE B      WHERE (A.ARTIFACTTYPE = 'BRG') AND A.ARTIFACTTYPE = B.ARTIFACTTYPE AND A.ARTIFACTTNS = B.ARTIFACTTNS AND A.ARTIFACTNAME = B.ARTIFACTNAME      ORDER BY ARTIFACTTYPE, ARTIFACTTNS, ARTIFACTNAME   I get the following exception:  java.sql.SQLException: [Acme][SQLServer JDBC Driver][SQLServer]     Ambiguous column name 'ARTIFACTTYPE'.   What am I doing wrong here and how can I correct it?


I have been often using GEE for complex panel analyses. However, it occurs to me that in many cases GLM would have provided similar results.  What is the main conceptual difference between the two?

I am wondering what the differences are between mixed and unmixed GLMs. For instance, in SPSS the drop down menu allows users to fit either:   analyze-> generalized linear models-> generalized linear models & analyze-> mixed models-> generalized linear     Do they deal with missing values differently?    My dependent variable is binary and I have several categorical and continuous independent variables.