I have these type of strings: IN PATIENT ADVANCE DEPOSIT                         DEPOSIT AFTER DISCHARGE - SAME FINANCIAL YEAR      DEPOSIT AFTER DISCHARGE - PREVIOUS FINANCIAL YEAR  CASH RECEIVED AGAINST CREDIT MEMO                  DONOR INVESTIGATION-SIHF/CM FUND         [1]          AMEDA BREAST PUMP A/C ADVANCE                      FOR OPD PROCEDURES/PACKAGE A/C ADVANCE             FREEZER A/C ADVANCE                                IMPREST A/C ADVANCE                                O.T. BOOKING A/C ADVANCE                           AMEDA BREAST PUMP A/C REFUND                       FOR OPD PROCEDURES A/C REFUND  .........upto 7000 strings.  I want to append in list output ["DEPOSIT AFTER DISCHARGE - SAME FINANCIAL YEAR","DEPOSIT AFTER DISCHARGE - PREVIOUS FINANCIAL YEAR CASH RECEIVED","AGAINST CREDIT MEMO".......]  please tell me how can i do this in python

I have a multi-line string literal that I want to do an operation on each line, like so:  inputString = """Line 1 Line 2 Line 3"""   I want to do something like the following:  for line in inputString:     doStuff()


I am attaching my phone via usb to my ubuntu box to charge it.  Unfortunately, every few seconds a popup appears with the following error:  Unable to open MTP device '[usb:003,009]'   I don't care if ubuntu is able to open the device or not, I just want to supress the error.  How can I do this?

My Android device won't connect. I've never got MTP to work, I've only ever got it to connect by USB mass storage, which was how it was working most recently. But now, since 13.04, it seems that option has been taken away entirely.  I need to be able to connect by USB to transfer files.  When I plug in the device I get an error that says Unable to open MTP device '[usb:002,003]':    After some web searching, I found that I might need a program called go-mtpfs, so I tried that, and it failed:  $ go-mtpfs /media/MyAndroid 2013/07/16 16:41:43 compiled against libmtp 1.1.5 Device 0 (VID=04e8 and PID=685e) is a Samsung Galaxy Y. 2013/07/16 16:41:43 found device Samsung: Galaxy Y (04e8:685e) @ bus 2, dev 3 :  LIBMTP PANIC: Unable to find interface & endpoints of device 2013/07/16 16:41:43 rdev.open failed: open: open returned nil   How do I get my USB device to just connect, automatically, like it used to?


I am trying to fold paper so that it looks like 3 x 4 grid of 12 rectangles of equal size.   Like this   Its easy to get 4 rectangles. Just fold twice. But how to get 3?

This is something that always annoys me when putting an A4 letter in a oblong envelope: one has to estimate where to put the creases when folding the letter. I normally start from the bottom and on eye estimate where to fold. Then I turn the letter over and fold bottom to top. Most of the time ending up with three different areas. There must be a way to do this exactly, without using any tools (ruler, etc.).


I booked a flight from BOM (India) to CPT (Cape Town) with a lay-over at DOH (Qatar) using Qatar Airways. The flight numbers are QR 557 and QR 1369. While making the booking, there is an option of seat-selection which I used, the seats were shown in 3-4-3 configuration. I did see that on the Qatar Airways Wikipedia  that they have both Boeing and Airbus but just like trains, I am guessing there would be the same aircraft which flies the same route. The first hop is a short-haul 3 hour flight while the next one is biggie 9 hour long-haul flight. I also believe this is routinized to a large degree as you need to have the staff, captain and the ground staff intimately familiar with the aircraft for taxing purpose, weight issues (as I read in some other thread) hence would make sense to have familiar aircraft.     I would understand if there is now secrecy about these sort of facts as terrorists knew which airplanes they were on and did take training before doing what they did on 9/11.

How can I know the type of an airplane before reservation? I want to know if it is Boeing or Airbus and the model if it's possible. Can I use websites such as SkyScanner for this purpose?


I downloaded    Qt5 Libary for Linux 64bit   The library format is .run  But if I try to open it, I'll get the following error  sh ./qt.run ./qt.run: 1: ./qt.run: cannot open @8: No such file ./qt.run: 1: ./qt.run: ELF: not found ./qt.run: 1: ./qt.run: Syntax error: word unexpected (expecting ")")   and then it produces a garbage file.

My PC has both Ubuntu and Windows 7 installed. I have installed all my drivers in Windows like Nvidia graphics, motherboard etc. Shall I install them in Ubuntu too?  I looked on the web for my Nvidia drivers and I have found a .run file. How could I install it on my Ubuntu?


I can't find anywhere the advantages of using Ridder's method over any other numerical method. My professor said that it specializes in solving a unique set of functions, but I can't find anything about it anywhere. When is Ridder's method more useful than something else and why?  I realize it may sound like a silly question but I have to answer it for a project. Thanks!

I've just read section 9.2.1 in Numerical Recipes Ed. 3 (Press et al. 2007), which describes Ridders' method of root finding. I understand that allowing for some curvature of the function by linearizing three points with an exponential will probably get you a better approximation and more rapid convergence, but I have no idea how they get that it converges quadratically, and the motivation behind choosing an exponential (rather than e.g. a polynomial) is not clear to me.  So, specifically, I'm wondering (1) why linearize with an exponential, and (2) why the method converges quadratically.  I tried looking for Ridders' original paper "A new algorithm for computing a single root of a real continuous function", but the only copy I could find was in a journal that my school's library does not give me free access to.  UPDATE:  I've realized that the fact that an exponential is strictly positive means that weighting the three points with an exponential won't change their signs. Hence, the root of the linearization will have to land inside the original bracket.  Polynomials, rationals, sinusoids, and logarithms all have positive and negative bits, so using them probably runs the risk of getting bad interpolated roots. One of these squared might be usable, but maybe non-monoticity gives some sort of undesirable effect. Since this is a complete list of all simple functions that I am aware of, exponentials seem to be the only easily available weighting function with this property.  A constant function is also technically single-signed and monotone, but it can't be used to linearize stuff.


I have a heightmap of the height of terrain above and below sea level as a single object. I wish to colour it such that any part of the object that is below sea level (z<0) is coloured blue, and any part above sea level (z>0) is coloured green. How would I do this using a python script?

How do I colour a 3D terrain based on the height? Say, bottom green, and gradually to brown in the middle and white at the top.  When I use colour ramp node, I can see gradient colour across the 3d terrain along x-y plane, but I'd like to have the gradient upwards, in x-z, y-z plane.  Edit  Currently, my setup is using cycles and nodes like this:  Color ramp (c) -> (c) Diffuse BSDF (BSDF) -> (Surface) Material output


I got a series of down votes some-days (16 Aug 2013) before (Serial down-voting). I downvoted an answer and added a comment why I down-voted. After that I got too many down-votes for my different questions and answers within a minute.  What I did:   I checked this post on meta  and waited for 36 Hours. Nothing happened I posted a comment on  I  one of my answer for moderator attention, currently the flag is in helpful state.   Nothing happened till now. It's almost 4 days passed after the serial down-voting. What to do next? Do I need to send an email to the Stack Exchange team?

While browsing Stack Overflow, I noticed that I lost a lot of reputation:        Is this serial downvoting? Will it be corrected by a rep-recalculation? How often are those done?    Here's a second instance:


Let $T:C([0,1])\rightarrow C([0,1])$ defined by  $Tf (t) = f(t) + \int_{0}^{t} f(s) ds$,  It is easy to show that $T$ is a linear and continous operator, but I'm stuck about showing injective,surjective or exhibiting its inverse. How can i compute those things?

Define a linear operator $T:C[0,1] \to C[0,1]$ as follows: $$Tf(x) = f(x) + \int_0^x f(u)du$$ It is easy to show that $T$ is a bounded linear operator. The statement also (1) claims that $T$ is one-to-one and onto, and (2) asks to compute $T^{-1}$. (Hence $T$ is an isomorphism due to a corollary of Open Mapping Theorem)  I need help to prove $T$ is onto: given any $g \in C[0,1]$, how to decompose it into a sum between a continuous $f$ and its antiderivative. I have trouble decomposing $g(x)=|x|$, not to mention bizarre functions like Weierstrass function. It seems impossible.  Thanks in advance for help!


Let $P$ be the momentum operator. Susskind writes:  $$P |\Psi \rangle =-ih \frac d {dx} |\Psi \rangle$$ Then he states that this can be rewritten as $$-ih\frac {d \psi(x)}{dx}$$ Where $\psi(x)$ is the wave function belonging to $|\Psi\rangle$  It seems to me that the first equation is meaningless. How can we differentiate a state (a ket) w.r.t. $x$? (as opposed to the representation of that state in a wave function, as in the second equation).   Am I correct that this notation $\frac d {dx} |\Psi \rangle$ is hacky? If yes, how do we correctly write down the definition of the momentum operator in terms of the ket $|\Psi \rangle$? (i.e. without choosing a basis, and thus without using a wave function)

I have been going through some problems in Sakurai's Modern QM and at one point have to calculate $\langle \alpha|\hat{p}|\alpha\rangle$ where all we know about the state $|\alpha\rangle$ is that $$\langle x|\alpha\rangle=f(x)$$ for some known function $f$. ($|\alpha\rangle$ is a Gaussian wave packet.) Sakurai says that this is given by:  $$\langle p\rangle = \int\limits_{-\infty}^{+\infty}\langle\alpha|x\rangle\left(-i\hbar\frac{\partial}{\partial x}\right)\langle x|\alpha\rangle dx.$$  I am wondering how we get to this expression. I know that we can express   $$|\alpha\rangle =\int dx|x\rangle\langle x|\alpha\rangle$$  and  $$\langle\alpha|=\int dx\langle\alpha|x\rangle\langle x|,$$   so my thinking is that we have:  $$\langle\alpha|\hat{p}|\alpha\rangle =\iint dx dx'\langle\alpha|x\rangle\langle x|\hat{p}|x'\rangle \langle x'|\alpha\rangle, $$  and if we can 'commute' $|x\rangle$ and $\hat{p}$ this would become: $$\iint dxdx'\langle\alpha |x\rangle\hat{p}\langle x|x'\rangle \langle x'|\alpha\rangle,$$  which is the desired result as $$\langle x|x'\rangle=\delta(x-x').$$ Is this approach valid?  I think my question boils down to: Does the operator $\hat{p}$ act on the basis kets $|x\rangle$ or on their coefficients? In the latter case, if we had some state $|\psi\rangle = |x_0\rangle$ for some position $x_0$, then would we say that for this state $$\langle p\rangle =\langle x_0|\left(-i\hbar\frac{\partial}{\partial x}\right)|x_0\rangle = 0$$ as the single coefficient is $1$ and the derivative of $1$ is $0$?


I want to make a java program that takes dates as input and generate another date based on the number of days I will add.  eg:      input date 23/4/2018     number of days: 10      output date: 3/5/2018

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


I found that  \center \begin{tabular}{...} ... \end{tabular}   and  \centering \begin{tabular}{...} ... \end{tabular}   both make the following table centered.  My questions are:   Are \center and \centering the same? What is the difference between them? Are they both commands? What are the scopes that they apply to? (note that in the examples, there are no table environment.)   Thanks!

After reading this question , I want to know the answer of the following.  When should we use \begin{center} instead of \centering?  For example, should we use this one?  {% \centering <other contents> }   or this one?  \begin{center} <other contents> \end{center}


I had an argument with a Steam friend, and the conversation was about the topic of so-called "multiplayer" games.  I brought up games like TF2, Dota2, and SR3 as games that define what multiplayer is.  My friend, however disagreed, and insisted that co-op and multiplayer are different categories; co-op, where you play along players, and multiplayer, meaning playing against someone else.  Am I wrong to think these are two seperate genres of games? Or are co-op and multiplayer virtually the same?

Can any one tell what is difference between cooperative game and multiplayer game?


This is an exercise in Humphrey's 'Introduction to Lie Algebras and Representation Theory' (chapter 1.2 number4). Here is what I've done. Since $[LL]$ has dimension 1, let {$x$} be a basis for $[LL]$. Extend it to a basis {$x, y, z$} for L.Then $[xy]=ax, [yz]=bx$ and $[xz]=cx$.  (Not all $a, b, c$ are zeros.) Since [$LL$] lies in $Z(L)$, $0=[[xy]z]=a[xz]$ and $0=[[xz]y]=c[xy]$. Then we haver four cases where each factor is zero or not zero. If $[xz]=[xy]=0$, then $[yz]=bx$ should not be zero. If $a=c=0$, then again, $[xz]=[xy]=0$ and $[yz]=bx$ should not be zero. Now, here is where I stucked. If '$a=0$ and $[xz]\neq 0$' or '$a \neq 0$ and $[xz]=0$', then how can I get the result "$[yz]=bx$ is not zero."? Or is there better way to solve this problem? Thanks in advance.

Show that (up to isomorphism) there is a unique Lie algebra over $F$ of dimension $3$ whose derived algebra has dimension $1$ and lies in $Z(L)$.   I think that I must construct a basis for $L$ satisfying such conditions. My first idea is to consider any canonical basis $x,y,h$ and calculate $[x,y],[x,h]$ and $[y,h]$. Then finding some relation between those brackets to define a new basis $x',y',h'$ such that whenever I compute the brackets of the new basis elements I will always lie in the subspace $[LL]$.  But unforunatly i don't know how. Any help would be much appreciated!


I am going to do a viewport render (as I can't render in eevee as the material/gloss goes flat in the metaballs) - you can see in the image. I just want to remove these metaball black lines around them so It doesn't show up in my render.

Blender 2.8 contains a number of HDRi's in it by default for the LookDev. I'd like to know how to use them in final renders (EEVEE or Cycles), because quite frankly they appear fantastic.


I just got my new Dell tower and it came with this cable. On one end it had a  and on the other end it had this connector with D and two plus signs:    I need to buy an adapter from this port to VGA. Can someone tell me what is the name for it?  PS. Following the discussion below, here's the picture of the actual port on the  tower itself:

How would I go about identifying a port, card or connector on my system which I am unfamiliar with?  Where would I find information on what these parts are? What would be the steps I would take in identifying a unknown port or cable?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


Though I read a lot about vegan substitute of cheese but I have not come across one that can be described as its perfect replacement especially in places where cheese is supposed to melt, like in Pizza. Does anyone has any experience with it ? Is it possible to make such vegan cheese at home ?

I'm familiar with many fine vegan cheeses, ranging from cream-cheese to Camambert. Undoubtedly much progress has been made in this area in recent years. The one (important) cheese I have yet to find a suitable replacement for is Mozzarella.  More specifically, I'm interested in a vegan cheese substitute which successfully mimics both the flavor and texture of melted Mozzarella. All soy-based substitutes I've tried which did have stringy properties suffered from very high stickiness, and adhered to the roof of the mouth resulting in an unpleasant experience.  Another recipe I've tried is cashew based cheese combined with tapioca flour, though both flavor and texture were less than adequate.


I am using Lubuntu 19.04 and am very pleased with the speed and performance however support has now ceased for this iteration. The question is should I go back to Lubuntu 18, as suggested, or switch to Ubuntu. My PC is a virtually new  HP Pavilion with plenty of grunt.

What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release?


I am trying to understand what is the meaning of Beta distribution. I can try compare it to classical probability of event that when I throw the dice it will be let's say 1, that is 1/6. Btw also try to think about probability of dice in terms of Beta is little bit new or not intuitive. For example the probability is 1/6, that's how it was in the "old world" of probabilities. But in Beta it is a probability of success with given probability, meaning that I could use this scope also with dice game but as I say, so far I wasn't used to look on that like that. So I was thinking like, it is 1/6 but with what probability? This is just thinking by the way. If I use the Beta for dice event (B(2,6)) it outputs some probabilities.  Btw the calculator says that the expected probability is 0.25 althought it should be 0.16, althought the chart is higher somewhere below 0.2 which is expected.  So I am thinking that Beta is maybe trying to apply something like Gaussian bell shaped distribution to some probabilities, meaning that yes the probability of 1 on dice is 1/6, but we know that the probability isn't static. I can throw the dice 6x and I can get either no 1, or two 1 etc.  On the other side, there is something called Big numbers theory which states that the dice probability 1/6 is a law in long term. But in short term the Beta might be correct.  On other side, Beta cannot be able to make an accurate model of the dice throwing, so maybe it is only some approximation something of what i said in point 2.  Beta is used in Bayesian Bandits problem, but I was thinking why to use Beta there and not simple equation like Alpha / Beta instead of beta (simply just percentage of success and act according that).  I know that Beta is used in Bayesian inference to conjugate Prior and Posterior, but don't know much details on that.   I was just trying to think about, why it should be good. In case of Dice throwing, In case of Bayesian bandits, and also generally. Btw last question, can I think about Beta that the probability of success bigger than 0.5 (0.5-1.0) means the probability of success? On the picture below you see it as P(X > x).

Disclaimer: I'm not a statistician but a software engineer. Most of my knowledge in statistics comes from self-education, thus I still have many gaps in understanding concepts that may seem trivial for other people here. So I would be very thankful if answers included less specific terms and more explanation. Imagine that you are talking to your grandma :)  I'm trying to grasp the nature of beta distribution – what it should be used for and how to interpret it in each case. If we were talking about, say, normal distribution, one could describe it as arrival time of a train: most frequently it arrives just in time, a bit less frequently it is 1 minute earlier or 1 minute late and very rarely it arrives with difference of 20 minutes from the mean. Uniform distribution describes, in particular, chance of each ticket in lottery. Binomial distribution may be described with coin flips and so on. But is there such intuitive explanation of beta distribution?    Let's say, $\alpha=.99$ and $\beta=.5$. Beta distribution $B(\alpha, \beta)$ in this case looks like this (generated in R):     But what does it actually mean? Y-axis is obviously a probability density, but what is on the X-axis?   I would highly appreciate any explanation, either with this example or any other.


I have a question regarding my rendering using motion tracking. As you can see the rendering only shows a small part of the actual 3d model (tears of steel rig).    Does anyone know why this occurs?  The scene can be found here    // Turning all objects at the right to render won't change anything

I have a model of a building with a sidewalk around it.  Both show up when I switch to rendering mode in both Blender Render and Cycles Render mode.  But:  when I hit F12 for a final proper render, the building shows up -- but the sidewalk doesn't.    I've checked the normals and I thought the normals seemed pointed in the right direction.  I've set the Clipping on the Camera to a high number.  I removed all the materials from the sidewalk and added a new material-- the problem persists.  I've exported the blend as an FBX file and the Sidewalk shows up fine in Unity.  Just in final renders, it doesn't show up.    Here is a blend file: .  I tried to destroy everything unrelated to the issue and label things in a clear way.    Thanks.


My ASUS T100TA has Windows 10 Home 20H2 installed.  I can boot from a Win 10 USB stick and a Win 8.1 stick but I can't boot from a Ubuntu stick or a WinPE stick. I have tried using Rufus and UUI and using GPT and MBR formats but nothing helps. Safe Boot is disabled. My BIOS does not have Fast Boot. What allows only a Windows USB install stick to work when others won't? Thanks!

I have a Asus Transformer Book T101HA and I am trying to  boot a bootable USB stick to dual boot a 2nd operating system (it is currently running Windows 10 as it was out of the box).  When I press ESC on start up to load the boot menu, I only get the following regardless of whether a bootable USB is plugged in or not.    I have also looked in the BIOS to look at the boot order but the options look very limited compared to others ive seen in the past. There is only on boot option and it can only be set to 'Windows Boot Manager' or 'Disabled' (there is no option for USB). There doesn't appear to be any ability to add new boot options.    Can anybody help me out with a way forward to booting from a USB?


How do I make my python code prettier by shortening each row? For example: I have a really long if statement that I would like to make shorter => split it's length on to a couple of rows:  if (imgA.shape[0] != imgB.shape[0]) and (imgA.shape[1] != imgB.shape[1]) and (imgA.shape[2] != imgB.shape[2]):   I would like to have something like this:      if (imgA.shape[0] != imgB.shape[0]) and        (imgA.shape[1] != imgB.shape[1]) and       (imgA.shape[2] != imgB.shape[2]):   But I get a syntax error. Anyone?

I have a long line of code that I want to break up among multiple lines. What do I use and what is the syntax?  For example, adding a bunch of strings,  e = 'a' + 'b' + 'c' + 'd'   and have it in two lines like this:  e = 'a' + 'b' +     'c' + 'd'


Triggered by ; quoting:     You are on the right track. Take a look at . There are many other articles on that topic I think, so choose one and try to understand it.      Another way I would recommend is integration of spring security with Struts 2. That way you get secured and proven configurable security stack.   It's not just a link, but it almost is, and includes a suggestion to do something other than what the OP is asking. The suggestion is valid, too, although it doesn't directly answer the question.  I'm trying to understand where the line is drawn, and this specific answer is giving me some problems. The OP's original question is too broad to be answered in a reasonable way. Chopping it down to its core makes it answerable without too much boilerplate.  Note: The original answer has since been expanded eliminating any doubt. But I appreciate everybody's input; it was all quite helpfule.

I think we can all agree, this sucks:  If you've been around a little while, you've probably encountered hundreds of answers like this in various forums, some of them even marked as "The Answer" by well-meaning1 forum admins looking to close a thread. We could try to enumerate the commonly-observed problems with it...  Link is probably broken If link isn't broken, it's spam If link isn't spam, it's to some broadly-related resource that the answerer found by pressing "I'm feeling lucky" when googling the question's title.  ...but the real issue here is that we don't know! Even if the link was originally pointing directly to the most awesomeest answer ever for exactly the question being asked, there's nothing in the answer itself to even hint at what direction we're being pointed in. Strip the markup, and this is what you're left with:  i think you should take The tutorial HERE! This will help you a lot  Is there even one tiny speck of information there? No. Even the title of the page being linked to would have provided something to go on, but that was entirely too much work. So let me be clear: this sort of response is not an answer. If you see this, flag it. Moderators, if you see it flagged, delete it. There's really only one valid exception to this rule, and that's when the question is:  Suggest me some tutorials where i can learn quick.  Don't get me wrong, it's still a bad answer - but when the question is kinda asking for bad answers this is to be expected. Close or flag the question and move on - this is much more efficient than hanging around to babysit it by deleting every crap answer that inevitably shows up. If you're still reading, you're probably getting really bored by now. "Gee, Shog - answers that contain ZERO information are terrible, horrible, very-bad things? What shocking revelations will you share next?" Yeah. It's really simple... Except, . See, the problem is that once you step away from black-and-white "answers / doesn't answer" decision-making, things get... Interesting. And all those other answers with links in them See, this is an answer:  And so is this:  Yes, they're both very short, and yes, they contain links. But strip the markup, and you still get at least a little bit of useful information. Does that mean these answers should forever hang around the site? No, not necessarily - if it turns out they're just not that useful, they should probably still be removed - or at very least, down-voted so that they rank below other answers. Just remember: if the text of the post contains an honest attempt at answering the question, then it is an answer - so don't flag it otherwise, and if you do, don't complain if your flag gets declined. Answers & Apples If you're still confused, forget about answers. Think about apples instead:  Answers are just like that, but less tasty in pies.  1 By which I mean to say, "criminally lazy"


I followed the following process to create the CA, certificate and key PEF files:      I run "openssl verify" and verified that they are OK.   I then followed the following process to enable SSL on MySQL community:      However, when I tried to connect to it:   mysql --user=root --password=mypassword --ssl-ca="C:\ProgramData\MySQL\MySQL Server 5.7\SSL\ca.pem" --ssl-cert="C:\ProgramData\MySQL\MySQL Server 5.7\SSL\client-cert.pem" --ssl-key="C:\ProgramData\MySQL\MySQL Server 5.7\SSL\client-key.pem"   I got the following error:   ERROR 2026 (HY000): SSL connection error: SSL is required but the server doesn't support it

After creating a self-signed SSL certificate, I have configured my remote MySQL server to use them (and SSL is enabled)  I ssh into my remote server, and try connecting to its own mysqld using SSL (MySQL server is 5.5.25)..  mysql -u <user> -p --ssl=1 --ssl-cert=client.cert --ssl-key=client.key --ssl-ca=ca.cert Enter password:  ERROR 2026 (HY000): SSL connection error: error:00000001:lib(0):func(0):reason(1)   Ok, I remember reading theres some problem with connecting to the same server via SSL. So I download the client keys down to my local box, and test from there...  mysql -h <server> -u <user> -p --ssl=1 --ssl-cert=client.cert --ssl-key=client.key --ssl-ca=ca.cert  Enter password:  ERROR 2026 (HY000): SSL connection error   Its unclear what this "SSL connection error" error refers to, but if I omit the -ssl-ca, then I am able to connect using SSL..  mysql -h <server> -u <user> -p --ssl=1 --ssl-cert=client.cert --ssl-key=client.key  Enter password:  Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 37 Server version: 5.5.25 MySQL Community Server (GPL)   However, I believe that this is only encrypting the connection, and not actually verifying the validity of the cert (meaning I would be potentially vulnerable to man-in-middle attack)  The SSL certs are valid (albeit self signed), and do not have a passphrase on them. So my question is, what am I doing wrong? How can I connect via SSL, using a self signed certificate?   MySQL Server version is 5.5.25 and the server and clients are CentOS 5.  Thanks for any advice  Edit: Note that in all cases, the command is being issued from the same directory where the ssl keys reside (hence no absolute path)  Edit (in response to mgorven):  ca.cert is the Certificate Authority certificate, which is supposed to tell mysql that my certificate authority is trusted.  The config from my.cnf is   [mysqld] ssl-ca=/etc/ssl/mysql/ca.cert ssl-cert=/etc/ssl/mysql/server.cert ssl-key=/etc/ssl/mysql/server.key   I also tried adding ssl-cipher=DHE-RSA-AES256-SHA but have since removed it as it didn't help.


I've just installed ubuntu on a laptop that came with Windows 7 pre-installed. In Windows 7 I was able to connect to the same wireless network that the other computers in my house are connected to but I can't do so in Ubuntu.  When I open Network through System Settings I don't have a wireless option, the only two options I have are Wired and Network Proxy.  I'm trying wireless troubleshooting on help.ubuntu and apparently the driver is unclaimed.  How can I fix this?

I bought a new laptop with a RTL8723AE-BT wireless card, but it seems there is nothing that makes it work. Realtek usually makes drivers available for its card, but this specific one doesn't have a driver available on Realtek's website. I have tried the following steps in order to try and make it work:  Installed ndiswrapper versions 1.57 (from repositories, with dkms) and 1.58rc1 (compiled from source from ndiswrapper's website). Both failed: version 1.57 does not provide an interface for the functions IoWMIOpenBlock and IoWMIQueryAllData. 1.58rc1 has dummy functions in their places, but it fails with a "ioremap failed" message. Upon further investigation, I have found that the function NdisMMapIOSpace (ndis.c:808), in 1.58rc1, gets called with physical address and length zero, which causes the failure. Since this function doesn't seem to be called from anywhere in ndiswrapper's code, I'd assume the Windows driver is somehow calling it with bogus parameters.  I tried using both the 64-bit version (on my installed system, which uses the x86_64 version of Ubuntu) and the 32-bit version (on a live-USB x86 system with persistence enabled) of the Windows XP driver. The same errors occurred for both versions.  Since Realtek's Linux drivers for RTL8192CE/SE/DE actually mention the 8723 chipset in its sources, I tried compiling them and modprobing them, but they don't pick up the card ID (10ec:8723). I also tried to echo 10ec 8723 > new_id on the sysfs  (/sys/bus/pci/drivers/rtl8192de) location ( of the driver (actually, on each of them, one at a time), but I get a "Permission denied" error even with sudo. If I sudo su and try again, I get the error bash: echo: write error: Invalid argument.   I have run out of ideas. It's really frustrating to buy a new notebook to use only with Ubuntu and not be able to use its wi-fi connection. If anyone can shed a light on alternatives, I'd be very thankful. Edit: lshw -C network output $ sudo lshw -C network -numeric   *-network UNCLAIMED             description: Network controller        product: Realtek Semiconductor Co., Ltd. [10EC:8723]        vendor: Realtek Semiconductor Co., Ltd. [10EC]        physical id: 0        bus info: pci@0000:03:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:d000(size=256) memory:f7900000-f7903fff   *-network        description: Ethernet interface        product: RTL8111/8168B PCI Express Gigabit Ethernet controller [10EC:8168]        vendor: Realtek Semiconductor Co., Ltd. [10EC]        physical id: 0.2        bus info: pci@0000:04:00.2        logical name: eth0        version: 0a        serial: 00:90:f5:cd:6d:f7        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=N/A ip=192.168.0.106 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:43 ioport:c000(size=256) memory:f2104000-f2104fff memory:f2100000-f2103fff


So for my recent project I decided to install Linux Ubuntu on a separate 60GB SSD to dual boot with Windows 8.1. Once I went on the official Ubuntu website and downloaded the free version of Ubuntu I ran the installer and with out much "installing" (meaning, without selection of new boot drive etc.) it asked me to reboot my machine, "now" or "later" I wasn't questioning it much so I simply clicked "reboot machine now". So it did its thing, shut down and rebooted as I had anticipated, but as it turns out it got stuck on a black screen (computer was still running) without any sort of error message, nada!   Then I tried to reboot manually again hoping to, perhaps entering the BIOS but as it turns out, my keyboard only activates or turns on after the BIOS loading screen, where it says "hold F2 or dlt to enter UEFI BIOS" which essentially didn't work. Now I'm completely powerless because I can't do anything with this computer simply because I don't know what it wrong.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I've looked through the archives and I don't see any solution suitable for sending to a naive user who is used to simply clicking and going.   Also I see that the compiler has been deprecated and removed from Python 3. Does this mean there are 3d party solutions? Would any of them have tutorials? (I'm a pretty naive user myself.)  I have a long list of imports that would have to be included in the executable.

Python works on multiple platforms and can be used for desktop and web applications, thus I conclude that there is some way to compile it into an executable for Mac, Windows and Linux.  The problem being I have no idea where to start or how to write a GUI with it, can anybody shed some light on this and point me in the right direction please?


I am using this code, it gives the file name like "C:\File\sample.txt". But I am in need of getting path like "C:\File\". How can I get this path?  Private Sub cmdBrowse_Click()     CommonDialog1.ShowOpen     txtPath1.Text = CommonDialog1.FileName  End Sub

For various reasons, I'm stuck in Access 97 and need to get only the path part of a full pathname.  For example, the name  c:\whatever dir\another dir\stuff.mdb   should become  c:\whatever dir\another dir\   This site has some suggestions on how to do it:   But they seem rather hideous.  There must be a better way, right?


Hope you are fine and in a good health.  I owned a blog www.ismag.com and today when I check my website in Google webmaster tool I found these errors in html improvement.    I am using WordPress SEO by Yoast. Please help me to solve this issue.

I'm building a child theme and it currently has a very simple <head> section in header.php:  <head>   <meta charset="<?php bloginfo( 'charset' ); ?>">   <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">   <title><?php wp_title( '|', true, 'right' ); ?></title>   <link rel="profile" href="http://gmpg.org/xfn/11">   <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">   <!--[if lt IE 9]>   <script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/js/html5shiv.min.js"></script>   <![endif]-->    <?php wp_head(); ?> </head>   I'm guessing wp_head() is responsible for the second <title> element (it appears just there in the final HTML), but other things I've read say this is impossible.  Should I be removing the <title> from my header.php, or should I be adding something to my functions to remove the title from wp_head() (eg. remove_action('wp_head', 'title') ?  Or should I be doing something else altogether?


I have a 64 bit PC and I downloaded ubuntu-17.04-desktop-amd64 and then I tried to make a Ubuntu VM using Ubuntu 17.04 but is is giving me an error it says failed to open disk image here is the trace back.  Could not get the storage format of the medium 'C:\Users\User\Downloads\ubuntu-17.04-desktop-amd64.iso' (VERR_NOT_SUPPORTED).  Result Code:  VBOX_E_IPRT_ERROR (0x80BB0005) Component:    MediumWrap Interface:    IMedium {4afe423b-43e0-e9d0-82e8-ceb307940dda} Callee:       IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945} Callee RC:    VBOX_E_OBJECT_NOT_FOUND (0x80BB0001)   Any help?

I am trying to install a Virtual Machine, and every time I select the installation media I get this error:  Failed to open the CD/DVD image /home/jesse/Documents/Microsoft Windows Distribution ISO Archive/Microsoft.Windows.XP.Professional.ISO. Could not get the storage format of the medium '/home/jesse/Documents/Microsoft Windows Distribution ISO Archive/Microsoft.Windows.XP.Professional.ISO' (VERR_NOT_SUPPORTED). Result Code: VBOX_E_IPRT_ERROR (0x80BB0005) Component: Medium Interface: IMedium {53f9cc0c-e0fd-40a5-a404-a7a5272082cd} Callee: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66}   I would like too know how to fix this annoying error.


I'm trying to create a regex matching the following patterns (with and without space):     M1 1AA, M60 1NW, CR2 6XH, DN55 1PT, W1A 1HQ and EC1A 1BB   I'm very new at this and find it hard to create a functional regex for all the examples above.  Searching here and there I found a regex that might work for some of the patterns but I don't know how to add the condition "with or without space" for each type of postcode.  Here the regex I found on another post "^(A-PR-UWYZ [0-9][ABD-HJLNP-UW-Z]{2})"  How do I add the space/no space condition? In order to match M11AA or M1 1AA.

I'm after a regex that will validate a full complex UK postcode only within an input string. All of the uncommon postcode forms must be covered as well as the usual. For instance:  Matches   CW3 9SS SE5 0EG SE50EG se5 0eg WC2H 7LT   No Match   aWC2H 7LT WC2H 7LTa WC2H   How do I solve this problem?


I accidently installed Ubuntu 12.10 using the option "LVM" although i've not selected erase disk and fresh install. Now my systems boots direclt into Ubuntu and I'm unable to see my Windows files on hard drive so I'm unable to access my old data (documents, movies, music, pictures) stored on Windows? Can someone help me to bring back my old Windows?  In fact, I've now completely erased my hard drive yesterday and its only ubuntu 12.10 running on my laptop and i surely want to install my paid windows 7 home premium back as a dual booting system. But I also like to first try uninstall or revert my ubuntu installations and get back my windows so that i'll able to at least retrieve my previous data and than perform this new task.

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I was wondering if a community for people who play any sport will be worth. Is there any initiative?

I have an idea or subject that should have a Q&A, and want to propose a new site. How can I do this?  Related:


I'm making a game where the user must solve a simple subtraction but the result must be a positive whole number. I managed to do everything but for some reason the answer is sometimes negative and I'm not sure how to fix it  import java.util.Random; import java.util.Scanner; public class Subtraction {   public static void main(String[] args) {     Random r = new Random();      final int MAX = 10;     // get two random numbers between 1 and MAX     int num1 = r.nextInt(MAX) - 1;     int num2 = r.nextInt(MAX) - 1;      int total = (num1 - num2);      // display a question     System.out.printf("What is your answer to %d - %d = ?%n", num1, num2);      // read in the result     Scanner stdin = new Scanner(System.in);     int ans = stdin.nextInt();     stdin.nextLine();      // give an reply     if (ans == total) {       System.out.println("You are correct!");     } else {       System.out.println("Sorry, wrong answer!");       System.out.printf("The answer is %d + %d = %d%n", num1, num2, (num1 - num2));     }    } }

How do I generate a random int value in a specific range? I have tried the following, but those do not work: Attempt 1: randomNum = minimum + (int)(Math.random() * maximum);  Bug: randomNum can be bigger than maximum. Attempt 2: Random rn = new Random(); int n = maximum - minimum + 1; int i = rn.nextInt() % n; randomNum =  minimum + i;  Bug: randomNum can be smaller than minimum.


The boy comes running.  My father stands behind me smiling. (I saw the first example in a grammar book and the second in a prose)    In which cases is this particular form (S + action-verb + s/es of the verb + 'ing' form of the another action-verb) applicable?

For various such sentences in many cases I get confused, it seems different for different cases. I want to know if someone left doing something for permanantly then what should be used? Also give some examples for different cases. Suppose... "I left my bag" means "I forgot my bag". but If I want to say the same for permanentaly "I left bringing my bag". Where should we use "stop" and "quit" then?


private static Session session; ... public <T> List<T> getObject(String query) {     List<T> list = (List<T>)session.createQuery(query).list();     return list; }   I don't want to use "@SuppressWarnings("unchecked")" How to modify that method, to receive universal method which can receive any List<> ?

For example I have such query:  Query q = sess.createQuery("from Cat cat"); List cats = q.list();   If I try to make something like this it shows the following warning   Type safety: The expression of type List needs unchecked conversion to conform to List<Cat>   List<Cat> cats = q.list();   Is there a way to avoid it?


Please help me decide if the following statement is true or false:     If $\int_{1}^\infty f(x)dx$ converges then $\lim_{x\to\infty}f(x)=0$   I tried many counter examples with no luck so I tried to prove it but couldn't pull it off either...

Let $g:[1, \infty)\rightarrow \mathbb R$ a continuous non-negative function, such that $\int_{1}^{\infty} g(x)\ dx$ converges. Is it true that $\lim\limits_{x\to \infty}g(x)=0$ ?   I tried to find a counter-example but I can't figure a trivial one. I also tried to prove it by the definition of the convergence of $g(x)$ but couldn't show that limit is really $0$.


I create a new local branch which is called development from the master branch by this command: git checkout -b development  after the command above executed, on the created branch I open some files make changes, then I move to the origin branch(in my case it is master) open the same file and I can see the changes that I made in the development branch. While I expect that changes that were made on one branch are not reflected in another branch. Any idea what can cause this strange behavior or how to fix the issue?

I am working on a git repository with a master branch and another topic branch. I have switched to topic branch and modified a file. Now, if I switched to master branch that same file is shown as modified.   For example:  git status in git-build branch:  # On branch git-build # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Switch to master branch  [root@redbull builder_scripts (git-build)]# git co master M       builder_scripts/cvsup_current Switched to branch "master"   git status in master branch  [root@redbull builder_scripts (master)]# git status # On branch master # Changes to be committed: #   (use "git reset HEAD <file>..." to unstage) # #       modified:   cvsup_current #   Why is that the file is shown as modified in master branch even though it was modified in git-build branch?   My understanding was that the branches are independent of each other and when I change from one branch to another the changes do not "spill over" from one branch to another. So I am obviously missing some thing here.   Anyone got a clue stick?


Consider the following sentence:     This table outlines a class of proteins that primarily attack the   brain.   I am not sure whether to use attack or attacks. If attack refers to class then I should use attacks, but if it refers to proteins then I should use attack.  In this case, both versions might work. However, I am not sure about this.

I wrote:     The ability to guarantee that a batch of writes occurs together.   One reviewer wanted to change that to occur.  I'm not sure if this is my idiom (Australian of U.K. origin) vs American or if I'm wrong.  I regarded batch of writes as a singular collective noun.  This  and others suggest using a plural verb with collective noun is less common in American English.  edit  To clarify, the sentence is in a book about programming computer databases and the full sentence is much longer, possibly too long!     Those three operations are all we need; everything else is sugar on top (or maybe something a bit more nutritious, like the ability to guarantee that a batch of writes occurs together).


I have a page on wordpress, that after you enter is redirected to your profile page. So far so good.  However, after the user logged in would have had no more access to the homepage. I've hid the "HOME" menu, but if for some reason it access the home page, I would like him to be redirected to their profile page.  Is this possible?

I have a website with login page that works normal. The problem is that once logged in, the user still has access to the login page form to enter, which should not happen.  I would like to know a wordpres plugin that redirects this user to another page when they access it after login.


I found this snippet online  union U { int a; int b; }; template<int U::*> void f();          ^^^^^^^^   I had never seen int U::* as a template parameter, what does it mean?

I came across this strange code snippet which compiles fine:  class Car {     public:     int speed; };  int main() {     int Car::*pSpeed = &Car::speed;     return 0; }   Why does C++ have this pointer to a non-static data member of a class? What is the use of this strange pointer in real code?


I just stumbled over a script with works in bash but not in zsh:  if [ Darwin = `uname` ]; then    library_path=DYLD_LIBRARY_PATH else    library_path=LD_LIBRARY_PATH fi if [ -z "${!library_path}" ]; then    eval ${library_path}=${thisdir}/lib64:${thisdir}/lib; export ${library_path} else    eval ${library_path}=${thisdir}/lib64:${thisdir}/lib:${!library_path}; export ${library_path} fi   the second if should apparently test, depending on the kernel, if $LD_LIBRARY_PATH is non zero, or if $DYLD_LIBRARY_PATH is non zero. And then either set or expand the respective variable.  How would I do the same in zsh? And is there a version that works in zsh and bash?

${!FOO} performs a double substitution in bash, meaning it takes the (string) value of FOO and uses it as a variable name. zsh doesn’t support this feature.  Is there a way to make this work the same in bash and zsh?  Background:  I’ve got a list of environment variables, like  PATH MAIL EDITOR   and want to first print the variable names and afterwards their values.  This works in bash but not zsh:    for VAR in LIST do         echo $VAR         echo ${!VAR} done   It should be somehow possible “the old way” with eval, but I can’t get it to work:  for VAR in LIST do         echo $VAR         echo `eval \$$VAR` done   I’m never going to understand why I can’t simply do arbitrary deep substitutions like ${${VAR}} or even ${${${VAR}}} if need be, so an explanation for that would be nice, too.


I am running Flask Shell as a way to interact with SQLAlchemy. However, I notice that whenever I run Flask Shell in my app directory, it only references the code that was present at the time it was run. This means that if I detect an error and update the code, I need to close my command terminal, re-navigate to my Flask app directory, and run Flask Shell again.  Is there any way for me either access my Flask app directly from the Python Shell, or to have Flask Shell automatically update if there is a change in the code? It seems incredibly inefficient to do it the way I have been doing it. The way I am currently running Flask Shell is that I am navigating to my Flask app directory in the command terminal and then running the "flask shell" command, every time I update my code.   To be clear, this is different from running a Flask app on localhost. That does update once the code is changed. Flask Shell, however, does not, and is specifically being used in this case to interact with SQLAlchemy.

I have a long-running Python server and would like to be able to upgrade a service without restarting the server. What's the best way do do this?  if foo.py has changed:     unimport foo  <-- How do I do this?     import foo     myfoo = foo.Foo()


Calculate using integration by parts $$\int \dfrac{x^2}{(x^2+1)^2}$$   I'm looking through some working for this question and it gives  $u=x/2, u'=1/2$  $v'=\dfrac{2x}{(x^2+1)^2}, v=\dfrac{-1}{x^2+1}$  I'm confused as to why these values for u and v are used and would appreciate it if someone could explain why

I'm trying  to calculate $\int \frac{x^2 }{(x^2+1)^2} dx$ by using the formula: $$ \int udv = uv -\int vdu $$  I supposed that $u=x$ s.t $du=dx$, and also that $dv=\frac{x}{(x^2+1)^2}dx$, but I couldn't calculate the last integral. what is the tick here?           the answer must be: $ \frac{1}{2}arctan\ x - \frac{x}{2(1+x^2)} $ + C


I just installed the latest version of Lubuntu on an older computer. Everything seemed fine until it tried to start up after the Installation was done and the dvd was ejected. It showed a Lubuntu screen , bu then just a small blinking white line, like an underscore, and blank screen. This just repeats over and over . Can anyone help? Btw, I don't know much about computers so basic is better.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


fine the limit :  $$\lim_{n\to \infty} (1+\frac{\sqrt[n]{a}-1}{b})^n=?$$  $a,b\in \mathbb{R}$  My Try :  $$\lim_{n\to \infty} (1)+\lim_{n\to \infty}(\frac{\sqrt[n]{a}-1}{b})^n=1+0=1$$  Because:  $$\lim_{n\to \infty} \sqrt[n]{a}=1 $$  is it right ?

How can I find the $\lim  (1+(a^{1/n}-1) / b)^n$ when $n \to \infty$?    I would greatly appreciate it if you kindly give me some hints.


In the context of a discussion of consistency of an estimator $\hat{\theta}_n$ (where n is the sample size), what is the meaning of its pdf? Is it the same as its likelihood function?

I've read a number of different explanations trying to understand the likelihood function, and I understand the purpose of it, but some statements sound contradictory.  Consider observed data X, model parameters M, likelihood function L(M|X), and probability P(X|M).  I keep seeing it written that L(M|X) = P(X|M). At the same time, they say that the likelihood is not the same thing as the probability and L is not a probability density function (pdf).   What does it mean to say they are not the same thing but equal?  How could L be equal to a pdf, but not be a pdf?  Reference to one of the places I've read this:


I'm newbie to TikZ.  When I use < and > in matrix, they are interpreted to some other symbols.  The following code  \documentclass[tikz,convert=pdf2svg,multi=false]{standalone} \usepackage[ngerman]{babel} \usetikzlibrary{matrix} \begin{document} \begin{tikzpicture}   \matrix [matrix of nodes] {     <hello> & world\\   };  \end{tikzpicture} \end{document}   will produce PDF and SVG:  ¡hello¿ world   <hello> was translated to ¡hello¿.  Question   Why? How do I input angle bracket in matrix

When typing < or > in LaTeX and compiling with pdflatex, the less than and greater than symbols appear at upside down exclamation points. I'm not in math mode.


How is possible that somebody with little reputation (as little as 20) can edit my posts? I got a notification about a suggested edit, but I couldn't find how to reject it, and when I opened the post, the changes were there and I had to undo them manually.

When clicking "edit" I see:  Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.  Like:     Likewise, when I am not logged in, clicking "improve this question" or "improve this answer" shows:  You are not . Your edit will be placed in a queue until it is .  And when I click 'Save', I get:  Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members  Like:     Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the "Improve Edit" and "Reject and Edit" buttons do? Why are apparently valid links to rejected edits resulting in 404 errors?   For more information about editing, see "" in the .


Suppose $R$ is a ring with identity and $x^n = x, \,\, \forall x\in R$ for some fixed integer $n \geq 2$. Prove that $x^{n-1}$ commute with any elements of $R$.  In the case $n = 2$, I can show that $x+x = 0$ and $x+y = (x+y)^2 = x + xy +yx + y,$ hence $xy + yx = 0,$ hence $xy = yx.$

Let $R$ be a ring satisfying: $\forall x\in R, \; x^3=x$. Prove that $R$ is a commutative ring.


No matter what I do, my recipe produces bread that is pretty dense, I get none of those nice huge holes in the crumb. My recipe goes like this:   500g flour (300g wheat, 200g rye) 350ml water 2 tbsp vinegar two pinches of salt I use 1 packet of dry active yeast (for 500g of flour) or fresh yeast (20g)   I typically use my my stand mixer w/ dough hook to mix this for about 5-10 minutes. Then let it proof for 20 minutes, flatten and let rise for another hour. Then I bake the bread starting at 260 celsius for the first ten minutes, then decreasing to 200-200 until finished. I create steam at the beginning by pouring hot water on a baking tray.  What could possible be wrong with my recipe that prevents me from getting crumb like this? Is that only achievable with sourdough starter? I experimented with that for a while and my results were a little bit better, but not quite where I want to be.

Is it a high hydration rate? Minimal kneading? High-protein flour to hold hydration?


First, I found  and read   I'm having a hard time understanding why we should queue messages for so long. Doesn't that just confuse the end users when their message disappears into a queue for 4 or 5 or 7 days? Especially when they are expecting the message to get there in 3 minutes (or maybe even "instantly")?  I've tried to come up with "horror story" scenario where having a short queue lifetime could cause problems that end users would blame the SMTP server administrator for. I haven't been very successful. Here's the best I have:   Someone mis-configures their mailserver's DNS with a TTL of 86400. An account on our server gets compromised and used to send spam. We get blacklisted on a DNSBL. (Would that even be seen as a temporary failure? Or is that seen as a permanent failure?)   It seems like anything I can come up with where a remote server is actually down, one of our users getting a bounce would be happy to blame the remote server admins instead of us. And, it seems like an end user might even appreciate getting a bounce instead of having their message "disappear" for a couple of days.  I have heard of greylisting, but my understanding is that is for a short time, maybe a max of 15 minutes of delay.  What would be the harm of having a queue lifetime of ~ 12 hours? Or even 6 hours? What good reasons are there for 4+ day queue lifetimes? Or is it just ?

We run an e-mail server for a few customers, and we've recently run into a bit of a conundrum.  We had a user who sent an e-mail to an incorrect e-mail address. The incorrectly specified domain unfortunately existed. It did not have MX records, and the A record of the domain went to a server which did not speak SMTP. Therefore, the e-mail server attempted delivery and did not succeed because no e-mail server was running.  For that reason, our e-mail server, entirely in accordance with the SMTP RFC, attempted re-delivery over the course of five days and finally gave up and sent a notice to the sender after 5 days of unsuccessful delivery.   says:     Retries continue until the message is transmitted or the sender gives up; the give-up time generally needs to be at least 4-5 days.   Therefore, the mail server in its default configuration, in this case has operated in accordance with the RFC, meaning that a user specifying the wrong e-mail address in this case would not receive notice of that except five days later.  At this point, my boss has asked whether it would be possible to reduce the give-up time to something shorter, say 1 day. His reasoning is that it is better that the user be notified earlier of non-delivery, and that the user may attempt re-delivery at a later date, or delivery through an alternate channel. It sounds like a reasonable thing to do, but in general I'm wary of performing any kind of configuration changes which contradict what's in the RFC.  Is there any non-obvious reason why it would be a bad idea to reduce the give-up time to 24 hours, beyond just saying "the RFC says otherwise"?  Also, what do the bigger e-mail providers out there (the Googles, Microsofts, AOLs and Yahoos) do in this scenario?


I'm using Ubuntu 16.04. Is there any way to change default font in all windows? Like change it's default fonts (like size or make title string non bold)?

I've been finding fonts on the internet and  on my system.   What's the easiest way to change my fonts? I would prefer an easy to use graphical way, but answers with command line recommendations are also welcome.


Not sure how to approach this problem below. I tried assuming the conditional but that doesn't seem to get me anywhere.     If for a sequence of non-negative real numbers $\{a_n\}$, we have $$\sum{a_kb_k}$$ converges whenever $$\sum{b_k^2}$$ converges. then show that $$\sum{a_k^2}$$ converges

I'm trying to prove the following:     If $(a_n)$ is a sequence of positive numbers such that $\sum_{n=1}^\infty a_n b_n<\infty$ for all sequences of positive numbers $(b_n)$ such that $\sum_{n=1}^\infty b_n^2<\infty$, then $\sum_{n=1}^\infty a_n^2 <\infty$.   The context here is functional analysis homework, in the subject of Hilbert spaces.  Here's what I've thought:  Let $f=(a_n)>0$. Then the problem reads: if $\int f\overline{g}<\infty$ for all $g>0,g\in \ell^2$, then $f\in \ell^2$. This brings the problem into the realm of $\ell^p$ spaces.  I know the inner product is defined only in $\ell^2$, but it's sort of like saying: if $\langle f,g\rangle <\infty$ for all $g>0,g\in \ell^2$ then $f\in \ell^2$.  I read this as: "to check a positive sequence is in $\ell^2$, just check its inner product with any positive sequence in $\ell^2$ is finite, then you're done", which I find nice, but I can't prove it :P  From there, I don't know what else to do. I thought of Hölder's inequality which in this context states: $$\sum_{n=1}^\infty a_nb_n \leq \left( \sum_{n=1}^\infty a_n^2 \right)^{1/2} \left( \sum_{n=1}^\infty b_n^2 \right)^{1/2}$$  but it's not useful here.


I'm working with linux and I want to make a script that gets an username in the input and it returns the memory that their proccess are consuming.  How can I achieve this.

This question is covered  in great detail. How do you measure the memory usage of an application or process in Linux? From the blog article of , ps is not an accurate tool to use for this intent.  Why ps is "wrong" Depending on how you look at it, ps is not reporting the real memory usage of processes. What it is really doing is showing how much real memory each process would take up if it were the only process running. Of course, a typical Linux machine has several dozen processes running at any given time, which means that the VSZ and RSS numbers reported by ps are almost definitely wrong.


I cannot set a variable with a whole command-string as following:  A="/bin/ps wwwaux"  for a in $A do   echo "$a" done   It assigns array instead of solid string someway.  My environment:  GNU/Linux, GNU bash, version 3.2.51(1)-release (x86_64-suse-linux-gnu)

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Continuing experimenting with conditional text, I am getting a code with a number of options: some dialogs in english are translated, some other options (not shown in the MWE) enable the document be compiled with or without the graphics. In order to enable an final conversion into a docbook format, I have also made a macro to eliminate explicit reference to chapters, and page numbers. There are other variants. The number of options begins to be a problem for each revision. I would like to be able to generate (compile) most variants sequentially without a manual change of parameters in the code. I have just discovered makefiles, and I am wondering if a makefile could be used to generate all the different variants of the document and how. I have considered locating the lines of code containing the options that need to be changed in subfiles and would be optionnally used for compilation. What would be the best approach ?  \documentclass[a5paper, 11pt,oneside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc}%  \usepackage{ifthen} \usepackage[english, frenchb]{babel}% Pour franciser LaTeX  \def\pagenum{n} %page numbering  {n} to eliminate  \makeatletter \ifthenelse{\equal{\pagenum}{n}}{\let\ps@plain\ps@empty}{}%first page of chapters \makeatother %==================== \def\lang {ef} %variable used for conditional text e=english, f=french, ef=english with footnotes \newcommand{\CondText}[2]{% \ifthenelse{\equal{\lang}{e}}{{\selectlanguage{english}\emph{#1}}}{}% \ifthenelse{\equal{\lang}{ef}}{{\selectlanguage{english}\emph{#1}}% \footnote{\selectlanguage{french} #2}}{}% \ifthenelse{\equal{\lang}{f}}{{\selectlanguage{french} #2}}{}% }%  \begin{document} \ifthenelse{\equal{\pagenum}{n}}{\pagestyle{empty}}{}% \ifthenelse{\equal{\pagenum}{n}}{\chapter*}{\chapter}{L'auberge}  \CondText {--- Sir, the manager needs to see you before you go !}{--- Monsieur, le patron veut vous voir avant votre départ !}\medskip  Some text in french\dots{}     \end{document}

Say you have two versions of the same LaTeX document.    For instance, you have one version of your lecture slides for actually delivering a lecture: as you're really not a big fan of the "wall of text", this version would be parsimonious in terms of text content, allowing the audience to listen to what you're talking  about instead of reading the slides, and giving graphical content centre stage.  Another version of those slides, made available to the audience after the lecture, for self-study, would be more self-contained and include a summary of what you said during that lecture along with the graphical content mentioned above.  Consider that you can toggle between the two versions by either changing a class option or by changing the value of some dedicated counter in your input file; something relatively simple to do "by hand".  To produce two different versions of the same document, my current workflow is   "manually" compile the first version, change the filename of the output produced (in order to prevent overwriting in step 4) make appropriate changes in my input file to switch to the second version, "manually" compile the second version.   However, this workflow is tedious and error-prone, especially when the number of different versions increases. I would like to automate it as much as possible. Is there a way to batch compile all the versions of my document, each getting a different output filename?  I guess that would involve modifying the input file at the command line (I'm on Mac OS X), but I don't know how to do that.  Do you have an automated workflow for compiling multiple versions of the same document? How do you do it?  Edit: I figured it out using  and  on , of which my question is a duplicate.


private void Extractions(string htmlFileName, int offLineFileNumber, bool onlineOffline)         {             if (onlineOffline == false)             {                 OffLineDownload.offhtmlfiles();                 page = OffLineDownload.OffLineFiles[offLineFileNumber];                 byte[] bytes1 = File.ReadAllBytes(page);                 page = Encoding.GetEncoding(1255).GetString(bytes1);                 TextExtractor.GetDateTimeList(page);                 StreamWriter w = new StreamWriter(@"C:\Temp\" + htmlFileName);//@"d:\rotterhtml\rotterscoops.html");                 w.Write(page);                 w.Close();                 extractlinks.Links(@"C:\Temp\" + htmlFileName);                 TextExtractor.ExtractText(@"C:\Temp\" + htmlFileName, newText);             }             else             {                 client.Encoding = System.Text.Encoding.GetEncoding(1255);                 page = client.DownloadString("http://rotter.net/scoopscache.html");                 TextExtractor.GetDateTimeList(page);                 StreamWriter w = new StreamWriter(@"d:\rotterhtml\rotterscoops.html");                 w.Write(page);                 w.Close();                 extractlinks.Links(@"d:\rotterhtml\rotterscoops.html");                 TextExtractor.ExtractText(@"d:\rotterhtml\rotterscoops.html", newText);             }         }   If the user calls the method I want him to have two options to call it with all 3 variables:  string htmlFileName, int offLineFileNumber, bool onlineOffline   Or to call it without the variables and if it's () so it will be automatic true.

I was watching , and it got me thinking about when optional parameters are available in C# what is going to be the recommended way to declare methods that do not need all parameters specified?  For example something like the FileStream class has about fifteen different constructors which can be divided into logical 'families' e.g. the ones below from a string, the ones from an IntPtr and the ones from a SafeFileHandle.  FileStream(string,FileMode); FileStream(string,FileMode,FileAccess); FileStream(string,FileMode,FileAccess,FileShare); FileStream(string,FileMode,FileAccess,FileShare,int); FileStream(string,FileMode,FileAccess,FileShare,int,bool);   It seems to me that this type of pattern could be simplified by having three constructors instead, and using optional parameters for the ones that can be defaulted, which would make the different families of constructors more distinct [note: I know this change will not be made in the BCL, I'm talking hypothetically for this type of situation].  What do you think? From C# 4.0 will it make more sense to make closely related groups of constructors and methods a single method with optional parameters, or is there a good reason to stick with the traditional many-overload mechanism?


I would like to install Ubuntu on my old Dell Precision M4400 notebook, but I am not sure on the right version to use.   Specs:   Intel 2.53 GHZ processor 2 GB RAM NVIDIA Quadro FX 770M, 512MB Graphics card.    Any advice is appreciated.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


i need query for some value with same ID in many rows to become one row  this is myssql  select id, case when a.id = b.id then b.name  else null end as ModelName from Unit a inner join Product b on a.id = b.id  where a.id = 36239  36239    PAN FEEDER 1000MM X 1500MM  36239   NS 400 GYRATORY CONE CRUSHER     36239   NH 400 TERTIARY CONE CRUSHER     36239   SCALPING SCREEN 6'X12'X2 DECK    36239    PRODUCT VIBRATING SCREEN 8'X20'X3 DECK  36239   ADPLUS PAN FEEDER 900 X 1500     36239   GRIZZLY FEEDER DHS 6       my expected result is  36239 PAN FEEDER 1000MM X 1500MM NS 400 GYRATORY CONE CRUSHER NH 400 TERTIARY CONE CRUSHER

Using MySQL, I can do something like:  SELECT hobbies FROM peoples_hobbies WHERE person_id = 5;   My Output:  shopping fishing coding   but instead I just want 1 row, 1 col:  Expected Output:  shopping, fishing, coding   The reason is that I'm selecting multiple values from multiple tables, and after all the joins I've got a lot more rows than I'd like.  I've looked for a function on  and it doesn't look like the CONCAT or CONCAT_WS functions accept result sets.  So does anyone here know how to do this?


I'm not able to understand why the global variable is not working.  global globalvar globalvar = 0 def print_globalvar():         globalvar = globalvar + 1         print globalvar  def print_var():         print_globalvar()         globalvar = 10         print_globalvar()  print_var()   Traceback for the above code.  Traceback (most recent call last):   File "test.py", line 14, in <module>     print_var()   File "test.py", line 9, in print_var     print_globalvar()   File "test.py", line 5, in print_globalvar     globalvar = globalvar + 1 UnboundLocalError: local variable 'globalvar' referenced before assignment

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I am relatively new to the Linux environment and also have no experience in using python before.   I am trying to install Spyder3 on Xbuntu 16.04. I installed using pip3.  pip3 install spyder3   But when I try to open it on terminal, it gives me Segmentation fault.  Any tip what I can do?   XUbuntu - 16.04 (64bit) Python 3.5.2

I'm looking for instructions on how to download and install Spyder3.  I'm running Ubuntu 14.04 and these are my computer specifications:   Ubuntu 64bits Lenovo 510 Core I7 Ram: 8gb


I recently installed Ubuntu on my pc and I was amazed how fast it is. My parents got old laptop which they use only for surfing the Web and watching movies sometimes (they just plug tv into it and watch from HDD). It's Fujitsu-Siemens Amilo Pro v2055. I wanted to install Ubuntu on this "rig", I have a feeling it will perform much better than WinXp. It's technical parameters are: 1.6 Ghz Intel Celeron M420, 1 GB Ram, VIA/S3G Unichrome 64 MB GPU, 80 GB HDD. So, my question is: which version would run well on this machine? And are the drivers available?  Shando


So as others on here have, I clicked on the super secret settings button in minecraft and my screen got all messed up. I clicked Fn+F4 and restarted my game but the screen still looks messed up. I clicked Fn+F3 and it says I have no shaders on. Now when I click on the super secret settings button, it overlays a random shader on top of the one that's stuck on my game. How do I put my screen back to normal if it thinks it is normal?  Heres a screenshot to show that my screen is messed up but it doesn't show any shaders:  And here is where I clicked the button again and now two shaders are stacked:   Someone help this is really messing my game up and making it impossible to play.

I have updated my drivers, updated java, restarted my computer and downloaded the game several times. When I try to play the game everything is duplicated in opaque red and blue. Does anyone else have this problem?


How do I solve this?  Number of non-negative solutions to $x_1 + x_2 + x_3 + x_4 = 4$ where $0 \le x_i \le 3$?  What's the general technique? I already know the technique for $j \le x_i$ but have no clue about upper bound restrictions.

The problem of counting the solutions $(a_1,a_2,\ldots,a_n)$ with integer $a_i\geq0$ for $i\in\{1,2,\ldots,n\}$ such that $$a_1+a_2+a_3+....a_n=N$$ can be solved with a stars-and-bars argument. What is the solution if one adds the constraint that $a_i\leq r_i$ for certain integers $r_1,\ldots,r_n$?  e.g. for $n=3$, $N=6$ and $(r_1,r_2,r_3)=(3,3,2)$, the tuple $(a_1,a_2,a_3)=(2,3,1)$ is a solution, but $(2,1,3)$ is not a solution because $a_3=3>2=r_3$.


What is "==" in Java ? Why can i only compare numerical data type with it and characters can be compared. But not the string data types. What does it provide when i compare two strings?

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


I'm creating a tile based game similar to . When a user clicks on a tile and its not a mine or a number space I need to search and expose the adjacent tiles that are empty and stop when it hits a number or the edge of the board. I have it working right now so that it will clear the row of the tile clicked and stop at a numbered tile or the edge of the board. What I have is going to get ugly quickly and I am sure there is a easier way of doing this. Is there a searching algorithm I can use that will find all adjacent tiles to the one the player click only stopping once it hits the edge of the board or hit a numbered tile?

I'm currently making a Minesweeper in C#. I've already done the basics (generating minefield, rules and ui) but I don't know how I should implement when the user clicks a cell and the cell has no mines nearby and clicks nearby cells with also no mines nearby, like this:    And after click    This is my current code on this:  if (MineField(x,y) == false) // If the clicked cell isn't a mine {     if (GetNeighbours(x,y) == 0) // GetNeighbours returns the amount of mines in the closest 8 cells     {         // To be honest, no idea...     } }


I want to find a formula for the sum of this series using its general term. How to do it?  Series $$ S_n = \underbrace{1/3 + 2/21 + 3/91 + 4/273 + \cdots}_{n \text{ terms}} $$  General Term  $$ S_n = \sum_{i=1}^{n} \frac{i}{i^4+i^2+1} $$


There was a boy and a girl, and they had a small puppet creature with the name of Prism, and at the end it turned into an actual prism of crystal on a necklace, I think. Near the end, it might be that their ship was being eaten by multiplying slug puppets?

I'm looking for a 90s (or early 2000s) scifi (mini)series where a boy and old man chase a black guy in metal suit. I think they were going through different dimensions. I remember part of it, but I don't think I ever saw how it ended. I remember my friend telling me there was a twist at the end. I think they were trying to find something and he was always ahead of them..


Hi friends How do I get only the main message here is to show my j44?  error: function (xhr, status, errorThrown) { alert(xhr.responseText); }

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


I have a Hp Pavillion Laptop with Windows  8.1  SL installed .I want to install Ubuntu in my Laptop with dual boot. I have downloaded the Latest Ubuntu iso.   Please help in getting the step to install ubuntu in windows 8.1 as dual boot.  The Configurations are Processor: Intel Core i3 3rd Gen HDD: 500GB-(Partitions-C,D,E,F; C Drive contains Windows ,D and E are Free and F is the rocovery drive.) RAm:4 GB Graphics:2GB

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I started to create a new directory which I intended to add and commit to CVS. I created a directory, and executed cvs add ./templates/ which worked. Then I never committed. cvs status still sees the directory, but now I want to remove the directory. When I run cvs status I receive the following:  $ cvs status cvs status: Examining templates cvs status: in directory templates: cvs [status aborted]: there is no version here; do 'cvs checkout' first   When I try to run cvs remove:  $ cvs remove ./templates/ cvs remove: Removing ./templates cvs remove: in directory ./templates: cvs [remove aborted]: there is no version here; do 'cvs checkout' first   When I try a cvs checkout:  $ cvs checkout ./templates/ cvs checkout: cannot find module `./templates' - ignored

I'm not quite sure how this happened, but somehow a completely empty hierarchy of directories has ended up in my repository:  com/ com/companyname/ com/companyname/blah/ com/sun/ com/sun/java/ com/sun/java/jax_rpc_ri/   I think what happened was that these directories did have files in them, but then a developer realized he/she shouldn't have checked them in in the first place since these are by-products of the build process, so he/she removed the files but somehow the empty directories are left in the repository as ancient relics.  How can I remove this from CVS? The only results I seem to be able to find on google say that there shouldn't be a need to remove empty directories as CVS won't keep them around in the first place, and that the -P (prune) options to cvs update should remove them from the working directory  - which is zero help if you actually have empty directories in your repository.  A cvs remove and cvs commit doesn't seem to take care of this situation:  $ cvs remove -Rf com cvs remove: Removing com cvs remove: Removing com/companyname cvs remove: Removing com/companyname/blah cvs remove: Removing com/sun cvs remove: Removing com/sun/java cvs remove: Removing com/sun/java/jax_rpc_ri $ cvs commit com cvs commit: Examining com cvs commit: Examining com/companyname cvs commit: Examining com/companyname/blah cvs commit: Examining com/sun cvs commit: Examining com/sun/java cvs commit: Examining com/sun/java/jax_rpc_ri $ ls -l com total 24 drwxrwxr-x  2 matt matt 4096 Oct 15 14:38 CVS drwxrwxr-x  9 matt matt 4096 Oct 15 14:38 companyname drwxrwxr-x  4 matt matt 4096 Oct 15 14:38 sun   It's still there!  Does SVN have this weird behavior too?


I installed Ubuntu 14.4.3 LTS in my home PC(gigabyte motherboard, AMD phenon X2 Processor and 4GB ram) but when i try to start in the next morning it won't start, stuck with "initramfs" prompt.

I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today).  After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt:  BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)   I've been researching others who have had this same problem, but haven't been able to find any of those solutions to work for me.  I tried the method described , and after the final command   mount -t ntfs-3g /dev/sda1 /root -o force   it does nothing and gives me another (initramfs) prompt.  I can boot to a live CD (USB) and get to a terminal, but it doesn't seem to do much good, as I can see the /dev/sda1 in the ls command, but it doesn't recognize it when I try to cd to it.  One more question: using the command fdisk -l how can I tell which mount point (sda1/sda2) is my windows partition and which one is Ubuntu?


I am using RegReplace in sublime text to find and replace strings.  I have the following lines as an example: <operator activated="true" class="process" compatibility="9.4.000" expanded="true" name="lol_i_renamed_this_operator"> <operator activated="true" breakpoints="after" class="jdbc_connectors:read_database" compatibility="9.2.001" expanded="true" height="82" name="lol" width="90" x="45" y="34"> here is the code snippet (it's part of a list of find and replace calls): { "format": "3.0", "replacements": {     "update_compatibility":     {         "find": "compatibility=\"9.*\"",         "name": "remove_blank_line",         "replace": "compatibility=\"9.8.000\""     },  The result I get is: <operator activated="true" class="process" compatibility="9.8.000" <operator activated="true" breakpoints="after" class="jdbc_connectors:read_database" compatibility="9.8.000" How can I edit the "replace" so that I get all the text and only replace the part I have searched for? Like this: <operator activated="true" class="process" compatibility="9.8.000" expanded="true" name="lol_i_renamed_this_operator"> <operator activated="true" breakpoints="after" class="jdbc_connectors:read_database" compatibility="9.8.000" expanded="true" height="82" name="lol" width="90" x="45" y="34"> Ive verified the "find" works in both sublime text and regexr, but can't find anywhere to test the "replace". Thank you!

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I arrived to Europe from Canada July 3rd. Got a residence permit and working visa the 4th for two months and now I've been traveling. Since July 3rd my 90 days of a Schengen visa are up next week.  But do those two months of work with the residence permit count from the 90 days? Or are they exempt? Websites are giving me mixed answers.

I am an American citizen living in Poland for 6 months.  I arrived in Poland on February 1, 2016 without a Visa. The count toward my Schengen days began. I received my Work Visa for Poland on April 7, 2016.  The work visa expires on July 7th. I intend to stay in Poland until July 30, 2016 (which is 180 days after I entered on February 1)  My question is, do the days that I am on a Work Visa count toward my "90 days within a 180 day period" as a tourist?  And when my work visa expires on July 7th, will I be able to remain in Poland until July 30?  February 1 -> April 7 = 66 days July 7 -> July 30 = 23 days Total days as a tourist = 89 days


I'm following  online.  At a point the author talks about "dynamic callback" to a function.  Could someone explain me what it is exactly because I didn't get it?

From the reading that I have done, Core Audio relies heavily on callbacks (and C++, but that's another story).    I understand the concept (sort of) of setting up a function that is called by another function repeatedly to accomplish a task.  I just don't understand how they get set up and how they actually work.  Any examples would be appreciated.


Feature request / idea: Sometimes a question seems to fall in between two sites.  An example might be  email questions, could be the code or could be the php.ini which often ends up being a system administrator. So my idea is that there could be a check box to show it on another site as well. It would be grayed out on the other site and only visible to people with high reputation points, and they could approve it, and then everyone would be able to see it on the other site as well. Maybe they could add answers, or maybe it would just be visible and people could go to the other site to add the answers. So for example, if the question was posted on Stack Overflow, there could be a 'show on Server Fault' check box. Which Server Fault  moderators / high reputation points users could vote to be shown there as well. These could also maybe be community-wiki so simplify the reputation points question. One downside I can think of is that maybe this might create more confusion about what to put what where worse, and maybe that would outweigh any benefits. Maybe it has been thought of, but I just thought I would share the idea...

I've been a Stack Exchange contributor for a couple of years now, currently most active on . One thing that keeps coming up is questions that would appeal to audiences on two different Stack Exchange sites but there are almost no features taking advantage of these questions. On travel.SE we have crossover questions most often with  and possibly next most often with  - but it can happen with almost any SE site. Today alone we had  with  and  had . I am absolutely sure that this must happen all the time between arbitrary pairs of Stack Exchange sites but the only feature that takes advantage of it is the possibility of migrating off-topic questions which leaves the original question acting as a redirect across the two sites. I think there is a missed opportunity to build the network between sites where users of one site don't realize they could make valuable contributions to a sister site they have had so far little to do with. At the very least there could be a way to "advertise" a question on a second site that could be interested in it. Probably by listing it in the sidebar where there are also links to meta questions, linked questions, related questions, new blog posts, and But there could also be some kind of features that make some sort of acceptable crossposting. There could be gamification/badges added around building cross-site questions or whatever else you can think up. I think this is a great way for people to spread their expertise from their main site onto other sites, to make the network stronger and more cohesive, to bring more attention to questions that would have a divided audience between two sites. I can think only of positives and no negatives. Does anyone else have some ideas to add or think this is a bad idea for any reason?  Example crossover questions: Here are some links to some crossover questions I've been finding in the Stack Exchange network here. (This was previously posted as an answer, but more people wanted it to be part of the question.)   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :   ▶  :


I am taking a Quantum Mechanics II course and we were studying the relativistic corrections to the hydrogen atoms in perturbation theory. I was looking at the assignment, and a question is as follows:      Consider the non-relativistic Hamiltonian for a charged particle $-e$, in presence of an external, constant and uniform magnetic field $$B=\hat{e}_3B_0$$ in the symmetrical gauge $A=0.5B \times r $   But I don't understand what a Gauge is in this context. If I wish to find the Hamiltonian, what information is that supposed to give me? Could you explain to me what a gauge is for someone who has not had gauge theory, or link me to some basic bibliography to learn it?

As I study Jackson, I am getting really confused with some of its key definitions. Here is what I am getting confused at. When we substituted the electric field and magnetic field in terms of the scalar and vector potential in the inhomogeneous Maxwell's equations, we got two coupled inhomogeneous wave equations in terms of $\mathbf{A}$ and $\phi$. So, the book states that to uncouple them, which definitely makes our equations simpler to solve, we introduced gauge transformations as adding a gradient to $\mathbf{A}$ and adding a constant to $\phi$ would not affect their meaning. My question is which one is a gauge and why in the expression for a gauge transformation $$\mathbf{A'}=\mathbf{A+\nabla \gamma}.$$ Somewhere in the internet, I read that $\gamma$ is a gauge function. So, is $\gamma$ a gauge, if yes, then why?   Basically: What is a gauge?


I'm looking to get the X/Y coordinates of the caret within a textarea on key down.  I've searched vigorously but without any luck whatsoever, it seems you can get the position, but not the on-screen X/Y coordinates.

I am using jQuery and trying to find a cross browser way to get the pixel coordinates of the caret in <textarea>s and input boxes such that I can place an absolutely positioned div around this location.  Is there some jQuery plugin? Or JavaScript snippet to do just that?


I recently began to study "probability theory" in the sense of a rigorous mathematical treatment of probability in terms of measures,and etc.   But, my background in probability is really elementary, no more than a basic discrete probability, so whenever I encounter concepts like random variables, I understand the definitions, theorems and etc, but I do not really "see" them as I do not have an intuitive feel for what they really are.  Can you recommend a good book which can help me develop intuition for probability theory, possibly at the cost of being sloppy in mathematical rigour?

I have Ross' A First Course on Probability and Bertseka's Introduction to Probability book. However these two books do not exactly give me what I am looking for. The problem is  Bertsekas' book is introductory, while Ross' book explains expression $E[\ E[X\mid Y] \ ]$ just by briefly saying it is a function of $y$ if I remember correctly. I need a probability book which will make me feel comfortable with the symbols and letters rather than ready made formulas. I want to be able grasp when a random variable is a constant or when it is not. I want  to be able to read and understand equations involving both random variables and constants and when are interpreted as a rv. when they are not etc.


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

When I turn WiFi on, my 3G connection shuts down, which is fine in most cases. However, I need to connect to a LAN at work that is not connected to the internet and I'd prefer not to lose my data connection when I connect to the work intranet. How can I keep both connections active? Ideally, I could limit this desired behavior to this one SSID because I want it to continue to operate with the default behavior for all other WiFi connections.  If that can't be done, prefer a solution that is easy to toggle on and off. I'm using a Samsung Galaxy Nexus (Verizon Wireless) on CyanogenMod 9.


I'm following  guideline on setting up droidcam so I can use my android phone as a webcam, the first two scripts run okay but when I run sudo apt-get update there's an error related to the installation  E: Failed to fetch http://ppa.launchpad.net/paolorotolo/droidcam/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.

PPA seems to be constantly offline. Whenever I use sudo apt-get update, this error is shown:  W: Failed to fetch http://ppa.launchpad.net/ 404  Not Found   How do I fix these errors?


I am new to data analysis and now working on a Mixed Effects Logistic Regression Model.Currently I have a data frame (model_data) that looks like the following:  Vehicle_id    entry_time         exit_time          last_veh_time  vehicle_type  __________     ___________       __________        ____________    ____________     1        2017-01-31 00:00:00  2017-01-31 00:00:00    300         4 wheel    status _______   0    Likewise, I have information(nearly a million rows) on all vehicles entering a place and exiting the same place. status can be either 1 or 0 for all of these. last_veh_time is the last vehicle passed the same place before how much time. I want to know the probability of a getting status 0 for a vehicle based on entry_time and last_veh_time. So here my response is status and which will be my dependent variable?Is it entry_time and  last_veh_time?Any help is appreciated

I am new to data analysis and now working on a Mixed Effects Logistic Regression Model.  Currently, I have the following data frame (model_data):  Road Id Vehicle_id  entry_time           exit_time          1        1        2017-01-31 00:00:00  2017-01-31 00:00:00 last_veh_time  vehicle_type     status 300            4 wheel          0    Likewise, I have the information (nearly a million rows) of all the vehicles entering a place and exiting the same place.  Status can be either $1$ or $0$ for all of these.  last_veh_time is the last vehicle passed the same place before how much time.    I want to know the probability of a getting status $0$ for a vehicle based on the entry_time and last_veh_time. To do this, I created the model:   model = glmer(status ~last_veh_time + (1 |link ),               data=model_data, REML=FALSE)   Is this the right approach?  Any help is appreciated.


Why gravity is an attractive force?     One may say that it is because of space time curvature but General Relativity is built on this law: $\displaystyle G \frac{m_1 \times m_2}{r^2}$ (To be more precise, it is  from it's potentiel form known as  that can be written like this: $\nabla \cdot g = - 4\pi Gp  $). So GR can't explain why gravity is attractive. General Relativity only explains how gravity occurs in terms of space time.    Another may stick with the Quantum theory stating that gravitons are responsible for the force of gravity, but why a massless particle with spin 2 will exchange positive momentum?

Why is the gravitational force always attractive? Is there another way to explain this without the curvature of space time?   PS: If the simple answer to this question is that mass makes space-time curve in a concave fashion, I can rephrase the question as why does mass make space-time always curve concavely?


From what I understand, GPS localization is based on the difference in the reception time from the time of emission of a signal from different GPS satellites whose positions are known. For this we need very precisely synchronized clocks in the satellites.   Due to the relative motion of the satellites, we need special relativity to make sure to keep the clocks in sync with each other (and with a reference clock on earth, but absolute time on earth doesn't play a role). Due to the change in gravitational potential, we would need general relativity to keep the clocks in sync with a reference clock on earth.   In the answers to other questions linked to in the comments, a computation is made in which the difference in time between a precision clock on earth and one in a GPS satellite in increased by about 38 $\mu s$ per day. The conclusion that is then drawn is that light travels 11 km in that time, so that we would get that error for each day that passes.  However, for GPS to work, we don't need to measure time difference with a clock on earth (we don't have a precision clock in our GPS receiver, and I don't think we connect to one either), only time differences between satellite clocks, so it would seem to me that the clocks in the satellites only have to be in sync with each other. Since the satellites are at the same height, the gravitational time contraction should be very similar for all of them.  Am I misunderstanding or overlooking something?  EDIT   My question is not about how general relativity is used in GPS, but rather if that is really needed? Supposing we wouldn't be aware of general relativity, we might scratch our heads over why the clocks keep getting out of sync w.r.t. our local clocks in spite of the special relativistic corrections, but wouldn't the clocks on the satellites still be in sync such that the computed positions would be essentially correct? This means that the answer linked to in a duplicate vote is the opposite of an answer to this question. The computation there seems correct, but doesn't seem relevant for the position computation (as absolute earth time doesn't play a role if I correctly understand how GPS works).

I am reading A Brief History of Time by Stephen Hawking, and in it he mentions that without compensating for relativity, GPS devices would be out by miles. Why is this? (I am not sure which relativity he means as I am several chapters ahead now and the question just came to me.)