I have a Netis WF2190 and I'm trying to get it to work on Kubuntu 18.04. I have downloaded and tried installing the driver from Netis' website but it won't compile. .  I have tried emailing the Netis' USA support staff since Thursday two weeks ago and have not gotten any reply. I have tried contacting their international support and general inquiries teams but their inboxes were full. As a last resort, I have sent an email containing my woes to the sales inquiries team but I don't expect much since they can't seem to keep their website up for more than a few days a week.  What do I need to do to make my wifi adapter work?     The driver is listed for Ubuntu 16.04/4.4.0 and dated February 21st, 2017  Per @chili555's request, here's the output of lsusb:  Bus 002 Device 002: ID 8087:8001 Intel Corp.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 005 Device 002: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:8009 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 003: ID 0480:d011 Toshiba America Inc Canvio Desk Bus 004 Device 002: ID 174c:3074 ASMedia Technology Inc. ASM1074 SuperSpeed hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 005: ID 0781:5567 SanDisk Corp. Cruzer Blade Bus 003 Device 004: ID 045e:00b0 Microsoft Corp. Digital Media Pro Keyboard Bus 003 Device 003: ID 046d:c07f Logitech, Inc.  Bus 003 Device 002: ID 174c:2074 ASMedia Technology Inc. ASM1074 High-Speed hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lsusb relevant output Bus 001 Device 006: ID 0bda:8812 Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter  Upon plugging the device it is recognized by lsusb, however when I go to wireless settings no adapter is recognized. The driver is installed (by going to software and updates -> addition drivers and selecting the open source driver).


I have the following class generated by EntityFramework,  public partial class Person {     public string FirstName { get; set; }     public string Lastname { get; set; } }   Now I would like to add custom Attributes before using it or modifying the above class dynamically using reflection. Something like below,  public partial class Person {     [SomeCustomAttribute]     public string FirstName { get; set; }     [SomeCustomAttribute]     public string Lastname { get; set; } }   Is it possible to add custom attributes using reflection?

Is it possible to add attributes at runtime or to change the value of an attribute at runtime?


I want to remove desktop from my Ubuntu server (I installed gnome desktop to be able to run Firefox and other programs with GUI). But I don't want to use desktop itself. I want to see command prompt most of the time. How can I solve this problem?

It appears that sudo systemctl disable gdm3 && sudo systemctl disable gdm do not work in 18.04 to disable the windowing system at bootup.  What's the method for doing this now?


I was just wondering how to make this PHP code a little bit safer (prevent it from SQL injection). It works, but I've heard that it's outdated and I should use new PDO instead. I'm not sure how to change my code to fix this, but I know it goes something like $conn = new PDO('mysql:host=example.netfirms.com;dbname=database1', "dbusername","dbpassword"); I tried to change it in the current code, but it hasn't been working for some reason. Here's the code: <?php          if(isset($_POST['add'])) {             $dbhost = 'example.netfirmsmysql.com';             $dbuser = 'username';             $dbpass = 'password';             $conn = mysql_connect($dbhost, $dbuser, $dbpass);                          if(! $conn ) {                die('Could not connect: ' . mysql_error());             }                          if(! get_magic_quotes_gpc() ) {                $email = addslashes ($_POST['email']);                $first_name = addslashes ($_POST['first_name']);                $last_name = addslashes ($_POST['last_name']);                $password = addslashes ($_POST['$password']);              }else {                $email = ($_POST['email']);                $password = ($_POST['password']);                $first_name = ($_POST['first_name']);                $last_name = ($_POST['last_name']);             }             $randnumb = rand(10,100);             $username = $first_name.$last_name.$randnumb;                          $sql = "INSERT INTO usernames". "(email,password,first_name,last_name,username)"."VALUES('$email','password','$first_name','$last_name','$username')";                             mysql_select_db('xiaomeimei');             $retval = mysql_query( $sql, $conn );                          if(! $retval ) {                die('Could not enter data: ' . mysql_error());             }                          echo "Entered data successfully\n";             header('location:welcome.php');             mysql_close($conn);          }else {             ?>  Thanks in advance. :)

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?


It is known that when we jerk the bottom string quickly, it will break; and if we pull slowly the top string will break, while the force applied is the same.   My confusion is: according to Newton's first law, an object will remain at rest or at a constant velocity when the net force acting on it is zero. However, in the mass-string system, the mass remained at rest despite the fact that the downward force exerted on the mass, in turn, on the top string exceeds the maximum tension that the string can withstand (as it caused the second string to break). So does this imply that not all the force applied on the bottom string are exerted on the mass (as the tension in the top string is lower than the bottom one)? If so, where did the force go? And why is that when the force is exerted over a longer period of time this disparity between the force applied and the force experienced by the top string seems to vanish?   Essentially, why is the tension in the top string smaller than the bottom one when jerked quickly?  I did some research online and came across answers similar to this one:  "By pulling the string slowly, we are putting a strain in the string below and above the weight. Due to the mass of the weight, the strain above the weight is much larger than below. The string snaps wherever the strain is the highest. When a sharp jerk is exerted on the string, the inertia of the weight keeps the strain below the weight. Although there is some strain above the weight, compared to the strain below the weight the strain in the latter is still higher, and the string snaps below the weight."   I understand that it has something to do with inertia, but how exactly does inertia "keeps the strain below the weight"? Please explain with details.  This is my first post, thanks for any help I can get!

Intro:  In completing , he presents an experiment (go to 42:44) which leaves me baffled.    Experiment:  (I recommend watching the video; see link above.)   There is a $2$ kg block with 2 identical strings attached to it: one at the top, the other at the bottom. The top string is attached to a "ceiling", and the bottom to a "floor". Professor Lewin "stretches" the system (by pulling on the bottom string) with the block not accelerating. One string snaps.     Prediction:   Initially, the top string has a tension of approximately $20$ N, to counter the force of gravity. The bottom string has no tension at all. Then, when Lewin pulls the bottom string, it gains some tension $n$ N. To counter act the force exerted by the bottom string, the top string exerts now $20 + n$ N. I assume that the string with more force will give out sooner, leading me to conclude that the top string will break.     Results:  (This was conducted by Lewin, not me; see link above.)   Trial 1: Bottom string breaks. Trial 2: Top string breaks. Trial 3: Bottom string breaks.     Additional Notes:  The results don't seem consistent. If I was right, I'd expect all 3 experiments to be right; conversely, if I was wrong, I'd expect all 3 experiments wrong, with one exception: the results are more-less random and one result isn't preferred over the other.    Question:        Why was my prediction incorrect?   Was there a flaw in my logic?   Why were the results inconsistent?


Whenever I use sudo apt-get install packagename, it will start installing. I will type "Y" when prompted then this will pop up:    TrueType core fonts for the Web EULA  END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE  …                            <Ok>   Why does this happen?

After a recent update, ttf-mscorefonts-installer prompted me to accept its license agreement.     ┌─────────────────┤ Configuring ttf-mscorefonts-installer ├─────────────────┐  │                                                                           │   │ TrueType core fonts for the Web EULA                                          │                                                                               │ END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE                             │                                                                               │ IMPORTANT-READ CAREFULLY: This Microsoft End-User License Agreement           │ ("EULA") is a legal agreement between you (either an individual or a          │ single entity) and Microsoft Corporation for the Microsoft software           │ accompanying this EULA, which includes computer software and may include      │ associated media, printed materials, and "on-line" or electronic              │ documentation ("SOFTWARE PRODUCT" or "SOFTWARE"). By exercising your          │ rights to make and use copies of the SOFTWARE PRODUCT, you agree to be        │ bound by the terms of this EULA. If you do not agree to the terms of          │ this EULA, you may not use the SOFTWARE PRODUCT.                              │                                                                               │                                  <Ok>                                         │                                                                           │   └───────────────────────────────────────────────────────────────────────────┘    Screenshot:   For some reason my terminal will not allow me to accept, or for some reason I am pressing the wrong hotkey...  I've tried every letter on the keyboard and Enter among others...  I'm sure there is a very simple and obvious solution to this.  I've also just tried to remove the package completely however the terminal states that due to the package not being correctly installed, I should reinstall the package before removing it.  Very frustrating!  Essentially, because I cannot successfully install this package, I can't really ever upgrade my system because I always have to end up terminating the terminal with the license agreement (thus the upgrade fails).


Hey guys i recently dual booted Windows 8 and Ubuntu 14.04 LTS on my laptop ASUS X550LD. The dual boot works perfectly but wifi doesnt connect in Ubuntu.  It connects on Windows 8 perfectly. Any help on this would be greatly appreciated.  3:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)  Subsystem: Lite-On Communications Inc Device [11ad:6605]  Kernel driver in use: bcma-pci-bridge

I have installed Ubuntu alongside Windows 8.1. But the wifi is not working in Ubuntu (perhaps the drivers are not present), which worked fine in windows. Also I cant connect with Ethernet since my laptop does not have an Ethernet port. So is there any way for me to connect to the internet in ubuntu? Edit: Output of the terminal command  lspci -knn | grep Net -A2:  vikram@vikram-Inspiron-11-3148:~$ lspci -knn | grep Net -A2 01:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Device [1028:0018]     Kernel driver in use: bcma-pci-bridge vikram@vikram-Inspiron-11-3148:~$    I did what Pilot6 suggested. Here is the output:    vikram@vikram-Inspiron-11-3148:~$ sudo dpkg -i *.deb [sudo] password for vikram:  Selecting previously unselected package bcmwl-kernel-source. (Reading database ... 163804 files and directories currently installed.) Preparing to unpack bcmwl-kernel-source_6.30.223.141+bdcom-0ubuntu2_amd64.deb ... Unpacking bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ... Selecting previously unselected package dkms. Preparing to unpack dkms_2.2.0.3-1.1ubuntu5.14.04_all.deb ... Unpacking dkms (2.2.0.3-1.1ubuntu5.14.04) ... Setting up dkms (2.2.0.3-1.1ubuntu5.14.04) ... Setting up bcmwl-kernel-source (6.30.223.141+bdcom-0ubuntu2) ... Loading new bcmwl-6.30.223.141+bdcom DKMS files... First Installation: checking all kernels... Building only for 3.16.0-30-generic Building for architecture x86_64 Building initial module for 3.16.0-30-generic ERROR (dkms apport): kernel package linux-headers-3.16.0-30-generic is not supported Error! Bad return status for module build on kernel: 3.16.0-30-generic (x86_64) Consult /var/lib/dkms/bcmwl/6.30.223.141+bdcom/build/make.log for more information. modprobe: FATAL: Module wl not found. update-initramfs: deferring update (trigger activated) Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for initramfs-tools (0.103ubuntu4.2) ... update-initramfs: Generating /boot/initrd.img-3.16.0-30-generic vikram@vikram-Inspiron-11-3148:~$


When I was reading some articles, I noticed that they use the italic format for some words. Could you please tell me when I have to use it ?  Also, sometimes they used the quotation marks “…” and "...". Is there any difference between them?  and when I have to use them?  Please I need a clear explanation.

In which cases is a word, or a group of words written in italics? Is italics used in specific contexts, or it is quite normal to write words in italics?


This is my attribute table:    the field "hight" is short type.  the field "text" is string type.  I try to find how can i connect between those two field with python phrase (i know how to do it with python phrase) but whats importent to me is that if i change the field "hight", then the new field will update automaticlly.  I red  but this isn't what i seek because it clumsy and long solution. I need a simple python\ Vb phrase to implement in the Field Calculator of the layer.

I have a feature class in a file geodatabase and it contains a field called [curing] in short integer type and another field called [IsPopulated] in short integer as well.  What I want to achieve is to make [IsPopulated] automatically populated with "0" or "1" depending on whether the [curing] column is filled with a numeric value.  "Field Calculator" does not help as it's just a one-off operation and NOT automatic.


How do you set a dynamic aura attribute default value like current userinfo instead of hardcoding. See below.  The harcoding accountid works, not dynamic contactid/not supported.   <aura:attribute name="lookupcase" type="Case" default="{      'sobjectType': 'Case',      'ContactId': '{!v.userInfo.ContactId}',                                                     'AccountId': '0012D000002oAkt'  }"/>

I am trying to default Site_Name__c for an attribute "SEComp" from other attribute.  It is giving compilation error as Cannot mix expression and literal string in attribute value, try rewriting like {!'foo' + v.bar}  It appears I am getting stuck defaulting from other attribute but default just works fine if I say 'Site_Name__c': 'Abc'  What is the right way of defaulting for this?  <aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasSObjectName" controller="KF_CompanyLookupController"> <ltng:require styles="/resource/SLDS231/assets/styles/salesforce-lightning-design-system.css"/> <aura:handler name="init" value="{!this}" action="{!c.doInit}"/> <aura:attribute name="SEComp" type="Searcher_Express_Company__c"                 default="{'sobjectType' : 'Searcher_Express_Company__c',                            'Site_Name__c': {!v.defaultSite.siteName}}"/> <aura:attribute name="defaultSite" type="KF_CompanyLookupController.Site"/>    helper class  getUserSite : function(component){         var action = component.get("c.getdefaultSite");         action.setCallback(this,function(response){             var state = response.getState();             if (state === "SUCCESS") {                 component.set("v.defaultSite",response.getReturnValue());             }             else if (state === "ERROR") {                 var errors = response.getError();                 if (errors) {                     if (errors[0] && errors[0].message) {                         console.log("Error message: " +                                  errors[0].message);                     }                 } else {                     console.log("Unknown error");                 }             }         });         $A.enqueueAction(action); }   Apex controller  public class Site {     @AuraEnabled     public String siteName {get;set;}     @AuraEnabled     public String siteID {get;set;}     public Site (){       this.siteName = siteName;       this.siteID   = siteID;     } }     @AuraEnabled public static Site getdefaultSite(){     Site dSite = new Site();     User currentUser = [select Division, Country, Office__c from User where id = :UserInfo.getUserId()];     system.debug('currentUser - Division: ' + currentUser.Division + ' Country: ' + currentUser.Country + ' Office__c: ' + currentUser.Office__c);     if (currentUser.Division == 'Futurestep') {         // 1. check to see if user is FS       dSite.siteID = '50';       dSite.siteName = 'Futurestep';     } else if (currentUser.Country == 'United States' || currentUser.Country == 'Canada' || currentUser.Country == 'Brazil') {     // 2. check to see if user is in NA       dSite.siteID = '0';       dSite.siteName = 'North America';     } else {       String userOffice = currentUser.Office__c;       if (!String.isEmpty(userOffice)) {         List<Business_Rule_Processor__c> defaultSites = [Select Site_Name__c,Site_Id__c from Business_Rule_Processor__c                                                           where RecordType.Name = 'Default Site'                                                           AND Type__c = 'Default Site'                                                           AND Active__c = true                                                           AND Office__c includes (:userOffice)];         if (defaultSites.size() > 0) {           string defaultSiteName = defaultSites[0].Site_Name__c;           String defaultSiteId = defaultSites[0].Site_Id__c;           if (!String.isEmpty(defaultSiteName)) {             dSite.siteName = defaultSiteName;             dSite.siteID = defaultSiteId;           }         }       }     }   System.debug('dSite value is'+dSite);   return dSite; }


I'm making a billiard game and I have two questions:  How do I find the velocity of two balls when they collide with each other and how do I apply it to both balls?  I already know the angles that they're gonna move, I just need to find the velocity that they'll move in those directions.  My game is in 3D, and I'm using Unity. I don't want to use Unity's built-in physics to compute the result in this case, I'd like to know how to compute it myself.

When a ball is struck, how can we know in which direction both balls will go when ball is struck? I know the angle at which the ball strikes the other ball matters, but how can we calculate that angle?  I've seen some of the videos to get started with elastic collision. Here is the link:    But it assumes that we know the angle at which the ball strikes other ball. May be I am asking too basic question but I am not a Physics guy so I need to understand how to calculate the angle.   Thanks in advance :)


I know main() method is a static method, I have seen the Object class methods but main() method is not defined there, then how we are using main() method in our java classes without importing related class?

So far I've been using public void run() {} methods to execute my code in Java. When/why might one want to use main() or init() instead of run()?


I recently upgraded my OS to Ubuntu 20.10. I tried to ascertain if Livepatch was still running. However, when I open a terminal, it's a black screen. I can't type or paste code.  Has anyone else had this issue?

Last night I thought to check whether Canonical Livepatch service is working fine after upgrading to Ubuntu 18.10 from Ubuntu 18.04. I know it was meaningless since it was working fine in Ubuntu 18.04. But to my surprise when I ran   sudo canonical-livepatch status --verbose   I got the error:   2018/11/03 23:11:05 error executing status: Livepatchd error: The platform Ubuntu 18.10 is not supported. exiting.   I am now confused, is the problem only on my system? OR Is Canonical Livepatch service not supported on Ubuntu 18.10?  I would therefore like to request my fellow Ubuntu 18.10 users to do the check and if someone knows the reason/solution please reply to this thread.


Is the structure "wise men are the people having or showing the ability" natural in Engish? Should it be "Wise men are the people who have or show the ability"?  Wise men are the people having or showing the ability to make good judgments based on a deep understanding and experience of life.

I was told that the following does not work:     Employees having children will be granted a day off.   However, this sounds better:     Having children, those employees will be granted a day off.   What is wrong with the first clause?


I have many files that look similar to this:  56.mp3?referredby=rss   What I want to do is remove the ?referredby=rss so they'll be like this:  56.mp3   How would I do this?

I have a number of tiff files named:    sw.001.tif sw.002.tif ...   and I want to remove the .tif at the end of each of the files.  How can I use the rename command to do this?


So in Star Wars: The Force Awakens,      Han Solo dies, killed by his own son, Kylo Ren.   But there's something that's been bugging me about that.      Why didn't Han stop Kylo Ren (aka Ben) from killing him?     Here is the scene right after Kylo Ren says that he knows what he needs to do, but he needs his (Han's) help, and he hands Han his lightsaber, and drops his mask on the bridge. The thing is, as you can see in the picture, he holds the lightsaber horizontally, with the live end pointing to his right (Han's left). And Han has a hand on the weapon as well. So, practically, he would feel is Ren tried to turn the saber to the side, or to point it towards Han.  Ok, I'd understand if Han had died because Ren drove the 'sidebar' of his lightsaber through him. Eventhough Han had spent a lot of time around Luke, and was familiar with the lightsaber, Luke's lightsaber didn't have the sidebars. Han has probably seen Ren's unique lightsaber before, but I could accept that he forgot about the sidebars. This is if Ren had stabbed Han with the sidebar.    But in this scene, it's pretty obvious that Ren did not stab Han with the sidebar, but with the full length of the lightsaber. Which means that he must have turned it from facing his right to facing his front. And Han had his hand still on the lightsaber! So he must have felt Ren turning it around to face him.  Why didn't Han stop Ren killing him? If he was that much older and weaker than Ren and couldn't physically stop him, why didn't he just jump out of the way?   EDIT: In , it was asked if Han knew Ren was going to kill him. But that question addresses what was going through his mind as he confronted Ren solo (pun intended). My question is asking why he did let Ren kill him. It's as if he not only knew Ren was going to kill him, but he wanted it. Why?

In The Force Awakens, on the bridge, it's not clear to me if Han goes into his confrontation with Kylo Ren expecting the outcome, e.g.      that his son will kill him.    much less expecting to help Kylo Ren complete his task. If that's the case, I don't understand why things needed to work out the way they did.   Why does Kylo Ren have to go through with it if he's conflicted  Why would he need Han's help?  What obligation is holding him to completing this task?  Why not just decide to turn to the light?


This is a homework question.     Let $f: (0, \infty) \to \mathbb{R}$ with $f(x)=\dfrac{\sin x}{x}$. I   have to prove that       $$|f^{(n)}(x)|\le \frac{1}{n+1}$$       where $f^{(n)}$ is the nth derivative of $f$.   I started to do a few derivatives:  $f^{(1)}(x)=\dfrac{1}{x^2}(x \cos x-\sin x)$  $f^{(2)}(x)=\dfrac{1}{x^3}((2-x^2) \sin x-2x\cos x)$  $f^{(3)}(x)=\dfrac{1}{x^4}(3(x^2-2) \sin x-x(x^2-6)\cos x)$  $f^{(4)}(x)=\dfrac{1}{x^5}(4x(x^2-6)\cos x + (x^4-12x^2+24)\cos x)$  I noticed that in denominator, there is always $x^{n+1}$ (because there is $x$ in denominator of $f$), but I couldn't spot a pattern for the numerator that would help me prove the inequality. Can I get a hint or a clue, please?

Suppose $x>0$ and we have function $f(x)=\frac{\sin x}{x}$ how can we show $$\forall n \in \mathbb{N} :|f^{(n)}(x)|\leq \frac{1}{n+1}$$ I need a hint to show this property .Thanks in advance . I tried for $n=1 ,2$  by finding maximum of $|f'| ,|f''|$ but I get stuck to show for $n$


EXPLAIN EXTENDED   SELECT * FROM table_name  --  FORCE INDEX(dummy_date)   USE INDEX(dummy_date)  where dummy_date   between '2020-12-01' AND '2020-12-31'  AND name='something';  ALTER TABLE `table_name` ADD INDEX `dummy_date_index`(`dummy_date`)  When I execute this query then indexing is not working but if I use force index then its working with index. Please let me know the correct approach to use the index for millions of rows.

I'm trying to optimize some of the database queries in my Rails app and I have several that have got me stumped.  They are all using an IN in the WHERE clause and are all doing full table scans even though an appropriate index appears to be in place.  For example:  SELECT `user_metrics`.* FROM `user_metrics` WHERE (`user_metrics`.user_id IN (N,N,N,N,N,N,N,N,N,N,N,N))   performs a full table scan and EXPLAIN says:  select_type: simple type: all extra: using where possible_keys: index_user_metrics_on_user_id  (which is an index on the user_id column) key: (none) key_length: (none) ref: (none) rows: 208   Are indexes not used when an IN statement is used or do I need to do something differently?  The queries here are being generated by Rails so I could revisit how my relationships are defined, but I thought I'd start with potential fixes at the DB level first.


Let $A$ and $B$ be sets of positive real numbers. Let $A*B = [ab$ | $a \in A$ and $b \in B]$. Then $lub(A*B)=lub(A)*lub(B)$  I think this is true, but I'm not sure how to prove it, and have been trying it for a while now. Any hints or help would be appreciated.

Let $A$ and $B$ be nonempty sets of positive real numbers that are bounded above. Also let $AB = \{ab: a \in A, b \in B \}$. Prove that $AB$ is bounded above and $\sup(AB) = (\sup A) (\sup B)$.   So $\sup A$ and $\sup B$ exist by completeness. An upper bound for $AB$ is $(\sup A)(\sup B)$. Let $\alpha = \sup A$ and $\beta = \sup B$. We want to show that if $c$ is an upper bound for $AB$ then $\alpha \beta \leq c$. For $a \in A$, $ab \leq c$ for all $b \in B$. So $c/b$ is an upper bound for $A$. Thus $\alpha \leq c/b$. It follows that $\alpha \beta \leq c$.  Is this correct?


Trying to follow  discussion I tried to install chm2pdf but apparently it no longer exists. Please advise.

How do I get to the Universe Repository in supported versions of Ubuntu?


I am a new user of Ubuntu Mate and I liked it.  Well, I was a user because I couldnt play videos from Netflix so I have to return to windows. What can I do to play Netflix videos?

Is there a way to stream Netflix content to my Ubuntu machine?


I know this is simple, but I just can't seem to get it... The question is to simplify:  $\tan\frac{\pi}{5} + 2\tan\frac{2\pi}{5}+ 4\cot\frac{4\pi}{5}$  To get: $\cot\frac{\pi}{5}$  How does one go about this?

To prove  $ \tan(A) + 2 \tan(2A) +4\tan4A + 8 \cot8A =\cot(A) $.  I tried to convert $\tan(4A)$ and $ \tan(8A)$ to $\tan(A$) and tried putting in L.H.S but it becomes a mess. Is there a easy and also intuitive  way to do this?  Thanks


I'm really confused on voting.  Based on the link below I am assuming that comments do not affect reputation.  Can administrators or more "powerful" users for lack of a better term affect a user's reputation more than "regular" users?  Is there a way to see which user(s) is giving me upvotes and downvotes?  Is there a way to file a complaint if you think somebody is targeting you due to racism, bigotry, etc.? What is the mechanism for this?  I started in the SciFi and fantasy community, then joined Android and received an additional 100 points in both Android and SciFi. I did not receive an additional 100 points in SciFi when I joined META, although it states in the link below in the comments that I should for each time I join a community. Why didn't I receive an additional 100 points in SciFi again?  I edited my question based on the link below. If there are other links I should check out that'd be great.

On Stack Exchange, users may gain a certain level of reputation.  What does reputation do? How can a user gain or lose reputation?   See also   in the Help Center  - Maximum amount of votes a user can use in a day and reputation requirements to vote.  - How to get an exact overview of the actions that got you your reputation.  - A full list of all privileges granted at each reputation level on all sites.


This is a sequel to . There are three lines in the title, and an awkward gap between the first ('AAAA...') and second ('OF'). How to get rid of it?   PS: I am showing the title THIRD, so I can link to it .  \documentclass[trimmed=true]{bookcover} \usepackage{comment} \usepackage{csquotes} \usepackage{lipsum} \usepackage{graphicx} \usepackage{hyperref} \usepackage{keyfloat} \usepackage{xparse}  %coverwidth=〈length〉 %coverheight=〈length〉 %spinewidth=〈length〉 %flapwidth=〈length〉 %marklength=〈length〉 %bleedwidth=〈length〉 %markthick=〈length〉 %markcolor=〈color〉 %〈10pt|11pt|12pt〉 %trimmed=〈true|false〉  \NewDocumentCommand{\booktitleA}{}{FIRST} \NewDocumentCommand{\booktitleB}{}{SECOND} \NewDocumentCommand{\booktitleC}{}{THIRD} \NewDocumentCommand{\booktitleCfn}{}{precision} \NewDocumentCommand{\booktitleD}{}{FOURTH}  \begin{document}  % One-piece background parts: <---- % bg back flap, % bg back, % bg spine, % bg front, % bg front flap >------------------ % One-piece foreground parts: <---- % back flap, % back, % spine, % front, % front flap, % above back, % above front, % below back, % below front >--------------------  \begin{bookcover}    %\bookcovercomponent{center}{above front}{\color{blue}Remark above front} % You won't see it if [trimmed=true]   \bookcovercomponent{center}{spine}{\rotatebox[origin=c]{90}{\bfseries\large \booktitleA~\booktitleB }}     \bookcovercomponent{normal}{front}{       \begin{center}       \bfseries      {\large \booktitleA}      \vspace*{\fill}      {\huge AAAAAAAAAAAAAAAAAAAAAAAAA\\ OF\\ BBBBBBBBBBBBBBBBBBB}      \vspace*{\fill}      {\large \booktitleC}\footnotemark[1]\\       % https://tex.stackexchange.com/questions/509496/footnote-text-inside-a-bookcover-fails-to-display       \begin{minipage}{0.2 \textwidth}       \hrule       \noindent \footnotemark[1]\scriptsize \booktitleCfn     \end{minipage}        \vspace*{\fill}      \keyfig{lw=0.3,cstar={}}{example-image-a.png}      \vspace*{\fill}      {\huge \booktitleD}      \end{center}     \footnotetext{\booktitleCfn} % Try # 2    }  \end{bookcover}  \end{document}

I was working on a Beamer presentation, and noticed that, if I open a group scope and use a \tiny, the font size will bet set, but there will be a large space between lines. However, if I issue a \par at the end of the paragraph, it works as intended:  \documentclass[t]{beamer} \newcommand{\shortlipsum} {Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. Curabitur dictum gravida mauris. Nam arcu libero, nonummy eget, consectetuer id, vulputate a, magna. Donec vehicula augue euneque. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Mauris ut leo. Cras viverra}  \begin{document} \begin{frame} \shortlipsum  {\tiny \shortlipsum\par   % <--- removing this \par will break line spacing } \end{frame} \end{document}   Here's a comparison between not using and using \par:    Am I doing it the right way? Why is \par the right way?


I made an edit to my post while leaving the "explain the reason for your edit" part empty. But now I want to add the reason without re-editing the question. Is there a way for this?  Discussion : If not, should there be a way to do this? I think it might be nice, but I'm not sure if it would cause any bug or vulnerability or something.  Edit: Now I think and see one downside of this feature would be that it would require to save the previous edits, so maybe a little bit more database burden. However SE might already be saving them, with edit reviews and such. So it might not be a big deal at all. So I'm adding the "feature-request" tag to the question, also writing my edit reason :)

It often occurs to me to add an edit summary to a question-edit immediately after submitting the edit, especially if the changes aren't obvious (formatting etc.). So I:   Click "edit" again. Fill in the summary Click on "Save Edits".   The 'edit' (no actual change has been made to the title/body/tags)  is accepted, but the summary doesn't show up, i.e. it is silently rejected.   I don't think it should work this way because the summary has been added by the original editor within the original edit's edit-window. In fact if I remember correctly, it to used to work as expected earlier; so perhaps this is a recent change.


this  asserts the story "Spondulix" by Paul Di Filippo in Sept 1995 issue of Science Fiction Age is possibly the first appearance of a digital-currency/bitcoin-like technology in science fiction. is that about right? are there others?       What was the 1st instance of digital currency in Sci-fi?

I've only been able to trace it back to Asimov's "Foundation" series, first started in 1942. Anyone know if this trend of currency naming goes back any further?


I'm doing a university assignment and I need some advice. Do I need a resistor between the 9V power source and the microcontroller that uses 5.5V and 1mA? Also between a gyroscope sensor that uses 3V and 5mA?

How would one go about using a 12 V DC power source to power something which needs 4.5 V DC using resistors? Is there a way to determine how much adding a resistor would drop the voltage?


I desperately search for an answer now, nothing helps. I want a graphic and a tabular appear before another subsection.   I use the placeins package for that, and expanded it to also do it in subsections. but the figure and the table are placed at the end of the document, on different pages.   It's still not working. here is the whole file:   \usepackage{placeins}  \makeatletter \AtBeginDocument{%     \expandafter\renewcommand\expandafter\subsection\expandafter{%         \expandafter\@fb@secFB\subsection     }% } \makeatother  \begin{document}  \subsection{Tables and Figures}  \begin{figure} \centering \includegraphics[width=0.5\textwidth]{frog.jpg} \caption{\label{fig:frog}This is a figure caption.} \end{figure} \FloatBarrier  \begin{table} \centering \begin{tabular}{l|r} Item & Quantity \\\hline Widgets & 42 \\ Gadgets & 13 \end{tabular} \caption{\label{tab:widgets}An example table.} \end{table} \FloatBarrier  \subsection{Mathematics} ...  \end{document}   Output:

My table consistently skips to the very last page! Is this simply a function of the doc mode? I have tried various float controlling methods like \FloatBarrier, etc., but nothing has been successful so far.  On the  it says:      When revising and proofreading a manuscript, it is most helpful to   have the tables and figures readily available (rather than turning   most of the way to the end of the manuscript to access them). If the   user invokes the floatsintext option (in the \documentclass line),   tables and figures will be integrated in the text approximately at the   point where they are mentioned.   I tried this but maybe I read it wrong.


Consider the following code segment, I get the following error   Exception:  'could not find installable ISAM'.   My code is:  OleDbConnection con = new OleDbConnection(); con.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\Users\Admin\Documents\Login.accdb;Persist Security Infor=false";

I've written some VBA code in an Excel workbook to retrieve data from an Access database in the same directory on a desktop.  It works fine on my machine and several other machines running Windows XP, but when we tested this on a Vista machine, we encountered the following error:     Could not find installable ISAM   I've done a bunch of searching online but can't seem to find a concrete answer.  The connection string seems to be fine, and, as I mentioned, it works on several machines.  Does anyone have any idea what could be causing this?  My connection string is as follows:  Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ptdb\Program Tracking Database.mdb;   Thanks


In the thread "Difference between field and wavefunction" is explained very well what are they from formal mathematical point of view and how trough second quantization one gets QF from WF. But there is not treated the issue of transition from epistemology (WF especially in Copenhagen interpretation) to ontology (QF-quantum fields) I can not see how the second quantization (a mathematical procedure) raises wavefunction (an epistemological construct) in QM which is loosly speaking square root of probability (very strongly stated in standard QM) to an ontological object a real existing thing e.g. QF  underlying everything. I can not find such Statement in QFT books which start with QM wavefunction but this Statement is widely popularized by some physisists. May it that the WF is an emerging phenomenon due to reality of the QF? Than WF should not be considered very strange?

Can someone give me a clear explanation of what is the difference between a classical field, a wave function of a particle and a quantum field? I haven't find a clear explanation. For example for Klein-Gordon equation, the solution $\phi(x)$ is a plane wave, but $\phi(x)$ can be interpreted in any of the 3 ways I mentioned above and I am not sure what is the difference between them. (for example I am not sure why the wave function is not a field, as it assigns to any point in space a value, so it seems to behave like a field). Thank you!


Pressing SUPER+L second time hides desktop but leaves side bar visible, not very safe situation.  Is there any fix for this?

The dock doesn't work correctly after I enter my password, either.


When we say that $x \in \mathbb R$ does here $x$ represents all real numbers at the same time or $x$ represents only a single real number at one time. How can a single variable($x$) represent all the real numbers at the same time ? when we write $x \in \mathbb R$ it means that $x$ is an element of the set of real numbers, this means that $x$ represents a single real number but then why we start to treat it as if $x$ represents all the real numbers as in inequality suppose we have $x>-2$ this means that $x$ can be any real number greater than $-2$ but then why we say that all the real numbers greater than $-2$ are the solutions of the inequality. $x$ should represent a single real number right ? then how can $x$ represents all the real number.Please help me....

What do we mean when we say "Let $x$ be an element of the set $\mathbb{R}$"?  Does $x$ represents only a single  element of set $\mathbb{R}$? or does $x$ represent all the element of set $\mathbb{R}$ simultaneously at the same time? People say that if $x\in\mathbb{R}$ then $x$ is any real number; that means $x$ represents all real numbers. But if $x$ is any real number then let's say $x=1$; so $x$ is one, then how it can represent all real numbers? Please help me I am very confused.


I think of the following proof:     Let $a, b\in R$. Then    $(ab)^2=ab$ or, $(ab)(ab)=a^2b^2$ or, $a(ba)b=a(ab)b$ or, $ba=ab$ (by left and right cancellation laws). Hence $R$ is  commutative.   Is this proof correct? Justify.

If $S$ is a ring with the property that $s=s^2$ for each $s \in S$, then is $S$ commutative?   I know $st=(st)^2=stst$. On the other hand, $st=s^2t^2$. Hence, $$stst=sstt$$  If $S$ is a division ring, then by cancellation we can have $st=ts$.  But how to make sure that any non-zero element in $S$ is not a zero-divisor?


So I have an LGK4 android phone with 8GB of storage, and lately I've been having really weird storage problems; When I try to install or update an app I can't because the storage is full; thing is, I've already cleared my cache, deleted unnecessary apps, and all my photos/videos etc are on the SD card. The apps I do have installed all come to 3.16GB, which theoretically should be the only things on the internal storage, but it still says I just have 611MB available? What happened to those 4GB? To top it all off, I can't access any files on the internal storage, it literally doesn't have any icon or button to access it, so I can't see what's causing this. Any ideas? Should I do a factory reset?

I have critical low storage level and can't understand what takes much of it and how that's possible that the installed applications can use 7 GB? I only use a few social media clients without any games or soft like Photoshop. Also on the second screenshot it indicates that the apps are using just 1.13 GB and so I can't understand the situation. Also what is the "Other"?


How can you "rigorously" prove the following mathematical fact? $$ \sum_{k=0}^m \sum_{j=0}^k a_{kj} = \sum_{j=0}^m \sum_{k=j}^m a_{kj} $$  Visually, it is clear they are equivalent ()

As a part of a proposition about power series that I am trying to prove I have to show that  $$ \sum_{m=0}^{\infty} \left(\sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n\right)(x-b)^m = \sum_{n=0}^{\infty}c_n(x-a)^n$$  Proof: What I have done so far is to show that  $$\sum_{m=0}^{n} \frac{n!}{m!(n-m)!}(b-a)^{n-m}(x-b)^m = (x-a)^n $$  So the next idea is to use Fubini's rearrangement theorem for infinite series (I have also shown that the series are absolutely convergent). However, the theorem does not accomodate for dependent indices. Intuitively (using triangular summation), I think that the proper way to interchange series would be \begin{equation*} %\begin{array}{ll} \sum_{m=0}^{\infty} \sum_{n=m}^{\infty} \frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m = \sum_{n=0}^{\infty} \sum_{m=0}^{n}\frac{n!}{m!(n-m)!}(b-a)^{n-m}c_n(x-b)^m %\end{array} \end{equation*} and thus  $$=\sum_{n=0}^{\infty} c_n(x-a)^n$$ However, I do not know how to perform this step rigorously in case of infinite summation.


I’m trying to solve the problem detailed in    but I’ve run into an issue where the hooks in my cloth are not holding it in place when my monkey head presses against it.  Ideally, it should be working similarly to this:    …but instead, I’m getting this behaviour…  …where the cloth is torn from the pinned points and blows away from the pressing object.  Can anybody explain why the cloth is not pinning correctly? Absolutely baffled here.  Blend-File:   Demonstration of Vertex Group:

As per tutorials: 1. Created and subdivided a plane 2. Made a vertex group of vertices along one edge. 3. Clicked cloth button in Physics tab, checked "Pinning" and assigned the vertex group.  Yet it just falls, without hanging on to the pin vertices. What did I miss?


Employee obj = new Employee();  obj.Dispose(); //statement 1; obj = null; //statement 2   On which statement will the GC remove the object?  Exactly what will be happening behind the scene on statement 1 and statement2

Should you set all the objects to null (Nothing in VB.NET) once you have finished with them?   I understand that in .NET it is essential to dispose of any instances of objects that implement the IDisposable interface to release some resources although the object can still be something after it is disposed (hence the isDisposed property in forms), so I assume it can still reside in memory or at least in part?  I also know that when an object goes out of scope it is then marked for collection ready for the next pass of the garbage collector (although this may take time).  So with this in mind will setting it to null speed up the system releasing the memory as it does not have to work out that it is no longer in scope and are they any bad side effects?  MSDN articles never do this in examples and currently I do this as I cannot  see the harm. However I have come across a mixture of opinions so any comments are useful.


Linux newbie here, working on Debian Jessie.   Why does chmod u+w not make a file writeable for its owner?  I have run:  sudo chmod u+w /var/log/myapp/gunicorn-error.log   But now if I list the permissions on the file, it still doesn’t seem to be writeable:  ls -al /var/log/myapp/ total 52 drwxr-xr-x  2 opuser webapps  4096 Sep  1 11:08 . drwxr-xr-x 10 root   root     4096 Sep  1 11:24 .. -rw-r--r--  1 opuser webapps     0 Aug 23 07:11 gunicorn-access.log -rw-r--r--  1 opuser webapps 38639 Sep  1 11:15 gunicorn-error.log   What am I doing wrong?

What is the ending r for and the leading d for in file permissions on Linux?  Example:  drwxr-xr-x   I know about the user, group, others part, and I know w=write, r=read, x=execute.  But I don't know about the leading d and the trailing r.  Can anyone explain how this works?


What are the most vital aspects to keep track of in a vblock? Cpu allocation, memory, storage allocation?  It's a pre-setup environment that allows for infrastructure virtualization at scale with parts from VMware, Cisco, and EMC    My case is more specific to the system metrics rather than performance. Maybe, allocating some of the pool's cpu to another vm or understanding how much free memory there is at a given point.

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I would like help drawing a specific graph in LaTeX

I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   for providing big picture, which is important to beginners to not lose direction during learning. for comprehensive reference.   Examples are important, but only examples are not always clear for understanding the big picture and organization.


Exercise: Let $(X,\tau)$ and $(Y,\tau_1)$ be topological spaces and $f:(X,\tau)\to(Y,\tau_1)$ a quotient mapping. If $(X,\tau)$ is metrizable, is $(Y,\tau_1)$ metrizable?   Attempted solution:     Lemma: A metrizable space is Hausdorff.   If I assume $(X,\tau)$ to be a discrete space and $(Y,\tau_1)$to be a topological space endowed with the cofinite topology.  $(Y,\tau_1)$ is not Hausdorff.  Now I need to check if $f$ defines the quotient topology $\tau_1$. If $\{y\}\in Y$ then it is closed so $f^{-1}({y})$ is closed then ${Y}$ is closed in the quotient topology such as the union of all singular points, then $\tau_1$ is the cofinite topology.  Question:  Is this proof right? If not? Why not? What are the alternatives?  Thanks in advance!

Suppose $X$ a metric space and $\sim$ an equivalence relation on $X$. Is the space $X/\mathord{\sim}$ metrizable? I think that the answer is no, but I could not arrive at a counterexample.


The margins for headings make my inner child cry.    Here's some text  Heading 1  The gap to this text is more than the text before it  Heading 2  Here too!    Here's an image explaining it with visual helpers:    So the request is simple; fix the css for headings and give us nicer layout! Otherwise kittens will die (or some other inappropriate Internet meme).

In January, some additional whitespace  below h1, h2 and h3 headings,  more whitespace below the headers than above them.  Could we have the whitespace above the headings be more than the whitespace below them?  I find some posts a bit hard to read, like the current rendering on the left:


I need locate program file in user's PATH. I found few solution, the best are command and type.  Which is better, faster, UNIX-like way and why?  command -v <application> type -p <application>

When looking for the path to an executable or checking what would happen if you enter a command name in a Unix shell, there's a plethora of different utilities (which, type, command, whence, where, whereis, whatis, hash, etc).  We often hear that which should be avoided. Why? What should we use instead?


I am having a problem at a Java program. Exception in thread "main"  java.lang.NullPointerException at twoten.TwoTenB.<init>(TwoTenB.java:29) at javapractice.JavaPractice.main(JavaPractice.java:32) Java Result: 1    is the error that I'm getting. I could really use some help, since i am stuck hours on this spot...  package twoten;  import java.util.Scanner;  public class TwoTenB {  public TwoTenB() {     double percentage;     double a[] = null;     double total = 0;     double var;     System.out.print("\tRESULT\n\n");     Scanner scan = new Scanner(System.in);     //double[] mark = new double[7];     for (int i = 0; i < 7; i++) {          System.out.print("\nMarks in subject " + (i + 1) + "\t:\t");         var = scan.nextDouble();          a[i] = var;          total = total + a[i];        //percentage = first * second * third * fourth * fifth * sixth * seventh * 100 / 700;     }      percentage = total * 100 / 700;      if (a[0] > 35 && a[1] > 35 && a[2] > 35 && a[3] > 35 && a[4] > 35 && a[5] > 35 && a[6] > 35 && percentage > 35) {         if (percentage >= 60) {             System.out.print("\nCongratulation!!! you've got FIRST dividion\n");         } else if (percentage >= 45 && percentage < 60) {             System.out.print("\nCongratulation!!! you've got SECOND dividion\n");         } else if (percentage >= 35 && percentage < 45) {             System.out.print("\nCongratulation!!! you've got THIRD dividion\n");         }     } else {         System.out.print("\nSORRY!!! you've FAILED\n");     }     } }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I understand it would look horribly cluttered -- but I can't figure out how to even go about starting to create this in LaTeX.  See:

I already have a code that draws a regular hexagon the following way   \begin{tikzpicture}[every node/.style={draw,shape=circle,fill=blue}] \path (0,0) node (p0) {} (-1.5,-1) node (p1) {} (-1.5,-2.5) node (p2) {} (1.5,-2.5) node (p3) {} (1.5,-1) node (p4) {} (0,-3.5) node (p5) { }; \draw (p0) -- (p1) (p0) -- (p1) (p0) -- (p2) (p0) -- (p3) (p0) -- (p4) (p0) -- (p5) (p1) -- (p2) (p1) -- (p3) (p1) -- (p4) (p1) -- (p5) (p2) -- (p3) (p2) -- (p4) (p2) -- (p5) (p3) -- (p4) (p3) -- (p5) (p4) -- (p5); \end{tikzpicture}   But Now I need to remove one of the points and to draw a regular pentagon the same way. So I need to remove (P5) and to recalibrate all other points (change their coordinates) But I don't need to change the code much.  Is there a way to do it by just slightly changing my code here. ?


In order to get the apt-get update/upgrade/install commands to work, I have added proxy information to my /etc/environment file. For example:  http_proxy="http://proxy-chain.acmewidgets.com:8080/"    https_proxy="https://proxy-chain.acmewidgets.com:8080/"     ftp_proxy="ftp://proxy-chain.acmewidgets.com:8080/"     socks_proxy="socks://proxy-chain.acmewidgets.com:8080/"   Then, and this is important for my setup (not sure why - that is my question), I have to enter super user mode in order to get apt-get  to work. Like I said, I'm not sure why, but simply prefacing the aforementioned apt-get commands with sudo does not work for me. For example, when I do sudo apt-get update, the terminal window hangs like so:  somedude@ACME-WIDGETS-03:~$ sudo apt-get update  0% [Connecting to us.archive.ubuntu.com (91.189.91.13)] [Connecting to security   What works is entering sudo su at the command line and then running the apt-get commands WITHOUT prefacing with sudo. I have to do this even if I am working in a super user terminal (opened by executing sudo gnome-terminal). Until I issue that sudo su command at the prompt, the proxy settings in /etc/environment are not seen. I checked this by doing echo $http_proxy before and after the su; before: nothing came back, after: what was set in /etc/environment came back.  Not a big deal, because I am able to get my updates and do my installations; but the idea with Ubuntu is to use sudo so that you don't do damage  accidentally while in super user mode.  So what is going on do you think?  Thanks.

I need to configure proxy. There wasn't apt.conf file in etc/apt/ so I've created it using nano.   But I don't understand what I need to write there. I've written  http_proxy = http://lgn:pwd@192.168.1.254:8080/ there and then restarted networking. But when I try to apt-get update - it doesn't work.   Actually I don't understand what port and ip I should write in apt.conf file(there was example with 192.168.1.254 ip and 8080 port so I decided to use them).


I have the following query:  Select SubId, Max(ReadTimeLocal) From dbo.PanelWorkflow  Where ProcessNumber IN (802,1190,1605,1620,1645,1660,1695,1790,1990,2690,2795,2990,3090,3290,3590,3790,4190,4390,4590,5000,5200,5400) Group By SubId   I have the following index on the dbo.PanelWorkflow table:  CREATE NONCLUSTERED INDEX [IX_PanelWorkflow_ProcessNumber_Lineage] ON [dbo].[PanelWorkflow] (     [ProcessNumber] ASC,     [Lineage] ASC ) INCLUDE ( [SubId],[ReadTimeLocal]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)   The query plan from SSMS looks as follows:    SSMS is recommending  I create the following index (with an impact of 54.3)  CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>] ON [dbo].[PanelWorkflow] ([ProcessNumber]) INCLUDE ([SubId],[ReadTimeLocal])   Does anyone know why it's recommending I create an index that essentially exists already, and is not using the one that does exist?  There are 830 million rows in the table. Using SQL Server 2012.


I am working on  and the "Useful Links" section at the bottom (second footer widget area) is not working because somehow the current page links got added to the links (please hover on the links and see the bottom left on your browser to see what I mean).  I check the widget and the links should work, here are some of the code inside the text widget  www.ordre.psy.qc.ca/en/ www.cpa.ca www.nimh.nih.gov/index.shtml   Can anyone tell me what is happening? Currently I am checking the JS files to see if the links are added by Javascript.  Thanks in advance.

I have created an ad for a merchant wanting to rent ad space on my website home page. After creating the ad, (anchor text and pic/graphics with embedded hyperlink) the merchant has requested I remove my url from the ad code. The anchor text along with the embedded hyperlinks links to the merchant's home page.  Problem is I don't know how my url was added to the code as I never inputted it in the original code in the first place. Somehow it was added by I think, WordPress or my server (PHP).  When I view the page source I do see my url was added to the ad code.  Can anyone help explain this and tell me how I can remove the url? Also, if I am able later to remove my url, how will it affect the hyperlink and anchor text?  Thank you, -Dan  Hi s_ha_dum,  I have read your answer and have now made sure the code reads as abosolute url.  Here it is with absolute url:  If you are interested in helping others treat and prevent hypertension, consider a healthcare degree from Loyola Online Courses today!   It still shows in page source however with my url addended to the code string.  What am I not understanding? Thank you!


I have problems with task which looks like pretty simply. I need to match two variables and return true if match and false if not.  I have made method which check it      isAnyApplicationFromToday(): boolean {       this.userApplications.forEach(application => {         if (application.registerDate.toString() == this.today.toString()) {           return true;         }       });     return false;   }   but it always return false.  Funny is that, if I console.log(), variable values match.  I tried already combination:  if (application.registerDate.toString() === this.today.toString()) if (application.registerDate === this.today) if (application.registerDate == this.today)     any ideas ?   EDIT:    isAnyApplicationFromToday(): boolean {     let isAny = false;       this.userApplications.forEach(application => {         if (application.registerDate.toString() === this.today.toString()) {           isAny = true;         }       });     return isAny;   }   work just fine.

Can someone suggest a way to compare the values of two dates greater than, less than, and not in the past using JavaScript? The values will be coming from text boxes.


i have a login page i have used    <?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>   now i was trying an whenever i enter     http://www.twekr.com/login.php/%22%3E%3Cscript%3Ealert('hacked')%3C/script%3E   & it gaved me this error   You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'hacked')%3C/script%3E', 0)' at line 2  What should i do now?    $uemail = "";   $upass = "";   if ($_SERVER["REQUEST_METHOD"] == "POST")   {     $uemail  =  test_input($_POST['email']);   $upass   =  test_input(md5($_POST['password']));     if(empty($uemail) or empty($upass)){   $message = "Please enter email or password";    } else {   $check_login = mysql_query("SELECT username FROM users WHERE email    ='$uemail' AND password ='$upass'");     if(mysql_num_rows($check_login) ==1) {         $get = mysql_fetch_array($check_login);   $_SESSION['username2'] = $get['username'];       $_SESSION['semail'] = $uemail; header('Location:http://twekr.com/');exit;     }else {           $message = "Wrong email or password";      }  }   }   ?>

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?


Consider the following code:  \documentclass{article} \usepackage{booktabs,pgf} \begin{document} \pgfmathsetlengthmacro{\ratio}{\the\textwidth/4}  \hrulefill \\  \begin{tabular}{@{}llll@{}}   \toprule   \makebox[\ratio][l]{xx}&\makebox[\ratio][l]{1} &\makebox[\ratio][l]{2}&\makebox[\ratio][l]{3}\\   \makebox[\ratio][l]{xx}&\makebox[\ratio][l]{1} &\makebox[\ratio][l]{2}&\makebox[\ratio][l]{3}\\   \bottomrule \end{tabular} \end{document}   with output    How can I determine \ratio such that the table fills (exactly) the textwidth of the page? As seen, currently the \ratio is too large such that the table becomes wider than the text width.

I have the following table:  \begin{table}[htb] \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{tabular}{ l | l }   {\bf Symptom} & {\bf Metric} \\ \hline Class that has many accessor methods and accesses a lot of external data & ATFD is more than a few\\ Class that is large and complex & WMC is high\\ Class that has a lot of methods that only operate on a proper subset of the instance variable set & TCC is low\\ \end{tabular} }; \draw [rounded corners=.5em] (table.north west) rectangle (table.south east); \end{tikzpicture} \caption{God class symptoms} \label{tbl:god_class} \end{table}   Now I want to force the width of the table to be the same as the \textwidth, either by linewrapping of table text or by scaling. How can I achieve that?


I'm currently developing a device which require an ethernet switch on it (to provide Internet connection to a microprocessor and an iPad). One of the major goal is to make it very small.  I found an ethernet switch IC and a USB to Ethernet IC (both have MAC and PHY integrated), but I was wondering if it's necessary to put a magnetics between both of them or I just do some direct connection. Maybe an alternative with smallest passive component would be possible?  My microprocessor has an ethernet port on it, so I guess it would be the same connection as the USB to Ethernet IC?  Thank you all.

I have some Ethernet issues with a set of boards (6/10 are bad). They're possibly just assembly house mistakes... but I'm very concerned about my magnetics jack.  I could have sworn I saw a example schematic with my jack's topology used with my PHY before, but I can't find it. The PHY's datasheet and suggested magnetics jacks are all identical in topology, and very different than what I have.  I'm using a SMSC  PHY, with a Bel  magnetics jack.  The transformer ratios on my jack vs. a suggested jack for this PHY like the  are the same (1:1).  The inductance is the same, 350uH. However, the choke on mine is on the circuit side, not network side. Also, while the TLA has four 75 ohm resistors from taps tied to a single 1nF/2kV cap, mine has an extra set of 1nF caps between the taps and the 75 ohm resistors.  The main difference is that my jack is a POE jack, and I thought I found an example that used one exactly like it. So, the topology is obviously different just because of that feature.  At the moment, I have 4 good boards, 1 'sometimes' board, and 5 boards that just blink a LED at 11.68Hz representing some error that no datasheet explains.  How important is this? Of course there's no other jack with that footprint.  EDIT  I added some detail on the magnetics jacks above. I was just recommended the SI-60152-F, so I'll compare to that one. Of course like all the other recommendations... it also has no stock at anyone on FindChips.  LATE EDIT  It turns out my problem was the crystal layout that fed the Ethernet PLL.  On the respin, I went with a more standard non-POE jack.


Temporary failure resolving 'us.archive.ubuntu.com' Err:3 http://us.archive.ubuntu.com/ubuntu focal-backports InReleas     Temporary faliure resolving 'us.archivve.ubuntu.com' Err: http://us.archive.ubuntu.com/ubuntu focal-proposed InRelease      Temporary failure resolving 'us.archive.ubuntu.com' Err:5 http://secruity.ubuntu.com/ubuntu focal-security InRelease     Temporary failure resolving 'security.ubuntu.com' Err: 6 http://archive.canonical.com/ubuntu focal InRelease     Temporary failure resolving 'archive.canonical.com' Reading packages lists... Done  W: Failed to fetch http://us.archive.ubuntu/dists/focal/InRelease Temporary     failure resolving 'us.ubuntu.com' W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/focal-updates/      InRelease Temporary failure resolving 'us.archive.ubuntu.com' W: Failed to fetch http://us.archiveubuntu.com/ubuntu/dists/focal-backports/     InRelease Temporary failure resolving 'us.archive.ubuntu.com" W: Failed to fetch http://archive.canonical.com/ubuntu/dists/focal/InRelease     Temporary failure resolving 'archive.canonical.com' W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-     security/InRelease Temporary failure resolving 'security.ubuntu.com' W: Some index files failed to download. They have been ignored, or old ones     used instead.

Err http://archive.canonical.com natty InRelease     Err http://security.ubuntu.com oneiric-security InRelease                Err http://extras.ubuntu.com natty InRelease                             Err http://security.ubuntu.com oneiric-security Release.gpg   Temporary failure resolving ‘security.ubuntu.com’ Err http://archive.canonical.com natty Release.gpg   Temporary failure resolving ‘archive.canonical.com’ Err http://extras.ubuntu.com natty Release.gpg   Temporary failure resolving ‘extras.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric InRelease Err http://gb.archive.ubuntu.com oneiric-updates InRelease Err http://gb.archive.ubuntu.com natty-backports InRelease Err http://gb.archive.ubuntu.com oneiric Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com oneiric-updates Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’ Err http://gb.archive.ubuntu.com natty-backports Release.gpg   Temporary failure resolving ‘gb.archive.ubuntu.com’  Reading package lists... Done W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/InRelease       W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/InRelease   W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/InRelease   W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/InRelease   W: Failed to fetch http://archive.canonical.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘archive.canonical.com’ W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/oneiric-security/Release.gpg  Temporary failure resolving ‘security.ubuntu.com’ W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/natty/Release.gpg  Temporary failure resolving ‘extras.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/oneiric-updates/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Failed to fetch http://gb.archive.ubuntu.com/ubuntu/dists/natty-backports/Release.gpg  Temporary failure resolving ‘gb.archive.ubuntu.com’ W: Some index files failed to download. They have been ignored, or old ones used instead.   This is what I'm seeing when I try to run sudo apt-get update. I did an update on my instance yesterday and am now experiencing this.


I installed Ubuntu 16.04 LTS this afternoon. Previously I mainly used Linux Mint. I've tried other Ubuntu/Debian variants and Manjaro, including Ubuntu itself. Ubuntu was my first intro into Linux, and the first time I installed and used it, I was amazed, scared and confused! Now I've gotten much used to Linux...  Anyways, on Mint the following option in the "Additional Drivers" window wasn't enabled; instead "Do not use the device" was enabled, but here on Ubuntu, as seen from the following image, I see that it's been pre-enabled.    Now I have a bunch of updates on my Software Updater. Among them is "Processor microcode firmware for Intel CPUs" update...    What should I do now? Do I select the "Do not use this device" option and not bother with the update? Or do I keep using the proprietary device? I've found a bunch of articles here, but as I said I don't understand all that much, rather it's really confusing! A sure-fire answer would be of great help!  Thanks in advance...

After upgrading to 15.04, I have one additional driver (it did not appear in 14.10). What is the purpose of this driver and should I enable it?


How to write in Terminal RHEL 6.3 in a proper way?   If not exist LOCAL_WORKING_DIR LOCAL_EVENT_LOG_WORKING_DIR mkdir LOCAL_WORKING_DIR LOCAL_EVENT_LOG_WORKING_DIR ????   I have tried with this but seems didnt work My script :   if [! -f ] $LOCAL_WORKING_DIR $LOCAL_EVENT_LOG_WORKING_DIR     mkdir $LOCAL_WORKING_DIR $LOCAL_EVENT_LOG_WORKING_DIR   In Windows we use WINSCP & 7zip right , is it okay to use Nautilus 3.10.1 & p7zip_9.20.1???   Do help me , please :)

What command can be used to check if a directory exists or not, within a Bash shell script?


Recently, I have started a project that needs to use stratified two-sample t-test. I know about one sample, independent two sample and paired t-test in R. My guess is that the project asks for ANOVA. How can I do stratified two-sample t-test in R. Thanks.

I have to test the difference between two samples which were selected via stratified randomization. The problem is that the samples are not independent due to randomization was stratified.  How should I conduct the test?      Edit:    There are 80 patients. They were strafified by weight into four groups, each containing 20 observations. There are 4 treatments A,B,C,D. 5 patients from each group were randomly assigned to each of the four treatments.  The question is how to compare these treatments?    Weight is known to be the most important factor influencing the desease. The researcher tries to "adjust for weight", i.e., to provide "balance" of weights among the treatments.  The problem in comparing treatments for each weight separately is that we will then have only 5 observations per group.


Go to do apt-get update and it can't find anything. 403 and 404 errors. Go to us.archive.ubuntu.com/ubuntu/dists/ and there is no disco there.

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


Gnome 3.36.3 Seems like windows are grouped and moving active one of them second one also moves, I cannot switch to not active one till active is closed ... strange behaviour which I cannot google ... could someone point me to solution?

Not sure of the terminology here, but most of my popup dialogs (see screenshot below) are attached to the window title and cannot be moved. If the parent window is moved, the popup moves with it. Is there a way to get rid of this and have all popup dialogs be opened as movable windows?    Ubuntu 17.10+ with GNOME Shell    Ubuntu 11.10 with Cinnamon


this question is not similar to this, because the other one is about one pc in specific and mine is about any pc.    I have found a intel core i7 octa core (with Intel vpro) in a screen damaged pc so i am interested in upgrade my current i5 dual dual core processor.  I have been researching a little about What does one have to consider before upgrading my laptop´s CPU, and i have found that the only i need to verify is if the new procesor is compatible with the actual socket.  I want to know if this is the only consideration that i must have when installing the processor and what may happen If something goes wrong?

I have a Dell Studio 17. It's a few years old, and I wanted to upgrade the processor. It currently has an Intel Core 2 Duo T5750 @ 2.00GHz  My question is how can I find out which processors are compatible?


How do you draw a triangular prism like this in LaTex? Thank you  I also  please need help in labeling all the vertices, thank you

How do draw a right triangular prism in latex in this point of view?   And moreover, how can I add the right angle label like this?   Finally, how to add lines in the same figure?   Thank you so much


Assume I'm a fighter, Sword and Board.  If the shield is in main hand as an improvised weapon, doing 1d4+STR, and my longsword is in off hand doing 1d8+STR. I have Two-Weapon Fighting and Dual Wielding.    Would this allow me to shield bash with my shield twice with extra attack (e.g. shove or do 1d4 damage), and make an off hand full attack with the longsword as my bonus action, and meet the requirements for the +1 AC from Dual Wielder:     Dual Wielder         You master fighting with two weapons, gaining the following benefits:   You gain a +1 bonus to AC while you are wielding a separate melee weapon in each hand.   You can use two-weapon fighting even when the one handed melee weapons you are wielding aren’t light.

Let's say I am wielding a dagger and shield, and I am using the shield as an improvised weapon. Would Dual-Wielder Feat and the Dual Wielding fighting style be in effect while I am using these as improvised weapons?


i want to install ubuntu in my new laptop 1st time.so,i request you to kindly tell the proceedure to install in a free dos laptop for 1 st time

I would like to see a full how-to guide on how to install Ubuntu.


Let $ I\subseteq\mathbb R$ be an open interval, $ f\in\mathcal C^n(I)$, and $ x_0\in I$. Let $ p $ be a polynomial of degree at most $ n $. Prove that if $$ \lim_{h\to0}\frac{f(x_0+h)-p(h)}{h^n}=0,$$ then $p$ is the $n$-th Taylor polynomial of $f$ at $x_0$.   I was thinking one might be able to do this with induction on $n$? Let us write $$p(x)=a_nx^n+\ldots+a_1+a_0$$ such that we have to show $$ a_0=f(x_0),\,a_1=f'(x_0),\,a_2=\frac{f''(x_0)}2,\,a_3=\frac{f'''(x_0)}6,\ldots$$  Then for $n=0$, the condition is equivalent to $$\lim_{h\to0}f(x_0+h)=p(h)=a_0$$ and since $f$ is continuous, the limit is equal to $f(x_0)$. Hence $p(x)=f(x_0)$ which is indeed the zero-th Taylor polynomial of $f$ at $x_0$.  Any ideas for the induction step?

So I'm viewing a short proof on the uniqueness of Taylor polynomials.     Uniqueness of Taylor polynomial:   Let $f:]a,b,[ \rightarrow \mathbb{R}$ $n$ times continuously   differentiable and $x_0 \in ]a,b,[$. If $p$ is $n$th degree polynomial   function for which       $$f(x)-p(x)=o(|x-x_0|^n), \space \text{when} \space x \rightarrow x_0$$  then      $$p(x)=T_{n, x_0} f(x)$$   Proof starts like:  $$\frac{p(x)-T_{n, x_0}f(x)}{(x-x_0)^n} = \frac{p(x)-f(x)}{(x-x_0)^n}+\frac{f(x)-T_{n, x_0}f(x)}{(x-x_0)^n}$$  then   $$\frac{p(x)-f(x)}{(x-x_0)^n} \rightarrow 0 \space, when \space x-x_0 \rightarrow 0$$  $$\frac{f(x)-T_{n, x_0}f(x)}{(x-x_0)^n} \rightarrow 0 \space, when \space x-x_0 \rightarrow 0$$  Now my problem is, how can one actually say that the above approach $0$ if the denominator approaches $0$?


header_text = f.read(header_text_size)[:-2].decode('utf-16').encode('utf-8')   What is the meaning of [:-2] in this Python code? I want to translate this into Java, and I need to know what it does.

I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it.


Have heard police target foreigners and rental cars. Any tips for dealing with them? Suggestions/tactics for driving in Nicaragua?

In Uzbekistan I was stopped, searched and questioned six times in one day.  At the border with Tajikistan, one official tried hiding my paperwork to elicit something from me.  In Kyrgyzstan, I was physically harassed and detained by the police, and about US$30 taken while they searched everything on me and a Dutch backpacker I was going to get food with.  I'm not particularly dodgy looking - it's happening to a lot of backpackers I meet.  Tourists are apparently a prime target for corrupt officials.  Any suggestions or tactics for avoiding these occurrences?  Aside from carrying only photocopies of your passport so that they can't hold your passport ransom, I've not heard many successful tips...


The mass of a nucleus is less than the sum total of the individual masses of the protons and neutrons which form it.  How this is possible?

I’ve been told that a greater binding energy means the nucleus is more tightly bound, and therefore that decreases the mass of the nucleus with respect to its nucleons when separated. But why does a tighter nucleus mean a smaller mass?


The RSA public key encryption requires two very large prime numbers as part of its encryption process that serve as secrets. These are typically generated with cryptographically secure random number generators of some kind.  However, random number generators generate random bits; they don't specifically generate primes; and proving that a number is prime would require attempting to factor it -- the very problem that makes RSA hard.  How are the prime numbers found for use in RSA?

What is the currently industry-standard algorithm used to generate large prime numbers to be used in RSA encryption?  I'm aware that I can find any number of articles on the Internet that explain how the RSA algorithm works to encrypt and decrypt messages, but I can't seem to find any article that explains the algorithm used to generate the p and q large and distinct prime numbers that are used in that algorithm.


From , there are $14$ bytes specifying the file format of the key. I am still quite confused about the format bytes. For example, the following public key 30 82 01 0a 02 82 01 01 00 8e a3 d1 c7 9c 86 05 52 3d 70 9a 5b 24 8a 6e ab 8f 5d 8d 9a 44 5f 25 78 c7 ba bd 3a a6 e1 36 b8 55 88 18 d7 ea e8 14 2c 68 8f e7 fe 94 4c f3 fd ad 0b e6 d2 eb 9e d2 66 b4 3a 3b d1 bb 5d d5 2a 53 7e 0f 1d ba ec 03 29 9d 47 50 3b 99 fb 4a 3a 80 a2 23 3e d7 11 e3 de a8 8d ab 7c 90 d0 92 af 36 b8 8b 28 fd 80 ec bc 37 6d 23 44 86 4e 28 19 1d 18 37 af 44 a9 40 b3 f6 e7 6c ad 56 5d 6f ff 3b e3 a5 cc 23 5c 54 2a 47 28 5b 29 f3 45 8e 69 98 ad 57 45 2e 60 bd ac 55 fc 35 e8 47 9f 98 0d f9 ea 9d 55 35 c9 db af 24 d2 bc 18 12 02 53 d6 aa ef 9c c9 11 c9 8e d7 7c 4f 2f 22 0f 66 b1 bf 06 a5 fa 87 22 9f ff f6 20 75 e7 51 87 26 30 c2 e1 a5 30 2c a1 fc 47 a5 f7 a5 38 d3 cc 8d 0e ee 5a 54 ee a2 f9 ff d0 0a 0f 18 7f 94 d2 04 5e 1f 25 ca be 4e 30 c3 40 00 ed a4 ce 58 ab 23 39 2d 02 03 01 00 01 is taken from google's certificate. The first byte $30$ means it is a sequence. Then I don't know what is the meaning from 2nd byte to 9th byte. Can anyone explain to me? UPDATE: The 2nd byte (82) means that the following 2 bytes give the length of the sequence. The 5th byte tells us that it is an integer. The byte following it tells us the length and the value of the integer (I guess). Then the rest I have no idea. Also what do the last 3 bytes stand for? I can't find format start with $01$.


I'm retrieving data from the internet and I want it to convert it to ASCII. But I can't get it fixed. (Python 2.7)  When I use decode('utf-8') on the strings I get for example Yalçınkaya. I want this however converted to Yalcinkaya. Raw data was YalÃ§Ä±nkaya.  Anyone who can help me?  Thanks.   Edit: I've tried the suggestion that was made by the user who marked this question as duplicate () but that did not solve my problem.  That post mainly talks about removing the special characters, and that did not solve my problem of replacing the turkish characters (Yalçınkaya) to their ascii characters (Yalcinkaya).  # Printing the raw string in Python results in "YalÃ§Ä±nkaya".  # When applying unicode to utf8 the string changes to  'Yalçınkaya'.  # HTMLParser is used to revert special characters such as commas # FKD normalize is used, which converts the string to 'Yalçınkaya'.  # Applying ASCII encoding results in 'Yalcnkaya', missing the original turkish 'i' which is not what I wanted.  name = unicodedata.normalize('NFKD', unicode(name, 'utf8')) name = HTMLParser.HTMLParser().unescape(name) name = unicodedata.normalize('NFKD', u'%s' %name).encode('ascii', 'ignore')

I have a Unicode string in Python, and I would like to remove all the accents (diacritics). I found on the web an elegant way to do this (in Java):  convert the Unicode string to its long normalized form (with a separate character for letters and diacritics) remove all the characters whose Unicode type is "diacritic".  Do I need to install a library such as pyICU or is this possible with just the Python standard library?  And what about python 3? Important note: I would like to avoid code with an explicit mapping from accented characters to their non-accented counterpart.


I have been trying to understand why the net electric field inside a conductor is zero regardless of the exterbal electric field. But why should equilibrium ever be attained?

In electromagnetism books, such as Griffiths or the like, when they talk about the properties of conductors in case of electrostatics they say that the electric field inside a conductor is zero.  I have 2 questions:    We know that conductors (metallic) have free electrons which randomly moves in all directions, so how come we can talk about electrostatics which by definition means stationary charges? When the textbooks try to show why the electric field inside a conductor is zero they say let us put our conductor in an electric field. What happens then is that there will be an induced surface charge density which consequently induces an electric field within the conductor such that the total electric field within the conductor will be zero. That is perfectly understood, but my problem is the following: the original claim was that the electric field within a conductor is 0, not the electric field after putting the conductor in an external electric field it became zero. I do not understand the logic!


I've got an issue with my username, only on the Software Quality Assurance and Testing website. I believe that is the reason my avatar is not working, eighter.  On every exchange, my username is randy. Until recently my username was working fine on the Software Quality Assurance & Testing site as well. Today I've visited the site again because I clicked my rep change, and noticed my username was something like a hash value.  My reputation is working fine, I just wonder why this happened and if there is a way I can fix this.    SQA&T:   Stack overflow:

I was just asking a question on Gardening SE and suddenly my user name there is a25bedc5-3d09-41b8-82fb-ea6c353d75aand my picture is replaced by a Gravatar. My location is also left blank.  Here's a   Curiously, my profiles on all other sites are fine.  I don't have a separate login for SE, I log in using my Google account. Nobody other than me has access to my Google account. I use two step authentication and I can see on "recent devices" in Google that no one but me has accessed my Google account. I only access SE from home, and nobody other than me has used my devices.   I tried to edit my Gardening SE profile back to the way I want it to be and I got the following message:     Oops! There was a problem updating your profile:   Display name may only be changed once every 30 days; you may change again on Jun 20 at 10:49   I'm assuming this is because I changed the "about me" on all SE sites two days ago.  I never edit my profiles individually. I always apply changes to all sites, using the same profile on all sites.  I have certainly not made such strange (or any) edits to my profile on Gardening SE.  Why did this happen, and how can I get my proper user name and picture back on Gardening SE? Do I really have to wait for a whole month? I want to use the site, and I want them to recognize me as the user they know. I don't want to wait a whole month.  Update: The Gardening SE moderator Niall C. helped me out, and he offered the following potentially relevant information:     I changed your display name on Gardening & Landscaping back to "Fiksdal". Your profile history shows that your profile image (from your headshot on imgur.com to a gravatar), email, about me also changed at the same time as your display name on May 21. It also shows that I changed your profile image to a different gravatar when I changed your display name just now... weird! – Niall C. 1 hour ago


I am currently working on a team of four people trying to develop a simple news website. We are having a hard time figuring out the best way to collaboration. I've found other threads that suggested using Features module; however, that is outside of our scope at the moment. Can you suggest a simpler way to collaborate?

I work with another developer on a Drupal site. We have struggled to find a good way to work on different parts of the site at the same time without getting in each others way. We've tried working on the same development instance of the site, but we often step on each others toes, or bring down the site with some bad code making it impossible for the other to continue working until it's resolved. So we've moved to separate development instances. But now it's a big pain to merge our work into a single instance of the site. We basically end up redoing everything on a shared copy.  The biggest problem we have now is how do we merge database changes, and how do we include the database in our source control system? The files are easy, just track them all (we use git) and merge our work, resolving conflicts where needed. But this doesn't really work with the database. We can take a SQL dump and include that in our git repository, but we can't really merge the databases. The  helps a little, letting us export some of our database work into code which can then be versioned and merged. However, not even close to everything supports Features. So...   What steps can we take to easily merge our database changes? How should we version the database (is putting a dump file in git a good way to do it)? Are there any modules available that help with some of these problems? Or, are we stuck with working on the same copy of the site? (please so no)     Edit: In the comments we discussed what things can't be exported with Features and one of them was Taxonomies. There's another .


I was somehow confused encountering this sentence: Didn't you USED TO work with Annie at Macy's?. Should we use USE TO here since we are using Did which needs the base form of the verb.

What is the negative form of "I used to be"? I often hear "I didn't used to be" but that sounds awfully wrong in my ears.


Is there any video that explains what type questions can be asked on stack over flow ?

Is there a video that explains how Stack Overflow works and can be used? I.e. a short tutorial to get new users started. If there isn't, then the people behind this site or others who know how it works should make one, because it's overwhelmingly different from other sites and thus difficult for beginners.


I get this message while trying to edit a post on SuperUser while using the iOS mobile app. I have at least 101 reputation on SU, more than enough to be able to edit posts. This appears to be a bug.

When I try to submit an edit in the iOS app it returns this message:        Text:     Account is not allowed to suggest edits   What happened and can it be fixed please?


I'm a developer that is doing a little mini VR game. I will buy all my assets since Im not a skilled artist. I bought a pistol on Unity Asset store.  Problem is the main mesh called G17 in the picture below contains both the Main body, the slide and the trigger, I need to seperate these 3 into 3 meshes. You can see that there are vertex vertex groups for Slide and trigger. Can I somehow use this to separate the mesh? I'm a complete noob at blender so please a step, by step, guide :D Thanks    update: Edit mode loooks like this, pressing ctrl+l does nothing as far as i can see

I've just made a set of armor by using a male body mesh model I downloaded and selecting certain faces from the model and duplicating them to create viable armor pieces.   Since the pieces are just duplicated from the same mesh male model, then it's still part of the same object.   How do I separate the armor piece from the model to make the pieces separate?


I often have small change leftover after visiting a country, usually much less than $1 equivalent.  Keeping it around is a hassle, especially if I'm unlikely to return to that country: I would have to sort it, remember where I put it, remember to look before I travel, etc... In my view this is far too much effort for the few cents I can potentially save in a jar somewhere.  What else can I do with this change?

Tonight I just cleaned my room and while doing this I found some money. I counted it and I found out that there are a lot of coins from 25 different countries.  I know that normally banks don't exchange foreign currencies in coins, but is there a way so that I can still get some money for my foreign coins?


What is the cardinality of a transcendence basis of $\mathbb{C}$ over $\mathbb{Q}$? Is it that of the continuum? Proof?

It's pretty well known that $\text{trdeg}(\mathbb{C}/\mathbb{Q})=\mathfrak{c}=|\mathbb{C}|$.  As a subset of $\mathbb{C}$, of course the degree cannot be any greater than $\mathfrak{c}$. I'm trying to understand the justification why it cannot be any smaller. The explanation in my book says that if $\mathbb{C}$ has an at most countable (i.e. finite or countable) transcendence basis $z_1,z_2,\dots$ over $\mathbb{Q}$, then $\mathbb{C}$ is algebraic over $\mathbb{Q}(z_1,z_2,\dots)$. Since a polynomial over $\mathbb{Q}$ can be identified as a finite sequence of rationals, it follows that $|\mathbb{C}|=|\mathbb{Q}|$, a contradiction.   I don't see why the polynomial part comes in? I'm know things like a countable unions/products of countable sets is countable, but could someone please explain in more detail this part about the polynomial approach? Since $\mathbb{C}$ is algebraic over $\mathbb{Q}(z_1,z_2,\dots)$, does that just mean that any complex number can be written as a polynomial in the $z_i$ with coefficients in $\mathbb{Q}$? For example, $$ \alpha=q_1z_1^3z_4z_6^5+q_2z_{11}+q_3z^{12}_{19}+\cdots+q_nz_6z_8z^4_{51}? $$  Is the point just that the set of all such polynomials are countable?  Thanks,


I normally work directly in .aspx web files, but we have a need to generate files automatically every morning for use by the website and other processes.   The process of generating the day's files needs to run whether or not website is accessed.  Process: at 6am every morning, get database dataset and generate files from it.   What is the best and most simplistic way to do this? Wcf service? asmx web service? something i haven't heard of?

Today we have built a console application for running the scheduled tasks for our ASP.NET website. But I think this approach is a bit error prone and difficult to maintain. How do you execute your scheduled task (in an windows/IIS/ASP.NET environment)  Update:   Examples of tasks:   Sending email from an email-queue in the database Removing outdated objects from the database Retrieving stats from Google AdWords and fill a table in the database.


What is maximal possible order of an element in $S_{10}$? Why? Give an example of such an element. How many elements will there be in $S_{10}$ of that order?

If we let $S_n$ denote the symmetric group on $n$ letters, then any element in $S_n$ can be written as the product of disjoint cycles, and for $k$ disjoint cycles, $\sigma_1,\sigma_2,\ldots,\sigma_k$, we have that $|\sigma_1\sigma_2\ldots\sigma_k|=\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$.  So to find the maximum order of an element in $S_n$, we need to maximize $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ given that $\sum_{i=1}^k{|\sigma_i|}=n$. So my question:      How can we determine $|\sigma_1|,|\sigma_2|,\ldots,|\sigma_k|$ such that $\sum_{i=1}^k{|\sigma_i|}=n$ and $\operatorname{lcm}(\sigma_1,\sigma_2,\ldots,\sigma_k)$ is at a maximum?   Example  For $S_{10}$ we have that the maximal order of an element consists of 3 cycles of length 2,3, and 5 (or so I think) resulting in an element order of $\operatorname{lcm}(2,3,5)=30$.  I'm certain that the all of the magnitudes will have to be relatively prime to achieve the greatest lcm, but other than this, I don't know how to proceed. Any thoughts or references? Thanks so much.


Let $E \subset \mathbb{C}$ be a set with the following property: for any sequence of elements $(e_n)_{n \in \mathbb{N}}$ with $e_n \neq e_m$ for $m \neq n$, $e_n \to 0$. Is $E$ necessarily countable?  (Also convergence is in norm, of course).  It seems like this problem should yield to contrapositive, that is, given an uncountable set, I can always find at least one nonrepeating sequence that does not converge to $0$. My idea is that for some $\epsilon >0$, if $E$ is uncountable, there must exist infinitely many distinct elements in the complement of $B_\epsilon (0)$. Then we can construct a sequence not converging to $0$ from that (so the statement is true). Is there a direct proof for the above?

Is there any uncountable subset of $\mathbb{C}$ with exactly one limit point?


I came across a code snippet as follows -   @classmethod def new(cls, **props):     '''Creates a new Thread instance, ensuring a unique _id.'''     for i in range(5):         try:             thread = cls(**props)             session(thread).flush(thread)             return thread             ...... continued   The name of the class it is defined is 'Thread'. This code creates a new thread object but I'm not able to understand how this particular code is trying to do that from the code in try block.  cls is a function?

In the following method definitions, what does the * and ** do for param2?  def foo(param1, *param2): def bar(param1, **param2):


I've got about 9'000 family photos already (made with my own camera over the last 10 years), plus I'm about to start scanning grandma's archive of physical photos (several hundred more).  So I'm starting to desire something better than just a folder-with-the-date system. Even more - I'd like to store extra metadata with the old scanned photos - who the people in them are, where the photo was taken, perhaps some stories about them... Not really sure about all the possible things that could go in there.  After that, well, I guess all the photos should be searchable/sortable by the metadata, and perhaps it should be nice to export a "gallery" or "slideshow" with the pictures & metadata that can be viewed on another computer that doesn't have the sowftware installed.  The metadata format should also be popular/standardized enough that it wouldn't get obsolete in 30 years, though I guess that's something that nobody can predict. I've noticed XMP being mentioned here, that sounds good, though I guess it'd need to be shadowed in a DB for all the searching/sorting.  So, is there anything that can be suggested for a task like this? I know that many professional photographers swear by Adobe Lightroom, but that seems like an overkill for simply an archival system. Expensive too, though I think it came with a cloud-based backup option, which could offset the cost (I'm currently using Microsoft OneDrive as the cheapest option for off-site backups).

If I wanted to just view, sort, and organize (via tags or folders or both), what programs are geared toward doing this quickly?  I know I could do this in most any photo editor, but it's not ideal for reviewing hundreds of images. I've also seen people use the image previewers built into their computer's OS, but that can't be the best option either.  What program would you suggest instead?  Extra info on the program is appreciated, i.e. OS requirements and cost.


I read out a data-attibute, then I want to convert the string "true" into a boolean. At the moment I have to do a comparison in the javascript, is there a better way to do it? I don't know how to use this   HTML  <div data-nav='{ "nav": "true"}'>   JS      var data = JSON.parse($nav.attr('data-nav').toString());     data.nav = (data.nav === "true") ? true : false;

Can I convert a string representing a boolean value (e.g., 'true', 'false') into a intrinsic type in JavaScript?  I have a hidden form in HTML that is updated based upon a user's selection within a list. This form contains some fields which represent boolean values and are dynamically populated with an intrinsic boolean value. However, once this value is placed into the hidden input field it becomes a string.  The only way I could find to determine the field's boolean value, once it was converted into a string, was to depend upon the literal value of its string representation.  var myValue = document.myForm.IS_TRUE.value; var isTrueSet = myValue == 'true';   Is there a better way to accomplish this?


I have a class which gets a function as a parameter. I need to call a function then based on the previous function passed. Is there a way to do so?  For example, if myfunc() has been passed to the class, I need to call myfunc1() as it is the corresponding function(I already have the relationships between functions saved).

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 have completed my data analysis and got "statistically significant results" which is consistent with my hypothesis. However, a student in statistics told me this is a premature conclusion. Why? Is there anything else needed to be included in my report?


So I tried making a cup of coffee, the liquid still looks like tea but I'll mess around with settings to make it look like one (of course, tips would be really helpful). But I'm more concerned on how could I make foam for the top layer (white foam) look bubbly and not smooth?

My goal is create realistic foam. I mean really realistic foam with bubbles, no only SSS shader and done :-).   Use particle system's is not enough, because bubbles overlaps and black artifact's appear.  Any ideas? Some reference images and something about bubbles:    EDIT:  I want this for 360° turntable animation. Bubbles and foam does not to be animated, but should be good keep reasonable render time.  Of course, if someone know how to make it animated I glad to learn it and I'm sure I'm not only one. But my priority is realistic look, not animation.  Only for clarification: I don't need to know how to make bubbles in beer (there is very good tutorial by Andy Price), please focus only on foam. Beer is not important.