hi and thanks for reading. I can find many sentences which are very simple but i can't assign all of the words with the correct part of a sentence. What i mean is, in sentences such as:   She washed it clean. He shot him dead. They bled me dry   So as i already mentioned, these are fairly simple sentences that follows the simple Subject Verb Object paradigm, but what puzzles me is the adjective that follows  Are they simply an object complement as in: They elected him president ? I appreciate the help.

In a , on the fifth page (labelled "359"), it says resultative secondary predicates can only be stative adjectival passives. For example, "John hammered the metal flat" is valid but "John hammered the metal flattened" is not. However, there are other secondary predicates that don't follow this rule. "I prefer my food salted" uses "salted," a resultative, as a secondary predicate. Also, "This software comes pre-installed by the manufacturer" is a valid sentence, but I don't think "pre-installed" is an adjectival passive, so I am not quite sure about the rules on secondary predicates and passives.


This if-elif is simple and straightforward. index is a 1-D array with values of 0-5 only. As you can see from the image, the only correct if-elif is only for index[i]==0 and index[i]==1. For index[i]==5, it was supposed to print f but the result was printed as d. What went wrong?  Current output:    for i in index:     print(i)     if index[i]==0:       print(" :a")     elif index[i]==1:         print(" :b")     elif index[i]==2:         print(" :c")     elif index[i]==3:         print(" :d")     elif index[i]==4:         print(" :e")     elif index[i]==5:         print(" :f")

How do I access the index in a for loop like the following?  ints = [8, 23, 45, 12, 78] for i in ints:     print('item #{} = {}'.format(???, i))   I want to get this output:  item #1 = 8 item #2 = 23 item #3 = 45 item #4 = 12 item #5 = 78   When I loop through it using a for loop, how do I access the loop index, from 1 to 5 in this case?


I think I just ****ed up in a big way. I deleted all partitions on my external backup drive.  Why did I do this? I was copying backup files from one disk to another and accidentally deleted all the partitions off the wrong disk. (I was going to do a dd afterwards but fortunately I didn't do that yet!)  Can anyone please help me restore this disk? I will be in big trouble if I can't get the data back!

Are there any tools, methods, incantations to recover recently deleted files on Ubuntu?  If it makes any difference, I want to recover a  2.x database file. But would be better to have a method/tool that works on any kind of file.


I have a Cleric 1/Druid X character and I want to make sure I'm using the multiclass rules for their spells correctly. As I've been leveling up, I've been preparing higher level cleric spells, even though I'm a level 1 cleric. Here's how I've been interpreting RAW:  At Level 1, I get the cleric's Spellcasting feature. It states:     You prepare the list of cleric spells that are available for you to cast, choosing from the cleric spell list. When you do so, choose a number of cleric spells equal to your Wisdom modifier + your cleric level (minimum of one spell). The spells must be of a level for which you have spell slots.   The Multiclassing rules state to treat each class individually when preparing spells. But the rule doesn't state whether or not those spell slots have to come from the same class. Furthermore, both classes already have all the spells they can know available to them and can change them at the end of a long rest.  I think the biggest problem is that since both classes have the same spellcasting  ability and both have access to all spells available to their class, just not the spell slots, is what's making this interaction confusing for me. So, can I continue to prepare higher level Cleric spells despite being only a Level 1 Cleric?

If I multiclass into 2 or more classes/subclasses that can cast spells, how do I determine what spells I know or can prepare?  For instance, if I am playing a multiclassed character with 1 level in warlock, 2 levels in bard, and 3 levels in paladin, how do I determine which spells I know/have prepared?    Related:


Can someone give me a command that convert all occurrences of the word “OLD” in some file with the word “NEW” in Linux?  Thanks in advance

Replacing strings in files based on certain search criteria is a very common task. How can I    replace string foo with bar in all files in the current directory? do the same recursively for sub directories? replace only if the file name matches another string? replace only if the string is found in a certain context? replace if the string is on a certain line number? replace multiple strings with the same replacement replace multiple strings with different replacements


prove that in a cyclic group of even order, there is exactly one element of order 2. Please prove the requirements.

Show that any cyclic group of even order has exactly one element of order $2$   Attempt:  Let $G$ be a finite group of even order.  Assuming a set $A=\lbrace g \in G \vert g \neq g^{-1} \rbrace$, I can show that  $A\cup\{e\}$ has odd number of elements as $A$ has even number of elements. So $G$ has at least one element $a$ such that $a$ does not in $A$, ie $a=a^{-1}$ ie $a^2=e$. That is $G$ has atleast one element of order $2$. "More specifically, $G$ has odd number of elements of order $2$ --- ???"  But how to show that exactly one such element if $G$ be cyclic.     NB: Please don't use isomorphic properties.


I have a main program that implements some functions for a stack in C. While accepting input from the user I find unusual results. Can someone point out what is a better way to accept user input in C.  int main() {     int choice;     int flag=1;     char n;     char string[100];     while(flag==1)     {         printf("\nMake a selection\n");         printf("Enter 1 to push an element in the stack\n");         printf("Enter 2 to pop an element from the stack\n");         printf("Enter 3 to print the stack elements\n");         printf("Enter 4 to display the top element of the stack\n");         printf("Enter 5 to reverse a string using stack\n");         printf("Enter 6 to verify balanced brackets in an expression\n");         printf("Enter 9 to quit\n");         scanf("%d",&choice);         printf("Entered choice %d\n",choice);         switch(choice)         {             case 1:                 printf("Enter an element to push into the stack -->  ");                 scanf("%c",&n);                 Push(n);                 break;              case 2:                 top=Pop();                 break;              case 3:                 PrintElements();                 break;              case 4:                 if(top==NULL)                     printf("Stack is empty");                 else                     printf("\nThe top element on the stack is --> %c",top->data);                 break;              case 5:                 printf("Enter a string\n");                 fgets (string,100,stdin);                 printf("\n Original string is --> %s",string);                 for(int i=0;i<100;i++)                 {                     if(string[i]=='\0')                         string[i-1]='\0';                 }                 StringReverse(string);                 printf("Modified string is --> %s",string);                 break;              case 6:                 printf("Enter a string\n");                 fgets (string,100,stdin);                 for(int i=0;i<100;i++)                 {                     if(string[i]=='\0')                         string[i-1]='\0';                 }                 CheckParanthese(string);                 break;              case 9:                 flag=0;                 break;              default:                 printf("Incorrect selection");                 break;         }       }     return 0; }   Sample Output Here when I enter 1 it automatically skips the next scanf statement which asks for user input for an element to push into stack  Make a selection Enter 1 to push an element in the stack Enter 2 to pop an element from the stack Enter 3 to print the stack elements Enter 4 to display the top element of the stack Enter 5 to reverse a string using stack Enter 6 to verify balanced brackets in an expression Enter 9 to quit 1 Entered choice 1 Enter an element to push into the stack --> Make a selection Enter 1 to push an element in the stack Enter 2 to pop an element from the stack Enter 3 to print the stack elements Enter 4 to display the top element of the stack Enter 5 to reverse a string using stack Enter 6 to verify balanced brackets in an expression Enter 9 to quit

I've been having a lot of problems trying to figure out how to use scanf().  It seems to work fine with integers, being fairly straight forward scanf("%d", &i).  Where I am running into issues is using scanf() in loops trying to read input.  For example:  do {   printf("counter: %d: ", counter);   scanf("%c %c%d", &command, &prefix, &input); } while (command != 'q');    When I enter in a validly structured input like c P101, it seems to loop again before prompting me.  This seems to happen even with a single:  scanf("%c", &c)    in a while loop.  It'll do the loop twice before prompting me again.  What is making it loop twice, and how do I stop it? When I enter in less amount of input that programmatically wouldn't have another character or number such as q, pressing enter seems to prompt me to enter more.  How do I get scanf() to process both single and double character entries?


Can we mix fonts?  For example:   Letters from Palatino Numbers from Times New Roman Greek symbols from Fourier   Thanks in advance.

Is there a general way to change the font of a particular symbol without switching packages?  For example, suppose I'm using Computer Modern for my entire document, but I want the "subset" operator to look as it does in mathabx.  How can I redefine it to appear in this way?


When a 64 bit OS runs on a 64 bit processor, the processor processes the whole 64 bit (8 bytes) in one go. Suppose a 32 bit OS runs on a 64 bit processor, how is data extracted? Is 32 bits (4bytes) extracted or whole 64 (8 bytes)? Is that 32 bit (4byte) data stored like 32 bits storage wastage and 32 bits as data ? Like (32bit(zeroes) +  32 bit (data)) for 64 bit processor 32 bit OS?

32-bit computers can only store signed integers up to 231 - 1. This is why we have run out of IPv4 addresses and have entered the 64-bit era.    However, the number 231 - 1 (2,147,483,647) is not as large as the number 1 trillion (1,000,000,000,000) which I seem to be able to display fine without my machine crashing.  Can someone explain why this is?


I am an inexperienced Windows user, but need to use Windows server for my FileMaker server, so have a new hosted server. It is Windows 2008 R2.   In Control Panel > System and Security > System it says, "30 days to activate. Activate now." followed by a product ID.  I asked my hosting provider about this and they replied, "You can disregard the Windows Activation window. While activation is possible, Windows does not need to be activated in order to connect to and use the server desktop."  Please note that this is not a question about licensing per se. I'm just trying to clarify what "activation" means and whether it's important or not.

This is a  about Licensing.    Questions on licensing are off-topic on Server Fault.  If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to.    I have a question regarding software licensing. Can the Server Fault community please help with the following:   How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y?


I want to be able to send our customers email and/or SMS reminders when their billing dates are coming up.  A couple issues:  1) How do you send SMS?  Do I need to register for a SMS number or some service?  2) I don't want our company's domain to ever be marked for spam, and I fear if I send these notifications through our company's domain it may happen.   Is there a way I can setup a mail server using the same domain (or subdomain) that will not be marked as spam? or is there a third party email and SMS provider that I can send messages through?   I know there are a lot of different marketing related email providers, but I don't know if it matters that these are more customer service related messages.

This is a  about how to handle email sent from your server being misclassified as spam.  For additional information you may find these similar questions helpful:                    Sometimes I want to send newsletters to my customers. The problem is, that some of the emails get caught as spam messages. Mostly by Outlook at the client (even in my own Outlook 2007).  Now I want to know what should be done to create "good" emails. I know about reverse lookup etc., but (for example), what about a unsubscribe link with an unique ID?  Does that increase a spam rating?


When planning Ops that require many keys for a particular portal, I find farming these keys can take a very long time, for example:    capture the portal drop any existing keys for that portal (or pop them into a capsule) hack the portal wait 5 minutes for cool down do steps 2-4 again until burn out   Which will get me 4 keys in 20 minutes.   Obviously I can add a heat sink to speed up the cool down, but what is the most efficient way to farm as many keys as possible in a short time (say 30 minutes or so)?

Let assume a player is next to a portal and has about 1 hour to key farm the portal. What is the best strategy (shortest time, maximum hack count) to key farm a portal for a single user with no item limit?   I have found the following order to be most effective but can it be improved?   +->First Hack+16 times  or , Capture +->First Hack+16 times    With this method I should be able to hack the portal approximately 34 times in less than an hour. Is this correct?


import java.util.Scanner;  public class StudySession { public static void main(String[] args) {     Scanner in = new Scanner(System.in);      String inData;     int age;     System.out.println("Enter your age");     while(true) {     inData = in.nextLine();     if(inData == "STOP") {         System.out.println("Terminated");         break;     }     age = Integer.parseInt(inData);        if(age < 5) {         System.out.println("Under 5's rate.");     }     if(age >= 60) {         System.out.println("Senior citizen rate.");     }      if(age <= 17) {         System.out.println("Child rate.");     }     if(age > 17 && age < 65) {         System.out.println("Adult rate.");     }     System.out.println("Enjoy the show!"); //This prints no matter what.     }  } }   I want the program to stop when the user types "STOP". Why is it not working? You don't have to give me a straight up answer. A clue will do. Perhaps it's something to do with the order of my statements?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I want the portion of the bottle as shown by red arrows in the image. So I need to do something like extrusion but how to extrude it towards the center and away from the center?

I am trying to extrude faces of a cylinder along local normals. 3dsmax can do it easy, couldn't find how to do it in blender.  The extrude region option extrudes it as shown in the first example. I want it done like the 2nd example.


A tool that migrates data from database A to B has been developed. The tool will be used to migrate all production data from version 1.0 of our app (operating on A) to version 2.0, currently being developed (operating on B). The schema may differ between each other. How are you going to make sure the application is working after migration? Provide your test strategy and sample test cases.

Case Studies during job interview is a great technique which allows to find out how the candidate would behave in different situation.   For instance, the following case:      Given a developer implemented a small new feature which adds the ability to show the latest earned badge on sqa.stackexchange.com.       There are no written documentation/requirements for this feature, but you can gain an access to developers environment and ask any questions.       When would you plan to finish testing this enhancement? How are you going to test?    I am looking for examples for such cases. Could the SQA community help with examples?   For instance, some cases may require the answer “I would use a boundary analysts”. Then the candidate should prove he/she understands this technique by defining the boundaries for particular case.  Or the candidate may select another technique and prove he can complete the task (case) with this decision.  During my research, I've found  on topic  Techniques for test selection, give a large suite of test cases, which I am going to convert to a case study. Also, I've got some insights from topic:


I want to add a delay after every iteration in a foreach loop, so the Treat method gets called only every 2 seconds. I do not want to use Thread.Sleepbecause I want to still be able to use my program while the loop is running. I'm trying to tell the foreach loop to wait 2 seconds before doing the next iteration. Here's what I have so far:      public async void HandlingAsync(ListViewItem woodItem)     {         IList<ListViewItem> woodList = new List<ListViewItem>();         woodList.Add(woodItem);         foreach(ListViewItem Item in woodList)         {             await Task.Delay(2000);             Treat(Item);         }       }      public void Treat(ListViewItem woodItem)     {         woodItem.SubItems[3].Text = "dried";         woodItem.SubItems[4].Text = "Ok";     }   This doesn't work because the await command doesn't affect the foreach loop, only the commands inside of it. I can confirm that, because the ListView changes its items all at the same time, while it should change one item and wait 2 seconds before changing the next item.  EDIT: Marc Gravell ist right. The foreach loop absolutely respects the await command. So his answer works 100%. My problem was neither in the foreach loop nor in the await command. It didn't work because my HandlingAsync Method got called multiple times. This results in calling the Treat Method almost instantly muliple times. That means, that every woodItem got changed at the same time with a delay of 2 seconds. To solve this, the HandlingAsync should only be called once. Thanks for your help.

How do I get my C# program to sleep for 50 milliseconds?  This might seem an easy question, but I'm having a temporary brain failure moment!


I'm trying to run this python code with anaconda.  I have an error that I can not solve.  I try execute this tutorial :   to work with sentinel-2's image.  At the ligne:  b4 = rio.open(R10+'/T31TFJ_20190905T104029_B04_10m.jp2')   I have this error :   RasterioIOError: 'image/S2B_MSIL2A_20190905T104029_N0213_R008_T31TFJ_20190905T135151.SAFE/GRANULE/L2A_T31TFJ_A013047_20190905T104455/IMG_DATA/R10m/T31TFJ_20190905T104029_B04_10m.jp2' not recognized as a supported file format.   I remove gdal with command conda remove gdal and re-install with conda install gdal  Any ideas ?  EDIT: I do every test with GDAL. I Have a error...  from osgeo import gdal   gdal.UseExceptions() ds = gdal.Open('test.jp2')  This error : `test.jp2' not recognized as a supported file format. Drivers gdal problems ?  other thing, when I installed Gdal with conda, every conflict found. There is already gdal installed on my computer for Qgis (mapping software). Can this do to problems?  Thanxs.

I cannot open jp2-files with gdal:  This works fine (the Sentinel2 metadata):  ~/copernicus/S2A_MSIL2A_20170111T100351_N0204_R122_T33UWP_20170111T100351.SAFE$ gdalinfo MTD_MSIL2A.xml  Driver: SENTINEL2/Sentinel 2 Files: MTD_MSIL2A.xml Size is 512, 512 Coordinate System is `' Metadata:   AOT_RETRIEVAL_ACCURACY=0.0   BARE_SOILS_PERCENTAGE=0.000388   CLOUD_COVERAGE_ASSESSMENT=0.1018   CLOUD_COVERAGE_PERCENTAGE=0.001909   CLOUD_SHADOW_PERCENTAGE=0.389902   DARK_FEATURES_PERCENTAGE=6.691170 [...]   But this not (one of the jp2 files):  ~/copernicus/S2A_MSIL2A_20170111T100351_N0204_R122_T33UWP_20170111T100351.SAFE/GRANULE/L2A_T33UWP_A008127_20170111T100351/IMG_DATA/R10m$ gdalinfo L2A_T33UWP_20170111T100351_B02_10m.jp2 ERROR 4: `L2A_T33UWP_20170111T100351_B02_10m.jp2' not recognized as a supported file format.  gdalinfo failed - unable to open 'L2A_T33UWP_20170111T100351_B02_10m.jp2'.   I am using Anaconda 4.3.11 and created an environment with Python 2.7.13. I want to open jp2-Files which are part of the Sentinel L2A-Product (converted from L1C with sen2cor).   I've installed openjpeg 2.1.0 and gdal 2.1.0 via "conda install":  > conda list  # packages in environment at /home/roland/anaconda2/envs/copernicus: # curl                      7.49.0                        1 gdal                      2.1.0                    py27_0 geos                      3.5.0                         0 geotiff                   1.4.1                         0 hdf4                      4.2.12                        0 hdf5                      1.8.17                        1 jbig                      2.1                           0 jpeg                      8d                            2 kealib                    1.4.6                         0 libgdal                   2.1.0                         0 libnetcdf                 4.4.1                         0 libpng                    1.6.27                        0 libtiff                   4.0.6                         2 mkl                       2017.0.1                      0 numpy                     1.12.0                   py27_0 openjpeg                  2.1.0                         5    sunpy openssl                   1.0.2k                        0 pip                       9.0.1                    py27_1 proj4                     4.9.2                         0 python                    2.7.13                        0 readline                  6.2                           2 setuptools                27.2.0                   py27_0 sqlite                    3.13.0                        0 tk                        8.5.18                        0 wheel                     0.29.0                   py27_0 xerces-c                  3.1.4                         0 xz                        5.2.2                         1 zlib                      1.2.8                         3   The main problem seems to be that I don't manage to install the JPEG2000-driver:  > gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp airsar rs2 ilwis rmf leveller sgi srtmhgt idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg coasp tsx terragen blx msgn til r northwood saga xyz hf2 kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map cals safe sentinel2 mrf wcs wms plmosaic wmts grib bsb netcdf kea hdf5 hdf4 gif jpeg png pcraster pcidsk rik ozi pdf arg   How can I do this?


a = 4 b = float(a) c = 'float'   Now, the doubt comes when the target type is stored in another variable.  b = c(a)   This would raise error.

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


I have heard people saying both "I work for him" and "I work with him" when they are talking about their supervisors. But, since these people were not native English speakers, I could not figure out which one was the correct one.  I'd really appreciate it if someone could explain this to me.

The prepositions “with”, “at” and “for” are also used to associate a business title with a company's name. It seems that they are interchangeable, with no (significant) difference in meaning. The following examples taken from The New York Times website seem to confirm that:      Until now, said Justin Nielson, a senior analyst for the media   research firm SNL Kagan, “there really hasn't been any direct   competitor . . .      “The consumer is still deleveraging,” said Jason Goldberg, a senior   analyst with Barclays. “It's not a lack of supply; it's a lack of   demand.”      “There’s the party of fear and the party of despair,” Nikos Xydakis, a   political analyst and an editor at Kathimerini daily, said.   Are they really the same as for meaning? If it isn't so, what is the difference between them?


I recently got an alienware 14 laptop, and want to use Linux on it. I installed Ubuntu 14.04. However, I found that the wireless adapter does not work - Killer Wireless-n/a/ac 1525 Wireless Network Adapter.  So I purchased usb wifi adapter. Now I can connect to Wifi, but extremely unstable. After I have been connected for about 5 minutes, it still says connected, but cannot use internet. I tried to ping a random address, there is simply no echo, rather than no response - nothing echoes in my terminal. If I disable wifi and enable again, sometimes it will connect for another 5 minutes, sometimes just fails to connect.  I thought it was a problem of the usb wifi adapter, so bought another one for raspberry pi, but exactly the same problem.  I thought it was a problem of my Linux distribution, so I tried Ubuntu 12.04, Linux Mint, Fedora 23. All have the same problem.  Still cannot use WiFi on Linux, on my ALienware 14 laptop. Feeling frustrated. Anyone could help? Thanks.  Results of lspci -knn | grep Net -A2:      03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:003e] (rev 20)     Subsystem: Bigfoot Networks, Inc. Device [1a56:1525]     04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5227 PCI Express Card Reader [10ec:5227] (rev 01)     Subsystem: Dell Device [1028:0685]

I just installed Ubuntu 14.04.3 LTS after installing windows 10 in my new VN7-571G and the wireless is not working. It never had: even during the installation it was not recognized. I run a script to gather the data , which is . lspci -knn | grep Net -A2 output 03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:003e] (rev 20)         Subsystem: Lite-On Communications Inc Device [11ad:0804]  The OS behaves like it has no wifi card. I do not see wifi settings in network settings I'm not a linux power user, so I do not know what to do to solve the issue. What should I do to make it work?


I would like to see how this context of matrix multiplication is played out in Differential Equations. I am starting Linear Systems, and what is a tripping up factor is the matrix multiplication. Could someone recommend a source or illustrate how to multiply matrices because the linear algebra book I have does it using a calculator, and numbers; however, I am dealing with functions?  \begin{align}\frac{d}{dt}\begin{pmatrix}5e^t\cos(t)\\ e^t(3\cos(t)-\sin(t))\end{pmatrix}&=\begin{pmatrix}-2 & 5\\-2&4\end{pmatrix}\begin{pmatrix}5\cos (t)\\ 3\cos(t)-\sin(t)\end{pmatrix}e^t\end{align}

I have just watched the first half of the 3rd lecture of Gilbert Strang on the open course ware with link:    It seems that with a matrix multiplication $AB=C$, that the entries as scalars, are formed from the dot product computations of the rows of $A$ with the columns of $B$. Visual interpretations from mechanics of overlpaing forces come to mind immediately because that is the source for the dot product (inner product).  I see the rows of $C$ as being the dot product of the rows of $B$, with the dot product of a particular row of $A$. Similar to the above and it is easy to see this from the individual entries in the matrix $C$ as to which elements change to give which dot products.  For understanding matrix multiplication there is the geometrical interpretation, that the matrix multiplication is a change in the reference system since matrix $B$ can be seen as a transormation operator for rotation, scalling, reflection and skew. It is easy to see this by constructing example $B$ matrices with these effects on $A$. This decomposition is a strong argument and is strongly convincing of its generality. This interpreation is strong but not smooth because I would find smoother an explanation which would be an interpretation begining from the dot product of vectors and using this to explain the process and the interpretation of the results (one which is a bit easier to see without many examples of the putting numbers in and seeing what comes out which students go through).  I can hope that sticking to dot products throughout the explanation and THEN seeing how these can be seen to produce scalings, rotations, and skewings would be better. But, after some simple graphical examples I saw this doesn't work as the order of the columns in matrix $B$ are important and don't show in the graphical representation.   The best explanation I can find is at . It is convincing but a bit disappointing (explains why this approach preserves the "composition of linear transformations"; thanks @Arturo Magidin). So the question is: Why does matrix multiplication happen as it does, and are there good practical examples to support it? Preferably not via rotations/scalings/skews (thanks @lhf).


I have an Excel spreadsheet that has this formula:  =IF(ISBLANK(B6),"",SUM(Sheet1:Sheet10!O6)+Sheet11!P6+Sheet12!T6)   I would like to use this spreadsheet in Google Sheets so I can get it on other devices and collaborate, etc.  When I imported the Excel sheet to a Google Sheet it changed the formula to:  =IF(ISBLANK(B6),"",SUM(Sheet1!O6)+Sheet11!P6+Sheet12!T6)   It removed the range of referenced sheets in the first set of brackets after the SUM.  Does anyone know if Google Sheets can do this?

How do I create a reference to a defined interval in several sheets?   Something like this: =SUM(Sheet1:Sheet2!A1)


The answer to this question seems obvious to me but I'm asking it in case I've missed something.  I have a laptop with a small SSD drive and a large regular/platter drive. I keep a collection of videos on the large drive. If I'm on battery power then my strategy is to copy the video that I'm watching to the SSD and watch it from there to save battery power instead of streaming it from the platter drive.  Am I really saving power and extending the view time while running on battery? If so, is this power saving significant or is it negligible such that I'm wasting my time doing it?

In questions  and in websites everywhere it's noted that SSDs use much less power than HDDs... usually citing ~2 W vs ~6 W for HDDs, my question (and sorry if its stupid just need to be exact) is that per hour? Need to calculate costs savings in power consumption if we switched all our workstations to SSDs


guys i wrote this code to hide a password in input but it doesnt stop printing stars when i press enter i_p = 0; char c_p, password[20]; while((c_p = getch()) != '\n') {     password[i_p] = c_p;     printf("*");     i_p++; }  what's wrong with this code? something in the while condition? i never used conio.h before and i really dont know

#include <stdio.h> #include <conio.h> main() {     char ch,name[20];     int i=0;     clrscr();     printf("Enter a string:");     while((ch=getch())!='\n')     {         name[i]=ch;         i++;     }     name[i] = '\0';     printf("%s",name); }   When I give "abc" as input and if I press enter it's not working. Can anyone let me know why the condition ch=getch() != '\n' is not becoming false when I press enter? I have also observed that ch is taking \r instead of \n. Kindly let me know. Thanks


I have an enumeration in my Data layer and I want to use its drop down list in my website project. My enum in Data layer is:  namespace SME.DAL.Entities.Enums {     public enum EntityState     {         Open,         Freezed,         Canceled,         Completed,         Terminated,         ReadOnly     } }   How can I make its select list and use it in my website's page? I'm using ASP.NET MVC 4.

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


Let $A$ be an $n \times n$ real symmetric matrix with eigenvalues $\lambda_1,\ldots,\lambda_n.$ Find the set of $v \in \mathbb{R}^n$ such that $$\lim_{k\to\infty}\left<A^{2k}v,v\right>^{1/k}$$ exists and find the set of possible limits.  Since $A$ is symmetric there exists an orthonormal basis $v_1,\ldots,v_n$ of eigenvectors of $A$. Let $\lambda_j$ be the eigenvector corresponding to $v_j$. If $v \in \mathbb{R}^n$, then $$v = c_1v_1 + \cdots c_nv_n, c_j \in \mathbb{R}.$$ Since $<v_i, v_j> = 0$ for $i \neq j$ and $= 1$ if $i = j$, and $A^{2k}v_j = \lambda_j^{2k}v_j$, by the linearity of the inner product the limit becomes $$\lim_{k\to\infty} \left(c_1^2\lambda_1^{2k} + \cdots c_n^2\lambda_n^{2k}\right)^{1/k}.$$ This is where I'm stuck. I don't know how to evaluate the limit. I tried taking logs and using L'Hopital's rule, but that only gave another limit I couldn't compute. Since $$c_1^2\lambda_1^{2k} + \cdots + c_n^2\lambda_n^{2k} \leq (c_1^{2/k}\lambda_1^2 + \cdots + c_n^{2/k}\lambda_n^2)^k,$$ I know that if the limit exists it's bounded above by $\lambda_1^2 + \cdots \lambda_n^2$. Any help proceeding would be great.

Given that $A$ is symmetric $nxn$ matrix.  Show that $\lim_{k \rightarrow \infty} (x^tA^{2k}x)^{1/k}$ exists for all $x \in R^n$ and possible limit values are the eigenvalues of A.  Since A is symmetric you can find an orthonormal basis. So A is similar to the diagonal matrix B. So you get $\lim_{k \rightarrow \infty} (\sum_{i=0}^n x_i^2 \lambda_i^{2k})^{1/k}$. So I can show that this last thing is bounded above and below, but it isn't monotone in k, so how should I show that it's convergent and find what it could possibly converge to?


I just got off the phone with Wells Fargo to try to close my escrow account on my mortgage (prefer to just manage taxes & insurance myself).   I'm currently at an LTV of 75%, and after doing some quick research it seems like 80% is pretty much the standard for allowing removal of escrow. I was surprised when Wells Fargo told me 65% was necessary.   Even quoting their  about escrow accounts  Most of the time, escrow accounts are required if your down payment was less than 20%.   seems to imply an LTV of 80% would warrant closing an escrow account if desired.  Does this seem highly unusual, or would this be considered a fairly typical ratio?

I recently refinanced my home. At the time based on the appraisal vs. amortization I found I would be stuck with PMI (private mortgage insurance) for about 9 months.  I've paid extra on the mortgage each month and after 7 months I got my LTV (loan-to-value ratio) to be 79%. Yay! So I called Pacific Union and asked for PMI to be removed.  The woman said I'd need to fax in a written request. Then she added that my written request would likely be denied because my account had not been in good standing the last 12 months. I pointed out that I'd only had the loan for 7 months and had never been late, but that didn't seem to matter to her.  So I faxed in my written request. Then I read through all my documentation on my loan. Nowhere did it say that I needed to have the loan for 12 months.  After a week I called them back and they said it would be another week for a decision.  So, I waited another week and called. They now just had a recording saying they were too busy to take a call and I could leave a callback number. I did this and never heard back. I've now tried twice more to call them. Each time I leave a number and each time I don't hear back. So I've fired off a written request again.  At this point we've gone around the horn to the next month and in two short days I'll be paying PMI on March's payment.  Do they have any grounds to not remove PMI? Isn't it federally mandated that PMI must be removed at 80%? Any recourse anyone can think of?  [EDIT] - I heard back from Pacific Union. They state that I did not sign anything agreeing to these terms which is what I was certain of. They state these terms are simply automatic with Fannie Mai backed loans and it doesn't matter if I was informed or not about these terms. They also chose not to hide behind the "no late payments" clause and instead said they were requiring an appraisal to remove PMI. Of course an appraisal is $400 and I'll hit 78% LTV before I would pay that much extra in PMI. I have now contacted a lawyer. I'll update again with whatever opinion the lawyer has and whether I proceed or not.  [EDIT] - I filed a BBB complaint. They waited 30+ days to respond. In their response they indicate that the first woman (and some SE users below) are wrong. The loan does NOT have to be in good standing for 12 months. The loan simply needs no late payments within 12 months. They then hide behind the request for another appraisal as the sole reason to not remove it. I checked with Fannie Mae who backs the loan and was told this is optional per the lender, however the lender can force it and I have no recourse. Additionally, they could have asked for a Broker's Price Option (BPO) or a certificate of value which would cost me hundreds less.   At this point I cannot continue to fight them because the amount of PMI I'll pay until 78% LTV is equal to or less than the appraisal cost of $400.  [EDIT] As of August 2015 I've hit 78% LTV. I called Pacific Union to ensure that the automatic cancellation of PMI had happened. They said no, I'd need to request that in writing. This is a violation of federal law as it's supposed to be automatic. They also said they would still deny it because now they want 24 months of good history. I've sent a threatening letter off and am waiting for a reply. If any lawyers come along and read this I'd sure like to hire you.  [EDIT] After my letter they said they would remove PMI. They did not and I was charged again in September. I called them yet again and complained. They said PMI was going to be removed. They then charged my again in October! I called again. I called again and went berserk on the phone. PMI was finally removed for November 2015. First month without it.


I have a script that has:  global_npm_modules_path="$(npm root -g)";   this npm command is slow, and I am looking to speed up this script. One thing I could do is "cache" the result of the npm command, something like this:  export global_npm_modules_path=${global_npm_modules_path:-"$(npm root -g)"}   but my question is - how can I set global_npm_modules_path so that it's held in store by the parent shell / parent process?  The problem is the export command will only be relevant for this shell and its children.

I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell.  setenv FOO foo   in csh/tcsh, or  export FOO=foo   in sh/bash only set it during the script's execution.  I already know that   source myscript   will run the commands of the script rather than launching a new shell, and that can result in setting the "caller's" environment.  But here's the rub:  I want this script to be callable from either bash or csh.  In other words, I want users of either shell to be able to run my script and have their shell's environment changed.  So 'source' won't work for me, since a user running csh can't source a bash script, and a user running bash can't source a csh script.  Is there any reasonable solution that doesn't involve having to write and maintain TWO versions on the script?


I have installed the  module. I am trying to programmatically load profiles. The code works, but I am not able to access any field value. class IdCardController extends ControllerBase {    /**    * Init id card download.    */   public function initDownload(User $user) {          $user_profile = $this->entityTypeManager()->getStorage('profile')->loadByProperties([       'uid' => $user->id(),       'type' => 'personal_information',     ]);     kint($user_profile);   } }  Using kint(), I can see all methods are protected.

In a preprocess function I want to access the destination node id via the  I cannot find any method that will return the node id for me but I can clearly see that it holds the node id. (see attached)  Any idea how I can get the node id without going the long way of generating it from the URL path?


This seems to be a result of a recent update of the Android app: certain questions and answers, such as both the question and the answer in , show a box with the username, score, etc., but no content inside the box.  Sometimes the content is visible for a moment then disappears. This has happened in one other case as well, but I don't have a link to it, because I was hoping it wouldn't happen again.

Note: the bug has returned in version 1.0.89 in a somewhat different form. See:      This possible bug report is similar to the bug in  that was deemed not-reproducible.  I can reproduce something similar with more recent app & Android versions.   App Version: 1.0.34 (original report; is still present in 1.0.38, 1.0.42, 1.0.58) Android Version: 4.4 (up to 4.4.4) Device: Motorola Droid Maxx   In the examples below, you can see some blank answer bodies.  These are on different sites, and represent answers with both edited and non-edited text. In the first example, I clicked on the top answer tab to get to the answers, and in the second example I clicked on the bottom "View n Answers" button. (Trying to be a good little tester!)  Because I've seen this blank-answer-body intermittently over the past couple weeks (before the May 7 update), my process to test was just to go to the first site I frequent and then systematically click through the question list until I found a question with answers in which at least one answer was blank.  For all three sites shown below, it was within the first 5 or 7 questions sorted by newest.  Please note that I have seen many questions with several answers, none of which were blank. It is truly intermittent.  Example blank answer body at Workplace.SE:    Example blank answer body at Programmers.SE:    Example blank answer body at UX.SE:    And now here's the kicker, which makes me think this is some sort of content-loading latency issue rather than a rendering issue:  I returned to the left-side menu, selected the User Experience site, picked the same question as above, and then clicked the top answer tab to view answers again, and lo and behold the text is there:    I then went back to the other questions with blank answers, shown above, and the answer bodies were no longer blank.  I am happy to go through more tests/paths and do screenshots if it is helpful.  The same bug also appears in question bodies.


I have a shapefile containing a lot of lines which I'm trying to separate based on direction.  Is there any way to calculate the line bearing against a compass (in degrees or just as North / North-East / East etc.) add this calculated value as a column to the shapefile?

I just want to add direction (Bearing: i.e N 25 35 E) and Distance (Length: 125 meters) as my new field in polyline/line data. Is there a Plugin to generate these fields? I tried to used "Export/Add geometry columns" in my line data, but only "Length" value was added.


we always use this code   List mylist=new ArrayList();   I look this statement into deep and i found that mylist is an interface reference which is referring to the ArrayList which is a class.I found(on internet) that there is some benefits of it like Loose coupling ,memory management etc.But How ?what are the benefits of using interface refernce?

I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?


I have the following limit  $$\lim \limits_{n \to \infty}\left({1 \over 2^1}+{3 \over 2^2} + {5 \over 2^3} + \dots + {2n-1 \over 2^n}\right)$$  My idea is to separate it into geometric progressions and rewrite them using the equation for the sum of first terms of a geometric progression. I manage to get one geometric progression but the other elements of the sum don't follow a geometric pattern. Do you have any hints as to how I might separate the terms? Or, alternatively, if there is a simpler way to do this?

$ \frac{1}{2^1}+\frac{3}{2^2}+\frac{5}{2^3}+\frac{7}{2^4}+\cdots $  This is a pretty unorthodox problem, and I'm not quite sure how to simplify it.  Could I get a solution?  Thanks.


I'm slightly confused by the use of the word "action" in the text. The section on "" states:     Certain special abilities, spells, and situations allow you to take a special action called a reaction...   And then there are times where you cannot take actions such as the  spell which states:     [...] While in the trance, the messenger is aware of his or her surroundings, but can't take Actions or move...   There are also time where something explicitly says you can't take reactions like the  which states:     An incapacitated creature can't take actions or reactions.   And then there is this phrase from the section on "":     [...] anything that deprives you of your ability to take actions also prevents you from taking a bonus action.   There is no similar phrase in the "Reactions" section so I am left wondering: If something, like the spell dream, prevents you from taking actions, but not reactions, can you still take a reaction?

The description of the Haste spell concludes with:     When the spell ends, the target can't move or take actions until after its next turn, as a wave of lethargy sweeps over it.   Could the target still use a reaction (to, say, throw up a Shield spell if needed) or is a reaction considered a type of action?  Since the spell depends on concentration, it could end unexpectedly if the caster loses concentration on it, leaving the target in a perilous situation.


Is there a way to make a float that only gets finalized once placement has been determined?  This is essentially an extension to  of mine by applying it to floating environments.  In the above question, I've tried creating an environment which behaves differently depending on which column it's in. This works fine, but in floating environents, \ifoddpage or \if@firstcolumn seem to reference where the code is first called, not necessarily where the float ultimately ends up being, creating inconsistencies in the behaviour.  I'm not sure if what I'm trying to do is even possible without going into the kernel, given that most likely the floating content has to be typeset before it's placement can be determined, since the dimensions need to be known.  Clarification of my Use Case:  I have a float item, which exists in 2 variants (I'll call them left-handed and right-handed). In a two-column float* scenario, the left-handed variant should be used when the float ends up on even pages, the right-handed one on odd pages. Similarly, in a one-column float scenario, the left-handed variant should be used when the float ends up in the first column of a page, the right-handed one on the second column.

I'm interested in changing how floats are formatted depending on whether they are placed at the top, bottom, or middle of a page, or on a float page. One package I am aware of that does something like this is , which places hanging captions in the margin below full-width figures if the figures are at the top or middle, but above if the figures are at the bottom. Looking at the code for tufte-latex, though, this is a pretty rudimentary check (as near as I can tell, the caption is placed on top exactly when the only placement specifier is "b"). And when the floats are put on a float page, the hanging captions don't look right.  Ideally, I'd like to be able to tell where a float has actually been placed and do something like  \if \finalfloatplacement t%   % hang caption in margin below float \fi \if \finalfloatplacement h%   % same as 't'; hang caption in margin below float \fi \if \finalfloatplacement b%   % hang caption in margin above float \fi \if \finalfloatplacement p%   % center caption below float \fi   Presumably this would take a couple of LaTeX runs to iron out the positions.


I have a desktop with an Asus Z170-Deluxe motherboard, which has onboard Wifi, and I'm trying to be able to use that to connect to the internet on Ubuntu 18.10.  First I thought it might be a good idea to try with the live USB, and when starting, there was no connection, but after doing A LOT of research, I found out I was able to go to Software & Updates > Additional Drivers, and there I could select this:  Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)   and then I could connect to the internet. So I thought the issue is resolved, and I installed Ubuntu 18.10, but after installation when I went to Additional Drivers, nothing was listed there :(  I'm not very familiar with Linux driver stuff, so again I started researching, and I found some that I wanted to try, but almost all of them included doing  sudo apt update sudo apt install ...   but my problem is that I don't have a connection to the internet to be able to do any of those, and I don't have access to a wired connection.  PS: while I was trying things, I saw this item in the Additional Drivers tab:  Using Broadcom 802.11 Linux STA wireless driver source from bcmwl-kernel-source (open source)   but that doesn't seem to work.  Any help is really appreciated

o/  I decided to use Ubuntu as a dual-boot to see if I would replace MacOS with it. I could use my Broadcom wifi card just fine in the "try without installing" feature, but as soon as I installed it, it refused to use the card. I tried re-installing the drivers, but to no avail. ubuntu would start the process of using the card, but at around 75-85% it would just give up.  EDIT IN RESPONSE TO chili555: output of lspci -nnk | grep 0280 -A3:  gingka@gingka-MacBookAir:~$ lspci -nnk | grep 0280 -A3 03:00.0 Network controller [0280]: Broadcom Limited BCM4360 802.11ac Wireless Network Adapter [14e4:43a0] (rev 03) Subsystem: Apple Inc. BCM4360 802.11ac Wireless Network Adapter [106b:0117] Kernel driver in use: bcma-pci-bridge Kernel modules: bcma


For $(x,y)\in\mathbb R^2$, consider the series  $$ \lim_{n→\infty}\sum_{l,k=0}^n\frac{k^2x^ky^l}{l!}.  $$ Then the series converges for $(x,y)$ in   $(-1,1)\times(0,\infty)$ $\mathbb R\times(-1,1)$ $(-1,1)\times(-1,1)$ $\mathbb R\times\mathbb R$   *As the series contains $k^2\cdot x^k$ which diverges if $|x|\not\lt1$ while the other in powers of $y$ converges for all $y$. So (1) is true $\implies$ (3) is true. But what about other options due to partial behaviour in $x$ and $y$?

Let $(x,y)\in \mathbb{R^2}$ and consider the series   $$\lim_{n\rightarrow \infty}\sum_{\ell,\,k=0}^n \frac{k^2 x^k y^\ell}{\ell!}$$  Then for what values $(x,y)$ the series converges. I have absolutely no idea how to deal with it.


I really have nothing here. Looked through all sorts of questions relating to C# and JSON. I have tried meddling, I can only either A: Get all the JSON output, or nothing, I can't seem to figure out how to get what I want.  So I am pulling JSON from here:  I have only limited it to 1 for the sake of being easy on the eyes here, you can increase it to see if the code can scale or not.   Now, what I am trying to do is, key the Key/Value pair from URL and the Value of that key.

I'm trying to parse some JSON using the JSon.Net library.  The documentation seems a little sparse and I'm confused as to how to accomplish what I need.  Here is the format for the JSON I need to parse through.  {     "displayFieldName" : "OBJECT_NAME",      "fieldAliases" : {         "OBJECT_NAME" : "OBJECT_NAME",          "OBJECT_TYPE" : "OBJECT_TYPE"     },      "positionType" : "point",      "reference" : {         "id" : 1111     },      "objects" : [ {         "attributes" : {             "OBJECT_NAME" : "test name",              "OBJECT_TYPE" : "test type"         },          "position" : {             "x" : 5,              "y" : 7         }     } ] }   The only data I really need from this is the stuff in the objects array.  Is it possible for me to parse through that with something like the JSonTextReader and just pull out the things I want, like OBJECT_TYPE and the x and y position?  I can't seem to get JSonTextReader to work the way I want it to and I find little to no examples of usage for it.   It seems like serializing first then using LINQ with my object would be ideal and every example I find discusses serializing the JSON first, but I'm not sure how I would build an object for this structure.  Particularly the objects array which would need to be something like a list of Pairs of attribute and position objects.  I have no idea how I would code my object so JSon.Net would know how to serialize that.  I thought I could write my own simple parser to just pull out everything I need into an attributes object that I created, but I'm having little luck.    Hopefully this all makes sense, any ideas?


I'm trying to evaluate: $$\int\limits_1^\infty \frac{\ln(\ln(x))}{1+x^2} dx$$  I've been told by the user Jack D'Aurizio that I can connect it to Euler's Beta Function using the substitution $x=e^u$ and using Feynman's Technique. I've tried connecting it to $$\int\limits_0^\infty \frac{t^{x-1}}{(1+t)^{x+y}}dt $$ but I don't see anything. Would appreciate a hint to put me in the right direction.

Show that $\displaystyle{\int_0^1 \log \log \left(\frac{1}{x}\right) \frac{dx}{1+x^2} = \frac{\pi}{2}\log \left(\sqrt{2\pi} \Gamma\left(\frac{3}{4}\right) / \Gamma\left(\frac{1}{4}\right)\right)}$  This question was posted as part of this question:     I cannot think of a change of variable nor other integrating methods. Maybe there is a known method that I am missing.


Lost phone (LG Optimus) 2 days ago, anyway to recover photos and contacts?  Reported phone to sheriff's dept and Sprint.

On 7 july 15 someone broke in my house and stole my galaxy note 3 it did not have service it has been disconnect for about 6mo now i would like to get my phone back because it had picture of me and my dad who died the day after father day this past june & other family pictures that can not be replaced.how do i go about getting those back?


I'm drawing it and I'm having trouble finding the two sets. Could someone give me a drawing with colorings of a cycle with even length such that it is bipartite? Also, could someone provide a proof of whether every even cycle is bipartite? I already know that a bipartite graph has no odd cycles.   EDIT: I just figured it out with $C_4$. Could someone still provide a proof whether all $C_n$ is bipartite?

How can we prove that a graph is bipartite if and only if all of its cycles have even order? Also, does this theorem have a common name? I found it in a maths Olympiad toolbox.


Today I found out this site while searching for some clarification regarding NSBundle . Googled for:   It seems to be a copy of this SO question:  If you visit that webpage, you can find it is copying quite a few questions(listed on right hand side).     Not just this, the home page of that site shows a complete list of questions copied from various SE sites.   Is this legal?

NB The following is a community-generated list of websites that republish Stack Exchange content without attributing it properly. It is no longer being maintained, because the procedure for reporting such sites has changed; see the duplicate for more information. There are a number of license-violating clones of Stack Exchange sites popping up that use Stack Exchange's  data without following our Creative Commons attribution terms. Those terms are , and are also included as a .txt file in every data dump we produce.  Google now has  in search results. Also, you can :  The option to block a site appears when you click a search result and then navigate back to the search results page. Click the "Block" link next to that result to block all pages within the site's entire domain.   This post was created as an attempt to organize information originally posted . You may also be looking for .


We advertise blog posts of our blogging website on facebook but there is a huge difference between Fb ad clicks and clicks available on Google analytics.  Few user has reported about this issue that when they click on  our website page Fb post, Sometimes it doesnt take it to our website.  When i tried to debug a problem then i found this that whenever we click on any post on fb, Instead of taking it directly to our website , It makes a http-post request to this    using form-data like this   *__a:1 __af:i0 __be:-1 __dyn:aKhoFeyfyGmaomgDBUOWOGi9EwlUJ6yUmyVbGAEG8UNFLOaA6em5-rmi9GaxOfiLyFpe8QueCHxvxqqqUnCG22aULhUKbkwzzEG5WAzHBA--VRxeUWbByp-EiGtWzVUogHDh8LBxDVF8SLQhDBzA5KuiaAz8gAVCcy46oZolByFGADh8zyogyVoWbCAwBxl5DyFLZoSLiQ48Ccy8CF8hJkQiambGl7m8UmVmEhDCGVt4gmx2iiESnAiKaCWVE __pc:PHASED:DEFAULT __req:5s __rev:2806747 __user:100003297861120 fb_dtsg:AQHTCPlVp6c1:AQGsGXeHA0-B ph:V3 q:[{"user":"<someuserid in Numeric>","page_id":"<page id>","posts":[["click_ref_logger",["0hC3",1485929631555,"act",1485929631554,41,"https://www.someurl.com/","click","click","timeline_main_column","r","/ourwebsite/?fref=ts",{"ft":{"tn":"HH","top_level_post_id":"1421442361208771","tl_objid":"1421442361208771","fbfeed_location":36},"gt":{"type":"click2canvas","fbsource":703,"ref":"nf_generic"}},476,9653.222473150425,0,1012,"b6omca","XPagesProfileHomeController"],1485929631555,0],["ods:ChannelTransport",{"sendPull.json":[1]},1485929631564,0]],"trigger":"ods:ChannelTransport","send_method":"ajax"}] ts:1485929631565 ttstamp:2658172846780108861125499495865817111571881017265484566*   Ofcourse they do this for analytics and from their internal server they redirects to our page.  My question is how can i debug that why my users are not able to reach my website from fb post clicks.  I have already checked this  url debugger tools from facebook and my url are fine for sharing   Also if a url is scrapped by Fb scrapper and its already posted on Fb page, Then it shows that there is no issues with our url.

We have a website that we advertise via Facebook, but in Google Analytics only 30-50% of the clicks appear. (The page is not really public yet, so I cannot post a link here)   We already did several test runs and tried different optimizations. Unfortunately none of the optimization resulted in a massive change. (Optimizations like improving page load time, in particular loaded JS like jQuery assets via CDN, etc...)  Right now we have several hypotheses why this happens:   the page is hosted in Virginia, however the site is for Brazil, so latency might be too high in general it takes too long until the page appears, so people might close the page before it's fully loaded it's a one-page app, so it might be slow on old computers too much AJAX, in particular we use Facebook Connect people might use adblockers   We ruled out that Facebook gives us the wrong number of clicks, we already take the number of actual website clicks.  Benchmark results from webpagetest.org using São Paolo/Chrome/Cable:   Load time (First View: 3.9s-6.7s; Repeat View 1.9s-2.8s) First Byte (First View: 0.5s-1.6s; Repeat View 1s-2s) Start Render (First View: 2.3s-5.4s; Repeat View 1.4s-2.2s) Document Complete (First View: 3.9s-6.7s; Repeat View 2s-2.8s) Fully Complete (First View: 5s-8s; Repeat View 2.9s - 3.6s)   (Yesterday we changed the hosting provider, but I think the numbers before should have been similar.)  What could be the problem? To us it is very mysterious, we would assume that the click counts from Facebook would differ from Analytics' numbers by less than 5%. Seeing more than 50% of the users not reaching our website, makes us believe there is a single big problem that we are not aware of yet.


I am running Ubuntu 14.04 64 bit. Installed java on this.   Version 1.7.0_55. trying to enable java on google chrome but have failed.   I symbolic linked libnpjp2.so to /opt/google/chrome/plugins  tried icetea plugin too  it works fine in for firefox. But in chrome it says install java runtime environment from www.java.com  Can someone please help me out. I am stuck up from past 2 days

Google has updated its Chrome browser to version 35. This new version uses Aura in place of GTK2 and no longer supports NPAPI plugins like Java (both OpenJDK and Oracle). PPAPI plugins like PepperFlash still work.   My school uses Google Chrome and Google apps every day and this looks like a potentially big problem for some of the educational websites we use. Has anyone run into a solution or workaround to get Java working?  .


I want to insert images into my LaTeX document. I used \includegraphics{} and also kept the image in the working directory of the tex file.  But still I am unable to do so.  My image is in GIF format; is that a problem?  \documentclass{article}     \usepackage{mathtools}     \usepackage{attrib}     \usepackage[normalem]{ulem}     \usepackage{graphicx}     \graphicspath{ {images/} }     \usepackage[utf8]{inputenc}     \usepackage[T1]{fontenc}     \usepackage{geometry}     \geometry{a4paper}     \title{ An Introduction to Multivariable Calculus}     \newcommand{\lt}{<}     \newcommand{\gt}{>}   \begin{document}     \maketitle     \includegraphics{fig5-24.jpg}     \end{document}

Related:          I have an image file -- a gif file, which is the graph of a function. How do I add it to a LaTeX file? Will it come out OK in the subsequent pdf file?


I am attempting (without success thus far) to write a query that will join 3 tables and return the most recent record based on a distinct value.  Table A    itemnum  | itemname -------- | -------- 123      | document #1   456      | document #2   Table B    itemnum  | keyvaluedate -------  | -------------  123      | 2015-09-05 00:00:00.000   456      | 2011-06-04 00:00:00.000   789      | 2011-06-04 00:00:00.000   546      | 2011-06-04 00:00:00.000   378      | 2011-06-04 00:00:00.000   Table C    itemnum  | keyvaluebig  -------- | ----------- 123      | 123456   456      | 123456   545      | 987654    387      | 987654    Table A holds all of the records. What I need to find is the most recent record (keyvaluedate from table b) for each distinct project (keyvaluebig from table c).  The itemnum data is always unique. The keyvaluedate from Table B and the keyvaluebig from Table C both non-distinct values present.  What is the best way to go about this?

I often need to select a number of rows from each group in a result set.  For example, I might want to list the 'n' highest or lowest recent order values per customer.  In more complex cases, the number of rows to list might vary per group (defined by an attribute of the grouping/parent record). This part is definitely optional/for extra credit and not intended to dissuade people from answering.  What are the main options for solving these types of problems in SQL Server 2005 and later? What are the main advantages and disadvantages of each method?  AdventureWorks examples (for clarity, optional)   List the five most recent recent transaction dates and IDs from the TransactionHistory table, for each product that starts with a letter from M to R inclusive. Same again, but with n history lines per product, where n is five times the DaysToManufacture Product attribute. Same, for the special case where exactly one history line per product is required (the single most recent entry by TransactionDate, tie-break on TransactionID.


I would like your help with proving that $(x^n - 1)$ can divide $(x^{kn} - 1)$ without any remainder. I understand that both of these functions can be translated to a similar form such as $(x^2-1)=(x-1)(x+1)$. But I'm not really sure how to do so. Thank you.

Consider the polynomial ring $F\left[x\right]$ over a field $F$. Let $d$ and $n$ be two nonnegative integers. Prove：$x^d-1 \mid x^n-1$ iff $d \mid n$.  my tries:  necessity, Let $n=d t+r$, $0\le r<d$ since $x^d-1 \mid x^n-1$, so, $x^n-1=\left(x^d-1\right)\left(x^{\text{dt}+r-d}+\dots+1\right)$... so,,, to prove $r=0$? I don't know, and I can't go on. How to do it.


I am getting permission denied errors while running apt-get install adb. This is what I'm getting:    Prior to these commands, two commands of update and upgrade ran successfully which were  sudo apt-get update sudo apt-get dist-upgrade

I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.


Is there any connection between  and ? We know that gravity causes relativistic effects according to general relativity which car similar to special-relativity. so is there any connection between general relativity and special relativity?  Or any thing in the scientific literature which has attempted to unify the special and general relativity?

What is the connection between  and ? As I understand general relativity does not need the assumption on speed of light constant. It is about the relation between mass and spacetime and gravity. Can general relativity be valid without special relativity?


I've already installed ubuntu 12.04 in Virtual Machine but whenever I shut down the machine and open the Virtual Machine again it keeps asking to install it again?  Any idea how to solve this problem?

I would like to know if anyone can help me with installing Ubuntu on VirtualBox


I need to find the number of divisors of an integer(n) for a problem in codechef. I have written the following program to compute the number of divisors. But the program is exceeding the time limit. Is there any way to optimize my approach to this problem?Can you suggest a faster algorithm?  #include<iostream> #include<math.h> using namespace std; int main() {  int n,i=1,d=0;         while(i<=sqrt(n))          {           if(n%i==0)            {             d++;              if(i!=(n/i))               d++;            }           i++;           }    cout<<d;

What would be the most optimal algorithm (performance-wise) to calculate the number of divisors of a given number?  It'll be great if you could provide pseudocode or a link to some example.  EDIT: All the answers have been very helpful, thank you. I'm implementing the Sieve of Atkin and then I'm going to use something similar to what Jonathan Leffler indicated. The link posted by Justin Bozonier has further information on what I wanted.


Can you please explain in detail why I "skip" the article before Central Park, "skip" the article before St. Peter's Cathedral and "keep" the article "the" before the Chrysler Building, in the following sentence?   I am an ESL teacher/English Teacher who teaches adults.and it seems this maybe has to do with the context of listing places? I don't know why I am putting the 'the' in at the end and not in the rest of the sentence? I don't know how to explain this one.   We can see(no article) Central Park, (no article) St. Peter's Cathedral, and the Chrysler Building from our room.   Warmly, Jules

Is there a rule beyond the common "no the with proper nouns and names" for the following problem?     I saw the Empire State Building.      We went to the White House.      We saw the Golden Gate Bridge.   but     I went to Death Valley National Park.      I crossed Brooklyn Bridge.


For 2 vectors a and b, the dot product is defined as either:  a · b = ax × bx + ay × by  Or:  a · b = |a| × |b| × cos(θ) where θ is the angle between two vectors.   How can I prove these two formulas are the same?

I have an intuitive understanding of why $a\dot{}b=|a||b|\cos{\theta}$ geometrically. The projection of one vector onto another makes sense to me when explaining the origin of this geometric definition.  What I don't understand is why $a\dot{}b=a_xb_x + a_yb_y = |a||b|\cos{\theta}$. How does the algebraic version of the dot product connect to the geometric version? Can you derive the algebraic definition from the geometric? I read the answers , but the proofs seem to depend on the actual algebraic definition to arrive at it.  My main question is, why are the two definitions really equal?


I've seen "opt out" used in some places and "opt-out" in others. Both seem to be used in the same way - to remove one's self from something. I'm not able to find any official sources that suggest which is correct.  Which is proper?  Research:  I Googled for several variations of "opt out vs opt-out". I was unable to find any articles or pages that directly discussed the differences between the two. The search results all seemed to define one of the phrases or the other in very similar terms (the difference was still not clear).  I checked www.dictionary.com. I was only able to find a definition for "opt out", not a version for "opt-out". The definition I did find was similar to the definitions above.  I searched the English Language & Usage (this) site for the phrases "opt out" and "opt-out" but was unable to find a question that answered the above. The questions mostly seemed to compare "opt out" or "opt-out" to another similar word ("withdraw" for example).

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


This is INMO 2000 Problem 2.  Solve for integers $x,y,z$: \begin{align}x + y &= 1 - z \\ x^3 + y^3 &= 1 - z^2 . \end{align}  My Progress: A bit of calculation and we get $x^2-xy+y^2=1+z $ Also we have $x^2+2xy+y^2=(1-z)^2 \implies 3xy=(1-z)^2-(1+z)=z(z-3) \implies y=\frac{z(z-3)}{3x}$ and $x=\frac{z(z-3)}{3y} $. Note that since $z$,$x$,$y$ is an integer, we must have $3\mid z$. So, let $z=3k$. So we have $y=\frac{3k(3k-3)}{3x}=\frac{k(3k-3)}{x}$ and $x=\frac{z(z-3)}{3y}=\frac{k(3k-3)}{y}$ . Then I am not able to proceed. Hope one can give me some hints and guide me. Thanks in advance.

Solve for integers $x, y, z$ such that $x + y = 1 - z$ and $x^3 + y^3 = 1 - z^2$.  I think we'll have to use number theory to do it. Simply solving the equations won't do. If we divide the second equation by the first, we get: $$x^2 - xy + y^2 = 1 + z.$$ Also, since they are integers $z^2 \ge z \implies -z^2 \le -z$. This implies $$x + y = 1 - z \ge 1 - z^2 = x^3 + y^3.$$ This shows that atleast one of $x$ and $y$ is negative with the additive inverse of the negative being larger than that of the positive. I have tried but am not able to proceed further. Can you help me with this? Thanks.


I am iterating over an entire directory with more than 5k .xml files and I want the file name only if it contains the string 'stop' under the tag <name> which itself is a child of the tag <object>:  import xml.etree.ElementTree as etree import os path = '/home/devf12/Documents' listofnames = []  for filename in os.listdir(path):     if not filename.endswith('.xml'): continue     fullname = os.path.join(path, filename)     tree = etree.parse(fullname)     root = tree.getroot()     objects = [tag for tag in root.findall('object')]     for tag in objects:         objname = tag.findtext('name')         print filename # this is the last place that it will print the filename         if objname is 'stop': # but I need to narrow it down if it meets this condition             print filename # why wont it print here?   Does anyone know why my current code doesn't achieve this and how it can be done?

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


Tried installing i3wm from these instructions using the Ubuntu ppa   Got this error when I typed in the final command apt-get install i3  sudo apt-get install i3 Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  i3 : Depends: i3-wm (= 4.6.1-1+g4.6-88-ge99158e1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   When I tried downloading the .deb file and running it I get an error in the software center saying  "Dependency is not satisfiable: i3-wm (=4.5.1-2)   Any ideas I am pretty much a noob

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


I wrote some code to upload an image to a server. Now I wanted to add a function "imageresize" wich resizes the image to a predefinded height and width. When I run it I get a fatal error  what I've tried: I found a simple piece of code on the internet witch works and tried the same stucture in my script   <?php  function voegGebruikerToe ($naam, $Ww, $WwConfirm, $sqlInsert, $nameImage, $naamDiv) {       if(!empty($naam) and !empty($Ww) and !empty($WwConfirm)){         if ($Ww == $WwConfirm) {              $passHash = password_hash($Ww, PASSWORD_DEFAULT); // Creates a password hash              $sql1 = "INSERT INTO users (username, password) VALUES ('$naam', '$passHash')";                     if ($sqlInsert->query($sql1) === TRUE) {            //insert invevoerde data to database                 echo "ok";                           } else {              }           } else {             echo "your passwords doesn't match";         }     } else{         echo "Please enter all the fields.";     }      $file = $_FILES[$naamDiv]['tmp_name'];      $sourceProperties = getimagesize($file);     $fileNewName = $nameImage;     $folderPath = "/var/www/";     $ext = pathinfo($_FILES[$naamDiv]['name'], PATHINFO_EXTENSION);     $imageType = $sourceProperties[2];     $imageFileType = strtolower(pathinfo($_FILES[$naamDiv]['name'],PATHINFO_EXTENSION));               // Allow certain file formats     if($imageFileType != "jpg" && $imageFileType != "png" && $imageFileType != "jpeg"     && $imageFileType != "gif" ) {          echo "Sorry, only JPG, JPEG, PNG & GIF files are allowed. <br>";      } else {          switch ($imageType) {               case IMAGETYPE_PNG:                 $imageResourceId = imagecreatefrompng($file);                  $targetLayer = imageResize($imageResourceId,$sourceProperties[0],$sourceProperties[1]);                 imagepng($targetLayer,$folderPath. $fileNewName. ".". $ext);*/                  break;               case IMAGETYPE_JPEG:                 $imageResourceId = imagecreatefromjpeg($file);                  $targetLayer = imageResize($imageResourceId,$sourceProperties[0],$sourceProperties[1]);                 imagejpeg($targetLayer,$folderPath. $fileNewName. ".". $ext);*/                 echo "works";                 break;               default:                 echo "Invalid Image type.";                 exit;                 break;         }           //move_uploaded_file($file, $folderPath. $fileNewName. ".". $ext);         echo "Image Resize Successfully.";     }       function imageResize($imageResourceId,$width,$height) {          $targetWidth =200;         $targetHeight =200;           $targetLayer=imagecreatetruecolor($targetWidth,$targetHeight);         imagecopyresampled($targetLayer,$imageResourceId,0,0,0,0,$targetWidth,$targetHeight, $width,$height);           return $targetLayer;     }    }  voegGebruikerToe($admNaam, $admWw, $admWwConfirm, $conn, "administrator", "ImageUser1");  ?>   the example code I found:  <?php  function x ($y) {       function y ($z) {         return ($z*2);     }      return($y+3); }  $y = 4; $y = x($y)*y($y); echo $y;  ?>    Fatal error: Uncaught Error: Call to undefined function imageResize() in /var/www/html/v0.2_webpagina_barchart (setupPage)/php/setUpPHP.php:75 Stack trace: #0 /var/www/html/v0.29_webpagina/php/setUpPHP.php(146): voegGebruikerToe('t', 't', 't', Object(mysqli), 'administrator', 'ImageUser1') #1 /var/www/html/v0.2_webpagina /setUp.php(4): include('/var/www/html/v...') #2 {main} thrown in /var/www/html/v0.2_webpagina/php/setUpPHP.php on line 75

In JavaScript nested functions are very useful: closures, private methods and what have you..  What are nested PHP functions for? Does anyone use them and what for?  Here's a small investigation I did  <?php function outer( $msg ) {     function inner( $msg ) {         echo 'inner: '.$msg.' ';     }     echo 'outer: '.$msg.' ';     inner( $msg ); }  inner( 'test1' );  // Fatal error:  Call to undefined function inner() outer( 'test2' );  // outer: test2 inner: test2 inner( 'test3' );  // inner: test3 outer( 'test4' );  // Fatal error:  Cannot redeclare inner()


Let $X$ be a discrete random variable over $\mathbb{N}$, $E$ its expected value.  I want to show that $\displaystyle E(X)=\sum_{n\in\mathbb{N}}P(X\ge n)$  I thought of an "Euler sum" approach :  $\displaystyle E(X)=\sum_{n\in\mathbb{N}}nP(X=n)=P(1)+2P(2)+3P(3)+\cdots=\\ [P(1)+P(2)+P(3)+\cdots]+[P(2)+2P(3)+\cdots]+\dots=[P(1)+P(2)+P(3)+\cdots]\\ +[P(2)+P(3)+\cdots]+[P(3)+\cdots]+\cdots=\sum_{n\in\mathbb{N}}P(X\ge n)$  but that approach seems "too easy" and not rigorous enough to me (I do know that changing the order of the terms in the expected value's sum does not affect its final value, though).  What would be a rigorous way to prove it ?

Let $X$ be a non-negative random variable and $F_{X}$ the corresponding CDF. Show,   $$E(X) = \int_0^\infty (1-F_X (t)) \, dt$$   when $X$ has : a) a discrete distribution, b) a continuous distribution.   I assumed that for the case of a continuous distribution, since $F_X (t) = \mathbb{P}(X\leq t)$, then $1-F_X (t) = 1- \mathbb{P}(X\leq t) = \mathbb{P}(X>  t)$. Although how useful integrating that is, I really have no idea.


In the above timing diagram for opcode fetch machine cycle , can we not do the entire operation in just 2 T states like this : In T1 state we first latch the lower order address by making ALE high for some time .Then we make READ signal low in the same clock period .Data is available on lower order multiplexed address/data bus .At this point we make enable input of instruction register(IR) active so that at the end of first clock cycle the data will be loaded into the IR.Then the process of decoding can be done in T2 state i-e., Second clock cycle . Doing the fetch part in 3 clock cycles seems unnecessary to me and a waste of time .

In the text I'm following,  it's explained that,   During T1, address in Program Counter(PC) is latched onto the Memory Address Register(MAR),  During the falling edge of T2 \$\overline{MEMR}\$ becomes active, and during the rising edge, contents in the Memory Data Register is placed on the bus \$^\dagger\$ During T3, contents in the bus is latched on to the accumulator.   \$^\dagger\$ My question is, during the rising edge of T2, why is the MDR not directly latched onto the accumulator, but takes another T-state to latch it on?


I don't want any admin users in my system to execute the following command other than root.  "sudo cp /etc/sudoers "  Is it possible to block it for admin users only?  I have tried lot but didn't get anything?

In my  High school there are few computer having Ubuntu 14.04 installed and many students know the Root  password, how  can I block/disable  certain dangerous  commands like :- rm -rf / rm -rf * :(){:|:&};: to avoid Data loss ?


Nowadays I do some optimize work in java, and got an interesting(?) question.  My test environment is jdk 1.8 and Windows 10 and with intellij 2018.1. And there is a test-code below.  int count = 1000000; int listSize = 10;     {         // case 1         List<Integer> list = new ArrayList<>(listSize);         long start = System.nanoTime();         for (int i = 0; i < count; i++) {             for (int j = 0; j < listSize; j++) {                 list.add(j);             }         }         long end = System.nanoTime();          long result = end - start;         System.out.println("Result: " + result);     }      {         // case 2         List<Integer> list = new ArrayList<>(listSize);         long start = System.nanoTime();         for (int i = 0; i < count; i++) {             list.add(0);             list.add(1);             list.add(2);             list.add(3);             list.add(4);             list.add(5);             list.add(6);             list.add(7);             list.add(8);             list.add(9);         }         long end = System.nanoTime();          long result = end - start;         System.out.println("Result: " + result);     }   And the result is   Result: 134686088 Result: 183671342  And my question is Why is there the performance difference between the above two codes? With the visual studio on c++, i remember the compiler(visual studio) optimize two case to same machine language.  Anyone could help me? and tell me the best way(best performance) with java loop programming.  Thx.

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


There is a .io domain name that has expired and I would like to purchase it. I understand with top level generic domains such as .com .net and .org  they have several phases before they actually drop. I can't find any information on when .io domains drop.  My question(s):   How long is the .io redemption period? How long is the .io grace period? What time of day or night do they start to drop?

There's a domain that I've been looking to acquire that is expiring on the 30th of this month.  I don't think it is very popular, and the guy hasn't seemed to update the website in two years now.  So, I was doing some research and came across  that seems to review some "snatching" services, but the article is quite outdated.  So, I'm wondering if anyone can offer any newer information on the topic, or whether the recommend any services for helping me acquire the site in question?


Is there a way in C to know how many values are in an array initialized like this?  char *string_array[] = {"one", "two", "three"};   Obviously there are three strings in the array but how can I determine the size at run time?

How do I determine the size of my array in C?   That is, the number of elements the array can hold?


I have read in the book of counter example in Analysis by Bernard R. Gelbaum John M. H. Olmsted ,(page $18$) that $4$  and $2(1+\sqrt{5})$ without Great commone divisor however it's trivial  they have no great commone divisor  since $2(1+\sqrt{5})$ is not integer, I want some justification for this in the sense why these number were considered to look for them $\gcd$?

I have to answer this question:  Prove that in the ring $\mathbb Z[\sqrt{-5}]$ there's no gcd to $6$ and $2\cdot (1+\sqrt{-5})$.  I have no clue how to do this but however I've tried to prove that their sum $$6+2\cdot (1+\sqrt{-5}) = 8+2\cdot\sqrt{-5}$$ is not in $\mathbb Z[\sqrt{-5}]$ but I was not able to do this.  How should I proceed?


i'm actually searching how to close div when clicking outside, but i have no idea how to do it. I have tried many things like using the attribute .removeClass with a boolean, add a removeEventListener or even with collapse but i didn't understand that one , but nothings worked for me... I'm really stucked. Here's my code actually :    (function() {             var hamburger = {                 navToggle: document.querySelector('.nav-toggle'),                 nav: document.querySelector('nav'),                  doToggle: function (e) {                     e.preventDefault();                     this.navToggle.classList.toggle('expanded');                     this.nav.classList.toggle('expanded');                 }             };              hamburger.navToggle.addEventListener('click', function (e) {                 hamburger.doToggle(e);             });             hamburger.nav.addEventListener('click', function (e) {                 hamburger.doToggle(e);             });      }()); .nav2 {     -webkit-transition: left 0.5s ease;     -moz-transition: left 0.5s ease;     -ms-transition: left 0.5s ease;     -o-transition: left 0.5s ease;     transition: left 0.5s ease;     background: #000000;     color: #ff4c4d;     cursor: pointer;     font-size: 2rem;     height: 100vh;     left: -20rem;     padding: 6rem 2rem 2rem 2rem;     position: fixed;     top: 0;     width: 49vw;     z-index: 1;     opacity: 0.90;     z-index: 2; }  .nav2.expanded { left: 0; }  .nav2 ul {     position: absolute;     top: 40%;     -webkit-transform: translateY(-50%);     -ms-transform: translateY(-50%);     transform: translateY(-50%);     list-style: none;     margin: 0;     padding: 0; } .nav-toggle {     -webkit-user-select: none;     -moz-user-select: none;     user-select: none;     cursor: pointer;     position: fixed;     top: 2rem;     width: 10vw;     z-index: 3;  }  .nav-toggle:hover { opacity: 0.8; }  .nav-toggle .nav-toggle-bar,  .nav-toggle .nav-toggle-bar::after,  .nav-toggle .nav-toggle-bar::before {     position: absolute;     top: 50%;     -webkit-transform: translateY(-50%);     -ms-transform: translateY(-50%);     transform: translateY(-50%);     -webkit-transition: all 0.5s ease;     -moz-transition: all 0.5s ease;     -ms-transition: all 0.5s ease;     -o-transition: all 0.5s ease;     transition: all 0.5s ease;     background: #5080ff;     content: '';     height: 0.7vh;     width: 100%;     z-index: 4; }  .nav-toggle .nav-toggle-bar { margin-top: 0; border-radius: 4px;}  .nav-toggle .nav-toggle-bar::after { margin-top: 1.5vh; border-radius: 4px;}  .nav-toggle .nav-toggle-bar::before { margin-top: -1.5vh; border-radius: 4px;}  .nav-toggle.expanded .nav-toggle-bar { background: transparent; }  .nav-toggle.expanded .nav-toggle-bar::after, .nav-toggle.expanded .nav-toggle-bar::before {     background: #85faff;     margin-top: 0; }  .nav-toggle.expanded .nav-toggle-bar::after {     -ms-transform: rotate(45deg);     -webkit-transform: rotate(45deg);     transform: rotate(45deg); }  .nav-toggle.expanded .nav-toggle-bar::before {     -ms-transform: rotate(-45deg);     -webkit-transform: rotate(-45deg);     transform: rotate(-45deg); }

Home

Portfolio

About

Contact

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


Some CS veterans would probably shoot me on sight for questioning its value, but let's face it, you are a member of IEEE if you're paying them a fee every year, and I don't think there's anything else keeping you from entering if you're in CS/EE. I see every single professor writing it on his CV though, and it is beginning to look like a must-have.  Agreed, you get some (limited) access to papers from their library, and a discount for conferences and the rest of the library, but as a student I can't afford to skip classes to go to conferences (and often I can't afford the travel costs either), and I have few things pressuring me to read papers, if any. In fact I haven't come across a subject with so little material on it with public access that I felt I needed access to other papers.  I'm not denying the existence of people that actually use the papers they have access to, but I am confident that a survey would reveal that not even a quarter of the members access the libraries.  To sum up my points:   It only shows that you pay a fee every year Probably without using anything of what you get for that fee It just adds a line to your CV that doesn't really say anything about you.   So does it have any value? Do people notice this? Is it worth renting a title and nothing else?  Concerning whether or not it is a duplicate of :  That question assumes membership is already active and asks if it is worth mentioning it, however it costs nothing to mention something you already have so the parameters are significantly different. This question questions if it is even worth obtaining the membership, essentially also asking if this (or any) title is worth paying for, given that many others already do so.  Even though some of the answers do make mention of whether it holds any value to those who answered, they do not address if university staff or recruiters pay attention to this, or even how it affects them. One could even see it as renting a title to compensate for lack of other things to write on the resume.

Does it worth to add IEEE membership to my CV? It seems every body can pay a fee and become an IEEE member.


String dateSample = "2016-09-30 21:59:22.2500000";      String oldFormat = "yyyy-MM-dd HH:mm:ss";     String newFormat = "MM-dd-yyyy";      SimpleDateFormat sdf1 = new SimpleDateFormat(oldFormat);     SimpleDateFormat sdf2 = new SimpleDateFormat(newFormat);      sdf2.format(sdf1.parse(dateSample));   From this, I got 09-30-2016 But, I want the result 09-28-2016 How to do it?

I'm working with a date in this format: yyyy-mm-dd.  How can I increment this date by one day?


I have my android:screenOrientation="portait" on but when a physical keyboard is opened it doesn't rotate the screen as I wanted, but it restarts the app. It seems to run onCreate over again or something. Can someone point me in the right direction and/or tell me how to intercept this and handle it? Thanks.

In my Android application, when I rotate the device (slide out the keyboard) then my Activity is restarted (onCreate is called). Now, this is probably how it's supposed to be, but I do a lot of initial setting up in the onCreate method, so I need either:   Put all the initial setting up in another function so it's not all lost on device rotation or Make it so onCreate is not called again and the layout just adjusts or Limit the app to just portrait so that onCreate is not called.


$sql = "SELECT text,pic FROM newstable where type='在线报修上广告' order by id desc limit 0,1";  but you may find the return value is null But i try to use this $sql = "SELECT text,pic FROM newstable where type=N'在线报修上广告' order by id desc limit 0,1";  there is N before '在线报修上广告' ------->>>>>but it works....what's the meaning of this 'N'!!

Is it just that nvarchar supports multibyte characters? If that is the case, is there really any point, other than storage concerns, to using varchars?


I need to write a javascript function like a;  While my application runs on browser I will refresh the page and it will open a pop-up, close the old page and pop-up will be displayed in full screen. How can I do this? I did try this code below.    var elem = document.documentElement; function fullScreen() {   //  var ofisWin = window.open("ofis.html");   if (document.fullscreenElement !== null) {     console.log("fselement: " + document.fullscreenElement);   } else {     openFullscreen();     window.close();   } }  function openFullscreen() {   var ofisWin = window.open("ofis.html", "ofis", "fullScreen");   if (ofisWin == null) {     console.log('The popup was blocked!');   }   console.log(window.document.fullscreenElement);   console.log("fullscreen request!");   if (elem.requestFullscreen) {     elem.requestFullscreen();   } else if (elem.mozRequestFullScreen) { /* Firefox */     elem.mozRequestFullScreen();   } else if (elem.webkitRequestFullscreen) { /* Chrome, Safari & Opera */     elem.webkitRequestFullscreen();   } else if (elem.msRequestFullscreen) { /* IE/Edge */     elem = window.top.document.body; //To break out of frame in IE     elem.msRequestFullscreen();   } }  fullScreen()

Is there a way to make a popup window maximised as soon as it is opened? If not that, at least make it screen-sized? This:  window.open(src, 'newWin', 'fullscreen="yes"')   apparently only worked for old version of IE.


i am using js for dynamic content  now i want to get the size (width and height) of an image  until now i used img.clientWidth and img.clientHeight but when i have set img.style.width and img.style.height the img.clientWidth and img.clientHeight changed as well. i need a variable which does not change during the webpage changes, since the src does not change as well. if there is any way, i would prefer no jquery

I need to display a bunch of images on a web page using AJAX. All of them have different dimensions, so I want to adjust their size before displaying them. Is there any way to do this in JavaScript?  Using PHP's getimagesize() for each image causes an unnecessary performance hit since there will be many images.


when run my app on android emulator its show unfortunately app stop message  import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView;  public class MainActivity extends AppCompatActivity implements View.OnClickListener{        Button blogin;       EditText etusername,etpassword;      TextView registerlink;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          etusername=(EditText) findViewById(R.id.uname);         etpassword=(EditText) findViewById(R.id.upassword);         blogin=(Button) findViewById(R.id.blogin);         registerlink=(TextView) findViewById(R.id.bregister);         blogin.setOnClickListener(this);         registerlink.setOnClickListener(this);     }      @Override     public void onClick(View v) {         switch(v.getId()){             case R.id.blogin:                  break;             case R.id.bregister:                 startActivity(new Intent(this,RegisterActivity.class));                 break;         }     } }   Xml coding for your reference. Logs shows a Nullpointer exceptions  <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:orientation="vertical"     android:layout_width="match_parent"     android:padding="10dp"     android:layout_height="match_parent">  <EditText     android:id="@+id/uname"     android:layout_width="match_parent"     android:hint="@string/unamehint"     android:layout_marginBottom="10dp"     android:layout_height="wrap_content" />      <EditText         android:id="@+id/upassword"         android:inputType="textPassword"         android:layout_width="match_parent"         android:hint="@string/upasswordhint"         android:layout_marginBottom="10dp"         android:layout_height="wrap_content" />     <Button         android:id="@+id/blogin"         android:layout_gravity="center_horizontal"         android:layout_width="wrap_content"         android:layout_marginBottom="10dp"         android:text="@string/buttonname"         android:layout_height="wrap_content" />     <TextView         android:id="@+id/register"         android:text="New User/Register"         android:textStyle="bold"         android:layout_gravity="center_horizontal"         android:layout_width="wrap_content"         android:layout_height="wrap_content" />  </LinearLayout>   LOGCAT  254 9565-9565/com.example.prakash.aclientz E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.prakash.aclientz, PID: 9565 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.prakash.aclientz/com.example.prakash.aclientz.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setOnClickListener(android.view.View$OnClickListener)' on a null object reference at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.interna

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