lubuntu 20.04 Update Notifier window poping up on nonadministrative user

I have installed many computers with lubuntu 20.04 for users on our network and I added for them nonadministrative user called "user". Very often window with new updates "Update Notifier" will pop up. Is there any way how to set updates to install them automatically or set the window to pop up just once a day? They cant install it with their account - they dont have sudo rights. Edit: Answer: Possibly turn off updates in GUI (testing it now) and: sudo apt-get install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades in /etc/apt/apt.conf.d/10periodic if not, set APT::Periodic::Download-Upgradeable-Packages 0 to 1, set APT::Periodic::AutocleanInterval 0 to something in days in /etc/apt/apt.conf.d/50unattended-upgrades uncomment ${distro_id}:${distro_codename}-updates


How to interpret the output for calculating concordance index (c-index)?

I have posted a "similar" question in . But I think that question is not specific/concrete enough to get the answer I expected.  I know that, in survival analysis, the concordance index (c-index) can be used to measure how well a ranking list is w.r.t survival times of subjects (F. E. Harrell, 1996, section 5.5). That is, if subjects with higher survival times get higher scores from the model, the c-index of the model will be large.  My question is: can the score be interpreted as the risk of the subject? In other words, do subjects with smaller scores (which indicates shorter survival times) correspond to larger failure risk?


Is it possible to shutdown remote Computers without inputing the password?

I used the following bash to shutdown remote computers,but for each computer,I must input the password for it.Is it possible to input the password Automatically?   #!/bin/bash  ssh -t root@192.168.1.11 "sudo poweroff" ssh -t root@192.168.1.12 "sudo poweroff" ssh -t root@192.168.1.13 "sudo poweroff" ssh -t root@192.168.1.14 "sudo poweroff" ssh -t root@192.168.1.15 "sudo poweroff" ssh -t root@192.168.1.16 "sudo poweroff" ssh -t root@192.168.1.17 "sudo poweroff" ssh -t root@192.168.1.18 "sudo poweroff" ssh -t root@192.168.1.19 "sudo poweroff" ssh -t root@192.168.1.20 "sudo poweroff" ssh -t root@192.168.1.21 "sudo poweroff" ssh -t root@192.168.1.22 "sudo poweroff" ssh -t root@192.168.1.23 "sudo poweroff" ssh -t root@192.168.1.24 "sudo poweroff" ssh -t root@192.168.1.25 "sudo poweroff" ssh -t root@192.168.1.26 "sudo poweroff"


Adding array element to JSON column in PostgreSQL

We have a table (avl_vehiculo_data_estatica), which has a JSON column (data_vehdatesta) and, we need to update the contents of it by adding an element to actual JSON array that's stored in it:  Actual contents:  [{"iddata":"1","valor":"18"},{"iddata":"2","valor":"10"},{"iddata":"3","valor":"N/A"},{"iddata":"4","valor":"53"},{"iddata":"5","valor":"Agencia Vespucio Oeste"}]   Desired contents:  [{"iddata":"1","valor":"18"},{"iddata":"2","valor":"10"},{"iddata":"3","valor":"N/A"},{"iddata":"4","valor":"53"},{"iddata":"5","valor":"Agencia Vespucio Oeste"}, {"iddata":"6","valor":"ACTIVO"}]   So, what has to be done is to add a new JSON array element with the following values:  {"iddata":"6","valor":"ACTIVO"}   We've tried several PostgreSQL JSON related operators and functions, but haven't been able to find the correct mix to achieve such update, so any suggestions might be helpful.  DB Version:   PostgreSQL 9.4.9 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit   PS: There's a similar  but no exactly the same as our case.


What do 1.#INF00, -1.#IND00 and -1.#IND mean?

I'm messing around with some C code using floats, and I'm getting 1.#INF00, -1.#IND00 and -1.#IND when I try to print floats in the screen. What does those values mean?  I believe that 1.#INF00 means positive infinity, but what about -1.#IND00 and -1.#IND? I also saw sometimes this value: 1.$NaN which is Not a Number, but what causes those strange values and how can those help me with debugging?  I'm using  which I believe uses  representation for float point numbers.  Can someone list all those invalid values and what they mean?


Why not pronounce single characters the same way as they are pronounced in words?

We pronounce most of the characters as if they were words and not characters. For example,"C" is pronounced as "See" but when used in a word, we pronounce it as "K". This is the same case with other characters too.     So my question is, why not pronounce single characters the same way as they are pronounced in words?  In  question, it is answered how we started to pronounce single characters differently. Why not pronounce them in a similar way? It's thus easier to learn for children. Also many(or maybe most) languages use similar pronunciation.  Does anyone know why it evolved in such a way?


When I connect my Sony WH1000XM3 via bluetooth the sound output can be tested using the test function inside the gnome settings. If I connect my Samson Meteor Microphone my headphones are still connected and selectable but the test function stops working. If I use another programm like VLC I can still test my sound but I wonder where to report this issue.


I wonder why following not work as i expect:  let testSum = 0.1 + 0.2 let testBool = testSum == 0.3   testBool in that case is false, how could that be possible?


Would Legendre's Conjecture imply Riemann's Hypothesis?

Riemann's hypothesis implies that the gap $g_n$ between primes is $$g_n=O(\sqrt{p_n}\log{p_n})$$ And Legendre's conjecture is equivalent to $$g_n=O(\sqrt{p_n})$$  Then, would proving the second conjecture imply the Riemann's Hypothesis to be true?


Converting double field to integer in database view so ArcMap query layer can use field as unique identifier

I have a field in a table that is a double data type, but the values are actually integers. The table is from third-party software, so I don't have control of the field data types.  I'm attempting to make a database view of the table, and add it to ArcMap (which I believe makes it into a query layer).  Arcmap requires a unique identifier field be selected when the view is added to the map. There isn't a single unique field in the table, but the combination of two other fields plus the double field is unique. I plan to select all three fields as the unique id (sort of like a composite key). The problem is that it that ArcMap seemingly  (and probably for good reason). Text fields and integers seem to be recognized just fine.  As a workaround, I'm trying to convert the double field to an integer field in the database view. I've tried various combinations of the TO_NUMBER, ROUND, FLOOR, TRUNCATE, and CAST Oracle functions, with no success.  How can I get the table into ArcMap as a database view, and use the double field as a unique identifier?  Environment: Oracle 11g, SDE 10.3.1, ArcGIS Desktop 10.3.1  Update Jul-29-2016:  The table is non-spatial. It will just be used to join to another non-spatial table about once per quarter for QC purposes. The table has ~20,000 records. There isn't a ROWID or OBJECTID field in the table, thus forcing me to find a workaround.


"Unknown sequence editconfigs" when trying to build a kernel

I am following the instructions here:   I ran  apt-get source linux-image-$(uname -r) cd linux-signed-4.15.0 chmod a+x debian/rules chmod a+x debian/scripts/* chmod a+x debian/scripts/misc/* fakeroot debian/rules clean fakeroot debian/rules editconfigs   The output of the last command is  dh editconfigs dh: Unknown sequence editconfigs (choose from: binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep) debian/rules:35: recipe for target 'editconfigs' failed make: *** [editconfigs] Error 2   My uname -r is 4.15.0-34-generic.  A possible duplicate is , but the answer there does not address the "Unknown sequence editconfigs" message. Do the  instructions need to be updated?


Split values from field and count them according to another field

I have following MySQL db structure:  content ======= id | tags --------- 1  | ,abc,def,ghi, 2  | ,abc,foo, 3  | NULL 4  | ,foo,bar,   categories ========== id -- 1 2   categories_to_content ===================== id | category_id | content_id -----------------------------  1 |           1 |          1  2 |           1 |          2  3 |           2 |          3  4 |           2 |          4   What I'm trying to do is to SELECT tags assigned to category and count them. Result for given schema:  tag | category | count ---------------------- abc |        1 |     2 def |        1 |     1 ghi |        1 |     1 foo |        1 |     1 foo |        2 |     1 bar |        2 |     1   Decomposition isn't possible (I hook up into existing CMS database).  My existing query:  SELECT tags, category_id as category FROM content JOIN categories_to_content ON content_id = content.id


Integrating a step function using antiderivatives

Let $$ f(x) =    \begin{cases}\begin{align}     1\quad&\text{ if }\; 0\leq x \leq 1 \\     2 \quad&\text{ if }\; 1<x \leq 2 \\   \end{align}\end{cases}$$  Then $\int^2_0 f(x)dx=3$ and an anti derivative of f(x) is $$F(x)=\begin{cases}\begin{align}     x\quad&\text{ if }\; 0\leq x \leq 1 \\     2x \quad&\text{ if }\; 1<x \leq 2 \\   \end{align}\end{cases}$$ But, $F(2)-F(0)=4-0=4 \neq 3.$ Why has this happened?  Find an anti-derivative $G(x)$ of $f(x)$ such that $G(2)-G(0)=3$, the correct answer.  My attempt: $F(2)-F(0)=4 \neq 3$ because we need to break it up into two parts like this: $\int^2_1 2x dx + \int^1_0 x dx = x^2|^2_0 + \frac{1}{2} x^2|^1_0 =4-1+\frac{1}{2}-0=3.5$ but this is not right either. :(  For the "Find an anti-derivative $G(x)$..."I'm completely lost but perhaps if we solve the first part then I'll understand what it's asking for there.  Any help would be appreciated.


Why people follow different approach to define function in javascript

few years back people always define function like this way  1) function foo() {}   now i have noticed people define function like this way  2) var foo= function () {}  3) foo: function() {}  4) var GaugeBar = GaugeBar || {};    GaugeBar.generate = function (percentage) {}   so anyone JavaScript expert would tell me why people follow different approach for defining function? each signature has any special significance ?  when we should follow which one?  looking for good explanation. thanks


Splitting irregular polygon into equal areas using QGIS?

I am a surveyor and use QGIS for maintaining soil test records on civil projects and am constantly provided with test lot area or number of lots required. These are more often than not irregular in shape and am wondering.   Is there a plugin/solution to cut a layer that contains irregular polygons into equal areas or number of lots with a specified area, with the result being the most number of lots based on the area provided?


I have the following query  $samecars = $this->QueryResult("SELECT * FROM carads where STATUS='1' and DEL='0'  and TITLE !='' and IMAGE1 != '' and IMAGE1 != '-1' and PRICE BETWEEN $pricelow  and $pricehigh order by RAND() LIMIT 0,3");   When I remove RAND() the query is executed almost instantly, if I add the RAND() it takes about 10-30 seconds.  There are about 1 million rows in the table carads. I need RAND() in order to use random displaying.  More details:  QueryResult looks like this  public function QueryResult($strQuery) {     $this->connector();     $query = mysqli_query($this->link, $strQuery);     $arr = array();     if ($query) {         while ($result = mysqli_fetch_object($query)) {             array_push($arr, $result);         }     }     $this->close();     return $arr; }   ALSO I tried add in SQL the following example command  SELECT * FROM carads where STATUS='1' and DEL='0'  and TITLE !='' and IMAGE1 != '' and IMAGE1 != '-1' and PRICE BETWEEN 8000  and 15000 order by RAND() LIMIT 0,3"   and RAND() is highlighted red and when i execute it through #1064 - 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 '"' at line 3


$L^p$-norm of a non-negative measurable function

Can I ask a homework question here?  Let $f$ be measurable and non-negative in $\mathbb R^d.$  Using Fubini's theorem, show that for $1 \leq p \lt \infty,$  $$\lVert f\rVert^p_p = \int^{\infty}_{0}pt^{p-1}\lambda(\{x:f(x)\gt t\}) \ dt.$$


Set a watermark where the content will be added latter

I'm writing a document but now I'm just in the beginning of it, it's a draft phase. I already know the section names and how many pages each section will spam, i.e. \section{Intro} should have up to 3 pages. After that comes \section{Objectives}.  I would like to put a watermark and reserve the 3 pages for the Intro. Below is something I tried:  \documentclass[12pt]{article}  \usepackage[brazil]{babel}  \usepackage{lineno,xcolor} \usepackage[printwatermark]{xwatermark}  \begin{document}  \section{Intro}  \newwatermark[allpages,color=red!50,angle=45,scale=3,xpos=0,ypos=0]{DRAFT}  \newpage~ \newpage~ \newpage~  \section{Objectives}  This section contain only this text. It is not a draft and should not have the watermark.  \end{document}   But the watermark goes over the next section. Is it possible to watermark only a section?


How much does the Doctor's TARDIS weigh from the outside?

Lady Romana is quoted as saying a TARDIS weights 5x10^6 kilograms, but I've also read that she was mistaken in this or that she was referring to the inside.  The Doctor's TARDIS has been moved a number of times and has landed on soft ground and not sunk in at all.  This indicates the full weight of the interior is not felt from the exterior.  But in The Parting of the Ways, Rose, Jackie, and Mickey use a large truck with chains to free up part of the interior of the TARDIS, and when they pull with the truck, the TARDIS doesn't just get pulled along on the ground, so, at least when the door is open, there's some connection between the weight inside and the outside shell.  I've searched for this and Romana's answer is the only one I find, but if that were true and it weight that much on the outside, people could not pick it up and move it.  How much does the Doctor's TARDIS weight from the outside?


What are words for higher orders of 'quadratic'?

I can't find anything upon a quick Google search. In English, there are double, triple, quadruple, etc. How about for quadratic, does it have higher order forms, for example maybe 'tridratic'(I'm just making up words)? As in the 'quadratic' in quadratic equation, this is one of the example I can think of, maybe there are other usages I don't know.


Yesterday I read Modern English:A Practical Reference Guide written by Marcella Frank, and she gives a paradigm about tenses on page 50. The page shows tenses in active voice and passive voice; she said these four tenses are exceedingly rare:   shall/will be being offered has/have been being offered had been being offered shall/will have been being offered   Why are these tense so rare? Are they normally replaced by other tenses?


SEO affected Changing Title Tag by Javascript

I am having a doubt regarding to this issue where let's say my page load  is  <title>Test Only</title>   and I change the  value by using javascript to  <title>Test Use JS Change</title>  // this is my Javascript code to update the <title> value after page load $(function(){     $('title').html('Test Use JS Change'); });   May I know for Search Engine Bot, will they recognize my title as Test Use JS Change or Test Only  It is because when I see the browser tab/ inspect element to view dynamic source, the title has been updated but when I purely view source only, it shows the default title that I defined.  Would need some advise regarding to this. Thanks!


How do I enable the "Universe" repository?

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


Does the idea of 'Class' in C++/C#/Java come from struct in C?

I had this doubt long time ago. The dot operator is first used in struct in C. Is the idea of Class or the design of Class based on struct in C? Actually I highly doubt it is, just haven't seen any official doco about this.  EDIT: What I am asking is if the idea of creating Class syntax (in C++) comes from struct in C, not why C is not an OOP language!


How to get the keyboard to input Japanese?

To test 'text boxes' in an application of mine, I need the physical keyboard to output Japanese to the screen. Does anyone know how this can be done?  The application is in a Virtual Machine (VMPlayer) running Windows Server 2008 R2. VMPlayer is on a Windows 7 64 bit machine to which the keyboard is connected too.  I've already tried the set the following 'Keyboard and Languages' option in Control Panel of the Windows 7 machine but the keyboard still outputs English on screen of the Windows 7 screen. So getting this to work on the VM is still far away.


After finding out that several common commands (such as read) are actually Bash builtins (and when running them at the prompt I'm actually running a two-line shell script which just forwards to the builtin), I was looking to see if the same is true for true and false.   Well, they are definitely binaries.  sh-4.2$ which true /usr/bin/true sh-4.2$ which false /usr/bin/false sh-4.2$ file /usr/bin/true /usr/bin/true: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=2697339d3c19235 06e10af65aa3120b12295277e, stripped sh-4.2$ file /usr/bin/false /usr/bin/false: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=b160fa513fcc13 537d7293f05e40444fe5843640, stripped sh-4.2$   However, what I found most surprising was their size. I expected them to be only a few bytes each, as true is basically just exit 0 and false is exit 1.  sh-4.2$ true sh-4.2$ echo $? 0 sh-4.2$ false sh-4.2$ echo $? 1 sh-4.2$   However I found to my surprise that both files are over 28KB in size.  sh-4.2$ stat /usr/bin/true   File: '/usr/bin/true'   Size: 28920           Blocks: 64         IO Block: 4096   regular file Device: fd2ch/64812d    Inode: 530320      Links: 1                      Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root) Access: 2018-01-25 19:46:32.703463708 +0000 Modify: 2016-06-30 09:44:27.000000000 +0100 Change: 2017-12-22 09:43:17.447563336 +0000  Birth: - sh-4.2$ stat /usr/bin/false   File: '/usr/bin/false'   Size: 28920           Blocks: 64         IO Block: 4096   regular file Device: fd2ch/64812d    Inode: 530697      Links: 1                      Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root) Access: 2018-01-25 20:06:27.210764704 +0000 Modify: 2016-06-30 09:44:27.000000000 +0100 Change: 2017-12-22 09:43:18.148561245 +0000  Birth: - sh-4.2$   So my question is: Why are they so big? What's in the executable other than the return code?  PS: I am using RHEL 7.4


How can I limit the usage time for an user profile in Windows?

I have 4 kids so the battle for time on the living room computer never ceases, I am also implementing an attempt at some level of control over how much time the kids get based on their behavior etc during the week. Ideally I would like to be able to set each profile up to have only a certain allotment of time, say 2 hours that they can use and once that two hours is nearly up it warns them and once complete it automatically logs them out.  I know the family control stuff can limit the time frames during which they can login but it does not seem to allow this quantity based control I am looking for...  Any other options in the market that you know of?


How can I render a fire and smoke simulation in Cycles with alpha channel?

How can I render a fire and smoke simulation in the Cycles render, with alpha channel for further compositing?


Basically a neutron/quark star that approaches it's Schwarzschild radius but doesn't surpass it. Its gravitational force is great enough to not let light escape from it, but not great enough to become a black hole.


Let $a>0$ and $b \in \mathbb{R}$: Assume there exists an $x >0 $ s.t. $$x - a\log(x) = b$$ holds. How can it be determined in closed-form?


Kullback-Leibler divergence - interpretation

I have a question about the Kullback-Leibler divergence.  Can someone explain why the "distance" between the blue density and the "red" density is smaller than the distance between the "green" curve and the "red" one?


New pre hung interior door is 28" and the old area was 29 11/26 is this too big of an area to use this door?

My old door was 29. 11/16" and the new pre hung interior door is 28". Is this gap too big if an area to use this door. The other threads all have smaller gaps. Also should I butt up to one side or split on each side?  The trim is 2. 1/2" so the gap can be hidden.  Thanks.


In a Discord call on the desktop app and my voice cannot be heard by others. When I use Discord  through browser I can be heard. Any help appreciated.


why does changing the group of my /home folder affects what happens in a subdirectory

There is a fundamental aspect of the way permissions work in linux directories I think I have not understood.  I have this folder I was trying to access from my local apache server :  sudo chmod 777 /home/ut/programmes/Programmation/p5-linux/ sudo -u www-data ls /home/ut/programmes/Programmation/p5-linux/ ls: cannot read directory '/home/ut/programmes/Programmation/p5-linux/': Permission denied    Why is it not working ? even though the permission is 777 ?  Moreover, by doing :   sudo chown ut:www-data /home/ut sudo chmod 710 /home/ut   without changing anything to the permission in /home/ut/programmes/Programmation/p5-linux/, now this is what I get :  sudo -u www-data ls /home/ut/programmes/Programmation/p5-linux/ icudtl.dat  libffmpegsumo.so  locales  nw.pak  p5  p5.png  Projets   the only thing I did was to change the group of a parent dictory. why does it work now ?


Capitalization of tussenvoegsel at start of sentence

What is the proper capitalization of  at the start of a sentence? For instance, if we were talking about Vincent van Gogh would we say:  "Van Gogh was an artist."  or  "van Gogh was an artist."  The following article did not capitalize the tussenvoegsel which is why I bring up this question.


Java: creating a new object with unknown type

Is there any way in java to store the type of an object in a variable? Like if I wanted to get a class type as a parameter and then return the correct type of object.


I am currently surrounded by a long list of WiFi connections and every time I boot up my MacBook Pro, it switches away from what should be the default for the public WiFi connection.    How can I force my Mac OSX to recognize the domestic connection it should be using?  Is there also any way to block the listing of other WiFi connections, especially because there are so many?  I have tried going through the Network listings to delete the surrounding superfluous signals and have not been able to.  Is there something I'm missing?  Do they specifically have to be connections I've joined?  Is it not possible to block out the other domestic signals around me?


Closed form of $\sum_{n=0}^{\infty} \frac{\cos(\alpha \, n)}{n!}$

How would I find the closed form of  $$ f(\alpha) = \sum_{n=0}^{\infty} \frac{\cos(\alpha \, n)}{n!}$$  My old pal Wolfram tells me that  $$ f(\alpha) = \mathrm{e}^{\cos(\alpha)}\cos(\sin(\alpha))$$  I've attempted writing out the first couple terms for different values of $\alpha$, but I haven't quite figured out how to arrive at the result.


For symmetric operators one has: $$A\text{ symmetric}:\quad\mathcal{R}(A\pm\imath)=\mathcal{H}\implies A^*=A$$ How to prove this in an unveiling way?


Redirection rule not working in .htacces

I have added the following rule to .htaccess  RewriteCond %{HTTP_HOST}   !^example\.com [NC] RewriteCond %{HTTP_HOST}   !^$ RewriteRule ^/(.*)         http://www.example.com/$1 [R=301,NC,L]   I suppose it says that if url is not example.com, redirect it to www.example.com.   I need to do this as I have a Cname example.rhcloud.com and is mapped to www.example.com. But I still can access example.rhcloud.com and is being indexed by Google as well. I certainly do not want my data to be available on 2 different domains and want example.rhcloud.com to be redirected to www.example.com  With above rewrite rule, it does nothing and gives access to example.rhcloud.com.  I also tried using   RewriteCond %{HTTP_HOST} ^example.rhcloud.com$ RewriteRule (.*)$ http://www.example.com/$1 [R=301,L]   But it says too many redirects as it try and retry to connect to example.rhcloud.com.  How do I have this redirect work?  Also, If that makes any difference, I have added WordPress URL and site URL set to www.example.com only.


Who has the final authority in an edit war? OP or a moderator?

I joined a site in private beta and posted an answer citing one source. One user made some edits which I did not agree with, so, I rolled back the changes. Some of the proposed changes were grammatical in nature while others converted a definitive statement I made to an ambiguous one which I didn't like at all.  Then I notified the user in comments why I rolled back the changes. The person did not agree & downvoted my answer. Fair enough. I didn't mind.  Then User-2 tried to re-apply User-1's changes which I rolled back again. User-2 tries to argue in comments why I should allow the edit, I then explained why didn't like the suggested edits because my sources say otherwise and changing it the way they wanted conflicts with my sources.  A moderator appears out of the blue and has permanently locked my answer after rolling it back to User-1's edit.   Is such an action by a moderator justified? What is the official policy on when should a moderator get involved in an edit war? What authority or role does OP have when his or her post is messed around by other users which includes a moderator, conflicting with OP's intent?


The Disk Utility on my Mac shows 100GB of usage by 'Other'.   I had a look inside ~/Library/Caches, but I did not see anything taking up too much space in there.       I even tried using an app called "Clean my Mac". It didn't do much good.      Here is my question:  How do I find and delete the files that are taking up nearly 100GB of space and are marked as 'other' in Disk Utility.  I am on El Capitan on a 13 inch 2015 MacBook Pro.


Always leave two decimal digits after the dot

UPDATE  It's so simple...  When I try to convert the value $ 1.50 from a textbox to a decimal variable, like this:    decimal value = Convert.ToDecimal(textbox1.text.SubString(1));  OR  decimal value = Decimal.Parse(textbox1.text.SubString(1));   I get this result: 1.5. I know that 1.5 and 1,50 worth the same. But I want to know if it's possible to have two digits after the dot on a decimal variable.    I want to have this as result: 1.50 instead of 1.5 even if these two values worth the same...


I am getting a Drill Size error and overlapping errors because I added a new via and a wire to my PCB. I'm not really sure why I am getting these errors. Is there a way to add a new wire and get it to connect to a wire that was already there without getting an overlap error? Also, do I need to make that via bigger in size? If so, how? I attached a picture that shows the area I need help with.


Remote desktop connection fails with network level authentication

When attempting to connect to a Windows 7 computer on the same network with RDP I'm getting a message: "The remote computer requires Network Level Authentication" It used to work but suddenly stopped working. I'm trying to connect from another Windows 7 machine that supports NLA. When I turn this requirement off in the host machine I can connect to it.  What is the reason it stopped working? How can I fix it?


Please, help to understand the meanings of two sentences.  1) I found the rule about the usage of this pattern.   The only rule I found at all was about this pattern ? About this pattern I found only one rule ?   2) I found a rule about the usage of this pattern.   One of the rules I found was about this pattern ? About this pattern I found at least one rule ?   Thanks in advance.


Regarding whether one has a circular definition in the following case

In "Principles of Analysis" by Charalambos Aliprantis on pg. 6, he defines the Cartesian product of a family of sets as the set of all functions from the index set to the union of that family satisfying a certain condition. If we define a function to be a certain subset of the Cartesian product of two sets and then use the function to define the Cartesian product of a family of sets indexed by some indexed set, aren't we committing the error of making a circular definition? I may be wrong, in fact I think I am since may be we can distinguish between the Cartesian product of two sets and the Cartesian product of a family of sets. But I just want some confirmation from an expert. Many thanks in advance


Class amsbook continuous section numbering

I am using amsbook. There, sections are numbered within chapters. For instance, if each of the first two chapters has 2 sections, then the sections are numbered as 1.1, 1.2, 2.1, 2.2.   I wonder how to make continuous section numbering 1, 2, 3, 4... (like the ones used in Halmos' measure theory book).


Convergence of sequence of functions $\{f_n\}$ to $f$ in $L^p$ if and only if $\|f_n\| \to \|f\|$

Let $\{f_n\}$ be a sequence of functions in $L^p( [0,1])$, $1 \leq p < \infty$, which converges almost everywhere to a function $f$ in $L^p$. Show that $\{f_n\}$ converges to $f$ in $L^p$ norm if and only if $\|f_n\| \to \|f\|$.  What does $\|f_n\| \to \|f\|$ mean and which convergence theorem is this? I know $\{f_n\}$ converges to $f$ in $L^p$ norm means $$ \lim_{n \to \infty} \|f_n - f\|_p = 0 $$


What is better - having 10 databases for 10 organisations or 1 table for 10 organisation with org_id?

I am making a web service (using Laravel in case that is relevant) that will have many separate organisations  generated by the service. Considerations  I can manage all organisation data in one database by assigning an org_id column in each table, but when a row is fetched it will have to be inquired from all organisation rows (which I think will take more time). Another solution is to make separate database for every organisation, but then I think I have to switch databases frequently and for each request causing more database connections and in turn causing more server processing involved.  Question So I want to ask what approach will best suit my needs.


Kepler's First Law of Planetary Motion: Whats at the other focus?

states that the orbit of every planet is an ellipse with the Sun at one of the two foci. Is there anything significant about the location, or any unusual properties about the other focus?


Can you use this method to measure the speed of light in one direction?

in this video they measure the same event at different times does that tell you the speed of light in that direction? Since the event doesn’t appear to happen at the same time instantaneously does that mean that the speed of light isn’t infinite in that direction? Can you measure the speed of light by looking at similar events and in different directions?


How do I get both AMD Mobility Radeon hd 4250 and 5650's working in a laptop?

My laptop has 2 GPUs inside:   AMD Mobility Radeon HD 4250 AMD Mobility Radeon HD 5650   After fresh installing Ubuntu 12.10, I tried installing official drivers, which broke Unity and made it unusable. I tried downgrading xorg to 1.12, installing fglrx-legacy which gave a black screen after starting Ubuntu and nothing works, including the tty. Looks like fglrx includes 5xxx drivers, fglrx-legacy 4xxx drivers and I have both cards.  Isn't there any other drivers that support both GPUs?? The laptop is really overheating (79°c) and it used to work normally in older Ubuntus. (12.04, 11.10 as I tried).


Topic for a lecture intended for High School students

I am not sure if this is the right place to post this, but here is the situation.  In about two weeks or so I will be giving a 2-3 hours lecture on some topic in mathematics to freshman and sophomore high school kids. I am required to find some interesting topic, but that doesn't require any advanced mathematics. I believe, all I can use is up to, but not including, Calculus.   So, I was wondering if any of you guys could help me brainstorm some interesting topics that I could talk about, without using any advanced mathematics.  Thank you in advance!


Using multiple parameters in PHP PDO statement

I have the following statement set up. I have replaces a long list of columns with * to make this more readable. FYI - I already know that there are questions similar to this. They use SINGLE select statements with a SINGLE parameter. Somehow this is different. $sql = <<<EOM  SELECT *     FROM table1     WHERE StreetName like '%:StreetName_Coml%'     UNION      SELECT *     FROM table2     WHERE StreetName like '%:StreetName_Coms%'     UNION      SELECT *     FROM table3     WHERE StreetName like '%:StreetName_Farm%'     UNION      SELECT *     FROM table4     WHERE StreetName like '%:StreetName_Land%'; EOM;  $p = $db->prepare($sql);  $StreetName = 'tree'      $p->bindValue(':StreetName_Coml', $StreetName); $p->bindValue(':StreetName_Coms', $StreetName); $p->bindValue(':StreetName_Farm', $StreetName); $p->bindValue(':StreetName_Land', $StreetName);  $p->execute();  $data = $p->fetchAll(PDO::FETCH_ASSOC);  The query runs, with no PHP errors. But I am getting no results back. I should be getting back 100's of rows. When I run the same query in my database browser I get 100's of rows. There is something in how the parameters are being bound that is not working. I have tried the following:  bindParam instead of bindValue moving the '%' from the SQL statement and into $StreetName. So instead of 'tree' it is '%tree%' using a CONCAT statement like "WHERE StreetName like CONCAT('%',:StreetName_Land,'%')  and various mix and matching of the above. What am I missing?


Is it possible to prevent the contents of a figure from being rendered? I have a large book document, and to speed up compiling while working on a draft, I would like to have some way of ignoring the content of the images, but ensuring that the figure size remains.  In several cases I am using a line like:  \includegraphics[width=\linewidth]{figure.pdf}     so I do not know the actual size of the image.


So, basically I just joined a community and posted some stuffs there. Then I wanted my nickname to be different on that community, since one is "professional" and the other is more "personal" oriented.  The thing is, someone commented my answer and greeted me using my old nickname. When I asked if this person could edit his comment, it was not possible for him to do so after more of 5min.  Here is a link for your understanding :   My question are :   Is it possible for someone in the community to edit comments ?   How could I notify someone that my privacy has been "hurt" and take action to restore it?


Why does padding-left in a textbox cause width to be greater than 100%

I have a div with 1 em of padding.  Inside is a textbox, with the width set to 100%.  This looks fine and as expected, with the width set 1 em inside the div.  However, when I add 1 em of padding-left to the textbox, the text box width is widened by 1 em, ignoring the padding on the right.  So it now touches the edge of the div.  How do I resolve this?    <div style="padding:1em;background-color:pink">   <input style="width:100%;padding-left:1em" /> </div>


Convert String To Datetime e.g. "10/1/19 4:19:38 AM UTC"

I need to convert this string to DateTime: "10/1/19 4:19:38 AM UTC"  I have tried the below and get various errors.   CultureInfo provider = CultureInfo.InvariantCulture; DateTime.ParseExact(value.ToString(), "MM/dd/yy hh:mm:ss tt KKK", provider); DateTime.ParseExact(value.ToString(), "MM/dd/yy hh:mm:ss t K", provider)   this is different from  as it is parsing an alpha month name


How to orient the camera to show the object exactly in the same way your eyes are looking at it

Do you know if there is a way to align automatically the camera to the user persp view that I have at a certain moment,so that the camera can view exactly what I see in that persp view ? For example,let's see the image below. I want to orient automatically the camera on the x;y axis and with the right rotation needed to show the object exactly how my eyes are looking at it. Thanks.


Minimal primary decomposition of the ideal $I = (XY, Y Z, XZ) ⊆ \mathbb C[X, Y, Z]$

Write out a minimal primary decomposition of the ideal $I = (XY, Y Z, XZ) ⊆ \mathbb C[X, Y, Z]$, and determine the primes belonging to $I$. Determine the dimension of the ring $\mathbb C[X, Y, Z]/(XY, Y Z, XZ)$.   If the decomposition of ideal $I$ is given then the proof is straightforward. However, without any pre-information, how would I find a primary decomposition of the ideal $I$? Can anyone give me some insight? Thank you in advance !


Assumptions behind multinomial logistic regression

What are the proper assumptions behind multinomial logistic regression? And what are the best tests to satisfy these assumptions in any statistical software? What are other suitable models, if those assumptions are not satisfied?


Opening ArcGIS Online files without ArcMap gives error 403?

Although the topic about pkinfo was addressed in the question  on this occasion it does not matter about "what is a pkinfo file" but rather if there is any solution to the problem of the "error 403" message after following the instructions on the support page from esri   I tried to open a item.pkinfo file without ArcMap, following the steps detailed in Esri support page, Meaning :   Open  the item.pkinfo file with notepad and copy the URL between  tags  When I go to the specified URL, I get this message:  "You do not have permissions to access this resource or perform this operation. error 403"  Does anybody know how to solve this issue?


need a sql to get the tourist who paid maximum amount in single booking

i have two tables tourist(touristid,touristname,city), bookings(bookingid,touristid,bookingamount)  i need the touristid,touristname,city of tourist who have paid the maximum amount in a single booking


How can I add a user and specify a password for a in IBM Data Studio?

In Data Studio I can connect to a sever/database, go down to Users And Groups, right-click on Users and add a new one. But the program never asks me for a password. How can I specify it? Also, no matter how many times I tried to "Save changes" they are never saved. I even tried to "generate change" and run it, but it always fails. I am connecting as the only user that exists on the server: db2admin. If db2admin has no authority to manage users, then who has?


What is the difference between the given 2 Java codes?

While debugging my Java code, I observed something unusual. Consider the following example: public static int[] func(int[] arr) {    int[] res=new int[]{1,2,3,4};    return res; }  In main function: vals=new int[]{0,0,0,0}; vals=func(vals); for (int i=0;i<4;i++) System.out.println(vals[i]);  When I call 'func' with 'vals' as argument and set vals to the returned array, it works fine and the values inside are that of the returned array. I get the output: 1 2 3 4  Now consider this: public static void func2(int[] arr) {    arr=func(vals); }  In main function: vals=new int[]{0,0,0,0}; func2(vals); for (int i=0;i<4;i++) System.out.println(vals[i]);  When I call func2 with 'vals' as argument, the output is different and 'vals' retains its original values, i.e the output is: 0 0 0 0  According to me this should not happen because I am assigning 'vals' to the new array returned from 'func' called in 'func2' instead of being called directly in the main function. I would like to know why this is happening. What is the difference between the 2 scenarios?


Complex matrix that commutes with another complex matrix.

I am trying to learn some linear algebra, and currently I am having a difficulty time grasping  some of the concepts. I have this problem I found that I have no idea how to start.   Assume that $\bf A$ is an $n\times n$ complex matrix which has a cyclic vector. Prove that if $\bf B$ is an $n\times n$ complex matrix that commutes with $\bf A$, then ${\bf B}=p({\bf A})$ for some polynomial $p$.   All I know at this point is that ${\bf AB}={\bf BA}$.


How can we implement singleten design pattern in iphone code

I want to implement singleten design pattern in iphone code  I have one array. I want it to retain its value between function calls of from single class function.  How Can I use singleten design pattern to do above task? Thanks.


Do I need to be influential with my human teammate to win Tourism Victory?

I'm playing a game with a friend where I'm doing my best to stack tourism. I've noticed that I'm still "exotic" to him and he has a TON of culture. I also cannot generate many tourism bonuses for him because "open borders" does not exist.  Do I have to become influential with my human ally (teammate) to win a culture/tourism victory? (more tourism than his total culture)  I cannot find the information on this anywhere.


Documentation for unexpected scope behaviour

I hit a scoping issue today that initially surprised me. It can be readily demonstrated by the following: def scope():     x = 1     def working():         print x     def broken():         import pdb; pdb.set_trace()     working()     broken()   Python 2.7.12 (default, Jul  1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. ... >>> scope() 1 --Return-- > <stdin>(6)broken()->None (Pdb) x *** NameError: name 'x' is not defined  Python 3.5.2 (default, Sep 10 2016, 08:21:44) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> def scope(): ... >>> scope() 1 --Return-- > <stdin>(6)broken()->None (Pdb) x *** NameError: name 'x' is not defined (Pdb)  So it appears a scope will only contain outer-scope values if there's an explicit reference to them at compilation time. This is certainly what appears to happen when looking at the bytecode:   6           0 LOAD_GLOBAL              0 (x)               3 PRINT_ITEM                         4 PRINT_NEWLINE                      5 LOAD_CONST               0 (None)               8 RETURN_VALUE          Is this an artifact of how Python differentiates between outer & inner scope references by examining the function for bindings? This does not appear to be explained by the :  Although scopes are determined statically, they are used dynamically. At any time during execution, there are at least three nested scopes whose namespaces are directly accessible:  the innermost scope, which is searched first, contains the local names the scopes of any enclosing functions, which are searched starting with the nearest enclosing scope, contains non-local, but also non-global names   What I'm trying to understand is the conflict between the two highlighted parts above: scopes are static but the promise of what names are accessible doesn't seem to be upheld. Specifically, what I'm looking for is official documentation of this explicit behaviour.


How do I find out information about logs that are in a file on my desktop called "logs," such as what application from which they were created, the sizes of the exports logged, what the most common error is amongst the logs, and other information, as well. I'm fairly new to the command line and Linux and this whole side of web development and design and I am in desperate need of assistance! I thank you so much for taking the time to help me!   LindsayLambo


What anime features a guy who transforms into a green monster like creature?

First, the guy accidentally gets wounded and a strange thing gets implanted in his arm. The thing causes his arm to swell but he visits a doctor who tries to keep it in check by bandaging him and giving some medication to him. But, one fine day it gets out of control and the thing takes over his body leading to his transformation.  I described a clipping I saw a long time ago probably on Facebook. Can anyone recall an anime like that?


Sometimes I activate the Protectron in Corvega Assembly plant, go to the side of the room and sneak as I watch it attack raiders. Then, all of a sudden, it would turn and start attacking me. Sure, sometimes I had tried to help it by firing a few shots, and maybe it saw that as being bad, but other times during the entire duration of it being active I don't use any weapons and just try to hide off to the side.   The strange part is it doesn't always happen, either. There are good odds it will not attack me unless I attack it first, but sometimes it seems to just decide it doesn't like me and attacks. Why is does it sometimes attack me?


That'd save us some battery while being nice on the eyes at night. I love the black interface that reddit is fun app has and would love to see same on this app. Thanks.


What are open source tools for building a web gis application having PAN, Zoom, Query/search, Label etc options?  I have decided to use PostgreSQL for database and GeoServer as middleware but I am a bit confused in selecting the software to design the GUI for the client side.   I am a novice programmer, so will geoexplorer be a good option or are there some other tools which can be more easily customized for my work?


Taylor series with remainder term for $\ln(1+x)$ about 1 with error terms less than $2^{-10}$

I was working on this problem and I think I was able to get the correct Taylor series representation but I'm struggling with the number of error terms. I need an inequality that gives the number of terms that must be taken in order to yield ln(4)with error terms less than $2^{-10}$. For the series I got $$f(x) = \ln(2) + \frac{x-1}{2} + \sum_{n=2}^{\infty} \frac{-1^{n+1}(n-1)!}{2^n}(x-1)^n.$$ For the remainder inequality I'm getting $\frac{3^{n+1}}{(n+1)!} < \frac{1}{2^{-10}}$ but when plugging this into a calculator it states that $n < -1$ which clearly doesn't make sense. Can someone help with the error term ?


Can we construct a system in which two distinct paths give the same actions? If so, how does the system evolve?

Say we construct the Lagrangian for a system and minimise the action, what happens if this is not unique? In other words the action is minimised by two distinct (not infinitesimally separated) paths. Is there something else that governs the evolution of the system, or is there always a unique solution to the Euler-Lagrange equations?


If $f$ is an entire function and $f = f'$ then the is a constant $K$ such that $f(z) = Ke^z$

I need to prove that if $f$ is an entire function (holomorphic in all the complex space) and $f = f'$ then there is a complex constant $K$ such that $f(z)  = Ke^z$.  Moreover, I need to show that $e^z = \sum\limits_{n \ge 0} \frac{z^n}{n!}$.  Well I am not so sure what to do here. I see that $f-f' = $ constant, but I don't think it helps. I can clearly show that if $f(z) = Ke^z$ it satisfies the conditions, but I am not sure how to prove that $f$ is necessarily such a function.  Help would be appreciated.


Clearly, droids are programmed with, or given, a male or female gender. The majority of droid characters are clearly, and definitely, given a male identity and consistently referred to as 'he.' However, TC-14 certainly seemed to be female, plus the server droid in the diner in Episode II and I'm sure there are more.  Is this a part of their programming? Is there a difference between the body of TC-14 and C-3PO for example which makes them have a gender? Could C-3PO be reprogrammed as female, and would this be complicated or more like changing the voice on a sat nav/GPS system? Is it determined by their owner when purchased or first activated?  (These questions are to prompt an answer to the overall one - I don't think I'm really asking multiple questions here).


what is the best audio and video format that best fit my ipad air?

i have some videos that i would like to convert to become suitable for my iPad air and iPhone 4s, but i can play around with the audio and video format (ex: video codec, video bitrate, frame rate, video aspect, audio codec, audio bitrate, sample rate)  which i don't know which best suits them. i am using "any video converter" to do this, if any one has any idea how to do this please tell.


Why does the term $-\frac{q}{c}\frac{d\vec{A}}{dt}$ play no part in the Lagrangian of a charged particle in an electromagnetic field?

A common derivation of the Lagrangian of a charged particle in an electromagnetic field starts with the Lorentz force that is rewritten in terms of the electromagnetic potentials $\Phi(\vec{x})$ and $\vec{A}(\vec{x}, t)$. So $\vec{F} = q(\vec{E} + \frac{1}{c}\dot{\vec{x}}\wedge\vec{B})$ becomes \begin{align} \vec{F} & = q(-\nabla\Phi-\frac{1}{c}\frac{d\vec{A}}{dt} + \frac{1}{c}\nabla\cdot(\dot{\vec{x}}\cdot\vec{A})) \notag \\  & = \nabla(-q\Phi+\frac{q}{c}(\dot{\vec{x}}\cdot\vec{A})) - \frac{q}{c}\frac{d\vec{A}}{dt}, \label{u} \end{align} where $q$ is the charge of the particle. The Lagrangian takes the general form $L = T-V$. In this case the kinetic energy is simply $T = \frac{1}{2}m\dot{\vec{x}}^{2}$, where $m$ is the mass of the particle. For the potential energy one sets $V = q(-\Phi+\frac{1}{c}(\dot{\vec{x}}\cdot\vec{A})).$ By the look of the final equation for $\vec{F}$ \eqref{u} this seems like a fairly reasonable choice, except for the fact that the term $- \frac{q}{c}\frac{d\vec{A}}{dt}$ is omitted. I'm aware that this term conveniently reemerges when one computes the Euler-Lagrange equations. I also know that two Lagrangians that only differ by a total time derivative yield the same Euler-Lagrange equations.  However, I do wonder whether there's a reason for omitting this term in the definition of $V$. I'm not suggesting that we simply add it to $V$, that would likely be nonsensical. I just want to understand what motivates the omission because as it stands, it seems like this step is pulled out of thin air.


Why is it possible to flag and close my own question?   The only realistic usage I could think of is when I see that my question is a duplicate, but it has already got some great answers. So instead of deleting the question, I would vote to close it as a duplicate.   But still, I can't see how flagging my own question would be useful.


[Titles] Should the most relevant tag be included in the title?

Suppose I have a fairly generic question (like about the use of global variables or something like that) but I'm looking for an answer related to PHP, should I include that requirement in the title? I know that it's what tags are for, but maybe it helps visibility and relevance in external engine (google) searches?


public static void main(String[] args) throws ParseException, UnsupportedEncodingException {     int rishav = 42;     System.out.println(rishav); }  this gives 42, but the below gives 34 :- public static void main(String[] args) throws ParseException, UnsupportedEncodingException {     int rishav =0042;     System.out.println(rishav); }  If I need to transform an integer to trim its leading zeros, what do I do, most feasible.


Remove all non-numeric part but keep the coma in python

lets say I have a a string such as :  line = "tree length for XI:      31.0215"   I would liek to only keep the 31.0215 part.  I tried:  print (re.sub("^[0-9]", "",line))   but it does not work, the "." is removed, does anyone have an idea?


How to check request is from the same client

I am developing a web application using jsp. My requirement is to identify the no of request is from the same machine or not. How to finger print a device... I tried to get IP address but jsp returns always the server IP address. For this I refere the following question. is there any way available to get IP or Mac address or a unique identifier of client PC using java script or jsp.....


Is there any utility to check whether my laptop battery is in healthy condition or not?

Is there any utility available on Ubuntu to check whether laptop battery is in healthy condition or not?


I am trying to use the Source QueryString Parameter once the user makes changes to the Edit Form.  Here's the Source URL I am using:  https://mysite/sites/hhc/finance/ap/Lists/APInvoiceForm/EditForm.aspx?ID=76&Source=/sites/hhc/finance/ap/   I paste it into the URL, hit enter, and it will work the first time when you press save, but every other time after, it defaults back.  Is this not possible to use with the Edit Form?


Award For Reviewing (Triage, First Posts, etc)

As , reviewing questions is a thankless job. The OP of that question had a good point. Today, I noticed the Triage feature for the first time. I've probably spent a good 2-3 hours churning through the queue, helping out. It's at about this length of time/moment that I thought "This is monotonous and costly. Am I getting anything in return for this beyond the pride of charity?" I'm not suggesting that reviewing isn't at all rewarding. Anonymous donations are after all a thing. At this point in my day though, I would not continue reviewing without an added incentive. In fact, I'm actually a bit disappointed in the amount of time I've allowed myself to spend sucked into so far today in terms of the cost metric. Where many of us often charge base rates of $100, $200, $300+ for our time, I'm sure many would agree. I was a bit taken back that the aforelinked question had been closed as "Off-topic" - ironic as a Meta question directly related to the review of the validity of questions themselves. Note that: this question is titled "Award" and not "Award rep," though rep points are the primary reward on this site to date. The question is: Are there any conceivable & useful + relatively secure rewards for reviewing questions? Some obvious potential answers come to mind:  A secondary points or ranking system. What benefit it confers is debatable. Monetary or cryptocurrency compensation. Standard rep points + an anti-robot system that's extremely difficult to game. A KYC process for becoming an incentivized reviewer. Hand-pick or rank-threshold users from which review-audit questions must be associated in order to be derived.  The viability of any one solution is not implied. Questions & answers are potentially gambled therefore making reviews gamble removes a potential check on the former. This is simply a means to discuss potential solutions. I don't know what the review-queue to reviewer ratio is at present. If the queue is currently being consumed at a sufficient rate by charity, the stats showing that would be the proper answer. If not, this question seeks to solve it. On the topic of robot-reviews, consider that there are many good engineers & scientists around here who deal with that proposition daily. Good ideas abound.


Relative importance of a set of predictors in a random forests classification in R

I'd like to determine the relative importance of sets of variables toward a randomForest classification model in R. The importance function provides the MeanDecreaseGini metric for each individual predictor--is it as simple as summing this across each predictor in a set?  For example:  # Assumes df has variables a1, a2, b1, b2, and outcome rf <- randomForest(outcome ~ ., data=df) importance(rf) # To determine whether the "a" predictors are more important than the "b"s, # can I sum the MeanDecreaseGini for a1 and a2 and compare to that of b1+b2?


PHP multiple file_get_contents in a single session possible?

I want to file_get_contents and login at . That was the easy part, now since i am logged in i want to file_get_contents at , but i don't get  the results i was expecting. That is, not loose the session between the 2 file_get_contents. Instead the second file_get_contents result in the  which broke my heart. Here is my code: <?php $url_login = 'http://example.com/test/index.php';  $postdata = http_build_query(     array(         'username' => 'user1',         'password' => '123',         'login' => 'true'     ) );  $opts = array('http' =>     array(         'method'  => 'POST',         'header'  => 'Content-Type: application/x-www-form-urlencoded',         'content' => $postdata     ) );  $context  = stream_context_create($opts);  $result = file_get_contents($url_login, false, $context); echo $result;  //--So far ok, $result shows me that i am logged in--//  // Now that i am logged in i want to access the member_area.php. $url_member_area = 'http://example.com/member_area.php';  $result = file_get_contents( $url_member_area, false, $context);     echo $result; ?>  i must achieve that using file_get_contents and not cUrl. I think it has to do with session, but i have no idea where and how to implement. Thanks in advance, i buy you a Beer! UPDATED CODE: <?php $url_login = 'http://example.com/test/index.php';  $postdata = http_build_query(     array(         'username' => 'user1',         'password' => '123',         'login' => 'true'     ) );  $opts = array('http' =>     array(         'method'  => 'POST',         'header'  => 'Content-Type: application/x-www-form-urlencoded',         'content' => $postdata     ) );  $context  = stream_context_create($opts);  $result = file_get_contents($url_login, false, $context); echo $result;  //--So far ok, $result shows me that i am logged in--// $url_member_area = 'http://example.com/member_area.php'; // Create a stream $opts = array(   'http'=>array(     'method'=>"GET",     'header'=>"Accept-language: en\r\n" .               "Cookie: username=user1;password=123;login=true"   ) );  $context = stream_context_create($opts);  // Open the file using the HTTP headers set above $file = file_get_contents($url_member_area, false, $context); // Now that i am logged in i want to access the member_area.php.       echo $file;  Brings me back to index.php asking me to log in, i was hoping to get the member_area.php.  Offer Updated to 2 Beers *People, i ask for a recipe on how to make Apple pie, you link me to a page on how to wash the apples, and stackoverflow tells me that my question has been answered. Thanks anyway :D


Backdoor:PHP/Shell.P keeps regenerating.Caught by Antivirus.

I have a windows server 2008 with PHP on it and a few Wordpress sites on it. I got a virus some time ago. I thought I had it deleted and everything was fine but after looking at my Quarantine section of my antivirus, I noticed that everyday it catches this virus.  Here is a description from the Antivirus (Microsoft Security Essentials).     Category: Backdoor      Description: This program provides remote access to the computer it is   installed on.      Recommended action: Remove this software immediately.      Items:  file:C:\Windows\Temp\phpE138.tmp      Get more information about this item online.   I don't have a clue where the source of this virus is at. Some people say it could be hidden behind an image (using base 64 decode they get the actual code and run it), others say it gets stored in the database... thing is that everyday my antivirus catches this, what it seems to be" self generated files in the temp folder.  Has anyone experienced this before?  Thanks.


Is is possible to connect some services through Wi-Fi (without internet connection) while connected to 3G/4G?

I've read a lot of questions about using Wi-Fi and mobile data at the same time to make downloads faster.  This is NOT what I am looking for.  I need to connect my smartphone to a local Wi-Fi service network. It does not have internet connection, it has only my door bell server.  At the same time my smartphone will be connected to 4G using all other internet services.  A simple "route" to my server's IP would be enough. It looks to easy to be made in a desktop but I have no idea if it is possible to be done in an Android device.  Regards, Ian Maciel.


How the == Comparison works in Java in this code

public class EqualsTest {  public static void main(String[] args) {      String s1 = "abc";     String s2 = s1;     String s5 = "abc";     String s3 = new String("abc");     String s4 = new String("abc");     System.out.println("== comparison : " + (s1 == s5));     System.out.println("== comparison : " + (s1 == s2));     System.out.println("Using equals method : " + s1.equals(s2));     System.out.println("== comparison : " + s3 == s4);     System.out.println("Using equals method : " + s3.equals(s4)); }   }  Output:        == comparison : true == comparison : true Using equals method : true false Using equals method : true   Can anyone explain how the output of s3==s4 became false in the above, also how is this equals tag operation, i mean its working?


Are there some needs to prove that object function can be reduced to cost function?

I'm a student studying ML. After I searched the differences between the loss function, cost function, and object function, I had some questions.  As the above answer, object function is a more generic function than cost function. And object function can have a different formula like the maximum likelihood function, which is neither loss function nor cost function. But as I understood about ML (especially gradient-based learning), we can train our ML models by optimizing our cost function to converge to maxima/minima point, and at that time, we calculate gradient per each weight parameter to converge optima points. In short, when we train our models, we use the cost function to compute gradients. If cost function and object function are the same, that isn't a huge problem, but otherwise, then we need to prove our object function can be optimized through optimizing our cost function? In other words, do we need to explicitly prove that our object function could be reduced to our cost function?? If not, why we don't need to prove it?


Finding Vertices, Edges, Faces, and Tris using Python

I am trying to access the triangle count of an object with Python. All other python code displays itself when I hover my mouse over the corresponding button in the interface. When I go to the info bar and hover my mouse over the triangle count, nothing appears. When looking in the documentation around data, there doesn't appear to be any clear function to call to get this info.


I am using TEXShop working at a MAC and I don't really know what I am doing, I am just trying to fill a template. But I want to add something that the template does not offer; align a section to the far right. So I have the following:  \chapter{Introduction}  % I need the following to be aligned at the far right \begin{quote}  \hfil ``Lorem ipsum dol, \\ \hfil consecteture adipisicing elit.'' \\[1ex] \hfil John Doe, Lorem\\[1ex] \end{quote} % Until here  % And here the normal paragraph begins  Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt                Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt   But it doesn't really work. Any ideas?


Whose lightsabers does General Grievous use to fight Kenobi?

I was watching Obi-Wan fight Grievous in this clip and happened to pause right after he cuts off Grievous's second hand as the saber falls away (the 2:36 mark):                                  Here's a couple screen grabs of what I noticed:     What the heck!? That looks identical to Kenobi's saber!    Given that Grievous never made his own and had a love for collecting the sabers of Jedi he'd killed, my question is who did the sabers used in this battle originally belong to (especially the Obi-Wan look alike I spotted)?


Should I care too much about battery cycles?

I bought a MacBook Pro 13 inch 2017 two days ago and it’s been already 4 cycles   Is it something that I have to care about?


What is the most correct way to pass an array to a function?

Consider I have a very large array $large_list, is there a way to write a function that will take the array as an argument? For example:  echo_idx_array () {     arr="$1"     idx="$2"      echo "${arr[$idx]}" }   What is the usual strategy to do something like that? I tried giving the variable $large_list but it was empty.  I am willing to modify the function to adapt it to any change in the argument list.  For the record, I am using ksh88, and I am looking for answers as portable as can be.    EDIT: So far the best I could come up with is to loop through the array and send each element as an argument to the function. This seems incredibly ugly and error-prone, not to mention that it is bound to hit some limit quickly. Here's what I did:  foo () {     echo $* }  cmd="foo " while [[ $i -lt $MAX_ARR_SIZE ]]; do     cmd="$cmd ${large_list[$i]}"     ((i=i+1)) done  eval $cmd   Isn't there something better to do?


How to open .plist files in macOS Sierra without using Xcode?

Problem I just went to use Property List Editor to look at a .plist file and it no longer works in Sierra    My Setup Mid-2010 15" MBP macOS Sierra 10.12   Crucial Comment I do not want to use Xcode to open .plist files, it's too much for such a simple task. The Property List Editor was perfect.   What I have Found As of 2016-09-13 The Apple Developer website describes Xcode as the only option to edit .plist files (search for: About Information Property List Files) Apple mentions using Xcode to generate and work with .plist files but there has to be another way.    Is the Property List Editor App done in macOS Sierra?  If so, other than Xcode, are there any simple programs like the Property List Editor that people recommend?     Thank you for your responses!   UPDATE  This is not a "duplicate" question. This question is specifically for those who are used to using Property List Editor and have lost it as an option when upgrading to macOS Sierra. So keeping this question thread will help others with the specific issue, especially if they are not a fan of using Xcode to work with plist files and/or do not know how to work with plist files through terminal.  The solution linked in the "claimed" duplicate thread can be useful to those familiar with terminal.  Those familiar with terminal, you can also use rlwrap and PlistBuddy, which IS currently working in macOS Sierra. See:   Those not familiar with terminal who want to avoid Xcode: sorry, I haven't found a solution for you but I'll keep looking into it. If anyone else has a suggestion please add it. If there are other *exchange posts with software recommendations please feel free to link them for other users in the future.


I made a decent looking bolt gun in blender and I'm trying to add movement to the guns string. I added a rig to the bow part with a 2 sets of bones going along the Z axes. Then I set one bone to the string as a way to pull the string back. I set automatic weights in parenting to both the string and bow. Here's my problem, when I pull the string back, the whole mesh goes with it and stretches. How can I set this up so it will work right? Is it possible that the string needs to be set up as it's own object? It isn't even listed as "cylinder" in the hierarchy.


Convert anti-aliasing on color to anti-alias on transparent

Assume I have an icon on a pure white background in a PNG image. The icon is a solid color, with edges anti-aliased, so they are blended with white. I need to delete the white background so that the non-content is transparent. How can I get the anti-aliased edges to blend from the fill color to transparent, instead of white?  There is a  on the site, but this is actually a different case: dealing with solid colors, and anti-aliasing of just the edges, not reblending entire portions of the image. I don't think the answer from the other question applies. I can't reasonably apply a gradient to just the one-pixel edge of an icon. There aren't enough pixels. Also, this method doesn't scale well when the icon edges are irregular (like a Twitter bird).  Perhaps the question is whether it's possible to de-antialias an icon, knowing the foreground and background colors exactly, and to re-antialias it on a transparent background.


Ubuntu noob here. When using Windows I just copy paste this in cmd:  set Path=C:\Program Files\Java\jdk1.8.0_60\bin set HomePath= C:\Program Files\Java\ jdk1.8.0_60   What would the syntax for this be in Ubuntu? assuming /usr/bin/java. A concise answer would be appreciated.


Evaluate the indefinite integral of $\int\left(a^2-\frac{\sin {(a)}}{a^{2} + 1}-a\cos{(a)}\right)\,da$

Evaluate the indefinite integral $$\int\left(a^2-\frac{\sin {(a)}}{a^{2} + 1}-a \cos {(a)}\right)\,da$$ I tried a lot of integration strategies to solve this, but I can't find what will solve the derivative. Can you give me a hint on how to solve this? Specifically, I am thinking that the fact that $$\int\frac{1}{x^2 + 1}\,dx = \tan^{-1} (x) + C$$ can be applied here. Let me share my solution $$\int\left(a^2-\frac{\sin {(a)}}{a^{2} + 1}-a \cos {(a)}\right)\,da =\int\frac{a^2(a^2-1)-\sin {(a)}-a(a^2-1) \cos {(a)}}{a^{2} + 1}\,da$$ $$=\int\frac{a^4 -a^3\cos {(a)}- a^2+a\cos {(a)}-\sin {(a)} }{a^{2} + 1}\,da$$ I got stuck here. I hope you can help me solve the problem. Thank you in advance for your comments.


Problems with installing extensions ubuntu 18.04.2

That happens with every extension that i try to install.   Any idea what is going wrong ?


Eigenvalue changes in sign when performed row operations.

Eigenvalue of triangular matrix are elements in diagonal.  Now, consider the following matrix with eigenvalue $-5$ and $4$: $$\begin{bmatrix}        -4 & 2 \\         4 & 3 \\         \end{bmatrix}$$ Now if I do row operation $R_2\to R_2-(-R_1)$ and convert above matrix to following $$\begin{bmatrix}        -4 & 2 \\         0 & 5 \\         \end{bmatrix}$$ The eigenvalue of this is $-4$, $5$  First one is correct, what is wrong with the second one?


ERROR : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException

i faced a problem with null , i implement the same code before and it work well but after i add other codes its not work ..  this is part of error :   Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at manager.flyer$13.mouseClicked(flyer.java:751)     at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)     at java.awt.Component.processMouseEvent(Component.java:6536)     at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)     at java.awt.Component.processEvent(Component.java:6298)     at java.awt.Container.processEvent(Container.java:2236)     at java.awt.Component.dispatchEventImpl(Component.java:4889)     at java.awt.Container.dispatchEventImpl(Container.java:2294)     at java.awt.Component.dispatchEvent(Component.java:4711)   and my code part which show that error :   JButton btnNewButton_4 = new JButton("Add All");            btnNewButton_4.addMouseListener(new MouseAdapter() {             @Override             public void mouseClicked(MouseEvent e) {              int columnContainingPlanets =1 ;             for (int index =0 ; index < tableModel.getRowCount(); index ++){             if (tableModel.getValueAt(index, columnContainingPlanets).equals("")) {             JOptionPane.showMessageDialog(panel_4, "Please Enter Discount Amount For All Items");              return; }}   i try to replace columnContainingPlanets=1  to  columnContainingPlanets=0 but also there is error : java.lang.NullPointerException   i will happy if any one know the solution because that error appeared suddenly, and it was work well ..


How to compile a .tex file to a text file (not a PDF format)?

A lot of job applications ask for a plain text version of a resume. My resume is in LaTeX so it's no problem producing a nice PDF, but copying and pasting from the PDF into notepad, for example, is horrible. Is there a command that TeXworks can do (or pdflatex in Ubuntu) that can output some representation of .tex in a text file (ideally preserving things like spacing)?


For many years, I use DESTDIR=/somewhere make install to set a temp path before a installation operation for testing purpose, so I naively think it works for any command line. But it does NOT work with FOO=bar echo $FOO, to my surprise! It looks like that FOO=bar bash -c 'echo $FOO' works well. Would anyone please tell me the reason behind this? If every time I must use the after form, it is bother a little.


Is it ethical to use past years' final exams that the professor hasn't explicitly given, to study for a final in the same class?

This happened to me in my 2nd year of grad school, in a STEM field. As many do, our professor gave the class the last year's final, to give us an idea of what areas to study and what to expect, etc, which he obviously isn't required to do and is very nice of him.  Now, the reason he gives us last year's one is because, at the end of the year, he returns your test, so he knows that most of the ones floating around are the ones from last year.  However, as many older professors (in my experience, but maybe younger ones too) do, he also reuses exams from previous years (not even concepts or the same problems with different parameters, just literal copies), since the material and curriculum of this course is very well established/so old that nothing needs to change. I don't blame him for this; if you teach the same course on and off over 20 years, coming up with good exam questions over and over again would be annoying.  Now, what my question regards is, I realized a student in my class had past tests from not just the last time the class was taught, but literally the past 5 years. I don't know how to say this part as diplomatically as possible, but this student came from a country that about nearly half our program comes from. The other half (aside a few outliers) is from the U.S. I don't mention this to demonize or stereotype anyone; I believe it's relevant because the students from this country (in my program) are almost uniformly very tight knit, and seem to often share resources between each other and across years more than is normal amongst everyone else. The relevance is that one group has resources that others don't.  So my question is, is this ethical (for the student to do, I mean) ?  Just to put some relevant ideas/arguments/details down:   Assume (and I believe it was the case) that in the scenario I've written, the rest of the students (the ones who don't have the past tests) don't know about the students that have the past tests, so they can't do something simple like ask them. I think many will argue that if the professor didn't want this happening, he wouldn't reuse tests, or at least as exactly as he does. However, I don't think this changes the ethics of the situation: the point is, in this situation, you can get away with it, but is it right? I imagine the professor would not approve of this (actually, recently, another professor said in regards to his final "I know there are past ones floating around, please don't look at them", so at least he disapproved), but an argument could also be made for the possibility of him approving: It's not as though having the previous tests just makes it a given that you'll ace it, it's still a lot of work to figure out all the problems such that you can reliably do them later (he doesn't give back the answers to the tests, only the tests themselves). I could imagine a professor being okay with students getting a better grade on the final if it meant they learned more and worked to get it. This professor never actually said not to, so the student wasn't explicitly disobeying anyone. This question really has two subquestions, but they're very similar: a) Would it be ethical if everyone had these pasts tests (that the professor did not know about/give)? And b), Is it ethical if only a subset of the class has these tests. Obviously if you say no to (a) you say no to (b), but you might feel as though the concept of using past tests isn't wrong, but some students having an unfair advantage is.


I'm importing a mesh i made into unity before exporting I always rotate it by -90 degrees in the X axis, then set the orientation to Y forward and Z up so when the object is imported to unity the object's orientation will fit into unity's native orientation, However whenever I do this after being importing to Unity the mesh is inside out or transparent but When I don't do the rotation of -90 on the X axis the mesh loads correctly aside from the orientation of the mesh being incorrect and it doesn't match unity's native orientation, i really can't figure it out this is the first time I'm having this problem My setup usually works in the meshes i import to unity but this time i got this problem.


if G is generated by {a,b} and ab=ba, then prove G is Abelian  All elements of G will be of the form $a^kb^j,\,\, k,j \in \mathbb{Z}^+$   so I need to get $a^kb^j = b^ja^k$


If there are awards for more than one poster, what shall I write as a title for the posters presentation to be awarded: Posters Awards or Poster Awards?


What is required by a process to set its uid to 0 (root)?

I am completely new to *NIX based OSes. One of the things that baffles me is that a process or program may execute setuid(0) and then perform privileged operations and revert back to its normal uid.  My question is what is the mechanism in *NIX to prevent any arbitrary process from possessing root ?  If I write a simple C program that calls setuid(0) under what conditions will that call succeed and under what conditions will it fail ?


A surjective linear map into a finite dimensional space is open

I'm in search of different proofs of the following proposition:     $\bf{Proposition}$: Suppose $X$ and $Y$ be topological vector spaces, $\text{dim }Y<\infty$, and $\Lambda:X\to Y$ is a surjective linear map. Then $\Lambda$ is open.   Any and all proofs are welcomed.


What is the difference between Raman scattering and fluorescence?

What is the difference between  and ?  Both phenomena involve the emission of photons shifted in frequency relative to the incident light, because of some energetic transition between states that the system undergoes. As far as I can tell, fluorescence is caused by ionization of the atomic electrons while Raman scatterings agitate phonon modes - but technically speaking, aren't they effectively the same?


Why is there an inconsistency for (-1)^0.6 (or (-1)^(6/10)). I know in school I was taught to simplify the exponent to 3/5, which results in -1. However, when I leave the exponent as 6/10, I get a either the 10th root of (-1)^6 = 1 or ((-1)^(1/10))^6. Is there a way this can be explained without just simply saying to simplify the rational exponent first?


"... need XXX-ing" vs. "... need to be XXX-ed"

What is the difference between these two expressions?        Your hair needs brushing.   Your hair needs to be brushed.


What are the differences between "precise" and "precise-updates" and "precise-backports"?

In /etc/apt/source.list,  deb http://us.archive.ubuntu.com/ubuntu/ precise universe deb-src http://us.archive.ubuntu.com/ubuntu/ precise universe deb http://us.archive.ubuntu.com/ubuntu/ precise-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ precise-updates universe deb http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse   I wonder what differences are between "precise" and "precise-updates" and "precise-backports" I only know "precise" means the code name of Ubuntu release 12.04. Thanks.


Accidentally deleted contents of /usr/local

I accidentally issued 'sudo rm -rfd *' in the /usr/local directory. What would I have to do to at least get it back to how it would be from a fresh install (Linux Mint 15)?


Can't Install Ubuntu 14.04, tried every option in the menu

I'm trying to install Ubuntu, my computer has the following configuration:  mobo Asus Maximus VI Extreme 2x Ati R9 280x (crossfire) 8gb ram 120GB kingston ssd sata 2xconventional hd, 500GB and 1000GB   When i try to install Ubuntu, even trying with the nomode option set, the screen goes black with a blinking line on the left upper part of the screen, and it does nothing. I've tried with older versions, but I can't install it.  Every help is appreciated, i really need to install it. Thank you!


Hello how can i view the system elapsed time ? Example: ubuntu is turned on at 10:00 now it would be 12:00 , elapsed time is : 2 hours how can i get this information ?


I was upgrading ubuntu 20.04 to ubuntu 20.10 and my computer's power went out and now it says emergency status at startup?

Failed failed to mount Mount unit for gnome-3-26-1604, revision 98 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 128 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 145 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 60 Failed Failed to mount Mount unit for gnome-3-28-1804, revision 66 Failed Failed to mount Mount unit for gnome-system monitor, revision 145 Failed Failed to mount Mount unit for gnome-system monitor, revision 148 Failed Failed to mount Mount unit for...... Failed Failed to mount Mount unit for.... Failed Failed to mount Mount unit for..... Failed Failed to mount Mount unit for..... Failed Failed to mount Mount unit for......  you are in emergency mode. After logging in, tye "jornalctl -xb" to view system logs,"systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Pulse enter para mantenimiento (o punse Control -D para continuar)


how to create a module that declare a block that contains a link to a specific page using l() function?

I want to add a block that contains a link to a specific page. this is can be created using the l() function but it must be declared in a module,So i created a module with two files .info and .module. I know that .module file must contain the l() function but have no idea about hooks that i should use . thanks for any help .


An example to show that $\left(I \cap J\right)^{e} = I^{e} \cap J^{e} $ is not true in general.

Let $I$ and $J$ be ideals of a commutative ring with identity $R$ and $I^{e}$ be the extension of the ideal to some other ideal of another ring.  I have already proven that $\left(I \cap  J\right)^{e} \subset I^{e} \cap J^{e}$ and I am trying to look for a counterexample to show that the equality doesn't hold in general.  Any help finding this example would be much appreciated!


if ||x + y|| = ||x - y|| then x and y must be orthogonal


I would like to generate a number between 0 and 9999 for an android application , that I would increment each time. The generated string must be fixed size. For example, for 0, I would like to have '0000'              for 1, I would like to have '0001'              etc.  Any ideas would be welcome. thanks


Where is "in honoring" or "to honor" more appropriate as an idiom?

The practice of renaming a street Martin Luther King Boulevard has been adopted by many cities in honoring/to honor the civil rights leader.   Please give explanation.


How to revert slmgr -rearm in Windows 7? {REPOST}

My post got deleted because it is idle. So can anyone help me please? Here are what I said there: Every time I go to the desktop I see "Windows is not genuine". I was annoyed and researched. I found the slmgr -rearm. I opened cmd in administrator mode and did this: C:\Users\********> slmgr -rearm  I didn't know what I was doing and didn't know it would delete my product key or whatever. Can anyone please help me? I don't own this PC.


How can I access my MOTO G3 if I forgot my mobile pattern?

I have forgot my screen lock pattern of my MOTO G3. What do I do now? How can I access my mobile now. If there is any solution, please let me know.


Why are the even and odd Regge trajectories degenerate?

This is an old classic which I don't think ever got a clear answer. The Gribov-Froissart projection that gives the relativistic version of Regge trajectories treats even angular momentum differently from odd angular momentum. The trajectory functions in general are separate for even and odd angular momentum.  But in QCD, the odd trajectories interpolate the even trajectories in every case--- the two trajectories are degenerate. Is there a way of understanding why the even-odd trajectories are degenerate? Is is a symmetry argument? Can you find a natural system where they are not degenerate?  A quick google search revealed this reference, which doesn't answer the question, but gives an experimental signature for the degeneracy:  , There is probably excellent data by now on this.


In advance: newbie here, thanks for your help! I used to play around with NURBS in Maya and loved this feature where I could mold the object like clay- pushing and pulling with a red/yellow mapping of the strength. Though, I don't remember what the tool is called or if its even the same for mesh/Blender. I have a model I want to move uniformly instead of just the faces/vertices I select- which gives long, hard lines instead of a gradient. Example: I need to move the arm up in a T-pose, but if I select it to rotate and generally manipulate it, there's an unnatural edge to where my selection starts/ends. How do I get the option to click a point, see the radius of strength, and then push/pull so it moves all in the radius uniformly?


I am getting 56 bytes for the following. Can anyone explain how is that?  #include <stdio.h>  typedef struct how_many_bytes {     long s[4];     char c, e;     int i[2];     char *d;     } How_Many_Bytes;  int main(){         printf("%lu ", sizeof(How_Many_Bytes)); }   Shouldn't it be (4*8) + 1 + 1 + 2(for padding) + 4 + 4 + 8 = 52 bytes


how to clone/copy html table using javascript/jquery

I have a problem here, that when I click the copy button on the recently copied row. It doesnt work. You guys know how to fix this?  This is my code  var controller = function(num1) {     $('#copy-' + num1).click(function() {        var $tableBody = $('#table_name').find("tbody"),         $trLast = $tableBody.find("#tr-" + num1),         $trNew = $trLast.clone();       // $trNew.find('input').val('');       $trLast.after($trNew);       console.clear()       // refresh_index();      });   }    function refresh_index() {     $('#table_name > tbody > tr').each(function(i) {        i++;       var select = $(this).find('select');       var text = $(this).find('input');       var button = $(this).find('button');        controller(i);      });   }   refresh_index();   This is my code in


texdoc package-name results no documentation found

texdoc package-name provided package's manual in previous in my system. But, now it results -      $ texdoc beamer     Sorry, no documentation found for beamer.       If you are unsure about the name, try searching CTAN's TeX catalogue at     http://ctan.org/search.html#byDescription.   I am running Ubuntu 14.04 and my LaTeX-2016. I have installed it from tug.org. A few days ago I noticed that when I updated my ubuntu packages from ubuntu software updater there was latex-base. I have installed all those updates. I don't know whether the problem occurs for those updates or not.  Edit 1 provided that tlmgr update --self results -    $ tlmgr update --self (running on Debian, switching to user mode!) /usr/bin/tlmgr: Initialization failed (in setup_unix_one): /usr/bin/tlmgr: could not find a usable xzdec. /usr/bin/tlmgr: Please install xzdec and try again. Couldn't set up the necessary programs. Installation of packages is not supported. Please report to texlive@tug.org. tlmgr: exiting unsuccessfully (status 1).   and which texdoc results - /usr/bin/texdoc  I will be highly glad if you provide any fruitful solution.


Why is render coming out SQueezed together?

Hey all do you knoe why this is happening? Here are my output setting   and what I mean  Also am interested in how to unsQueeze the image


Set Theory: How do I typeset domain/range subtractions (anti-restrictions)?

I'm using \triangleright and \triangleleft to typeset restrictions, but I can't find the symbols for subtractions, which are the same triangles, but with a horizontal line in the middle. For example:


A major update for Factorio was released the other day (version 0.15).  One of the many changes included a change to how the boiler looks.     Boilers now take up a lot more space than before, and also have three pipes as opposed to one on each side (the third pipe is the one connected to the offshore pump in the picture above).  However, this configuration does not allow the steam engine to run. The coal in the boiler burned for a bit, but then stopped.  What is going on here?


Comparison of data types without using comparisons

I would like to know how l can overload a function named void maximum to find the maximum of two integer or two double numbers. When passing one integer and one double number function it should print that double vs int or int vs double. And in this case comparisons are not allowed and user should not be asked for input.?


Is it possible to add fields to a node type declared using hook_node_info? Do I have to add the fields separately? If so, what hook would I use for that?


How to make this effect in AI or photoshop?

Please give me an advice to create this effect to text as shown in the picture.


How To Select By Attribute Within Perticular section/div through htmlagilitypack

So I m using Htmlagilitypack on server side to parse html in C#. Here's a Question.. i have 2 div elements

   i am looping through the div elements and want to find specific data-clear attributes for that. problem is when i am selecting nodes using   var cols = fdm.SelectNodes("//@data-clear");   on second case i am finding 4 instead of 2 columns..  how to select within only currently looping through div


Do I need a full-frame camera for low-light photography?

I primarily shoot low-light photos, and I upgraded from a point-and-shoot to the Sony NEX-5R (which has an APS-C sensor) a few months back.  However, I find that the low-light performance of the NEX-5R is not as good as I'd like. I find myself shooting at ISO 400 or lower, with a tripod, even at f/2.8 (I do have an f/1.8 lens, too).  I was wondering if I should upgrade to a full-frame camera. I'm told that there's only a one-stop difference between a full-frame and an APS-C sensor, which doesn't seem like much. For example, this is a 13-second exposure on my NEX (at ISO 100):     With a one-stop advantage on a full-frame sensor, I'd still need a 6.5-second exposure at ISO 200, to maintain the same quality. Even if it were a .65-second exposure, I'd still need a tripod, in which case I might as well use an APS-C sensor and give it a few more seconds.  Am I correct in understanding that for me, full-frame provides a negligible advantage at a high price? Thanks.


Batch export collections into GLTFs (Blender 2.8+)

This one would be a folowup on , but compatible with 2.8+ (2.82. to be exact).  What I'm looking for is any solution to batch export multiple collections into GLTFs, preferably the GLTFs bearing the collections names. Tried modifying a few older scripts to work, with no luck whatsoever.  Thanks for any ideas, pointers, or help in advance. (Please keep in mind I have little to no idea what I'm doing regarding to scripting)


I have a problem with my CustomAdapter. The program was working fine with Android Studio until I hit at a roadblock that says:     java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.view.View.findViewById(int)' on a null object reference   My Code:  public class CustomAdapter extends BaseAdapter {     private Activity activity;     private LayoutInflater inflater;     private ArrayList<ModuleModel> Items;      TextView name, module, dueday, id;      public CustomAdapter(Activity activity, ArrayList<ModuleModel> Items)     {         this.activity = activity;         this.Items = Items;     }     @Override     public int getCount() {             return Items.size();     }      @Override     public Object getItem(int i) {         return Items.get(i);     }      @Override     public long getItemId(int i) {         return i;     }      @Override     public View getView(int position, View convertView, ViewGroup viewGroup) {         if(inflater == null)         {             inflater = (LayoutInflater)activity.getSystemService(Context.LAYOUT_INFLATER_SERVICE);         }         if(convertView != null) {             convertView = inflater.inflate(R.layout.layout_item, null);         }         id = convertView.findViewById(R.id.tvID);         name = convertView.findViewById(R.id.tvRowName);         module = convertView.findViewById(R.id.tvRowModule);         dueday = convertView.findViewById(R.id.tvInforDueDay);          ModuleModel mm = Items.get(position);         id.setText(mm.getID());         name.setText(mm.getName());         module.setText(mm.getModule());         dueday.setText(mm.getDueday());          return convertView;     } }


jQuery .next(selector) doesn't give me anything back

I know that you can use .next() in jQuery to get the next element but I also know that you can give an argument, like a selector, and it will give you the next element that matches the given argument but in my case it doesn't work. Example: HTML:

                  Google  JS: let div = $("div#divTEST");  console.log(div.next()); console.log(div.next("a"));  Now, the problem is not the div.next(), since I get the 'span' element back, the problem is div.next("a") because it doesn't give me anything in return. What am I doing wrong ?


I'm using a software that use PDO to do request. The database requests are like this :   $query = "SELECT * FROM res_attachments WHERE res_id = ? AND status = ?"; $data = array('152', 'DEL');   The question I have is, how can I get the whole request with the "?" replace by $data elements ? I get this infos ($query and $data) after the query, I just have to "merge" it. I have to make a dynamic things, to works with a request with 2 arg or 10 args.  The result I want have to looks like :   "SELECT * FROM res_attachments WHERE res_id = '152' AND status = 'DEL'"   Solution  For those who have a similar issue, here is the solution I make :   $query = "SELECT * FROM res_attachments WHERE res_id = ? AND status = ?"; $data = array('152', 'DEL'); $tab = explode("?",$query); for($i =0; $i < count($tab); $i++){     $Request .= $tab[$i] . "'" . $data[$i] . "'";     $finalRequest = str_replace('\'\'', '', $Request); // delete the double quote at the end } var_dump($finalRequest);


A red explosion symbol with an exclamation mark appearred on the top bar and then this amber explosion with an arrow, which is shown in the screenshot.  I can't find out what they are for or signifying. Help welcome.


Ubuntu version 18.04 LTS   I installed this version of Ubuntu using a USB installer on its own dedicated SSD, I believe I did the correct partitions (./, ./home, swap, EFI) however after installation I get the following screen. At first I thought it maybe because I was telling Ubuntu to update along side the installation, so I tried it without that option and the problem still persisted.  Any help would be appreciated!  Ryan (Ubuntu noob)


How to programatically exit from an editor in Linux

I am trying to configure a crontab from a .sh file. When this script will run on the server it should do the configuration. But when I try to edit the crontab by command "crontab -e" it doesn't come out of the editor. I am not getting which command I can write in my shell script file so that it will allow to write in the editor and then exit from editor. My code to configure crontab is follows crontab -e echo "* * * * * run-parts /maven/abc.sh"  crond /maven/logs/log.txt


Repeated close visits on US Visa Waiver Programme

I recently spent 2 weeks in the US for a friend's wedding and a bit of a holiday.  I am a British citizen and travelled with no issues under the vwp.  However, having discovered I am able to take some time away from work I would like to see a bit more of the country and spend some time with friends and relatives and planned a visit of around 80-90 or so days from mid December. I would not be working nor would I go over my 90 days!  I would have proof that I could support myself whist there, proof of a place to stay in England and in the US, proof that I have a job and a car to go back to and also obviously my return ticket.  Do you think I will have any issue getting into the US for my longer trip with it only having been 6 weeks since the trip before?  I have been reading horror stories online and it is making me very anxious.    Does anyone know of anyone actually being sent back on the next flight back at border control?  Has any one had any issues at border control and what caused those (trip too long or close together??)  Any advice much appreciated as I would hate to pay for a flight and then get turned away!  I think I am just being paranoid but thought I would check!


How can I compensate for soft white ceiling lights adding warmth to the light coming from a big window?

I have 12 overhead soft white canned lights in a 10ft ceiling, each casting about 65watts.  A large tinted window is bringing a ton of grey light into a 550 ft room.  So my problem is now the can lights are warming up the grey turning people orange, and the grey natural light I can't warm up so photos look blueish.  What kind of stationary lighting do I need to cancel that grey? How many? Wattage?  Thank you.


Summation of natural number set with power of $m$

Who knows about the summation of this series: $$\sum\limits_{i=1}^{n}i^m $$  where $m$ is constant and $m\in \mathbb{N}$?  thanks


How to draw a U-shaped pipe like this in tikz?    Here is what I tried so far, very rudimentary:   \documentclass{standalone} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}   %Inner Radius   \pgfmathsetmacro{\rI}{0.7}    %Height   \pgfmathsetmacro{\h}{7}    %Diameter of the pipe   \pgfmathsetmacro{\d}{1}    %Outer Radius   \pgfmathsetmacro{\rO}{\rI + \d}    \pgfmathsetmacro{\s}{2}    %%Inner Part   \draw (0,0) -- (0,-\h) coordinate (I1);    \draw[shift=(I1),xshift=\rI cm] plot[domain=270:90] ({\rI*sin(\x)},{\rI*cos(\x)}) coordinate (I2);   \draw (I2) -- ++(0,\h);    %% Outer Part   \draw (-\d,0) -- ++(0,-\h) coordinate (O1);   \draw[shift=(O1),xshift=\rO cm] plot[domain=270:90] ({\rO*sin(\x)},{\rO*cos(\x)}) coordinate (O2);   \draw (O2) -- ++(0,\h);    %% l Line   \draw (-\d/2.0,-0.5*\h+\s) -- ++(0,-0.5*\h-\s) coordinate (L1);   \pgfmathsetmacro{\rl}{\rO - 0.5*\d}   \draw[shift=(L1),xshift=\rl cm] plot[domain=270:90] ({\rl*sin(\x)},{\rl*cos(\x)}) node[below=1.2cm,pos=0.5]{$l$} coordinate (L2);   \draw (L2) -- ++(0,0.5*\h-\s);    \draw[->] (-3,-\h-\rO) -- (-3,0) node[left]{\small Ort $y$};   \draw (-3.1,-0.5*\h) node[left]{$0$} -- ++(0.2,0); \end{tikzpicture}  \end{document}   Output:     I don't see how to color it, and how to make it look 3d (I guess 3d could be even better than in my original posted picture, since there the bottom of the pipe looks 2d). Also my approach seems not to be very elegant.