Finding 1904 Birth Record from Constanta, Romania?

My mother's mother was born at Constanta, Romania, at 1904 and after a time she immigrated to Istanbul,Turkey. She died at 1980 at Istanbul.   I want to find her birth records at Romania, where l must apply for finding her birth papers?


How can I cook dried noodles with just hot water?

I'm looking for any tips for making a meal with dried noodles without needing to actively cook them.  My problem is that the kitchen in my office has nothing, not even a microwave. It just has a hot water dispenser (not sure of the exact temperature, standard models generally dispense it at 94ºc so I would assume this one is the same).  I'm fine with salads and sandwiches, but sometimes I want something hot. A particular favorite is noodles, but whenever I have instant noodles I get terrible indigestion, probably because of all the terrible things that are in the flavor sachet (I actively avoid reading the ingredients for my own sanity).  I want to make my own similar thing adding my own spices/ ingredients, and also preferably vegetables, but it seems unreasonably expensive to buy lots of individual packets of instant noodles, and get rid of the flavor sachets to make my own.  I've tried searching on the internet, but all of the things I've found are cooking it inside a kettle (which isn't an option), or using a microwave (also not an option).  So are there any tips/ advice for cooking noodles (like dried egg noodles) simply with hot water?  More specifically, optimum noodle weight:water volume ratio, and amount of time they are left in the water before ready to eat.  If there are any other type of noodles that can be used for this specifically, egg noodles aren't required. I also don't mind if it ends up more like a soup, but I would rather there be as little liquid remaining as possible.


UK Standard application - need to send documents - can I purchase the return label from UPS store?

Have been trying hard to use the VFS website - can I purchase the return label from any UPS store and send the package or does it HAVE to be from the VFS website?- which btw is very difficult to use


How can I tell Google Analytics to not use cookies for my sub domain?

I have my web site at example.com, and i have also setup a sub domain for serving static content at static.example.com. On my web pages I'm using Google Analytics, so it will attach its cookies to all page request, even on static.example.com.     I went into the GA settings and added a filter to exclude static.example.com, but I still see cookies (with the __utma.. name) on all web requests to my static domain.  How can i prohibit GA to use cookies on my sub domain?


What exactly is causing the electric discharge coming from the clouds to emit light while traveling through the air. I've read and thought about it a little but with my current knowledge I cant really figure what is happening at a subatomic level. In other words, what causes the emission of photons during lightning. What I want to know is, is there some sort of collisions taking place that produces the photons we see, or is it some other interaction that is causing it?. I don't know too much about particle physics, I've only read a couple of pages in the Introduction to Elementary Particles by Griffihts. So if you could keep the answer simple then that would be great.


When adding a figure, following paragraph text is affected

I'm adding an image to my 2 column paper using:  \begin{figure}     \centering     \includegraphics[width=0.48\textwidth]{myimage.png}     \caption{My caption.}     \label{mylabel} \end{figure}   Immediately before the image gets added there is no spacing between paragraphs, but immediately after it there is ~5mm spacing added between paragraphs.   When I remove the figure, the paragraph spacing goes away.  Any idea why?    A few other details:   If I change width=0.48\textwidth to \columnwidth the same problem occurs, however if I change width=\textwidth, the image runs off the page, but the paragraph spacing issue goes away.


More formal word for the chronic state of being in a snit

This question relates to my previous question:   I would like to describe the general attitude of a particular witness, in my closing argument.  This will help me comment on her reliability as a witness.  She was very negative about everything, and came across as being in a snit about everything.  I need a word for this idea of being in a snit.  She was opposed to everything.  She got herself tied into contradictory knots because she was opposed to so many things.  The word could be an adjective describing her constant oppositional state.  Or it could be a word to mean the oppositional state itself.  It should show that it comes from a desire to show that everything the parent speaks, acts, dreams, or breathes is wrong.  That was her guiding principle.  But it was an emotional (visceral) thing for her.  She's too stupid to be analytical.  Oppositional doesn't work because two-year-olds are oppositional.  They say "no" to everything.  This person had a negative attitude only regarding whatever she thought the parents were saying or trying to accomplish.  The closest I've gotten so far is that she was pathologically anti-parent.  But I can't say "pathologically" in the closing argument.  I need a less offensive sounding word.  (Being in this perpetual snit affected her memory and her judgment.  She ended up speaking total nonsense.)


Who is more complex computationally knn or SVM?

I have trained two models using sklearn library in python.. My dataset was about 750 features, 250 features per class (three classes), I trained only one feature dimension (1-D array). This are the results:   SVM   Between training process and testing process (0.20%) I got: 0.029801 sg    KNN   Between training process and testing process (0.20%) - 0.0074096 sg  As we can see K-NN got a shorter execution time ≈ 7 milliseconds and SVM 29.801 milliseconds.  I'm interested in knowing what of this two models are more complex computationally. According to [1] the complexity of SVM (LibSVM) is O(n^3) Sklearn is using libsvm like backend or like solver for svm problems (linear and non-linear)  According to [2] the complexity of K-NN is O(nd)  "Since the large O notation only gives a higher asymptotic dimension, and not an asymptotically adjusted upper bound, we can make statements that at first glance seem incorrect, but that are technically correct. For example, it is absolutely correct to say that the binary search is executed at a time O (n),  That's because the execution time grows no faster than a constant multiplied by n. In fact, it grows slower." [3]  What is more complex?  O(n^3) or O(nd) and Why?  Since my point of view KNN is more less complex in time execution that SVM model. thanks so much.  [1]  [2]  [3]


Rather than spend hours trying to figure out if the source that I googled will work right or not, can someone tell me how I install drivers for my GTX 780?  I tried following this one  after downloading the .run file from the NVIDIA website.  But I committed a newbie sin by typing something into the terminal blindly without verifying what it does exactly.  sudo service lightdm stop   Typing that made my screen go blank with no way of doing anything except a hard reset.  Any answers appreciated for this day 2 linux noob.


FFMPEG How to extract frames of a video at a certain time frame?

I am working on laying out video stills in a book. I am pretty new to using the command line and discovered ffmpeg just yesterday.  Right now, I want to extract 8fps from a video between, for example, 00:05:30 and 00:42:30. This is what I have written. I am not sure how to include the out point or if I am using the right option to begin with (-ss).   ffmpeg -ss 00:05:30 -i video.mp4 -vf fps=8 out%05d.png   As another approach, I know this segment is 37 seconds. So:  ffmpeg -ss 00:05:30 -i video.mp4 -t 00:00:37 -vf fps=8/16 out%05d.png  I am also wondering if -ss has to be specified before the input or if it can be placed after. I guess I'm confused about syntax. Could it be ffmpeg -i video.mp4 -ss 00:05:30 ... as well? It seems to be running, but slower.


how to make crontab that work effective?

and I am newbie for linux, I am sorry if this question is so dumb. I would like to know to create crontab properly, I create job as below:  * * * * * /usr/src/debug/http/cron_job.sh >/dev/null 2>&1   inside cron_job.sh as below  pidof html if [ 0 = $? ] then  echo running else   cd /usr/src/debug/http/  ./html fi   but when I check the running program it show that  2738 ? ... ./html 2748 ? ... ./html 2788 ? ... ./html   its seems duplicate it running the application, is there any wrong with my setting? kindly let me know how to solve this issued?  thank you for your help.


Minimal polynomial over an extension field divides the minimal polynomial over the base field

I need help proving this theorem:     Given the field extension: $\mathbf{K} \subseteq \mathbf{L}$, for $\alpha \in \mathbf{L}$ and $g(x) \in \mathbf{K}[x]$, $\alpha$'s minimal polynomial over $K$,   and $f(x) \in \mathbf{L}[x]$, $\alpha$'s minimal polynomial over $L$,   then the degree of $g$ is bigger than the degree of $f$ and $f(x)$ divides $g(x)$.


Import and scale LaTeX table data from file (only ampersand stuff)

Is it possible to create a table and include only the pure data from an external file (only ampersand delimited stuff). Is it also possible to scale a table because data is vast and I don't want to keep on messing with table width and heights??  \begin{table}[H!]    \centering   \begin{tabular}{llllllll} \input{stuff}; \end{tabular}    \caption{This is a caption}  \label{xxxx}     \end{table}   I want to import the data on the \input{stuff} part


Why not seeing shell globs as a "dialect" of regex?

I often confuse Bash 3.x shell globs:  ?      # Match any single character. *      # Match any string of characters (up until the asterisk). [set]  # Match any character in set (but not the entire set itself). [!set] # Match any character not in set.   with regex (especially ).  My question is why not seeing these as "Bash regex" (just as we have "JavaScript regex" for example)?  Why not seeing these as just another "dialect" of regex?  Of course it would be unorthodox, but I'm not sure there isn't any formal-logical reason not to.


The tension of a rope in a tug of war with unequal forces is equal to the least force on the rope. Am I right? (If group A pulls the wire with 20 newton leftwards and the group B pulls with 30 newton. I expect that the tension is 20 newton.)   But the tension on the rope pulling a mass vertically upward is said to be equal to $mg+ma$.( where $m$ is the mass of the object being pulled, $a$ is the acceleration of the object)  How come the same situations bearing different answers?


Paste contents of many files together within a vi bash script

I cannot seem to get a paste command to work in a bash script. The command pastes the contents of a range of files together and outputs a new combined file. This is what works outside the script if I wanted to paste file1 through file90 together:  paste file1 file{2..90} > combinedfile   Within the script, which has many variables and other commands pre and proceeding it, it does not. For simplicity, the code in essence:  #!/bin/bash  START=1 END=90  let j=$START+1 paste file1 file{$j..$END} > combinedfile   It seems like there might be some kind of special notation to run this command using defined variables, but I do not know what it is. I've also tried the following:  paste file1 file{"$j".."$END"} > combinedfile paste file1 file${$j..$END} > combinedfile paste file1 file${"$j".."$END"} > combinedfile   I'll get errors like:  ${$j..$END}: bad substitution {847..902}: No such file or directory   Any help would be appreciated.


I've been an active participant on stackoverflow.com and meta.stackoverflow.com for a few years now. It's been a while since I've encountered rep-based permission restrictions. How am I supposed to build enough rep on meta.stackexchange.com to effectively participate? Most of my needs are handled on the site-specific meta, so I rarely have a need to actually answer or ask a question here... but I would like to up/downvote on discussion topics.   It seems weird to have to earn your way into a discussion that pertains to your site (via network-wide feature, policy, etc) when you're already 15k+ on an affected site. Worse, unlike meta.SO, I can downvote myself out of enough rep to downvote here.  So, after Martijn's comment, I realize the root of my question is this:     Why, on a meta site where upvotes and downvotes are an integral part of the discourse, am I first given the ability to "agree" and may only later earn the (limited and deteriorating) ability to "disagree"?   Which is essentially a duplicate of


Problem reprojecting LIDAR data with Liblas

I am currently trying to reproject a LIDAR file (.las) using the Open-Source LibLAS, compiled on a Scientific Linux server. The Original data is in Oregon Lambert, NAD83 (EPSG:2992), and I am trying to reproject it to UTM WGS 84, Zone 10 N (EPSG:32610). However, when I use the --t_srs option, I get the following error: "error: X scale and offset combination is insufficient to represent the data" I am suspecting it has to do with the integer values stored and the distance of translation. How do I get it to work? Is there anything I have to change in the header information? Regards, Edit: Here is the command line I am using (lasinfo detects the original EPSG, so no need to specify it):  ./las2las -i path/to/input/folder/*.las -olas -odir path/to/output -v --t_srs EPSG:32610  Result:  $ Setting output SRS to EPSG:32610 $ error: X scale and offset combination is insufficient to represent the data


What would be the practial usage of vectors?

Since in modern day programming we use ArrayList more often, what would be a use   case where vector would be used.


I have server in Kimsufi with 2gb RAM but my server is very slow , with simple hosting in ovh it responds quickly ...  With pingdom.com test i have for   server: 10 sec  and simple hosting: 2sec  is there a problem in my mysql configuration ? I dont need change query limit for 2gb (2000M) ?  my.cnf  innodb_buffer_pool_size=2M innodb_additional_mem_pool_size=500K innodb_log_buffer_size=500K innodb_thread_concurrency=2  key_buffer              = 16M max_allowed_packet      = 16M thread_stack            = 192K thread_cache_size       = 8  query_cache_limit       = 1M query_cache_size        = 16M  innodb_buffer_pool_size=2M innodb_additional_mem_pool_size=500K innodb_log_buffer_size=500K innodb_thread_concurrency=2 [mysqldump] quick quote-names max_allowed_packet      = 16M  [mysql] #no-auto-rehash # faster start of mysql but no tab completition  [isamchk] key_buffer              = 16M


It's a .net core project running on a Mac. I've a custom Exception class that I'm serializing as JSON as output in case of an error.    public class HttpException : Exception {     private readonly int statusCode;      public HttpException() {}      public HttpException(int statusCode, string message) : base(message) {         this.statusCode = statusCode;     }      public int StatusCode {get {return this.statusCode;}} }   Code related to json serialization  Exception exception = (Exception)serviceRequest.ResultData; MemoryStream memoryStream = new MemoryStream();   DataContractJsonSerializer dataContractJsonSerializer = new DataContractJsonSerializer(typeof(Exception));     // it fails here dataContractJsonSerializer.WriteObject(memoryStream, exception);     byte[] json = memoryStream.ToArray();   memoryStream.Close();   Console.WriteLine(Encoding.UTF8.GetString(json, 0, json.Length));      System.Runtime.Serialization.SerializationException: Type 'Service.Model.Exceptions.HttpException' with data contract name 'HttpException:' is not expected. Add any types not known statically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding them to the list of known types passed to DataContractSerializer.      at System.Runtime.Serialization.XmlObjectSerializerWriteContext.SerializeAndVerifyType(DataContract dataContract, XmlWriterDelegator xmlWriter, Object obj, Boolean verifyKnownType, RuntimeTypeHandle declaredTypeHandle, Type declaredType)   Edit  Trying to use System.Web.Extensions but have squiggly lines.


Scaling x y coordinates in qgis print composer while using atlas generator

So I am using QGIS 2.18.0 and have made a map template that uses the atlas generator in the print composer. It uses the grids settings for the map to add UTM north and Eastings along the sides of the map.    Is it possible to set the grids to adjust based on the scale of the map?    For example, the x and y interval for the grid would decrease automatically when the atlas generator is producing a map at 1:10 000 and then increase when the producing a map at 1:100 000? Similar to how the visibility of different layers can set based on scale.   Right now it appears that the grid can only be set to one interval.


Is it common to use the plural when the subject is an organization?

I have seen several occurrences of the plural for the name of an organization of company, but also occurrences of the singular. For example, "Mango Ltd. have just put their new 'mPhone 8' on the market, go buy it now!" (imagine "Mango Ltd." is a famous company that manufactures mobiles phones).     Mango Ltd. have just put their new 'mPhone 8' on the market   Is this sentence correct? or should it be     Mango Ltd. has just put their new 'mPhone 8' on the market   or maybe both are correct?


How can I change font rendering to sub-pixel BGR ordering?

In Ubuntu 11.10, I can't find a way to change the sub-pixel byte ordering to BGR. I have a BGR monitor and fonts look blurry because of this. I've installed gnome-tweak-tool but I can't find an option for the sub-pixel ordering. This used to be easy to do with the old font settings window.


Why do the Jedi say "May the Force be with you"?

May the Force be with you is the catch phrase of Star-Wars, but does it make any sense? Obi-Wan himself explains the force like this:  LUKE: The Force? BEN: Well, the Force is what gives a Jedi his power. It's an energy field created by all living things. It surrounds us and penetrates us. It binds the galaxy together.  If "it surrounds us and penetrates us", how could it not be with you?


Snow in the end of November on the Mont Blanc Tunnel?

I'm planning a travel in the end of November and I want to pass through the Mont Blanc Tunnel, beginning in Chamonix until Aosta. In this epoch of the year is it common to snow up coming to the tunnel?


Ball rotating in a circle without rope/string - why doesn't the ball fall after the peak?

I am currently learning about the problem of a ball rotating in a vertical circle - where we are interested in determining the minimal height $h$ required in order for a ball sliding from rest down a frictionless track (which consists of of a slope followed by a vertical circle) not to fall before completing a full round on the circular part. As far as I understand, the way to do it is to determine the minimal velocity required for the ball to reach the peak of the circle (marked by $v=?$ in the figure below) without falling off. My question is -  What guarantees that once the ball reaches the peak it will not fall in any other point on the circle that is more distant than the peak?  Looking forward to your help. Thanks!


Do I have to pay traffic fines issued by foreign governments?

I live in Italy and I own a car registered in Italy as well.  Next year I'm planning a long stay in the US (around 6 months) and I want to bring my car with me.  I was wondering: can I abuse carpool lanes, not pay for parking, break the speed limit, etc, with no consequences (while still driving safely, of course)?  If they give me a fine, is it just trash paper or can they somehow force me to pay?  (What I want to avoid is basically going back to the US 20 years from now and getting arrested for that, or something similar)


Can a Beast Master upgrade their companion with new powers or choose new forms for them at higher levels?

I am brand spanking new to D&D. I heard I picked a class that every experienced player is disappointed with.  I picked a Panther as my pet. I see a lot of lists with the original pets you can choose from, but I can't seem to find a list of pet upgrades (stronger pets at higher levels). My Panther is pretty good right now while I'm only Level 4, but she took ONE hit and almost died twice. So I have to be very careful with her. This seems like a really big issue and I am looking to see if there are options in the book to fix this. I haven't found any yet, but I might be missing them (as I said I'm new).  So, can a Beast Master upgrade their companion with new powers or choose new forms for them at higher levels?  Example: At Level 3, I get a Panther. At Level 20, I get a Super Mega All Star Fire Breathing Panther (not necessarily leveling up the Panther to Level 20. Accessing a stronger Challenge Rating). I don't know all of the Challenge Ratings, but I assume 1/4 is not very strong. So my confusion is: I got a 1/4 Challenge rating pet at Level 3. It does seem a little strange that I will have a weak pet at Level 3 and Level 20


What is the most efficient way to count a number of occurrences of a substring in another string in C++? For example, I have a very huge string like  "GQWHIWQGHWGGEEEGQIHIGWHIQWGHIEEEGPHIQPIWGHQPWGPHEEEGQIHWPWGQHPQWGEEE"   and I want to count how often "EEE" occurs.  I could go step by step in a for loop and check every letter if it's an E and if so, count them and if there are 3 es, increment a counter, but I guess there is a more efficient way of doing this.  Maybe a string function? I just wasn't able to find or google a suitable one.  I am searching for a clean C++11 solution.


how would I change the font color of the Windows 7 taskbar? with aero

I'm running Aero but it's next to impossible to read the task bar icon titles:    How would I change the font color to a different color (i.e black) so it's visible and makes the background and task bar look nice?


How am I getting null pointer exception when passing in objects into an array list?

Background  Hooray! Pi DAYYY! What I am trying to do is place random dots on a screen. The gui opens in screen state 0 and when I press 1 the screen state changes to screen state 1 which then should theoretically add random dots onto the screen. However, It doesn't work.  The problem  So if you look at the line "dotz.add(new Dot());" the compiler flagged that as a nullpointer exception but I wasn't sure why that was since i'm passing the Dot object  main controller code here-   package piday;  import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.util.ArrayList;  import com.sun.glass.events.KeyEvent;  public class controllah extends GameDriverV4 {     int state = 0;     Font font = new Font("Helvetica Neue", Font.BOLD,50);     Dot Dot = new Dot();     ArrayList<Dot> dotz;     int time = 0;     int delay = 50000;     public controllah() {      }      public static void main(String[] args) {         controllah h = new controllah();         h.start();     }       public void draw(Graphics2D win) {         if (state == 0) {             win.setColor(Color.BLACK);             win.drawString("'MONTE CARLO'", 10, 200);             win.drawString("'PRESS 1'", 10, 200+font.getSize()+10);             if (GameDriverV4.Keys[KeyEvent.VK_1]) {                 state = 1;             }             win.drawString("'Needle Thing'", 10, 200+font.getSize()+10+50);             win.drawString("'PRESS 2'", 10, 200+font.getSize()+10+50+15);             if(GameDriverV4.Keys[KeyEvent.VK_2]) {                 state = 2;             }         }           if (state == 1) {             /*             if (time>delay) {                  time = 0;             }             else {                 time ++;             }             */              dotz.add(new Dot());             for (int i = 0; i<dotz.size()-1; i++) {                 dotz.get(i).draw(win);             }          }          if (state == 2) {          }      } }   Dot object code here-   package piday;  import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.util.Random;  public class Dot {     Color incolor = Color.BLACK;     Color outcolor = Color.BLUE;     boolean in = true;     int x;     int y;     public Dot() {         Random rand = new Random();         this.x = rand.nextInt(800);         this.y = rand.nextInt(800);     }       public void draw(Graphics2D g) {         if (in) {             g.setColor(incolor);         }         else {             g.setColor(outcolor);         }          g.fillRect(x-1, y-1, 3, 3);      }  }   I reasoned that since I've been trying to add a new "Dot" object into the arraylist "dotz" that it would be fine since the new "Dot" is not a null object


Prove that a group is infinite and nonabelian.

I'm trying to solve a question of Hungerford's Algebra:     Show that the group defined by generators $a,b$ and relations   $a^2=b^3=e$ is infinite and nonabelian.   I guess a good approach would be to find an infinite and nonabelian group with two generators satisfying the same conditions and let Van Dyck do all the work. I've been thinking about the group of permutations $S_{\mathbb N}$, some groups of matrices, but I couldn't get it. Could anyone give me a hint? Thanks in advance!


Does there exist any cryptographic algorithm which encrypts data in such a way that it can only be decrypted after a certain period of time?  The only idea that I can think of, is something like this: Seed a PRNG with a public value. Run the PRNG for a week and use the final value it produces to encrypt the message. Now anyone who runs that PRNG for a week starting from the seed value you made public can decrypt the message. Obviously this breaks down since they could use more computational power than you; if the time span was years then Moore's Law would apply, etc.  Is there anything like this other than physically burying a private key on a USB stick in a literal time capsule?


When does the distance traveled in vertical and horizontal lines become the hypotenuse?

I am looking for a formal proof for the following problem: You travel from point A to point B on a right triangle only along its legs. For a 3 4 5 right triangle you would travel a distance of seven. Now imagine going in horizontal and vertical lines to point B while remaining within the right triangle (basically steps going from point A to B). You would again travel a distance of seven: . My question is once you start decreasing the size of your vertical and horizontal lines until they are infinitely small, when do you travel the length of your hypotenuse (for this example five) instead of the length of the legs (for this example seven)? Does this also mean at some point you travel a distance of in between the length of both legs and hypotenuse?


Prove that $ {|\int_{\gamma} e^{iz^2} dz | \leq \frac{\pi(e-1)}{4e}}$

Prove that      $$ \large{\left|\int_{\gamma} e^{iz^2} dz\right | \leq \frac{\pi(e-1)}{4e}}$$   where $\gamma(t)=e^{it}, t\in[0,\frac{\pi}{4}]$  Since  $|e^{iz^2}|=e^{-2xy}$ now  $x=\cos(t),y=\sin(t)$   This mean $-1 \leq-2xy \leq0$ which imply maximum value of $|e^{iz^2}|=1$  And hence  $$ \left|\int_{\gamma} e^{iz^2} dz \right| \leq  \frac{\pi}{4}$$  but this is not what we are supposed to prove. what is missing here. Any hint.  Thank you


Microdisplacements with adaptive subdivision turning black

I followed a microdisplacements tutorial on Blender Guru and I was able to create a texture fine. Here is a picture.  And then I turned on Adaptive subdivision. Here is a picture of what happened.  I know that this question has been asked before but I am using blender 2.79 so it should be fixed, right? Please let me know you ideas. Thanks


Moderator diamond missing on community wiki posts

On Meta Stack Overflow, , the original question author shows up as "Yvette Colomb" in the regular view, but "Yvette Colomb ♦" in the comments and revision history. The same applies to the answers, both the one by Yvette Colomb ♦ and the one by Undo ♦.  I believe it should show up with the diamond in the regular view too.    Screenshot:      This isn't site-specific: other examples can be found on other sites, such as Interpersonal Meta's , or the main Stack Overflow's  (Michael Stum ♦'s deleted answer).


Can the Kik Messenger be installed on a laptop running on Windows 10 Home Single Language 64-bit OS?

I live in India an in the last month I bought Lenovo laptop fitted with x64-based Intel 6th Generation Core i5 Processor.   This laptop came pre-installed with the Windows 10 Home Single Language 64-bit OS.  I want to install  on this laptop but I am not able to find out the exact, reliable and easy way to do it and use it on my new machine.  Would someone please let me know if Kik Messenger can be installed and runon my new machine.  If yes, how? If no, why?


Tabularx ignores initial skip in \rowcolors{Skip}{Color1}{Color2}

Here is a MWE with initial skip 3:  \documentclass{article} \usepackage[table]{xcolor} \usepackage{tabularx} \begin{document} \begin{table}   \rowcolors3{blue!20}{green!20}   \caption{With tabular}   \begin{tabular}{*3{p{0.33\columnwidth}}}     \hline     Time  & Money   & Length \\     \hline     Contemporary \\     Sec   & \$      & inch   \\     Hour  & cents   & cm     \\     \hline     Ancient \\     ?     & Dinar   & Yard   \\     horae & Drachma & Palm   \\     \hline   \end{tabular} \end{table} \begin{table}   \caption{With tabularx}   \rowcolors3{blue!20}{green!20}   \begin{tabularx}{\columnwidth}{XXX}     \hline     Time  & Money   & Length \\     \hline     Contemporary \\     Sec   & \$      & inch   \\     Hour  & cents   & cm     \\     \hline     Ancient \\     ?     & Dinar   & Yard   \\     horae & Drachma & Palm   \\     \hline   \end{tabularx} \end{table} \end{document}     EDIT Indeed, a duplicate. But, the short answer: tough luck buddy, is not so immediate in the original.


Would time reverse if we were to go faster than the speed of light?

Einstein states that the fastest thing in the universe is light. He also states that velocity interacts with time (faster you go the slower time is relative to you). The speed limit of the universe is light, so if you were to go at the speed of light time would stop... If something were to go faster than the speed of light then it makes sense for time to go backwards. This would technically not be possible because if time was to go backwards then the speed of light would return to its "fastest" state hence making it not possible to go faster....Is this true fact?  Or am I completely off....


How Would I Create A C# Console Event To Run When The Application Is Closing

I'm Creating A New Discord Bot For My Server When I Close The Console I Want The Application To Run A Little Bit Of Code  Reminder I Cannot Reference Windows.Forms Because I'm Using A .Net Core Console Application  How Would I Do This? As I'm Not Familiar With Consoles Quite Yet


Calculating the total number of surjective functions

It is quite easy to calculate the total number of functions from a set $X$ with $m$ elements to a set $Y$ with $n$ elements ($n^{m}$), and also the total number of injective functions ($n^{\underline{m}}$, denoting the falling factorial). But I am thinking about how to calculate the total number of surjective functions $f\colon X \twoheadrightarrow Y $.  The way I thought of doing this is as follows: firstly, since all $n$ elements of the codomain $Y$ need to be mapped to, you choose any $n$ elements from the $m$ elements of the set $X$ to be mapped one-to-one with the $n$ elements of $Y$. This results in $n!$ possible pairings. But the number of ways of choosing $n$ elements from $m$ elements is $\frac{m!}{(m-n)!\,n!}$, so the total number of ways of matching $n$ elements in $X$ to be one-to-one with the $n$ elements of $Y$ is $\frac{m!}{(m-n)!\,n!} \times n! = \frac{m!}{(m-n)!}$.  Now we have 'covered' the codomain $Y$ with $n$ elements from $X$, the remaining unpaired $m-n$ elements from $X$ can be mapped to any of the elements of $Y$, so there are $n^{m-n}$ ways of doing this. Therefore I think that the total number of surjective functions should be $\frac{m!}{(m-n)!} \, n^{m-n}$.  Is this anything like correct or have I made a major mistake here?


How do I keep a published adventure playthrough "on rails" without removing player agency?

Split from:     I want to run a campaign "from the book" for a group of new players (played RPGs before, but stuff much much lighter then D&D, and I've not DMed this edition before. I DMed D&D 4e once: over prepared in some areas, under prepared in others, so the pacing was horrible and off putting. I didn't run it again (although the players seemed happy to try again).  My concern: by trying to run it "from the book" I might accidentally railroad them too much, That changing events too far from the module will cause errors in continuity, that will force me to improvise too much for my first game.  I've flicked through both the Tomb of Annihilation where this could be fun with the hex-crawl random encounter portion without too much continuity problems, as well as Waterdeep: Dragon Heist which seems more reliant on knowing the lore of the town, and even though it's modular, certain events still unfolding in a given manner.  What happens if avoiding a direct fight or encounter runs counter to the published adventures? i.e. making friends with the goblins throws out a future plot point of the adventure that I'm not yet familiar with? Or they completely miss and don't find a clue.


Google's cache shows a blank page but Fetch as Google shows the content. Can Google index my site?

My site content is loaded by ReactJS by fetching a webservice (in componentDidLoad).  I need a strong SEO positioning on my pages, so I am trying to understand if Googlebot can read the content.    Fetch As Google     Page Cache (show with the Google search resuts)  No content - Empty page    Can Google actually fetch and index the content when Fetch As Google shows content but the Google cache does not?  Does Google bot really read my React-loaded HTML?  Do I need to pre-render my pages (i.e. )?


Parse this string "20160713161212" to datetime

I have datetime a string "20160713161212". It is a datetime in string with format YYYYMMDDHHIISS How to parse it to string with format "07/13/2016 16:12:12" in Python?


How to achieve the spread operator in IE 11?

For some "extraction" operation I am trying to get the following snippet work, without using the spread operator, because IE 11 doesn't knows about spread operators. works in Chrome, but not IE 11: html_col_width =[{"targets":0, "width":50}, {"targets":1, "width":100},{"targets":2, "width":442}]          ... some other code         order: [             [response.order_by_column, response.order_by]         ],         columnDefs: [                       ...html_col_width,                       {other: stuff},                       {other: stuff}     })  See columnDefs: ...html_col_width How can I achieve the following without the spread operator: columnDefs: [           {"targets":0, "width":50},           {"targets":1, "width":100},           {"targets":2, "width":442},           {other: stuff},           {other: stuff}     })  I have read and tried the following, but this is not working if the array of objects contains 2 keys: . The content at the provided link is about merging different objects, which makes the question rather different.


Reconciling different definitions of left-exact functor

I've seen three different definitions of what a left-exact functor is:    as a functor that preserves finite limits  as a functor $F$ with the property that if  $0 \to A \to B \to C \to 0$ is exact then  $0 \to F(A) \to F(B) \to F(C)$ is exact  as a functor $F$ with the property that if  $0 \to A \to B \to C$ is exact then $0 \to F(A) \to F(B) \to F(C)$ is exact   I'm having a hard time convincing myself that these three definitions are equivalent. Its clear off the bat that any functor with the third property also has the second (since exactness of $0 \to A \to B \to C \to 0$ implies exactness of $0 \to A \to B \to C$); but its not immediately obvious why a functor having the second property should also have the third property? And I'm having trouble seeing the link between the second and third definitions and the first definition too. I'm not looking so much for formal proofs as much as just an intuitive idea as to what exactly 'left-exact functors' are; and why (intuitively) these three definitions should be equivalent?


Why in the product notation, if the top value is less than the bottom one, the product results to $1$?

As an example, for any one dimensional real valued function $f$, if $q<k$ then $\prod_{i=k}^q f(i)=1$. I thought it was $0$ and that was breaking my intuition about some formulas I'm working with. This makes much more sense. Why is this true? Has the fact that the zeroth power of any real number equals one has anything to do with this?


Does Uranium-235 always split into Krypton and Barium in nuclear fission?

In most nuclear fission examples and exercises, the products of a nuclear fission of Uranium-235 are two light nuclei of Krypton and Barium:  $$\mathrm{ _0^1n + U \longmapsto Kr + Ba + energy }$$  Is there some fission reaction that produces more stable nuclei instead of Krypton and Barium?  Please mention all possible fission equations of Uranium-235. There's another question, is Uranium-235 the only fissile nucleus?


I'm trying to compile a hebrew Lyx file on Linux, and I get an error that the file 'bidi.sty' is not found. Which package has this file? I'd like to install it and see if it works...


A friend just showed me how to combine padlocks to achieve a lock that opens when k out of n people turn their keys.  I was wondering if there was something similar for encryption; using n or fewer public keys encrypt a piece of data so it can only be unlocked if at least k out of n specific private keys are applied.  I've tried ideas of stacking normal public key encryption, but without luck. I'm sure somebody must have done research on the topic, but I have no idea what such a thing is called. Maybe it's even widely accessible through standard encryption libraries?


I was just playing Minecraft the other day and I began to wonder. Are there any easter eggs in Minecraft, and if so, what are they?


Let's say you need to take a photo of a 200 feet wide wall, but can't move further away from it than 50 feet (won't get the entire wall in one photo).  Currently, I stand still, and take a bunch of photos from side to side in a rotating motion, and then stitch them together (like a panorama function would do). But that gives a heavily distorted image.  I wish there was a panorama function that let you walk sideways along the wall, instead of using a rotating motion. Does this exist? Does anyone have any tips?


Prove that $24|p^2-q^2$ where $p $ and $ q$ are primes $p>q>5$

This is my working  $p^2-q^2=(p+q)(p-q)$   As both the integers on right hand side are even .It is divisible by 4.  Primes are of form either $3k+1$ or $3k+2$ .we get 3 possible cases for for $p$ and $ q$ After substituting them we notice that it is also divisible by 3. It is divisible by both 4 and 3. Therefore it is also divisible by 12.But how to show that it is divisible by 24


What to do when I get an "attempt to read or write outside of disk 'hd0'" error and Boot Repair does not solve the problem?

I tried to install Xubuntu 13.10 on an older computer. I noticed some difficulties during installation that may be relevant to my problems. Notably:   The screen resolution was extremely low. The windows were much larger than the screen and I had to move them around to get to the "Next" button. The mouse cursor was a blur of colours that was flashing all the time.   The installation finished and I tried to reboot the computer. Immediately I got:  error: attempt to read or write outside of disk 'hd0'.  Entering rescue mode...  grub rescue>   I made a  USB disk, booted it and chose the default repair. The application told me that the problem is repaired and that If this does not solve my problem I should show  to someone who can help me.  What should I do next? I already tried to install Ubuntu and Xubuntu, both with no success.  EDIT:  I found a workaround.   Insert the Xubuntu live USB Select "try Xubuntu" In the settings menu select "install Xubuntu"   This fixed the problem for me. Since it is solved I cannot test the answer.


"no join predicate" warning with outer join

I have a database schema that looks something like this:  create table t_order (orderid int, customerid int) create unique clustered index ix_order on t_order(orderid) create index ix_order_1 on t_order(customerid)  create table t_product (productid int) create unique clustered index ix_product on t_product(productid)  create table t_orderItem (itemid int, orderid int, productid int) create unique clustered index ix_orderItem on t_orderItem(itemid) create index ix_orderItem_1 on t_orderItem(orderId, productId) create index ix_orderItem_2 on t_orderItem(productId, orderId)   (i.e. the orderItem table is a many-to-many between orders and products). Now I have an SQL statement like this:  SELECT      t_product.productid,     t_order.orderid,     t_orderItem.itemid FROM     t_product     JOIN t_order ON t_order.customerid = 101      LEFT OUTER JOIN t_orderItem ON t_product.productid = t_orderItem.productid AND t_order.orderid=t_orderItem.orderid    when there are a lot of rows in the database (and with statistics updated), I get the "no join predicate" warning on the left outer join, and the query takes a long time to execute.  Unfortunately it's not code I wrote myself and I don't really understand what that outer join is trying to do. I quite expect the SQL is "wrong" (i.e. doesn't do what the author intended) but I can't fix it unless I can get a handle on what it's actually doing at the moment.  I have seen other examples on the net of using AND inside the ON clause, but not involving other tables that aren't part of the join.  Can someone explain what the effect of this join is and why it causes a Cartesian product to be generated.


What is a good place to post subjective/argumentitive programming questions

I did a , but came up with no real helpful results.  Sometimes a subjective/argumentative question can be a helpful learning tool to help explore what others thing about certain subjects.  I've seen some pretty good "subjective" questions on StackOverflow get shut down pretty quick, even though the outcome of the discussion could have been really helpful.  So if we can't ask these questions on SO, is there a StackExchange site that will tolerate subjective/argumentative questions?


In The Matrix, why didn't Machines use solar energy?

Its a very common answer to this:       After Machines took over, sunshine never reached earth surface.   Isn't it shown like Sun was destroyed? In Revolutions (III), sunshine was displayed when our heroes flied to higher altitude. Why didn't Machines choose solar energy of higher altitude and outer space?


Cannot change brightness setting using function buttons or using the brightness control bar on HP laptop

I faced this problem when I bought a new HP Laptop, hoping to install Ubuntu, but when I booted from a Live DVD the brightness was set at max and couldn't be changed with the function keys or from the brightness settings bar, and it was the same after installation.   HP Probook 4440s Intel core i5 3210m  Intel HD 4000 graphics  6gb ram Motherboard-HP


If a student brought butter to your class for use for deep frying food, what reasons would you give regarding the unsuitability of butter for deep frying?


echo -e "SUCCESS=$(tput setaf 1)$(tput setab 7)FALSE$(tput sgr 0) Share=$DIR1  \                                 LastCheckedDate=$(date +%Y_%m_%d_%H:%M:%S)" >> $ERROR_LOG    In error log I am getting ASCII characters. I need color output to redirect.


"Failed to download repository information" when trying to change mirrors

I recently installed Ubuntu 16.04 in my machine, however when trying to perform sudo apt-get update I got the following message:  W: The repository 'http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease  Connection timed out after 120000 milliseconds E: Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found W: Some index files failed to download. They have been ignored, or old ones used instead.   After some research I thought it would be useful to change my download mirror, however after selecting the recommended mirror and trying to update I get the error message:     Failed to download repository information.Check your Internet connection.   with the following details:    W:The repository 'http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu xenial Release' does not have a Release file.  W:Data from such a repository can't be authenticated and is therefore potentially dangerous to use., W:See apt-secure(8) manpage for repository creation and user configuration details.,  W:Failed to fetch https://deb.opera.com/opera-stable/dists/stable/InRelease  Connection timed out after 120000 milliseconds E:Failed to fetch http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found  W:Some index files failed to download. They have been ignored, or old ones used instead.   Any idea how I might solve this problem? Thanks in advance.


Combinatorial expression for all ternary strings that don't have consecutive 1's and 2's

The problem is: Find $C_n$, the number of all ternary strings (length $n≥0$) that don't have consecutive 1's and 2's, using combinatorics.   Any tips or advices?


I have heard that there are some Pokémon that are region specific.  Could someone please clarify which Pokémon are region specific and in which regions that they can be found in?


What happens if my outgoing flight is canceled on the day my French student visa expires?

First of all, I read the other posts similar to this case, but the two answers were conflicting.       I have a French Type D Student Visa that is valid until August 15th. My flight flies of CDG on the night of August 14th.  So several questions...  What happens if my flight is delayed or cancelled past the 15th?  When the visa says it will expire on the 15th, does that mean that I can legally leave on the 15th? Or must I leave before the 15th?  Who can I contact for more information about this case since the U.S. consulate in Paris says to not call them for Visa information?  Thank you in advance.


Find an orthonormal basis for the subspace of $\mathbb R^4$

Find an orthonormal basis for the subspace of $\mathbb{R}^4$ that consists of vectors  perpendicular to $u = (1, -1, -1, 1)$.  I know the components of the vector $u$ is $u_1 = 1, u_2 = -1, u_3 = -1, u_4 = 1$.  I managed to find a vector $v$ that is perpendicular to the $u$.  This is done by $u_1v_1+ u_2v_2+ u_3v_3 + u_4v_4 = 0$.  This means $v_1 = -1, v_2 = 1, v_3= 1, v_4 = -1$  because $(1)(-1) + (-1)(1) + (-1)(1) + (1)(-1) = 0$.  So I found a vector $v$ perpendicular to the given vector $u$ which is $(-1, 1, 1, -1)$.  So my question would I be able to call $(-1, 1, 1, -1)$ my basis and perform Gram Schmidt process on it?


Where do I ask about programming conventions?

I try to be a better programmer every day, and a big part of that is learning from people who are more experienced than me. (You are all awesome teachers!)  For example, in Java, if I want to know if, in general, I should set a field by passing in an argument when I create it or setting the field in the constructor, how do I find that out? This assumes I always know what to initialize the field to, such as setting something to a random position. It is an opinion based question, but there is a generally accepted practice (dependency injection). I would expect the question to be closed as being "primarily opinion based".  This answer may be opinion based, but someone who is asking this question does not have enough knowledge to form an educated opinion of his or her own. The asker would not know dependency injection is a thing, so would not know to read up on it.  The inability to ask questions like this, for me at least, slows my improvement as a computer scientist.  So my question is, where can I ask questions about programming conventions? This is a followup to my earlier question:


How can you detect when a player is looking at an entity in Minecraft Bedrock?

I'm trying to detect when a player is looking at another player to re-create Dream's 'Speedrunner v Assassin' video with GeorgeNotFound, in which if George looks at Dream, Dream becomes frozen. I would do this in Java but my friend only has Bedrock. Anyone know how to do this with command blocks?


I have 1800 frames of animation to render for a school project thing, of which only 1/4 of it has animation. I have 7 more days and my computer just doesn't have the strength to do all of the 1800 frames in that time.  Can you skip frames that have no animation? Because that would really help me if there were only around 400 frames to render.  This is different than the other one because those answers weren't Windows compatible. Also, is there a way to only render 1 frame, then only a section on that frame onwards? I have what is technically a still image for ~800 frames, but only a small section is moving, is there a way to render the whole image, then only render and then use that image for 800 frames but only re render a small part of the 800 frames every frame... I didn't know how to word that right but I hope you get what I mean


I have a form where I want the user to input a few fields and the form will calculate the total and percentage of goal. I'm new to JavaScript, and I don't know how to calculate a percentage. When I try parseInt(total)/parseInt(goal)*100 I get a NaN error:  <html>    <head>      <style media="screen">         .testform INPUT {             display: block;             margin-bottom: 10px;             border: 1px solid #212121;             height: 35px;             font-size: 16px;         }      </style>      <script type="text/javascript">         calculate = function() {             var cash = document.getElementById('a1').value;             var checks = document.getElementById('a2').value;             var coin = document.getElementById('a3').value;             var goal = document.getElementById('goalamount').value;             var total = document.getElementById('a4').value;              document.getElementById('a4').value = parseInt(cash)+parseInt(checks)+parseInt(coin);             document.getElementById('a5').value = parseInt(total)+parseInt(goal);         }     </script>   </head>   <body>     <form class="testform">       Goal amount <input id="goalamount" type="text" value="3000"/>       Cash Collected <input id="a1" type="text" />       Checks Collected <input id="a2" type="text" />       Coins Collected <input id="a3" type="text"  />       Total Collected <input id="a4" type="text" name="total_amt" onblur="calculate()" />       Percent of Goal<input id="a5" type="text" name="goal_amt" />     </form>   </body> </html>


Is there any update on if there is a fix to get the keyboard working. I have tried installing the latest kernel.


Simple way to unbox an array of Doubles in Java

I'm wondering if there is a simple one liner that would unbox an array of Doubles into an array of doubles.  Obviously it could be done simply using a for loop, but I'm just curious to see if Java has some fancy auto-unboxing feature that allows the conversion without explicitly writing a for loop.


Ubuntu 14.04, problem when install gstreamer1.0-libav, unmet dependencies

Suddenly my Ubuntu stopped playing video. When I open a video, the player suggests that I install  gstreamer1.0-libav. However, it fails to install.  I tried installing it manually, here is the error message:  $ sudo apt-get install gstreamer1.0-libav 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:  gstreamer1.0-libav : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or                                libavcodec-extra-54 (>= 6:9.13) but it is not going to be installed                       Depends: libavformat54 (>= 6:9.1-1) but it is not going to be installed E: Unable to correct problems, you have held broken packages.


How to make user.html.twig template for two different pages (users)?

I want to make user.html.twig template for user ID1 is not such as to all other users. How to?  I tried this code in MYTHEME.theme file:  function MYTHEME_theme_suggestions_page_alter(array &$suggestions, array $variables) {   if ($user = \Drupal::routeMatch()->getParameter('users')) {     // For make files, like:     // page--user--[id].html.twig     $suggestions[] = 'page__user__' . $user->uid();   } }   But template page--user--1.html.twig or page--user--%.html.twig don't work. Cache is clear.


Ubuntu 18.04 boots to a black screen after installing AMDGPU Pro driver.  CPU: Core i5 7200U GPU: R7 M445 RAM: 8GB DDR4


Concerning the definition of a valuation map

In lecture I learned the following definition of valuation: Let $(K,+,\cdot)$ be a field and let $(G,+)$ be a totally ordered group. A map $v: K \longrightarrow G\cup\{\infty\}$ is a valuation if the following properties hold:  $v(ab) = v(a)+v(b)$ $v(a+b) \ge \min\{v(a),v(b)\}$ $v(a) = \infty \iff a = 0$  Then we proved that:  $v(1) = 0$ $v(a^{-1}) = -v(a)$ $v(-a) = v(a)$ $v(a - b) \ge \min\{v(a), v(b)\}$  Later in the lecture we used the "easy fact" that $$ \text{If }v(a) \ne v(b), \text{ then } v(a+b) = \min\{v(a), v(b)\}$$ I do not understand why this is true. I looked on  and there they define a valuation to so that it has this property. But is it possible to derive this from my definition?


How to Change the Origin when moving a Collection Instance

I have created an Collection Instance, when I try to move it, the origin(to snap at vertices or edges) is far away from the object, I want to set it.    In the image, the Collection Instance is selected, the cross is far away from the object and I can´t set it using "Set Origin to 3D Cursor"  What Am I missing?


ArcGIS 10.4 Installation Error- Error 1325 is not a valid short file name

I am planning to do fresh install of ArcGIS 10.4.1 on win 10 machine and i am keep getting same error 1325- is not a valid short name.  Also i saw the solution in other post ()  suggesting to remove ESRI from below location but  in my registry this not exists HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ESRI so that option is not working for me.  Also I made changes to registry HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders and  I reset the data to %USERPROFILE%\My Pictures but still no luck.  Any other solution to try please?


Edit: (Not a duplicate) This question is not related to another   question on the forum, this is related also to android 4.3 jelly bean,   and furthermore I have provided my serial number of Galaxy S4, so read   the question fully.   I have a Samsung Galaxy S4 i9300XXUAMDK, and I still have 4.2.2 Jelly Bean. I don't understand why I am not even getting the 4.3 Jelly Bean update when 4.4 KitKat is rolling out for Samsung S4. Does someone have any clue?


I want to change the CMD startup directory when I launch it via Start+R Currently, it points to my users folder. I need it to point to C:\Windows\System32\ When I navigate using explorer to C:\Windows\System32\ and run CMD from there (Shift+RightClick on an empty area), it starts in the desired path. When I run from Win+R, it starts from the users folder. I suspect I need to change the registry or an environment variable. Anyone knows how to ? THIS QUESTION IS DIFFERENT FROM THE OTHERS FOR THE REASON EXPLAINED BY @KARAN (READ THE THIRD COMMENT FROM THE ANSWERS BELOW) DIFFERENT ANSWERS ONLY WORK FOR SHORTCUTS Edit: Found the right answer hidden on the pit of the provided links, kilometers away from the supposed "right answer" [HKEY_CURRENT_USER\Software\Microsoft\Command Processor] "Autorun"="cd C:\Windows\System32\"


Convergence and limit of a recursive sequence $x_{n+1}=\sqrt{p+x_n}$

Let $p>0$ and suppose that the sequence $\{x_n\}$ is defined recursive as $$ x_1 = \sqrt{p}, \quad x_{n+1} = \sqrt{p + x_n}, $$  for all $n \in \mathbb{N}$.   How can I show that $x_n$ converges, and find its limit?  I can see that one upper bound is obviously $1 + 2\sqrt{p}$. Can I use this fact somehow?


Which version is recommended for my system?

my system specifications are: Compaq Presario model CPU: Intel Celeron(R) CPU 2.93GHz Speed and Memory: 2.95GHz, 632 MB of RAM hard disc: 40 GB


public static void main(String[] args) throws IOException{      String[] token = null;     int i, n = 0;     int lineCounter = 0;      Scanner file1 = new Scanner(new File(args[0]));      int[] lineNumber = new int[lineCounter];      for(i=0; i<lineCounter; i++) {         lineNumber[i] = n++;     }      String[] word = new String[lineCounter];     file1 = new Scanner(new File(args[0]));      while(file1.hasNextLine()) {         i++;         token[i] = file1.nextLine();   I keep trying to run the code, but it keeps giving me a null pointer exception. Any suggestions to fix this?  The token is referencing random words in a file called file1.


Implementing Passive Wisdom (Perception)

So, once this is calculated (10 plus modifiers), who rolls (assuming a d20???) to see if something is seen/heard/etc...and since modifiers push the number higher for the character, I would assume the roll needs to be under that number for the character to have success? If I am wrong, how does this work?


How to limit the bandwidth on a per-application (or per-process) basis in OS X Yosemite?

Whenever I use Homebrew or Apple Store to download a large application, it sucks all my available bandwidth and I am then unable to browse the web.  How can limit the bandwidth per-application or per-process in OS X Yosemite (command line preferred, but GUI apps accepted)?  I've played a bit with  application, which suggested I use ALF firewall, but I don't know how to set it up.


Interesting Limit with Mascheroni Constant

Compute the limit  $$\lim _{n \rightarrow \infty} \left(   \frac{1 + \frac{1}{2} + \frac{1}{3} + ... + \frac{1}{n}}{\ln n}   \right) ^{\ln n}$$  I know how to do  $$\lim _{n \rightarrow \infty} \frac{H_N}{\ln (n)} = 1$$ via L'Hopital's rule, but I'm not quite sure whether or not something similar is applicable here. I'm particularly concerned about the growth rates of the numerator and denominator in this case, but I haven't been able to make any meaningful progress. I would greatly appreciate assistance on this problem. Thank you.


logistic regression - unbalanced classes

Let's suppose I have a dataset with classes A and B, with class A occurring in 1% of cases and class B occurring in 99% of cases. Perhaps class A is a loan default.  Suppose I want to "understand" what factors make one class A vs B by fitting a logistic regression to dependent variables X and then looking at model coefficients. Does it make sense to put a higher class_weight on class A, such as putting a weight of 99 on class A and 1 on class B? Or does the intercept already take care of this?  What if the logistic regression has a regularization parameter, would class imbalance matter more in this scenario? (because the model would be more inclined towards a constant "Predict B" model to reduce the penalty on coefficient size).   I've seen many economics papers in which a unregularized logistic regression is run on data and then the authors interpret coefficient sizes and significance, just wondering how valid this is.


Evaluate $\int_0^{\frac{\pi}{2}} \frac{\sin^3(x)}{\cos^3(x)+\sin^3(x)} dx$   $$\int_0^{\frac{\pi}{2}} \frac{\sin^3(x)}{\cos^3(x)+\sin^3(x)} dx=\int_0^{\frac{\pi}{2}} 1-\frac{\cos^3(x)}{\cos^3(x)+\sin^3(x)} dx=\int_0^{\frac{\pi}{2}} 1-\frac{1}{1+\tan^3(x)} dx$$  Then to evaluate $\int \frac{1}{1+\tan^3(x)}dx$, I let $\tan(x)=t$ and hence $dt = \sec^2(x) dx$, which implies $dx=\frac{1}{\sec^2(x)}dt$.  Then I don't know how to continue.


I installed MySQL server and I want to allow SSL support.  I added these lines to my.cnf  [client] ssl-ca=/etc/mysql/ca-cert.pem ssl-cert=/etc/mysql/client-cert.pem ssl-key=/etc/mysql/client-key.pem  [mysqld] ssl-ca=/etc/mysql/ca-cert.pem ssl-cert=/etc/mysql/server-cert.pem ssl-key=/etc/mysql/server-key.pem ssl-cipher=DHE-RSA-AES256-SHA   I created certificates  openssl genrsa -out ca-key.pem 2048; openssl req -new -x509 -nodes -days 1000 -key ca-key.pem -out ca-cert.pem; openssl req -newkey rsa:2048 -days 1000 -nodes -keyout server-key.pem -out server-req.pem; openssl x509 -req -in server-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem; openssl req -newkey rsa:2048 -days 1000 -nodes -keyout client-key.pem -out client-req.pem; openssl x509 -req -in client-req.pem -days 1000 -CA ca-cert.pem -CAkey ca-key.pem -set_serial 01 -out client-cert.pem;   I changed chown to mysql for *.pem certicates  -rw-r--r-- 1 mysql mysql 1407 Mar 10 13:00 ca-cert.pem -rw-r--r-- 1 mysql mysql 1675 Mar 10 12:50 ca-key.pem -rw-r--r-- 1 mysql mysql 1277 Mar 10 14:29 client-cert.pem -rw-r--r-- 1 mysql mysql 1704 Mar 10 14:29 client-key.pem -rw-r--r-- 1 mysql mysql 1045 Mar 10 14:29 client-req.pem -rw-r--r-- 1 mysql mysql 1277 Mar 10 14:28 server-cert.pem -rw-r--r-- 1 mysql mysql 1708 Mar 10 14:28 server-key.pem -rw-r--r-- 1 mysql mysql 1045 Mar 10 14:28 server-req.pem   then I restarted MySQL server and I logged to service like root and checked the status. But it is still showing that ssl is not in use. What I did wrong?


Why a bigger drop of water splits into many tiny droplets while falling from a height?    $$OR$$      Why the cohesive force becomes weak when water is allowed to fall freely?


When ever i am updating using apt-get update or via Synaptic, there will be some errors. Can any one help me to solve the issue? I Google about it a lot, but didn't succeed.  Errors are given below:  W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems


Is it possible to disable restarts in Windows 10?

My laptop has a weird issue where the touch pad doesn't work after the device is restarted. It works fine after a normal shut down, though. Is it possible to disable restarts so that the computer will always shut down fully?


How many attacks can a fighter with two-weapon fighting make at 5th level?

I have a 5th level fighter with the Two-Weapon Fighting fighting style.   What is the number of attacks I can make?   I say 4 attacks, but others say 3 because they say the rule on page 72 states that I get (only) 1 extra attack.


System of two Equations: $\sqrt x+y=11$ and $\sqrt y+x=7$

A friend of Mine gave me a system of two equations and asked me to solve them $\rightarrow$  $$\sqrt{x}+y=11~~ ...1$$ $$\sqrt{y}+x=7~~ ...2$$  I tried to solve them manually and got this horrendously complicated fourth degree equation $\rightarrow$  $$\begin{align*} y &= (7-x)^2 ~...\mbox{(from 2)} \\ y &= 49 - 14 x + x^2 \\ \implies 11&= \sqrt{x}+ 49 - 14 x + x^2 ...(\mbox{from 1)}\\ \implies~~ 0&=x^4-28x^3+272x^2-1065x+1444 \end{align*}$$   Solving this wasn't exactly my piece of cake but I could tell that one of Solutions would have been 9 and 4   But my friend kept asking for a formal solution.  I tried plotting the equations and here's what I got $\rightarrow$    So the equations had two pairs of solutions (real ones).  Maybe, Just maybe I think these could be solved using approximations.  So How do i solve them using a formal method (Calculus,Algebra,Real Analysis...)   P.S.  I'm In high-school.


How to set Sender Address in flow's "core action"

I am struggling to set the sender address when sending a simple email using the Flow's core email action.  No matter what I put in the sender address field, the running user's email (my email) appears as the sender.


How much dragonglass damage must a wight or White Walker suffer before dying?

In season 8 episode 3 of Game of Thrones, we see       a giant wight.   This creature seems to be very hard to kill. In fact, someone has to stab one of its eyes in order to kill it.  As far as I know, this injury may or may not have been deadly to a living human being.   So, how much of an injury is needed in order to kill a wight?  Would stabbing the creature in the feet (with dragonglass) work? If you stab the belly, is there a minimal "depth" you need to go in?


I have a list of object that looks like this.  hand = [ Card(10, 'H'), Card(2,'h'), Card(12,'h'), Card(13, 'h'), Card(14, 'h') ]   Card(10, 'H) here is not a tuple, but an object. I know how to sort this list if each item in the list was in a form of tuple, like this,  hand = sorted(hand, key = lambda x: x[0])   but I have no idea how to sort a list of objects. I want to sort my list by the first input value, which is the number in Card()  How can I do this?   Edit: Here's the definition of Card().  class Card(object):      RANKS = (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)      SUITS = ('C', 'D', 'H', 'S')      def __init__(self, rank=12, suit='S'):          if (rank in Card.RANKS):             self.rank = rank         else:             self.rank = 12          if (suit in Card.SUITS):             self.suit = suit.upper()         else:             self.suit = 'S'      def __str__(self):         if (self.rank == 14):             rank = 'A'         elif (self.rank == 13):             rank = 'K'         elif (self.rank == 12):             rank = 'Q'         elif (self.rank == 11):             rank = 'J'         else:             rank = str(self.rank)         return rank + self.suit      def __eq__(self, other):         return (self.rank == other.rank)      def __ne__(self, other):         return (self.rank != other.rank)      def __lt__(self, other):         return (self.rank < other.rank)      def __le__(self, other):         return (self.rank <= other.rank)      def __gt__(self, other):         return (self.rank > other.rank)      def __ge__(self, other):         return (self.rank >= other.rank)


error when trying to send email using smtp 'System.Net.Mail.SmtpException' in System.dll

trying to send a password recovery email using the smpt protocol in c# and for some reason I can't seem to get it right. I will highly appreciate it of someone could help. This is what I was relying . And Here's the code:   enter cpublic void sendEmailWithPass( string username , string email , string password)     {         try         {             var fromAddress = new MailAddress("xxx", "xxx");             var toAddress = new MailAddress(email, "CLIENT!");             const string fromPassword = "xxx";             string subject = "recover password";             string body = "heloo! \n according to your request your password is: \n " + password;             var smtp = new SmtpClient             {                 Host = "smtp.gmail.com",                 Port = 587,                 EnableSsl = true,                 DeliveryMethod = SmtpDeliveryMethod.Network,                 UseDefaultCredentials = false,                 Credentials = new NetworkCredential(fromAddress.Address, fromPassword)             };             using (var message = new MailMessage(fromAddress, toAddress)             { Subject = subject, Body = body })             { smtp.Send(message); }             SendMessage("&answerForgotRequest&true!");         }         catch         {             SendMessage("&answerForgotRequest&failed!");         }                 }   in addition, this is the line which corresponds to the error   public void answerServer(string message)     {         string ans = message.Split('&')[2];   if (ans.StartsWith("failed!"))         {             MessageBox.Show("an error was occured while trying sending the mail");         }   ]


Fallout Shelter :: Does Mr. Handy Pick Up Loot?

I know that Mr. Handy will pick up caps when on walkabout; will he also pick up weapons and/or outfits?


Filesystem to use for external hard drive to be used with Mac, Linux and Windows machines

Possible Duplicate:          I have a rather large USB drive that I'd like to be able to use across the different machines I own.  I'm having a hard time figuring out what would be the best file system to use on it to be able to read/write things from the 3 OSs I'm in contact with: Windows, Linux and Mac.  Suggestions?


I want to show some nicely formatted source code, e.g.:  er ist ein bisschen ein ötto geworden   My document:  \documentclass[a4paper,10pt,ngerman]{scrartcl} \usepackage{babel} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[a4paper,margin=2.5cm]{geometry} \usepackage{listings}  \begin{document} Ünnormal diggi hä \lstinputlisting[language = python]{testinclude.txt} \end{document}   The text outside the listing works, but the txt file produces the error Package utf8x Error: Character182appearedalone.  How do I show code that contains special characters?  Like  suggested, I tried escaping the ö or setting a literate to \''o, but both times I only got this in utf8 and utf8x:


Procedural generation for a text adventure game

I'm working on a text adventure game written in Python and I am at the point where I need to implement procedural generation for the map. As the user moves around, spots are generated, so the entire map is not generated at once but rather it's generated as the user gets closer. For example, the user begins at the position (0, 0) and so the spots generated in the beginning of the game are the eight spots/squares surrounding (0, 0) and of course (0, 0) itself.  I'm have trouble finding a simple way to decide if a "spot" or square is plains, forest, beach, ocean, mountains, etc. I don't want it to be totally random, I want there to be some cogency.  Any help would be appreciated. Thank you.


Do the -ing and to-infinitive "verbs" that follow catenative verbs always take the grammatical function of "noun"?

I'm wondering whether or not the verb form that follows a catenative verb has the grammatical function of a noun or of a verb, and whether or not it depends on the first catenative verb.  "I like to run" "I like running"  the -ing and the to infinitive can easily be switched in this sentence, and it seems to be implying "I like [the act of[running]]", so both the infinitive and the gerund are nouns.  "I like to run marathons"/"I like running marathons"   These seem like they might still be nouns but need "verb powers" to take the object, and then these sentences really turn into "I like [the act of [running marathons]]"/ "I like [to be in the state of [running marathons]]".  Is this true for both the -ing (and so it would be a gerund) and the to-infinitive? Are they, sort of, initially verbs so that they can take the object, and then the verb + object becomes a noun phrase?  If this is true, I'm also wondering if the same rules apply for a catenative verb such as "start".  "I started to run in the mornings" "I started running marathons in 2008"  "start" is a catenative verb that isn't a cognitive/emotion verb, and specifically suggests action. So what is the grammatical function of the to-infinitive and -ing verb forms? are they verbs? are they nouns? It just seems incorrect to say that their grammatical function is a noun, but everything I've seen on the internet is pretty vague. I've also seen that to-infinitives are never verbs, but only from one source and it just doesn't seem right to me.  So any ideas on the true grammatical function of the -ing and the to-infinitive after a catenative verb? And is it universal across catenative verbs, or does it depend on the verb category?


Seek for an algebraic solution for where to build the bus stop question?

What is the algebraic solution for the following bus stop problem? There are $5$ people living along a line at different locations (say $a_1,a_2,a_3,a_4,a_5$).  Where should we build the bus stop so that the total walking distance of these 5 people is minimum? I can only think intuitively to answer this question.  Since this question is similar to ask the minimum value of the sum of absolute values like: $|x-1|+|x-2|+|x+3|$, I would expect an algebraic approach too. My intuitive thought:  If is $1x$ person , build at $a_1$. If there are $2x$ people, build anywhere in between (and including) $a_1$ & $a_2$ If there are $3x$ people, build at $a_3$. If there are $4x$ people, build anywhere in between (and including) $a_2$ & $a_3$ If there are $5x$ people, build at $a_5$.  In general,  if the number of people is odd ~ $2n+1$, build at the center $a_n$ (in this case $a_3$). If the number of people is even ~$2n$, build at any location between (and including) $a_n$ & $a_{n+1}$.


Is there a sequence such that $\sum{a_n}$ diverges but $\sum{na_n}$converges?

Is there a (real) sequence such that $\sum{a_n}$ diverges but $\sum{na_n}$converges?


I have an object with a single mesh, and it has a subdivision surface modifier on it. I'm using BGE, and I cannot figure out, how to render both the wireframe (let's say in white) and the faces (let's say in red) of this object at the same time.


Why do we use have instead of has with doesn't like in the following sentence:  He doesn't have(not has) to go there.  Please explain the grammatical reason behind it.  Thanks


I've read documentation and StackExchange for two days or more and installed 2.74, but I'm still lost.  I watched one Warp tutorial which appeared to do what I wanted, which is to create a bridge between the two objects, but I couldn't duplicate the result.  I got some modification between the end points, but no fill. The objects which I'm working with present matching planes, but if one were scaled, that would be my next question.  Also, the "curve" option of warp seems to be what I need, but there should also be some rotation to get a smooth transition between the two objects.     Thanks for any help.  The 90 degree question and bending pipe didn't answer my question.  @cegaton suggested the following as a possible solution.  This may be the answer, but it may also be beyond my life expectancy to implement.      What a comprehensive user friendly program.  The succinct statement of my problem may be: join two faces whose normals don't with a projection of a user shape. Can curve, bend or warp do that?  I haven't been able to do that, and, from Allen's post, doubt that they can.


$f$  be an entire function such that $f(0)=0, f(1)=2$ Then  (i) there exist a sequence $(z_n )$ such that $|z_n | > n$ and $|f (z_n )| > n.$  (ii) there exist a sequence $(z_n )$ such that $|z_n | > n$ and $|f (z_n )| < n.$  (iii) there exist a bounded sequence $z_n  $ and $|f (z_n )| > n.$  (iv) there exist a sequence $(z_n )$ such that $|z_n | \to 0$ and $f (z_n ) \to 2 .$  $f(z)=z(z+1)$ is an entire and satisfis the condition,but this function does not satisfies (iv) by taking $z_n={1\over n}$, (i) is satisfied by taking $z_n=n+1$, but what  am I supposed to do here?  what about (ii),(iii)? thanks for the help.


How find this integral $\;\int\frac{\sqrt{\ln{(x+\sqrt{x^2+1})}}}{1+x^2}dx$

Find the integral  $$I=\int\dfrac{\sqrt{\ln{(x+\sqrt{x^2+1})}}}{1+x^2}dx$$  My try: let $$x=\tan{t}$$ $$I=\int\sqrt{\ln{(\tan{t}+\sec{t})}}dt$$ note $$\tan{t}+\sec{t}=\dfrac{\sin{t}}{\cos{t}}+\dfrac{1}{\cos{t}}=\dfrac{\sin{\dfrac{t}{2}}+\cos{\dfrac{t}{2}}}{\cos{\dfrac{t}{2}}-\sin{\dfrac{t}{2}}}=\tan{\left(\dfrac{t}{2}+\dfrac{\pi}{4}\right)}$$then I can't,Thank you


No internet connection after ubuntu server 20.04 install, ifconfig not available

I recently installed Ubuntu Server 20.04 LTS on my desktop, and found out there was no internet connection even though I had the LAN cable connected. ifconfig and iwconfig failed saying the corresponding packages net-tools and wireless-tools were not installed.   EDIT  Here is the info requested. Please find the image


Tracing records of Royal Navy personnel who died in World War 2?

My grandmother's brother was in the Royal Navy during WW2 and was killed. I know very little about him other than his name and I think I have the year he was born.   By searching his name - William John Miller - online I have come up with one that I think could be him but want to find a way to verify it.  According to this  I found via google, a William John Miller went down with the HMS Blean in Dec 1942 (I was always told the HMS Hood, but there is no record of him in the roll of honour). It lists his number there as well - C/KX.137399 - so what would be the best way to find out conclusively if this is him. I know his parents names and the general area he lived in pre-war.


Nautilus gives a warning when opened in the current directory from the terminal

I have referred this link:   but ever since I upgraded to 17.10, running nautilus ., when I am already in a particular directory using cd in the terminal, gives me the following message.  sys:1: PyGIWarning: Nautilus was imported without specifying a version first. Use gi.require_version('Nautilus', '3.0') before import to ensure that the right version gets loaded. Initializing nautilus-dropbox 2015.10.28   How do I fix this?  I am running Ubuntu 17.10 in Xorg mode


Prove that $x^3-2$ and $x^3-3$ are irreducible over $\Bbb{Q}(i)$

Let $F=\Bbb{Q}(i)$. Prove that $x^3-2$ and $x^3-3$ are irreducible over $F$.   How do I go about this? Should I just say that the roots of $x^3-2$ are $2^{1/3},2^{1/3}e^{i2\pi/3},2^{1/3}e^{i4\pi/3}$, which do not belong to $\Bbb{Q}(i)$?


same user two login - chat username on site x shows SO user name

I was using multiple SO sites,like many others, under my one email address. Later I decided to break one my account on one SO site (lets call it X.SE) because I did not want to have public profile on that account. The SO staff helped me create a separate account, with some restrictions, that is   I must not login using my old email address. If I do my account may automatically get merged again. I will lose some of my important gadgets that I worked hard for.   Now I understand this feature is not fully supported and I am fine with. But the problem I am facing now is when I chat on this site X.SE, my SO username is shown instead of my X.SE user name. Can this be fixed at least so I can stand independent on that site and get invoved in healthy discussions?


How can I see which version/release of Windows 10 is installed on my computer?

My underpowered netbook which came with Windows 10 never managed to succeed in updating itself to the first major upgrade to Windows 10 at about the end of 2015. (My similarly underpowered Windows tablet had no problem with it.)  Now it seems to be installing updates quite often onto itself, so I'm always interested to see if it's managed to update to a newer Windows 10 or only installs the smaller patches, device driver updates, etc.  I thought I could see this info by clicking on the message that tells me "updates were installed", but now I don't see anything there.  I'm quite surprised that by using the "Search the web and Windows" or by Googling I can't find a straightforward way to see the OS version info. Even the System Information page only tells me "Windows 10". What very obvious thing am I missing?


How to split a string after a particular character in jquery

Here is my code :  var string1= "Hello how are =you";   I want a string after "=" i.e. "you" only from this whole string. Suppose the string will always have one "=" character and i want all the string after that character in a new variable in jquery.  Please help me out.


How to increase my /boot partition size in Ubuntu 16.04?

I am trying to increase by /boot as it has reduced the capacity to install new updates. The partition details are given below:    Please suggest me a way to increase the /boot partition to atleast 1GB


List all valid kbd layouts, variants and toggle options (to use with setxkbmap)

Is there a way from command line to retrieve the list of all available keyboard layouts and relative variants?  I need to list all the valid layout/variants choices to be used then from setxkbmap.  Also about the layout toggle options, is there a way to retrieve a list of all available choices (e.g. grp:shift_caps_toggle , ...)  I know that with  setxkbmap -query   I retrieve the list of my current ones, but I need the whole list of options.  UPDATE:  I've been told about the command  man xkeyboard-config   which provides all the info to the command line.  Furthermore, using  man -P cat xkeyboard-config   the output goes to stdout and can be parsed with scripts or c code


everytime i try the table goes out of the page.


Is there a rule for “‑ance” vs. “‑ence”?

OK, so I’m ashamed to admit that as a native speaker I think I’ve missed something somewhere. I was typing up some documentation and spellchecker kept bugging me.  So I looked up some words and found this:     The suffixes ‑ance and ‑ence mean   “quality of” or “state of.” Words   ending in these suffixes are usually   nouns. There is no rule that governs   whether a word ends with    ‑ance or ‑ence.   Even the dictionary on my Mac goes so far as to say:     ORIGIN from French ‑ence, from Latin   ‑entia, ‑antia (from present participial stems ‑ent‑, ‑ant‑). Since   the 16th cent. many inconsistencies   have occurred in the use of ‑ence and   ‑ance.   Is this for real?  There really is no rule?


Is there a workaround to the glitched level in Portal: First Slice?

I can't seem to complete Level 11 in Portal: First Slice. It seems to be glitched up. I can shoot portals, but cant go through them.   What's going on? Is there a fix or workaround for this?


Question on the diagonal argument for uncountably of $\mathbb{R}$

In the diagonal argument in which we prove $\mathbb{R}$ is uncountable, we take any function $f: \mathbb{N} \to \mathbb{R}$, suppose for the sake of contradiction that it is surjective, and consider any enumeration of $\mathbb{R}$, which will take the form: \begin{align*} f(0) & = a_{00} . a_{01} a_{02} a_{03} \ldots \\ f(2) & = a_{10} . a_{11} a_{12} a_{13} \ldots \\ f(3) & = a_{20} . a_{21} a_{22} a_{23} \ldots \\ \vdots  \end{align*} The proof then constructs $x = b_0 b_1 b_2 \ldots$ where $b_i \neq a_{ii}$ for each $i$, so $x \not \in f(i)$ for any $i$, hence $x \not \in f(\mathbb{N})$. Here is the question I have: what about ending in an infinite string of $9$'s? I can require when constructing $f(n)$ for each $n$ that I represent a real number in its decimal expansion not terminating in $9's$ (so I write $0.5\overline{0}$ instead of $0.4\overline{9}$, for example), but what is to stop the $x$ I construct from ending in $9$'s? If that's the case, I can't go digit-by-digit and rule out each line in this enumeration.


Finding hash algorithm given password and hash

Is it possible to find the hash algorithm used for a password given that you have the clear-text password and its hash?   The algorithm in question hashes the string 'password' to 'da0feea11db421a7be1173895497e71f', and there is no salt used.


Freezing column in visualforce page bageblock section

I have requirement to freez/lock firsrt 2 or 3 colums in a table which is implemented using pageblock table supose i have a page which displays all customer recrod details using pageblock table now i want to freez first 2 colums in that pageblock table.  I could find many links for html table using (Jquery,CSS,html etc) but i coun't find any clue for bageblock table.


Determinant inequality positive definite matrices

If $A$ and $B$ are two positive definite matrices such that: $$A \geq B,$$ can I conclude that: $$\mathrm{det}(A) \geq \mathrm{det}(B).$$ (With the notation $A \geq B$, I mean that $A - B \geq 0$, i.e. $A-B$ is positive semi-definite).  Thanks.


"No symbol table" error after upgrading to 17.04

Anyone know how to resolve this?  I have a Thinkpad W520 running 17.04 upgraded not fresh install     I have two disks on my laptop /dev/sda (which is original Windows not my Ubuntu) and /dev/sdb which is my mPCIe that has Ubuntu.  Can anyone confirm whether I need to grub-install /dev/sdb to resolve this error?  Please note I can safely boot when I hit enter as it shows GRUB with list of selections to select Ubuntu and boot.  This has been the case without error since Ubuntu 14 or 15 and I've been upgrading all the way, and when I upgraded to 17.04 this started to show.


I think I set it up right and I know area of a triangle is 1/2(BH). So I get 1/2(xy) and then try to maximize/minimize X? What do I plug in for Y?


Can we send multiple signals in same core at the same time in the fiber optics? If yes, how?

I am curious to know how exactly does the fiber optics works. I understand the basic concepts of the fiber optics communications but am curious to know if there is a way to send multiple signals in same core at the same time in the fiber optics? How is it possible? Is there a way you can send light of different wavelength and able to detect them at the rx end?


Distribution of linear combination of OLS regression coefficients

I have a simple linear OLS regression $Y_i = \alpha+ \beta_1 X_{1i} + \beta_2 X_{2i} + e_i$ where $e_i \sim N(0,\sigma)$. I have estimated the regression from the data and obtained estimates for my coefficients as well as the corresponding covariance matrix. Assume my dataset is large (>500)  Now I would like to construct the 95% confidence interval for $Z = a_1 \beta_1 + a_2 \beta_2$. My first thought was that I could assume that Z follows a normal distribution because my regression coefficients are approximately normal and a linear combination of normal variables is also a normal variable. I do find some sources where they treat $Z$ as a normal random variable.  But now I am in doubt because I found that a linear combination of normal random variables is only normal if they are independent. So is it still save to assume $Z$ is random?


Python split string and keep delimiters as a word

I am trying to split a string using multiple delimiters. I need to keep the delimiters as words.  The delimiters I am using are: all the punctuations marks and the space.  For example, the string:  Je suis, FOU et toi ?!   Should produce:  'Je' 'suis' ',' 'FOU' 'et' 'toi' '?' '!'   I wrote:  class Parser :     def __init__(self) :         """Empty constructor"""      def read(self, file_name) :         from string import punctuation         with open(file_name, 'r') as file :             for line in file :                 for word in line.split() :                     r = re.compile(r'[\s{}]+'.format(re.escape(punctuation)))                     print(r.split(word))   But the result I got is:  ['Je'] ['suis', ''] ['FOU'] ['et'] ['toi'] ['', '']   The split seems to be correct, but the result list do not contains the delimiters :(


"Unauthorized" error when adding printers through CUPS using Google Chrome in Ubuntu 18.04 LTS

Update 2019-01-09:  Please see answer below as there is a way to fix this with CUPS 2.2.8. Update 2020-10-17:  Upgrading from 18.04 LTS to 20.04 LTS will fix it as it upgrades the version of CUPS from 2.2.7 (which contains the bug) to version 2.3.1 which does not have the bug.  Since some users may not be able to upgrade to 20.04 LTS right now this is still very valid for the 18.04 LTS users.  I have Ubuntu 18.04 LTS installed clean on this system.  When I try to add a printer through CUPS 2.2.7 address of http://localhost:631 in the Chrome browser, I can't add the printer as I keep getting Unauthorized.  It never asks for a login.  How do I add my printer through CUPS using Google Chrome? BTW, Firefox, Chromium and other browsers so far seem to work fine for adding a printer in CUPS 2.2.7.  It appears to be a bug between CUPS 2.2.7 and Google Chrome.


Navigation bar is too long on progressbar theme, can it wrap?

My navigation bar at the top of each slide (that links to each section) has too many sections. I would like to keep the bar and keep each section but I would like to wrap it i.e. have it on two lines.  Is that possible?  I am using compress and I am using  as a theme.


Which of the following sentences is correct/better? And why?   A group of soldiers is called a regiment  A group of soldiers are called a regiment   Please support your answer with a similar example sentence.


ArcPy Not Able to Open Current Map From Stand Alone Code While Map Is Open

Running an Arcpy stand alone script on PyScripter I followed everything in  to   As:   Start up the Streets.mxd in ArcMap  Run the mxd=arcpy.mapping.MapDocument("CURRENT") inside the ArcMap (without no error)    3- Add the same mxd=arcpy.mapping.MapDocument("CURRENT") to my code in PyScripter IDE as  import arcpy ####mxd = arcpy.mapping.MapDocument(r"C:\Temp\Street.mxd") mxd=arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] targetGroupLayer = arcpy.mapping.ListLayers(mxd, "Main", df)[0] addLayer = arcpy.mapping.Layer(r"C:\Data\NetMap.gdb\Streets\OneWay") arcpy.mapping.AddLayerToGroup(df, targetGroupLayer, addLayer, "BOTTOM") arcpy.RefreshActiveView() arcpy.RefreshTOC()   but I am getting this runtime error message:       Traceback (most recent call last):   File   "C:\Users\bhosseini\Documents\ArcPy\Trace With Graphics\module3.py",   line 3, in        mxd=arcpy.mapping.MapDocument("CURRENT")   File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects\mixins.py", line 625,   in init       super(MapDocumentMethods, self).init(mxd)   File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\arcobjects_base.py", line   47, in init       for arg in args)) RuntimeError: Object: CreateObject cannot open map document


Convergence of sequences in cofinite topology

Let $X$ be an arbitrary set. The non-empty open nsets are the complements offinite sets. We have to define also the empty set. A sequence $x_n \to x$ converges as for the cofinite topology iff for each open neighbourhood $U$ of $x$, $U = X \setminus \{s\}$ for a $s$ with $x \neq s$, it holds that almost all $x_n$ are in $U$. So if $x \neq s$, thenalmost all $x_n \neq s$. If infinitelymany $x_n=s$ then $x=s$. Have I understood that correctly? So considering the case $x_n=\frac{1}{n}$: Let $U$ be an open neighbourhood of $0$. Since $\Bbb R\setminus U$ must be finite, $U$ containsallbut a fininte numberof terms of the sequence. Therefore $x_n\rightarrow 0$. Is that correct?


I'm doing a little report about the KNN complexity vs SVM.. I would like to know your opinions.. I built this text according to my perspective searching in papers, websites, ppts etc:      The reason why the KNN classification technique obtained less   execution time does not mean that it is computationally efficient,   investigations as in [91] indicate the large-scale KNN processing is   computationally costly, and requires a large amount of memory for an   efficient calculation of memory. However, in some cases KNN is   effective [92]. The asymptotic complexity of KNN according to [93] is   O(d) execution time to compute the distance of a point, is O(nd)   execution time and to compute the distance of all the points is   O(nk) extra time to find the k nearest examples, the computational   complexity of the KNN technique is O(nk + nd) [93]. According to   [92] the KNN technique is characterized as a non-parametric and lazy   classification method (lazy) and because of this according to [90] KNN   is very useful in practice where most real-world data sets do not they   follow mathematical theoretical assumptions. On the other hand, the   SVM classification technique according to [94] presents a   computational complexity of O(n^3) execution time. The core of SVM   is a quadratic programming problem (QP), which separates the support   vectors from the rest of the training data. In fact, the execution   time of SVM is of cubic order, which means that in most cases it will   require a high execution time, however SVM is a very efficient   technique in classifying data of very high dimensions [95].   The reason why I did this, is beacause I have trained (knn and svm) using sklearn library in python.. My dataset was about 750 features, 250 features per class (three classes), I trained only one feature dimension (1-D array). This were the results:   SVM   Between training process and testing process (0.20%) I got: 0.029801 sg   KNN   Between training process and testing process (0.20%) - 0.0074096 sg  As we can see K-NN got a shorter execution time ≈ 7 milliseconds and SVM 29.801 milliseconds. Is easy say this but to try to give a teoric justification to it, I did the text of above.  I hope your opinions, thanks so much. Probably I will need to add more information according your opinions :D      **Update I left the code, I'm working with real data this text is not a   assumption   (x_train, x_test, y_train, y_test) = train_test_split(data,                                                      labels,                                                      test_size=0.20,                                                      random_state=11) #get start time start = time.clock() #build the model svm = SVC(kernel='rbf', gamma=0.5)  #train the model svm.fit(x_train, y_train)  #make test with 20%  y_predicted = svm.predict(x_test)  #get end time end = time.clock()  runtime = end - start  #get confusión matrix using PyCM library  cm = ConfusionMatrix(actual_vector=y_test, predict_vector=y_predicted)    [90] A. Navlani, “KNN Classification using Scikit-learn (article) - DataCamp,” 2018. [Online]. Available: . [Accessed: 05-Jul-2019]. [91] N. Chiluka, A.-M. Kermarrec, and J. Olivares, “The Out-of-core KNN Awakens: The light side of computation force on large datasets.,” Int. Conf. Networked Syst. NETYS, p. 16, 2016. [92] G. Guo, H. Wang, D. Bell, Y. Bi, and K. Greer, “KNN Model-Based Approach in Classification,” pp. 986–996, 2010. [93] S. Sayad, “K Nearest Neighbors classification.” Department of Computer Science Middlesex College, Ontario, Canada., p. 20, 2010. [94] A. Abdiansah and R. Wardoyo, “Time Complexity Analysis of Support Vector Machines (SVM) in LibSVM,” Int. J. Comput. Appl., vol. 128, no. 3, pp. 28–34, 2015. [95] L. Argerich, “What makes SVM good method when dealing with high-dimensional data? - Quora,” 2014. [Online]. Available: . [Accessed: 12-Jul-2019]. [96] J. D. Keller, B. Mac Namee, and A. D’Arcy, Fundamentals of Machine Learning for Predictive Data Analytics. The Massachusetts Institute of Technology, 2015.


Probabilistic proof for $\prod_{n} (1-p_n) > 0$ (Considering the $p_n$'s as parameters of random variables and using Borel-Cantelli and continuity)

Consider a sequence $\{p_n\}_{n \in \mathbb{N}}$ s.t. $p_n \in [0,1)$ and $\sum_{n=1}^{\infty} p_n < \infty$. Prove $\prod_{n=1}^{\infty} (1-p_n) > 0$.   I think there's a way to do this without probability eg  or . I mean there's no probability here originally. But I would like to try a probabilistic proof. Kinda like  or   What I tried (I'm not sure if my lim, inf and sup statements are right): Let $(\Omega, \mathscr{F}, \mathbb{P})$ be a probability space, and let $X_n$ be iid Bernoulli random variables with parameter $p_n$ and in $(\Omega, \mathscr{F}, \mathbb{P})$. Then, $$\sum_{n=1}^\infty p_n<\infty \iff \sum_{n=1}^\infty P(X_n = 1) <\infty$$ By Borel-Cantelli Lemma 1 we have, $$P(\limsup(X_n = 1))=0$$ which is equivalent to $$P(\liminf(X_n = 0)) = 1$$ $$ \ $$ $$\to 1 =P(\bigcup_{N \ge 1} \bigcap_{n \ge N} (X_n=0))$$ By continuity of measure $\color{red}{\text{(I think?)}}$ $$= \lim_{N \to \infty}P(\bigcap_{n \ge N} (X_n=0))$$ By monotone convergence theorem $\color{red}{\text{(I think?)}}$ $$= \sup_{N \ge 1}P(\bigcap_{n \ge N} (X_n=0))$$ By independence, $$ = \sup_{N \ge 1} \prod_{n=N}^{\infty} P(X_n=0)$$ $$= \sup_{N \ge 1} \prod_{n=N}^{\infty} (1-p_n)$$ $$\to \sup_{N \ge 1} \prod_{n=N}^{\infty} (1-p_n) = 1$$ $$\to \forall \epsilon > 0, \exists m \ge 1 \text{s.t.} \prod_{n=m}^{\infty} (1-p_n) \in (1-\epsilon, 1] \ \color{red}{\text{(I think?)}}$$ Since $p_n < 1 \ \forall n \in \mathbb{N}$, $$\forall \epsilon \in (0,1), \exists m \ge 1 \text{s.t.} \prod_{n=m}^{\infty} (1-p_n) \in (1-\epsilon, 1] \ \color{red}{\text{(I think?)}}$$ Hence $\forall \epsilon \in (0,1), \exists m \ge 1 \text{s.t.}$ $$\prod_{n=1}^\infty(1-p_n)=\prod_{n=1}^{m-1}(1-p_n)\prod_{n=m}^{\infty}(1-p_n) > 0 \ \because$$  $\prod_{n=1}^{m-1}(1-p_n) > 0 \because p_n < 1 \ \forall n \ge 1$  $\prod_{n=m}^{\infty}(1-p_n) > 0 \because \prod_{n=m}^{\infty} (1-p_n) \in (1-\epsilon, 1]$ QED   Any mistakes? Again, I'm not sure if my lim, inf and sup statements are right.


A recent report by ProPublica depicted in  tells of the scheme that the ultra-rich use to avoid paying any income tax while still enjoying a lavish lifestyle. According to the scheme called "Buy, Borrow, Die". The rich first acquire some expensive assets or accumulate wealth in other ways. Then they give themselves small salaries to pay little payroll taxes. In order to afford their lifestyle, they go to the banks (or other financial institutions) and borrow from them money in favorable conditions using their existing wealth as collateral. I get the steps up to here. What I don't get is how do they repay the loans? The banks wouldn't give them loans they can't pay back and wouldn't just forgive them of their debt. So it seems to me that they still need to get a hefty payroll to afford their half a billion dollars yacht and 23 million $ homes. They maybe can get it as dividends from their companies, paying only capital gains tax which is lower. How do the ultra-rich avoid paying taxes on the money they need to get in order to repay the loans they take to afford their lifestyle. *The last step of the scheme is to die and leave your wealth to your children, for them to repeat the process, but I don't see how this is relevant as they are living right now and are (presumably) repaying their loans.