I'm new to Ubuntu (and any kind of linux distributions). Now, I'm using Ubuntu 14.04 and Windows 7 (dual boot) in my HP Notebook 15-r203tx.  The problem is that, connection to the internet using WiFi gets disconnected after some time. And, there is no such problems in Windows.  I'm not sure about the way Ubuntu works with the hardware drivers. I installed all the required drivers (related to network) in Windows and it is working fine. But, I did not install any drivers for Ubuntu (as I already said, I don't know the way Ubuntu works with hardware and its drivers).  What could be the reason for the issue? Do I need to install any drivers for Ubuntu?  Thanks in advance. It'll be a great help.  Edit:  Output of lspci -knn | grep Net -A2  0a:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be

I have installed Ubuntu 15.04 on my laptop with RTL8723BE Wi-fi card. But it is always disconnecting from network. I have tried echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf but that didn't helped. What can I do to prevent the wifi from disconnecting? If I upgrade to kernel 4.X, will it help?  ~$ lspci -knn | grep Net -A2  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be   ~$ rfkill list 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   ~$ ifconfig && iwconfig && route -n && ping -c 1 google.com eth0      Link encap:Ethernet  HWaddr 38:63:bb:cd:4a:7e             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:3 errors:0 dropped:0 overruns:0 frame:0           TX packets:53 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:752 (752.0 B)  TX bytes:8445 (8.4 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:3870 errors:0 dropped:0 overruns:0 frame:0           TX packets:3870 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:314613 (314.6 KB)  TX bytes:314613 (314.6 KB)  wlan0     Link encap:Ethernet  HWaddr c0:38:96:6d:c4:83             inet addr:192.168.1.205  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::c238:96ff:fe6d:c483/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:15240 errors:0 dropped:0 overruns:0 frame:0           TX packets:14627 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:14410285 (14.4 MB)  TX bytes:2192744 (2.1 MB)  eth0      no wireless extensions.  wlan0     IEEE 802.11bgn  ESSID:"DIR-615"             Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4C:08:00:0D              Bit Rate=150 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:off           Link Quality=70/70  Signal level=-22 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:186   Missed beacon:0  lo        no wireless extensions.  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.1.1     0.0.0.0         UG    400    0        0 wlan0 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0 PING google.com.Dlink (172.26.136.19) 56(84) bytes of data. 64 bytes from 19.136.26.172.in-addr.arpa (172.26.136.19): icmp_seq=1 ttl=249 time=102 ms  --- google.com.Dlink ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 102.547/102.547/102.547/0.000 ms


I used mathematica to check the values of $\ln{(\frac{x+1}{x})}- \frac{1}{x+1}$ are positive for any $x\geq 0$.  How do I analytically show the statement is true for all $x\geq 0$?   Any idea?

Prove that $\frac{1}{a+1}<\ln \frac{a+1}{a}<\frac{1}{a},a>0$  First inequality using MVT:  $\frac{1}{a+1}<\ln \frac{a+1}{a}:$  $f(a)=\frac{1}{a+1}-\ln \frac{a+1}{a}$  $f(1)=\frac{1-2\ln 2}{2},f^{'}(a)=\frac{1}{a(a+1)^2}>f(1)\Rightarrow f(a)>f(1)$  $\frac{1}{a+1}-\ln \frac{a+1}{a}-\frac{1-2\ln 2}{2}>0$  This is not the starting inequality.   Is there something wrong in this method?


The values of zerosMatcherNext.group(1) and zerosMatcher.group(1) are being evaluated as String with value 0 but the comparison zerosMatcherNext.group(1) ==  zerosMatcher.group(1) returns false. What is the explanation for such a strange behavior?  UPDATE:  but zerosMatcherNext.group(1).equals(zerosMatcher.group(1)) returns true

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 trying to delete the complete Apex debug logs but getting DML operation Delete not allowed on List<ApexLog>.  Code:  List <Apexlog> loglist = [Select Id from Apexlog]; delete loglist;   Please provide an idea to delete complete debug logs in code.

Delete all option in Debug log deletes the log page-wise. Is there any option to delete all the logs in debug at an instance?


I would like to find $\sum\limits_{k=1}^n \frac{1}{k}\binom{n}{k}$. I tried to write this as an integral but I can't find the result.

I got this sum, in some work related to another :  $$S_m=\sum_{k=1}^m  \frac{1}{k}{m \choose k} $$  Are there any known results about this (bounds, asymptotics)?


On Stack Exchange there are some old questions—3-4 years old—that have something like 3500 votes. Now I understand that over time the questions will naturally accrue the odd vote, but this is ridiculous.  Did everyone go through a phase in the early days where they were just giving each other excessive vote, like a pat on the back?  And some of these 3000+ vote answers to questions aren't so great either. I often come across 200+ questions and answers that would go into negative territory if they were posted nowadays.

I have seen this a lot but i ran into this question today:    And the answer (while good) has 83 upvotes which seemed a little over the top.  I see dozens of answers of this caliber every week that only seem to get a few upvotes.    Was there some sort of SO policy that encouraged people to upvote more during this period?  Am I just imagining that answers from this period received more votes than comparable ones now?


I have come across strange operators such as &, |, ^ etc. How exactly do these operators work?  >>> 10 | 7 15 >>> 10 ^ 7 13 >>> 10 & 7 2 >>>    The pattern does seem quite odd, and most of the sources out there do not give answers that are easy to comprehend.

I'm someone who writes code just for fun and haven't really delved into it in either an academic or professional setting, so stuff like these bitwise operators really escapes me.  I was reading an article about JavaScript, which apparently supports bitwise operations. I keep seeing this operation mentioned in places, and I've tried reading about to figure out what exactly it is, but I just don't seem to get it at all. So what are they? Clear examples would be great! :D  Just a few more questions - what are some practical applications of bitwise operations? When might you use them?


Hey, guys, i got this problem and it's really bothering me, when I make a shape, like a single rectangle and i want to rotate/duplicate it all 360º around a circle shape, the ones that are at the central parts (0º, 90º, 180º and 270º) always move a bit.  But it isn't all, when I MOVE (or expand something, for example) my groups ALL together, no exclusions, sometimes (almost every time) those same shapes move different than the other objects :/  WHY!? (Although it isn't such a big deal at simple sight, but it is when you try other stuff) Please help me if you know any tip or at least answer: why does this happen? :/ I would like to thank you in advance.  So, this are my "View" settings.  Then, i'll show you how i duplicate this shapes:  I draw my circle and put a pair of guides to intersect at center. (And just look! I don't know why I can't align precisely sometimes, it makes me go mad.)   Then i make my shape guiding from the center of the circle, like this. (And it won't go aligned from the center of the shape to the center of the circle).   Next step, I press (R) to bring out Rotate tool, then press alt/option key and click in the center of my circle to pop up this window, I edit the options for example as this, check preview option and hit Copy instead of OK.   This is what I have. Then...   ...I just press Cmd+D and duplicate al the shapes till i get the complete circle. From here you already are able to see my problem, first and last shapes are not aligned.     This is how they look selected and I made a group of this.   For example, I make that group a 'compound path', then copy/move (alt>click+move) it to the right and it makes more evident the issue if you look well.   Another example is that this last object moved to the right, I color it gray for you to distinguish the "original" from these other copies scaled from center (alt key)... AND THIS IS WHAT I GOT JUST FOR SCALING IT!! ARGH! Look at this, the bigger one has those shapes I mentioned before Thin, the original has them out of alignment and finally the smaller has those same shapes thicker.   WTH!?

I am working in Illustrator (15.0.2 (CS5) or 16.0.0 (CS6)) and when I try to move objects small distances, they snap to the nearest two pixels on some invisible grid. I can't find anything in the preferences. Here are some screen shots:


Assume a player with two weapons: a whip and a dagger.  A hostile creature stands right next to the player. On the creature's turn, it moves away 5ft. So the creature left the reach of the dagger, but is still in the reach of the whip.  Does this movement provoke an opportunity attack?   I am interested in an RAW answer, not in speculation about what a (any) sensible DM would rule.  Note: Assume Mearls' interpretation of reach provoking OAs in general, as discussed .

Assume I wield a Whip in one hand and a dagger in the other.  If a creature moves from 5ft to 10ft it has technically moved out of my reach (dagger), but at the same time it is still inside my reach (whip). When does it provoke opportunity attacks from me?  I am fully aware that this would not enable me to make off-hand attacks since the whip is not a light weapon, just to cut that issue out of the question.


Suppose you have $$a_n = \sum^{n}_{k=0}\frac{1}{k!}$$ and $$b_n = a_n + \frac{1}{n \cdot n!}. $$  By using the fact that $a_n <e <b_n$, which is true $\forall n \in \mathbb{N}$, conclude that $e \not \in \mathbb{Q}$.  And I am unable to do anything. I tried to get something absurd by supposing that $e = \frac{a}{b}$ with $a,b \in \mathbb{Z}$, but didn't get anywhere. A hint would be highly appreciated.

So my math professor in college gave us this problem:  $$U_n=\sum_{k=1}^{k=n}\frac{1}{k!}$$  $$V_n=U_n+ \frac{1}{n\cdot n!}$$  The problem has two questions:  1- Prove that the two series are adjacent (easy)  2- Let $e$ be their limit, prove that $e$ is irrational.  I have no idea how to start the second part, since I don't have a professor that does the problems the first professor gives us, so I have a lack in reasoning skills, I tried proof by contradiction, but no result.  also I'm new to the site so I don't know how to use the symbols so sorry for that.


when i am reading :  # Never do this -- insecure!   symbol = 'RHAT'   c.execute("SELECT * FROM stocks WHERE symbol = '%s'" % symbol)     why it is insecure? No reason in detail in the web to explain.

Can someone explain SQL injection?  How does it cause vulnerabilities?  Where exactly is the point where SQL is injected?


Let $n$ be an integer greater than three. Prove that $1 !+2 !+\cdots+n !$ cannot be a perfect power.   Proof:  For $n=4,$ we have $1 !+2 !+3 !+4 !=33,$ which is not a perfect power. For $k \geq 5, k ! \equiv 0(\bmod 10) .$   It follows that for $n \geq 5$ $ 1 !+2 !+3 !+4 !+\cdots+n ! \equiv 3 \quad(\bmod 10) $ so it cannot be a perfect square, or an even power, for this reason.  For odd powers, the following argument settles all cases:   one checks the claim for $n<9$ directly; for $k \geq 9, k !$ is a multiple of $27,$ while $1 !+2 !+$ $\cdots+8 !$ is a multiple of $9,$ but not $27 .$  Hence $1 !+2 !+\cdots+n !$ cannot be a cube or higher power.  But if $1 !+2 !+$ $\cdots+8 !$ is a multiple of $9,$ but not $27 .$ then WHY it cannot be cube or higher power ???  This is confusing me for an hour , i am missing something , can someone pls tell me what is it?  thankyou

Has $$\sum_{j=1}^p j!=q^r$$ , where q,p,r are positive integers, and r > 1 , a solution ?   I solved partially, if r is even, then RHS is a perfect square, and there is no doubt in that. Therefore, the left side must be a perfect square as well. But for p>3, the last digit of LHS is 3 which is not the last digit of any square. Hence, p<4, and hence manually checking, only solutions are p =1,3. But i cannot generalize when r is odd.  Any solution to the next part would be helpful!


I am booking a trip to Dehradun from Dubai, via New Delhi.  My incoming flight will be on Emirates, and the domestic flight will be on whichever airline is most convenient.  My questions are:   According to the agent, I will need to clear immigration at Delhi and collect my checked-in baggage and then go to the domestic terminal and check in for the flight to Dehradun. Is this correct ? How much time should I leave between the scheduled arrival and departure times at Delhi (both for arriving and departing India).

My International flight will be reaching New Delhi IGI at 2:45 AM and I am planning to book a domestic flight at 5:45 AM.  Is three hours sufficient for me to move from International to Domestic?  I believe there must be a shuttle service inside the airport to transfer me from International to Domestic but still I don't know if Customs time at IGI could cause any delay or not.


So I encountered an exercise in my algebra textbook and it is somewhat paradoxical. Here is the exercise:  $1 = \sqrt{1}$ = $\sqrt {(-1)(-1)}$ = $\sqrt{(-1)}$ $\sqrt{(-1)}$ = $i*i = i^2 = -1$  I think it has to do with the first step of the problem. The number $\sqrt{1}$ shouldn't simplify to just 1. Is it possible that $\sqrt{1}$ can also be $± 1$?  Edit: I wasn't aware that someone else had already asked a similar question to what I just asked.

I know there must be something unmathematical in the following but I don't know where it is: \begin{align} \sqrt{-1} &= i \\\\\ \frac1{\sqrt{-1}} &= \frac1i \\\\  \frac{\sqrt1}{\sqrt{-1}} &= \frac1i \\\\  \sqrt{\frac1{-1}} &= \frac1i \\\\  \sqrt{\frac{-1}1} &= \frac1i \\\\  \sqrt{-1} &= \frac1i \\\\  i &= \frac1i \\\\  i^2 &= 1 \\\\  -1 &= 1 \quad !!? \end{align}


I wanted to find HCF of $5+i$ and $3+5i$.  So I considered norms and found that the factors of the units in $\Bbb{Z}[i]$, and the associates of $5+i$ for the first. And units in $\Bbb{Z}[i]$, the associates of $1+i$, the associates of $4+i$, and the associates of $3+5i$ in the second.  So the only common factors are the units.  So I concluded that HCF was $\{\pm1,\pm i\}$.  However this approach to quite a while of working and I wondered if there was a smarter approach rather than just directly calculating the factors in each case and comparing?  Thanks!

Let $\mathbb Z [i] =\{a+bi: a,b \in \mathbb Z\}$.  What is the gcd of $11+7i$ and $18-i$ in $\mathbb Z [i]$?


I have my own postfix server, that serves only as a forwarding mail server, i.e. if you send email at admin@mydomain.com, it will arrive into my gmail/whatever else.  My SPF looks as such:  v=spf1 ip4:<IP HERE> a:<DOMAIN HERE> include:_spf.google.com -all   I have verified that when I'm sending emails, they come from ip in the ip4 part:  Received-SPF: SoftFail (protection.outlook.com: domain of transitioning gmail.com discourages use of <SAME_IP_AS_IN_SPF> as permitted sender) Received: from <DOMAIN_FROM_SPF> (<IP_FROM_SPF>) by ...   Gmail won't even put the email into junk - it just never appears in my mailbox anywhere. Their  though marks SPF as ok (though I assume that tool is if I want to relay to the gmail server and they'll send it for me - is the include:_spf.google.com useless in my case? I just want to forward emails from people to my personal address).  In outlook then, the mail is marked as junk. Any idea of what's wrong both with SPF and marking the mail as junk? I also have reverse dns so that my hostname can be resolved to the same ip as above. According to this  tool, my SPF should pass as well.

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


I want to add my LinkedIn ID plugin to my Stack Overflow profile. I generated the plugin script, but how can I add this here?      Or HTML  <a href="https://bd.linkedin.com/pub/<name>/5a/135/489"><img src="https://static.licdn.com/scds/common/u/img/webpromo/btn_viewmy_160x33.png" width="160" height="33" border="0" alt="View <name>'s profile on LinkedIn"/>   Something like this:

In my SO profile, I tried to do Edit profile and there in "About Me" text box, I tried to paste a HTML code as below provided by linkedin.com to display a button which would link to my profile on linkedin. But it does not seem to work on SO.  This is the html code:            When I checked , I found I had only the whitelisted tags allowed. So does this kind of thing I am trying to do work on SO. If yes how can I get it working?


Let me paint a picture of my background in brief. I did my undergraduate degree in mechanical engineering. I was a good student (almost all A's) till my high school. However, I struggled a lot in my first two years of engineering. I failed 3 subjects and had to retake them. I did fairly well in my last two years and managed a GPA of 3.7. But, my early failure played a heavy toll on my self confidence. I always felt and still feel like I am not worthy for my grades or getting a job.  I was interested in research, so went to a better school for master's degree. Again, though I had very good grades there, I struggled a lot during my job interviews. I always felt inadequate and unconfident about my ability to sustain in that job. As a result I did not get selected in those companies. I got offer in a small company which hired me only looking at my grades. My professors also said that I deserve better workplace but I didn't get it only because of my lack of self confidence and technical speaking skills.  I figured that, since I loved doing research, I should go for a PhD. I worked hard during the last five years. I tried coming out of my comfort zone, try different things, work on challenging projects. I started feeling confident midway through my PhD. However, now I am in my last year and towards the end of writing my thesis. And I am feeling the same anxiety of technical inadequacy and unworthiness.  I am again getting the feeling that I am upto no good and I can't get a decent job or postdoc position with my skillset. Only issue is that I am 29 years old and I will have to get a proper job soon to support my family. I don't know if I am capable of doing that.   My question is, assuming that I suffer from severe case of imposter syndrome, what's my remedy? How can I improve my confidence levels during an interview? I want to feel alive during job search and interviews. I don't want to feel all hopeless and inadequate during any future opportunities.   Are there any suggestions?

is a psychological phenomenon wherein an individual is convinced that they do not deserve the success that they have achieved despite (perhaps extensive) empirical evidence to the contrary.  Some people with imposter syndrome doubt their own ability level. For me, this usually manifests in the thought:  I've somehow convinced everyone into believing that I'm actually good at this.  followed by the horrifying notion that eventually I'll be found out and my world will collapse. I believe that the imposter syndrome is not uncommon in academia. I'm interested to know how other people here have experienced and dealt with it.  In particular, I'm looking for actual tactics that someone might use to combat imposter syndrome.   Why I asked this question: Beyond the obvious reason that this is something I have struggled with for many years and only recently gotten a handle on myself, there's also some evidence that merely realizing that other people experience imposter syndrome helps fellow imposters. As a grad student, I've managed to meet a fair number of people who are in their own struggles with imposter syndrome; however, the tactics and self-trickery that have helped me don't always speak to them and perhaps someone else's methods might.


I got back into Magic around the Return to Ravnica block. I'm familiar with the story from then until now.   They're traveling back to Dominaria, and I feel like I'm missing some of the story. It also seems like there's a lot of material to cover. What and how much do I need to know? Where should I start?

I'm trying to figure out how far back I need to go to get the full picture of the current Magic: the Gathering story.  There's a full list  which seem to be split into various cycles not all of which are relevant, and is missing the web articles.   For the sake of simplicity, I'm interested up until the Theros series which seem to  the last full length novels, then I can read the web article stories. In less there're relevant articles from before the Theros series.


So I've tried new Gmail design. I couldn't image it is that ugly and unpleasant to use.  How to roll back to previous normal Gmail design?  New Gmail design:

So I've tried new Gmail design. I couldn't believe it was that ugly and unpleasant to use.  How to roll back to previous normal Gmail design?  New Gmail design:


I had this doubt in the question. First, I took log both sides to get $a \log x=b \log y$. Since a does not divide b, a must divide log y. So log y can be written as some $\log y=am$, when we get $y= (10^m)^a$ which is of the form $y=n^a$. Is this correct or there is some flaw with the argument?

If $ a$, $ b$, $ x$, $ y$ are integers greater than $1$ such that $ a$ and $ b$ have no common factor except $1$ and $ x^a = y^b$ show that $ x = n^b$, $ y = n^a$ for some integer $ n$ greater than $1$.  I started this way: $x^a=y^b$ $=>$ $x=y^{b/a}=(y^{1/a})^b$. Thus $x$ is an integer, and so is $y^{1/a}$, so $y=n^a$ for some integer $n$ greater than $1$. Then from the given relation, we get $x=n^b$.   I am not very convinced with my solution, as I feel I did some mistake. Can anyone point out where the mistake is? Any other solution is also welcome :)


Can't undrestand what is the real difference between "Will you be at home tomorrow?" and "Are you going to be at home tomorrow?". Both variants are grammatically correct. Maybe it is some meaning difference? Help me please to find out.

I know several questions were asked about the difference between "going to" and "will". Based on several answers (see, for instance, ,  and ), I understood that "will" is more spontaneous and "going to" is used with more planned actions.  So, it seems that everything is pretty fine. However, in , Kosmonaut has an answer in which he states: "Let's say that tomorrow you will walk your dog from 7 - 8 AM".  On the one hand, you probably planned to walk your dog long before and thus I should use "Let's say that tomorrow you're going to walk your dog from 7 - 8 am".   On the other hand, since I'm saying "let's say...", I'm deciding right now (thus, unplanned) that you will walk your dog. So, even though in this hypothetical situation you made a plan, I'm in a more spontaneous mood deciding right now that that's what you will do tomorrow, and, thus, I should use "will".  Which one (if any) of the above explanations is right?


I am composing a Beamer presentation, and I would like to underline some mathematical entities for emphasis.  I am aware of the ulem package, however for a presentation I would like something more visually pleasing, and I was thinking about a felt-tip marker effect, bold and slightly irregular, along these lines:    or also    I must be able to underline just parts of a mathematical expression.  Is there any package I can use to achieve such an effect?

LaTeX has soul. ConTeXt, of course, , where you can put sweet hightligher under your text for free!    In the pictured example, you can see highlights that not only highlight, but that do it with cool edges that look so good, you can smell fumes! The fearless author says he'll show how that was done in another post; this one shows only how to lay down a straight, yellow box. But, it is possible to do word-wrapped highlighting with cool-shapped boxes within ConTeXt, presumably.  The trouble for me is that getting into the ConTeXt world is steep climb right now, given the state of documentation and the flux of changes, so I need to continue with LaTeX. But the real problem is that now I can't live without the Organic-Looking Highlights of Awesomeness in that picture!  As I said, Non-Organic-Looking Highlights of the Ordinary are easy with the soul package:  \hl{Some awesome text that word wraps fine.}   It just taunts me on the page with its straight lines. So, if I sacrifice word wrapping, I can use PGF/TiKz and create the following macro:  \newcommand\hl[1]{%     \tikz[baseline,%       decoration={random steps,amplitude=1pt,segment length=15pt},%       outer sep=-15pt, inner sep = 0pt%     ]%    \node[decorate,rectangle,fill=navcolor,anchor=text]{#1\xspace};% }%   Which creates something like this:    Now, my color is too dark and my randomness needs adjusting, but you see that a similar effect could be achieved.  My trouble is that I don't understand TeX enough to dig into the Soul package and add the TiKz/PGF goodness that it so sorely needs. So, I leave it to you guys. Anyone want to tackle this?   Or is it yet another piece of fruit, just a touch out of reach, that shall have to wait until ConTeXt settles down?


No compulsory Fields in Attendance object,  public class showAttendance {   public List<WrapperAttendance> PastAttendance { get; set; }   public List<Attendance__c> PastList {get;set;}   public List<Employee__c> EmployeeList {get;set;}    public showAttendance()   {         PastAttendance= new List<WrapperAttendance>();        PastList = new List<Attendance__c>();        EmployeeList = [select id,Employee_Name__c from Employee__c where User__c =:UserInfo.getUserId()]; //to get the current user ---Login User                   PastList = [select id ,Attendance_Date__c, Present__c from Attendance__c where  Employee__c=:EmployeeList[0].id ORDER BY Attendance_Date__c desc];        for(Attendance__c tmp : PastList)       {            PastAttendance.add(new WrapperAttendance(tmp));                           }                 }     public class WrapperAttendance   {     public Attendance__c  AWrapper {get;set;}      WrapperAttendance()     {       AWrapper = new Attendance__c();         }          WrapperAttendance(Attendance__c h)    {      AWrapper = h;    }  } }   Test CLASS  @isTest private class showAttendance_TestClass {     static TestMethod void showAttendanceMethod()     {         public List<Attendance__c> PList;          Employee__c eobj=new Employee__c();         Attendance__c aobj =new Attendance__c();          eobj.Employee_Name__C = 'Nilesh';         eobj.Job_Role__c = 'JF-0014';         eobj.Email_ID__c='nileshmendhe2011@gmail.com';         eobj.Mobile_Number__c='9878787878';          insert eobj;          aobj.Attendance_Date__c = '4/17/2014';         aobj.Present__c='true';         aobj.Employee__c='Emp-0015';          insert aobj;          PList = new List<Attendnace__c>();                     PList.add(aobj);      } }

I created a controller which looks like this  public with sharing class EventRegistrationController {      // A CONTROLLER FUNCTION     // FUNCTION RETURNS A LIST OF cSession      public List<cSession> getSessions() {            //DO STUFF       }     //A PUBLIC CLASS WITHIN CONTROLLER    @TestVisible public class cSession      {         public Session__c con {get; set;}         public Boolean selected {get; set;}          //This is the contructor method.          public cSession(Session__c c) {              con = c;             selected = false;         }     }  }   I need to write a test code for the controller, how can I create a list of cSession and call getSession function?


I am using jQuery validator and everything works fine. But now I have a requirement of using min and max value. But here is a problem.  Requirement  The user can input values from 60-600 or 0.  Code  <input type="number" value="0" max="600" min="60" class="form-control" id="interval" placeholder="Enter interval in seconds 0 or min. 60 - max 600" name="interval">   Problem  The issue in this is user can't input 0 value.

How do you create a simple, custom rule using the jQuery Validate plugin (using ) that doesn't use a regex?  For example, what function would create a rule that validates only if at least one of a group of checkboxes is checked?


When i place i<0,5 in the condition part of for loop in following code  #include<stdio.h> int main() {   int i;   for(i = 0;i<0,5;i++)     printf("%d\n",i);   return 0; }


I am looking to have 4 divs (2x2) with a logo div in the middle.  I came across this so far:    * {   box-sizing: border-box; }  .info-box {   margin: 2rem auto 0 auto;   text-align: center;   display: flex;   flex-wrap: wrap;   border:1px solid;   padding:50px; }  .info-item {   flex: 1 1 50%;   min-height: 100px;   padding:50px; } .grid1 {   border-right:1px solid;   border-bottom:1px solid; } .grid2 {   border-bottom:1px solid;   border-left:1px solid; } .grid3 {   border-top:1px solid;   border-right:1px solid; } .grid4 {   border-left:1px solid;   border-top:1px solid; }

1

2

3

4

     This works perfect. All I would like to do is add a div right in the middle that would hold either a logo or text etc.  I have drawn up a basic example of what I would like it to look like.

I want to center a div vertically with CSS. I don't want tables or JavaScript, but only pure CSS. I found some solutions, but all of them are missing Internet Explorer 6 support.
Div to be aligned vertically
   How can I center a div vertically in all major browsers, including Internet Explorer 6?


what is the better approach?   Let us assume a scenario in which there is a utility class that is used by other classes. What is better to use in this case, a singleton class which can be instantiated exactly once or should i make all the fieds static?

What real (i.e. practical) difference exists between a static class and a singleton pattern?  Both can be invoked without instantiation, both provide only one "Instance" and neither of them is thread-safe. Is there any other difference?


How do I upgrade my iPad 3 from iOS 5.1 to 7.x (now when the latest version is >8)?

I'm trying to downgrade my iPhone from the current iOS to an older one, as per .  But every time I try, I always receive this error:     The iPhone could not be restored. This device isn't eligible for the requested build.     I have tried many times with and without DFU mode. Any ideas regarding this?


In this line of code: Node* insert(Node *head,int data)  What is the difference between Node* insert and Node *head? Are they both pointers? And which is better?

I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5?


It seems the spamfilter on the "Help and Improvement" queue has some problem. From  (from the review of  question).  I think,   Well, "there are" happens quite often in spams, also often in hams :-) Maybe in the case of a 3k+ user it is not really probable he would try to spam.   On my tries it seems, the first word of the edited message is considered always spammy.

This issue occurs when I attempt to post the Chinese characters for the novel "Water Margin" 《水浒传》 as a quote on Mythology SE. The error occurs even if a single character 水 is posted. The question referred to is .   However, this bug does not seem to occur on Meta SE, so it doesn't appear to be a SE-wide bug, but one that is confined to Mythology SE (and possibly other sites).   An image is attached of the error:


How do I show that $2$ is not a primitive root modulo $7$?  From discrete math. How many times would I need to do the form?

Suppose $p$ is an odd prime. Prove that $r$, with $\gcd(r, p) = 1$, is a primitive root   modulo $p$ if and only if $r^{(p−1)/q}\not\equiv 1\pmod{p}$ for all prime divisors $q$ of $p − 1$.   The only if direction is trivial, I can multiply $q$ to get $(r^{(p-1)/q})^q\equiv1^q\pmod{p}$.  So, $r$ is a primitive root. How do I do the other direction? Can someone give me a hint or suggestion? Thanks


I recently built a one-page-site, All main pages are loaded via ajax, so they exist as standalone too versions as well in HTML format  through jQuery, only pages' content is loaded in the one-page-site.  I have created a sitemap and submitted all these things to Google Webmaster Tools, which tells me that everything is fine and pages are indexed and not blocked  I also posted the site URL in some specific forums where people talk about main product (Chirofol); a Facebook page is also to be released soon  Despite all these things, when I type "chirofol" on Google, the site is not even in the first three or four pages, and this is simply driving me mad.

This is a general, community wiki  question and answer pair intended to address any questions   concerning the reasons a site or specific site contents do not appear   in search engine results.      If your question was closed as a duplicate of this question and you   feel that the information provided here does not provide a sufficient   answer, please open a discussion on .   My site (or specific pages on my site) is not appearing in search engine results.  Why isn't my content indexed and what can I do about it?


So many flags with status "Waiting for review" in my profile .    How many maximum flag exists with this status.  Any option to delete or modify option to existing pending review. How long days flag waiting for review

I have flagged the following question as a duplicate.    Now I want to know: after how long time will it be stated as active?  I do not have problem with anything here. I just want to know after how long time the request (of a duplicate question) will automatically be rejected or approved.  OK, I got the things, so it will remain active until moderators will have a look at it...  But don't you think we should have a limit that after a certain number of days this kind of request will be dropped (or cancelled)?


I am designing an infographic for a charity but I'm unsure whether InDesign would be better than Photoshop even though I have little experience in it. I would be happy to learn though.  What would you use also any tips would be great.

What are the best tools for producing infographics - attractive displays that combine graphs, diagrams and text to convey a lot of information succinctly. I'm interested in both web-viewable content and posters for printing.  Specifically, I'm asking:   What combinations of tools are used (eg, one tool for making graphs, another for assembling graphs and text into the final infographic)? Are any vector graphic tools (eg, Illustrator) particularly more or less suited to the task than others? Are there any online tools which are useful in the assembly process?   (As an example of the kind of thing I'm interested in making [but on much more modest scale], )


I think its supposed to be simple, but somehow, I don't get what I'm doing wrong.  I have this code:  var currentPosition = {     x:10000,     y:10000 };  var directions = "v>v<"; var housesVisited = [{x:10000, y:10000}];  function createHouseCoordinates(data){     for(var x = 0; x<4; x++){         if(data[x]=="^"){            currentPosition.x += 1;           } else if(data[x]=="v"){            currentPosition.x -= 1;         } else if(data[x]==">"){            currentPosition.y += 1;         } else if(data[x]=="<"){            currentPosition.y -= 1;           }     housesVisited.push(currentPosition);     } }  createHouseCoordinates(directions); console.log(housesVisited);   It is supposed to take directions in the form of symbols, modify the current location, and create an array of objects that lists all locations that were visited. The result of the above, when I run it, gives me this (basically the end position):  [ { x: 10000, y: 10000 }, { x: 9998, y: 10000 }, { x: 9998, y: 10000 }, { x: 9998, y: 10000 }, { x: 9998, y: 10000 } ]   I was expecting:  [ { x: 10000, y: 10000 }, { x: 9999, y: 10000 }, { x: 9999, y: 10001 }, { x: 9998, y: 10001 }, { x: 9998, y: 10000 } ]   What am I doing wrong? What should I read up on to understand this better..? Thanks in advance!

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


Normally, moderators are shown some things by default that even a high-reputation user does not see by default. This is useful in many situations, but can sometimes cause uncertainty about what the page will look like to a regular user.  I would like to see a feature that allows a diamond moderator only to enter any desired reputation level, and the page is re-rendered (possibly locally) to display as it would display to a regular user on the site with the given reputation.  This would seem to nicely complement the possibility of opening a private browser window and navigating to the page to see how it would appear to a user that is not logged in to the site. Since it would be for diamond moderators only, it also would not expose any information that is not already available to the user who uses said feature.

To be honest I find it hard to keep up with all the changes, and very frequently I have to go look at the privileges list to see whether a user (that I'm looking at, so I have his reputation value) has a certain privilege or not.  However, I still don't know what that user will actually see or how the site actually behaves for that user.  There's quite a number of posts here on meta about "where did this go" and "why can't I" and I can't really tell either way how a site behaves for a user with a reputation level of 2500.  So, I propose the following functionality:   For all users, be able to view the site as though you had less reputation than you actually have Bonus-feature: For all users, be able to use the site at that reputation level, unless some features of low-level users conflict with your actual functionality For mods, be able to view the site as a specific users (be able to see all he sees, exactly the way he sees it), but of course not pose as that user (ie. things I do would still be me)   The UI could be merged into the mod menu and the privileges menu:    (Note, I chose a user randomly, Olivier Pons is in no way related to this question or flags, or whatever that I know of.)


this is my CSS code, i do not understand why  text-align: center; is not working?  embed, iframe, object, video {     max-width: 98%;     min-width: 97%;     box-shadow: 0 0 20px #fff;     border: 1px solid #ffffff;     text-align: center !important; }

How can I horizontally center a
 within another
 using CSS?

Foo foo


I have two shapes, one called bike_stations and another one called quite_streets, both contains geographic information about elements in Madrid, Spain and each one come from two different sources. The coordinates in quite_streets are like this: 431376.8435674606589600,4464668.6104000005871058 and the coordinates in bike_stations are like this: -3.7246532000000001,40.3914722000000026 So, if I put them together in QGIS with OSM base map I have the folloging result:  Bike_stations appears in the Guinea Gulf and quite_streets at the north of Algeria, when they should be located at the X. Does anyone know any method in QGIS, PostGIS or maybe Java to transform the coordinates in order to be equal to the coordinates of the other shape?

Excuse me if this is a stupid question, but I've honestly tried to find the answer in a few threads here on SE, and I cannot seem to follow the suggested steps correctly.    Project is in  (WGS 84 / Pseudo-Mercator) BaseMap (OpenStreetMap) layer is set to EPSG:3857 Vector data has been imported from CSV, and has Lat/Long coordinates, set to EPSG:3857.    The layer appears right in the middle of the map, around 0,0 obviously.   Why is this, what am I doing wrong?


I'm trying to run a server on Ubuntu 20.04 and need nvidia-docker for that I need a nvidia driver however the nvidia-driver-[version]-server and nvidia-driver-[version] packages both seem to install a desktop env X11. Did I miss something in the install or do I need to install in some other way like via the .run package. I found this  but there is not a real answer to the question. Edit: This Question is answered here:

I had a hard time installing Nvidia drivers in a fresh install of Ubuntu 20.04.  Installing via sudo apt install nvidia-driver-430 resulted in a list of 542 packages to install.  I ended up spending a bit of manual effort to get the Nvidia-provided driver installed without nearly so many dependencies (only had to install gcc and make).  Is this massive number of dependencies normal for Ubuntu Server?  I did a very vanilla install without the GUI.  Reddit suggested I ask here, as their opinion is that I should just install from the default repos, but I felt that so many packages was absurd just to install a driver.  Edit for clarity: installing the nvidia-driver-430 package appears to install the entire Gnome shell, which I feel is unnecessary on a server.


I am running this in MariaDB 10.0.26 on PCRE 8.39.  Say, i want to exclude Printer,Cartridge,Toner Sets,Kits, or Bundles.  So I wrote this:  (?<items>Printer|Cartridge|Toner)(?<sets>Kit|Bundle|Set)(?(?=\g<items>)(?!\g<sets>))   The named groups shouldn't much matter, i was just trying everything.  Simply saying, I want this expression:  titleField regexp '(?<items>Printer|Cartridge|Toner)(?<sets>Kit|Bundle|Set)(?(?=\g<items>)(?!\g<sets>))' to return 0 and not 1.   I am at this point lost what i am doing wrong, even though this must be something FACEPALM(!~~!) worthy. Please help.

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


I just don't know what the heck is that... So I have a Debian with apache2 on it. Got php 5.6.14 and firebird 2.5 superserver. I store my fdb file in /var/www/db , all php files are in /var/www/html. Localhost works, executes php and connects to db with no problem. However all my cyrillic strings in db come up as diamond question marks �  My html charset is utf-8; Default db charset is 'NONE'; When I connect to db using  ibase_connect, I give as a parameter charset 'NONE' (Tried UTF-8, ISO8859_5, WIN1251 and many other)  Just tried Flamerobin. It shows that strings as empty fields (not 'none', but empty)  Can you give any solutions, what it can be?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I'm trying to figure out a workflow to allow me to develop addons in Blender that doesn't require me to use the Scripting window.  The scripting window is great if your script can be done in a single page, but breaks down when you need to break your code into more than one file.  It also causes problems because what you have in the script window may get out of sync with what you have saved to disk. The only alternative  I see is to keep recompiling/uninstalling/reinstalling my addon.  (By recompile, I mean running a script I've created to bundle my source files into a zip ready for deployment).  However, it takes a lot of mouse clicks in the Preferences dialog to remove your old addon and then install the latest version.  That's a lot of work to do every time you make a change. I'm seeing some references to 'reloading addons' by pressing F8 in other posts, but I don't see how that will help since I would still need to rebuild/reinstall my plugin. Is there a more developer friendly way to go about developing an addon?

I'm trying to put together an add-on that contains two operators.  I've gotten each operator file to run properly independently, but I'm having trouble figuring out how to write an init.py file that would allow me to distribute them as a single add-on.  I've posted everything on Github.  The three files aren't too long:   I've read a few other threads, but nothing seems to work for me.  How can I get my init.py to register my operators properly?


Is there any criteria for voting in any phase of election ? If yes then What eligibility is needed  for vote in election to vote in any or every phase.

The  says that there is a moderator election occurring.   How does the election work and how can I get involved?


I upgraded Viber to 5.3 version last night. after that , I have vibrate on my phone when I receive new message on Viber.   There is "Vibrate when ringing" in notification setting that it doesn't select  before upgrading I didn't have this problem.  My phone is  Sony Xperia Z2 and Android 4.4.4  How can i turn off vibrate on Viber messages notification?  UPDATE:  Viber support :   Hello Mohammad, Thank you for contacting Viber support. We received numerous complaints about this problem and are currently investigating it.  We will contact you back if we need more information.  Thank you.  UPDATE 2 this problem solved in the new version

When I get a notification in Viber it vibrates three times, as well as playing the sound. How do I stop it from vibrating three times!?   I saw the question about receiving multiple notifications but that doesn't apply as I don't use Viber for SMS.


I have a config.properties file in which are stored the credentials for a database, but when I try to read it from connection.jsp it gave me " NullPointerException".  I am getting the above error on running the below code in eclipse-  config.properties:-  jdbc.url= jdbc:mysql://localhost:3306/mysqldb jdbc.driver = com.mysql.jdbc.Driver jdbc.username= root jdbc.password= root   connection.jsp:-  <%@ page import="java.util.Properties" %> <%@ page import= "java.sql.* " %>   <%  Properties properties=new Properties();         properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties"));     //InputStream in =  getClass().getResourceAsStream("config.properties");         String url=properties.getProperty("jdbc.url");     String driver=properties.getProperty("jdbc.driver");     String username=properties.getProperty("jdbc.username");     String password=properties.getProperty("jdbc.password");     Class.forName("com.mysql.jdbc.Driver");     Connection con= DriverManager.getConnection(url,username,password);  %>   emp_id.jsp (to print data from database):-  <%@ page language="java" contentType="text/html; charset=ISO-8859-1"         pageEncoding="ISO-8859-1"%>         <%@ page import="java.util.Properties" %>     <%@page import="java.sql.*" %>     <%@page import="java.sql.Connection" %>     <%@ page import="java.io.*" %>      <%@ include file= "connection.jsp" %>      <%             String query15="select emp_id from employees";             Statement st15=con.createStatement();             ResultSet rs15=st15.executeQuery(query15);             while(rs15.next())             {             System.out.print(rs15.getString(1));                     }      %>   I am getting this error message:-  HTTP Status 500 - An exception occurred processing JSP page /connection.jsp at line 8   type Exception report  message An exception occurred processing JSP page /connection.jsp at line 8  description The server encountered an internal error that prevented it from fulfilling this request.  exception org.apache.jasper.JasperException: An exception occurred processing JSP page /connection.jsp at line 8  5: Properties properties=new Properties(); 6:  File file = new File("config.properties"); 7:  System.out.println(file.getAbsolutePath()); 8:  properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("config.properties")); 9:  //InputStream in =  getClass().getResourceAsStream("config.properties"); 10:      11:        Stacktrace:     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:579)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   root cause java.lang.NullPointerException     java.util.Properties$LineReader.readLine(Properties.java:434)     java.util.Properties.load0(Properties.java:353)     java.util.Properties.load(Properties.java:341)     org.apache.jsp.test_jsp._jspService(test_jsp.java:136)     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)     javax.servlet.http.HttpServlet.service(HttpServlet.java:729)     org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)   note The full stack trace of the root cause is available in the Apache Tomcat/8.0.44 logs.

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


The book was definitely written before the late 90s, when I read it, but it's about a standup arcade so I'm guessing probably originally published in the 80s. Two kids, I think a brother and sister, find an arcade game that lets them time travel. They are led into using it by a mysterious figure named "Yos"; I think they're fighting an evil corporation but I'm not sure. At the end, they discuss their adventure and realize that Yos was a different gender for each of them, then realize that it's actually an acronym for "Your Older Self" and it was them time travelling back to help them as kids. The cover looked very DDR-ish, with a vector-graphics road of coloured squares receding in one-point persepctive (in the book, that's how the arcade game is described as looking). I think the title was the name of the arcade game itself, but am not sure.

YA Time travel/teleportation novel. Plot required using helmet (or other head gear)... but only for training. A young kid (less than sixteen?) finds he can either teleport or time travel (I don't exactly remember which one). He is given a helmet, and told that if he wears it, he will be able to travel wherever he thinks.  Later in the story, he is told he can actually do it whenever he wants, without requiring the helmet. The helmet was purely for training his mind.  The "gift" would eventually disappear as the person got older.  I remember reading this novel in my school library around eight years ago...


After installing  on Windows 10, I can not change the default application for files with the .txt extension anymore.  Right-clicking on Context Menu > Open With… > Choose Default Program, I can select Sublime in the dialog and check "Always use this application." The file is opened once with the chosen application, but the default remains as the Windows Editor.  In the Windows Settings, I am also able to select Sublime in the dialog for .txt files, but the file type remains assigned to the Editor.  Things that did not help:   Restarting Checking the registry key in \HKEY_CLASSES_ROOT\Applications\sublime_text\shell\open\command\ Uninstalling Sublime Text    worked, but is unwieldy.   What exactly could have broken the standard file type association dialog? Is it repairable?

Apparently this is a  and should hopefully be fixed in an upcoming update.    I have installed SQL Server Management Studio v17.9 on a clean Windows 10 installation.  This associated all .sql files with SSMS.  I want to associate .sql files with a plain text editor (eg: Sublime) but I am unable to change the default application.  I have tried:   Right click .sql file -> Open With -> Sublime + "Always use this program". Settings -> Default Applications by File Type -> Find .sql -> Change to Sublime Right click .sql file -> Properties -> "Change" button -> Sublime. Using ftype via elevated command prompt as seen    In all 3 cases, my selection is not reflected in any way, anywhere.  The icon remains SSMS, and the file opens with SSMS.  Is there some kind of "File Association retention" setting within SSMS I am unaware of?  Edit: I can change the default application for non-SSMS-associated extensions without issue.  Edit: after deleting registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.sql, .sql files show a VSCode icon:    If I then double-click New Users.sql, it opens with SSMS and a refresh of regedit shows the .sql entry recreated with ssms.exe associated (the icon remains VSCode):    If I then right-click -> open with -> Choose Another App -> Select Sublime and hit "Always use this to open .sql files", it opens with Sublime and a refresh of regedit shows a new "b" entry created for Sublime.  The icon remains VSCode, and double-clicking opens it in SSMS:    If I then delete the a entry for ssms.exe and rename b -> a such that only sublime exists, then double-click the .sql file, it opens with SSMS and generates a new b entry for itself:


I am using Putty very often to SSH into Linux servers. In some cases, I won't leave the SSH session by typing exit, but by rebooting the remote machine.  Until one or two years ago, upon reboot, the OpenSSH server on the Linux machine obviously did notify Putty that the session has ended, which is what I want. Putty then used to close the session cleanly and immediately, and I could restart the session in no time (as soon as the rebooted server came back).  When I upgraded the Linux servers to Debian Wheezy or Jessie (I can't remember exactly), this useful behavior stopped. Now, when rebooting the remote servers, Putty doesn't get notified about the session end and tries to keep the session until it runs into timeout (after one minute or so).  Since I hadn't changed Putty's configuration for a long time, I suppose that the respective behavior of OpenSSH has changed. Although I have read the complete man page of OpenSSH, I could not find any option which (in my limited understanding) could be related to that problem, hence the question:  Is there a typical mistake in OpenSSH's configuration which could cause the "misbehavior"? Which option could be responsible?  EDIT:  This question might be a duplicate. But the solution / answer which is given in the duplicate does not work for me although I have the same setup as the OP. So something might be wrong with the solution given there, and I just thought it would be better to ask a new question instead of writing a comment to a question which has been asked over a year ago.

I have a server that runs Debian and sshd on it, and in case I need to reboot the server my SSH session hangs at client side until TCP timeout. I assume this is because when sshd is being terminated it does not explicitly close open SSH sessions to the host. What should I do to make sshd first disconnect everyone, then terminate itself as normal? So far I don't see a parameter in man sshd_config that's related to shutsown behavior.


I understand that I'll need to compile my document multiple times to update references links. However I compiled it three times and it still can't display references before the actual table occurs. Figure links somehow work, but not tables.  Example  % ... \begin{document}     % ...     \begin{table}[H]         \label{tab:studium_komplet}         \caption{Shrnující údaje doby strávené studiem (úplné údaje)}         \begin{tabular}{ l | c c }             Výhradně legální software          &        Ano &         Ne\\             \hline % ------------------------- | ----------   ------------             Rozsah výběru                      &   \num{38} &   \num{55}\\             Počet chybějících hodnot           &    \num{0} &    \num{0}\\             Minimum                            & \num{0.25} &    \num{0}\\             Dolní kvartil                      &    \num{2} &    \num{1}\\             Medián                             &    \num{3} &    \num{2}\\             Průměr                             & \num{3.97} & \num{3.19}\\             Horní kvartil                      &    \num{5} &    \num{5}\\             Maximum                            &   \num{14} &   \num{22}\\             Směrodatná odchylka                & \num{3.31} & \num{3.35}\\             Variační koeficient~(\%)           & \num{83.3} &  \num{105}\\             Standardní šikmost~(\textendash)   & \num{1.36} & \num{3.41}\\             Standardní špičatost~(\textendash) & \num{1.29} & \num{16.8}         \end{tabular}     \end{table}     % ... \end{document}   I have this table. I need to reference it before it occurs. But this is how it looks like:   How can I reference tables before they occur? Please note, I am using cleveref package.

I'm trying to understand why I cannot effectively reference figures or equations that I have defined with labels.  For example:  \begin{figure}   \label{fig:area_Treasuries}   \caption{Treasuries as a portion of total financial flows.}   \centering   \includegraphics[width=0.75\textwidth]{graphs/Area_Treasuries.png} \end{figure}  \paragraph{} Figure~\ref{fig:area_Treasuries} presents Treasuries (both flowing into and out of the United States) as a share of total financial flows.  From 1985 to 2010, Treasuries account for, on average, 53.2\% of total financial flows.   With the above code, I get this warning:      LaTeX Warning: Reference `fig:area_Treasuries' on page 37 undefined on   input line 477.   The result is "Figure ?? presents Treasuries..."  Why is this happening?  Related, I don't understand why I can't reference, say, an equation before (I mean physically above in the text) the actual equation.  Isn't this what compiling multiple times and cross references is supposed to take care of?


I'm an experienced developer but a Ruby newbie.  I was reading this thread  and learned some good stuff about when to use braces and when to use do .. end blocks.  One of the tips was use do .. end when you are after side effects and {} when you are concerned about the return value. So experimenting with some of the examples in the enumerator tutorial I'm going through: irb(main):001:0> my_array = [1, 2] => [1, 2] irb(main):002:0> my_array.each {|num| num *= 2; puts "The new number is #{num}."} The new number is 2. The new number is 4. => [1, 2] irb(main):003:0> my_array.each do |num| num *= 2; puts "The new number is #{num}." end The new number is 2. The new number is 4. => [1, 2]  Hang on.  I thought the do..end block returns an enumerator object?  It looks like an array.  Let's check: irb(main):004:0> puts my_array.each {|num| num *= 2; puts "The new number is #{num}."} The new number is 2. The new number is 4. 1 2 => nil irb(main):005:0> puts my_array.each do |num| num *= 2; puts "The new number is #{num}." end #<Enumerator:0x000055967e53ac40> => nil  Okay, it is an enumerator. But what happened to the output of the puts call in the loop on line 005? The {} had the expected side effect but not the do..end block, which seems to violate that rule of thumb. What happened to my "The new number is #{num}." strings?

I extracted simple example:  require 'pp' x = 1..3 pp x.map do |i| {:value => i, :double => (i*2)} end pp x.map { |i| {:value => i, :double => (i*2)} }  pp(x.map do |i| {:value => i, :double => (i*2)} end) pp(x.map { |i| {:value => i, :double => (i*2)} })   I am wondering why first pp produces:  [1, 2, 3]   While all the oders are giving:  [{:value=>1, :double=>2}, {:value=>2, :double=>4}, {:value=>3, :double=>6}]   I assume it has something to do with operator precedence. Where can I find good explanation?


I am trying to uninstall Skype and Skype for Business.  The major problem that I am having is that neither app is showing up on the uninstall screen of control panel.  Any suggestions?

I would like to keep "normal" Skype installed.  I have seen many options for "disabling" it such that it doesn't start online, but is there any way to simply uninstall it completely?   edit: thanks to The_IT_Guy_You_Don't_Like I have stopped it from auto-starting, but I will keep this question open as I would still like to be notified if anyone does come up with a solution for a full uninstall


I am curious about how Python interpreter handles function. The code below will generate an error at the line print(x). def foo():     print(x)     x = 1  x = 0 foo()  I would assume that if we expand the code, it will be something like below x = 0 print(x) x = 1  I understand the variable scope in Python. But my real question is, at the line print(x), shouldn't the Python interpreter have no knowledge about the later variable declaration and simply reference the x in the global scope?

The following code works as expected in both Python 2.5 and 3.0:  a, b, c = (1, 2, 3)  print(a, b, c)  def test():     print(a)     print(b)     print(c)    # (A)     #c+=1       # (B) test()   However, when I uncomment line (B), I get an UnboundLocalError: 'c' not assigned at line (A). The values of a and b are printed correctly. This has me completely baffled for two reasons:   Why is there a runtime error thrown at line (A) because of a later statement on line (B)? Why are variables a and b printed as expected, while c raises an error?   The only explanation I can come up with is that a local variable c is created by the assignment c+=1, which takes precedent over the "global" variable c even before the local variable is created. Of course, it doesn't make sense for a variable to "steal" scope before it exists.  Could someone please explain this behavior?


Code  \makeatletter \newcommand*\dashline{\rotatebox[origin=c]{90}{$\dabar@\dabar@\dabar@$}} \makeatother  \begin{document}  `\dashline` produces now a dashed line  \dashline  But a dotted vertical line is needed. Something like `\vdots` but e.g. with 5 dots  \vdots  \end{document}   Purpose  Create a vertical dotted line and not a dashed line.

I am very new to latex, but have spent hours trying without success to figure this out.  I need symbols for both 4 and 5 vertically stacked dots.  I know the commands for 1 dot (\cdot), and 3 dots (\vdots).  It seems like one methods that I've read about here is to combine symbols, for example combining 4 single dots to create a 4 vertical dot symbol.  But, I can't figure it out.  Any help would be much appreciated.


I've been on these sites for several years now, and I've asked a bunch of questions. I've put out a few bounties, however, I don't believe that I've ever actually awarded one. I'm not sure that I've ever had anyone ANSWER a question with a bounty on it.   Are there statistics on how effective bounties are to get better/more answers for questions?

For years, people have been able to spend their hard-earned imaginary Internet points to add "bounties" to questions in order to attract more attention to them. (Because, really, "attention" is the only thing that you can be reasonably sure a bounty will give you.)  But does this extra attention translate into better results?  Granted, any individual question may not be really answerable or is still boring even with the extra carrot. And a question might be so interesting that it would have gotten a ton of (good) answers even without the bounty.  Do questions that have bounties get more/better answers—in aggregate—than questions that never had a bounty? Does this vary by site? If so, do bounties seem more effective at a certain site "size"?  Or is it really just a wash, and that all anyone ever gets for their bounty is extra attention?


While inserting data "Jack - Jill" in mysql db, it saving as "Jack â€ Jill“, my problem is when i tried to display the string in  page its showing like "Jack �€� Jill", i am just botherd to display the string properly like "Jack - Jill", i tried have proper charactersets but not much of luck.

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


Let's meet at 7 o'clock at Moskow time  Let's meet at 7 o'clock by Moskow time   Is the first or the second one correct? If they are both inaccurate, can you please give a correct version? And did I miss 'the' before 'Moskow time'?

We use "by" to specify time or date, as in     I have to go by 9 am.   We can also use "at" here. When to use "by" / "on" / "at"?   When "by" should be preferred over "before" or "till"?


I am having a template like this HMTL <template>     <lightning-tabset>         <lightning-tab>             {dynamicComponent}         </lightning-tab>     </lightning-tabset> </template>  JS @track dynamicComponent='<c-load-child></c-load-child>';  but it is just rendering as string only but i need it to render as HTML. I tried many option with innerHTMl,appendchild but nothing is working.

This questions has been asked multiple times but there is not a workable solution to this problem.  Use Case: we are building a dynamic form rendering engine where we have sections, sub-sections and we are using record/record-edit forms to show fields and objects  on these sub sections. for each sub-section there is a custom object record from where we read fields and objects.  This is a managed package where someone can install and add their own configuration and the form will render in UI.  Problem: If there are complex use cases which record/record-edit forms cannot do we have also given a provision where in the same sub-section custom object record  , you can give your own custom component name. In aura, this worked since we can render dynamic components using create component function from javascript but it doesn't work in LWC since this method is not exposed.  Documentation says use slots/make the markup predictable but if this has to be a managed package and render dynamic components based on each client's need how can we have static markup in LWC since we wont know the component name before run-time.  Any thoughts or ideas on this would be truly appreciated


So it is not hard to see that the conjugacy class of $(123)(456)$ in $S_7$ has cardinality $\frac{7!}{3\cdot 3\cdot2}=280$.  But for instance to go from $(123)(456)$ to $(132)(456)$ you have to conjugate by $(23)$ which is not in $A_7$ so $(132)(456)$ is not in our class (call it $C$). Same for $(123)(465)$. But $(132)(465)\in C$ because $(23)(56)\in A_7$.  I could probably find all the elements of $C$ by trying out different permutations but I feel like there is a better way...  We know that $|A_7|={|S_7|\over2}$ and conjugating $(123)(456)$ by any permutation in $S_7\supset A_7$ gives a permutation of the type $(abc)(def)~$ with $a,...,f\in\{1,...,7\}$ and $a,b,...,f$ are disjoint because otherwise the "permutation" by which we conjugate wouldn't be bijective.  So I'm tempted to say that $|C|=|\bigcup\limits_{~a\in A_7}\{(~a(1)a(2)a(3)~)~(~a(4)a(5)a(6)~)~\}|=\frac{280}{2}$ but that's probably false.  A hint would be appreciated

Browsing  I came across this:  The conjugacy class of an element $g\in A_{n}$:  splits if the cycle decomposition of $g\in A_{n}$ comprises cycles of distinct odd length. Note that the fixed points are here treated as cycles of length $1$, so it cannot have more than one fixed point; and does not split if the cycle decomposition of $g$ contains an even cycle or contains two cycles of the same length.   Anybody with a proof?


There is a _zipit.vbs on my download folder.  I use Firefox  The code opened in notepad below.  This file has been on my computer for 6 months. I dont know where it came from but googling seems to show that it's used at other places to zip things.  Does anyone know if this is part of a malware or if another process somewhere is calling it?  How do I find out if there are other processes that use this?       Set objArgs = WScript.Arguments     InputFolder = objArgs(0)     ZipFile = objArgs(1)     CreateObject("Scripting.FileSystemObject").CreateTextFile(ZipFile,       True).Write "PK" & Chr(5) & Chr(6) & String(18, vbNullChar)     Set objShell = CreateObject("Shell.Application")     Set source = objShell.NameSpace(InputFolder).Items     objShell.NameSpace(ZipFile).CopyHere(source)     wScript.Sleep 2000    I googled the SHA256 of it and it took it to    where it was part of another malware.    Any advice on what to do now?   Antivirus scans dont show up anything.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   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.


Many references like W3schools and Wikipedia state "If the original statement template is not derived from external input, SQL injection cannot occur".   What does this mean exactly? I've tried to search more on the subject but most references leave it at exactly that.   To be more specific, I am talking about:  If the original statement template is not derived from external input  As, I've researched as to why it cannot occur.   Does this mean, as long as you don't directly put the user input into the query, like:  SELECT * FROM pubs WHERE " . $_POST['extra'] . " LIKE '%Yes%'   as opposed to:   SELECT * FROM pubs WHERE ? LIKE ?   Also, is it okay to pass a column name as a parameter like i've done above. For instance say I have   $extra = $_POST['extra']; $yes = "%Yes%";   and then I prepare:   $stmt = $mysqli->prepare(SELECT * FROM pubs WHERE ? LIKE ?);   and then bind:  $stmt->bind_param("ss", $extra, $yes);   Is this safe an correct?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


For some reason shutter is taking the screenshots as a mix of its icon instead of real ones. Any similar issue with certain solutions?  This is an example screenshot:

After upgrading to Ubuntu 17.10 I noticed some of my screencasting applications are not working, for example screencasting tools like SimpleScreenRecorder and vokoscreen. ()  Also I noticed features like screenshot from GIMP is not working properly, producing blank screenshots (). Shutter too is producing glitchy screenshots ().  Screen-sharing option on Skype is also not working ().  The issue occurs sometimes on later Ubuntu releases too.  Why is this happening and how do I fix this?


$GL(2,\mathbb{R})$ denote the group of two by two matrices with non-zero determinant. Let $A,B,C\in GL(2,\mathbb{R})$ and $A,B,C\neq aI$ where I is the identity of $GL(2,\mathbb{R})$ . Prove if $AB=BA $ and $BC=CB$ then $AC=CA$.     I try to proof this just use the properties of a group, but it seems not enough. There need to be some properties of matrices. More generally, does this property (if a commutes with b and b commutes with c,then a commutes with c).

$A,B,C$ are three $n\times n$ matrices such that $A$ has $n$ distinct eigenvalues, $AB=BA$, and $AC=CA$.   We need to show $BC=CB$.  Let $A$ be diagonalizable with eigenvectors say, $v_1,\dots,v_n$, so there exists $P$ such that $PAP^{-1}=D$. What more I can say from the information? Please help.


I found this in a book:  $\gcd(x;y)=1$ prove that $\gcd[(x+4y);(2x+7y)]=1$  How can I prove this? My reasoning is $\gcd(x;y)=1$ so with Bezout's we find $ax+by=1$ but I don't know how to continue? Thanks

I'm having problems with an exercise from Apostol's Introduction to Analytic Number Theory.     Given $x$ and $y$, let $m=ax+by$, $n=cx+dy$, where $ad-bc= \pm 1$. Prove that $(m,n)=(x,y)$.   I've tried to give a proof, but I suspect it's wrong (or at least not very good). I would be very thankful for any hints/help/advice!  My proof:     We observe that since $ad-bc= \pm 1$, $ad=bc \pm 1$, and $(ad,bc)=1$.   Now, $(a,b) \mid m$ and $(c,d) \mid n$ but      $$(a,b) = ((d,1)a,(c,1)b)=(ad,a,bc,b)=(ad,bc,a,b)=((ad,bc),a,b)=(1,a,b)=1.$$      Similarly, we determine $(c,d)=1$. So, $1=(a,b) \mid m$ and $1=(c,d) > \mid n$. But $(x,y)$ also divide $m$ and $n$. Since $(x,y) \geq (a,b)=(c,d)=1$, this implies that $(x,y)=m,n$. Hence   $(m,n)=((x,y),(x,y))=(x,y)$.


Am trying to query data from two joined tables with a date as criteria using the query below but it brings nothing, can someone please show me what I did wrong.  SELECT Journal_T.GL_ID as Akaunti       ,coa_t.gl_name_vc       ,SUM(Amount_NU) as YTD FROM  Journal_T        JOIN coa_t           ON journal_t.gl_id = coa_t.gl_id WHERE CAST(date_dt AS DATE) BETWEEN '25/08/2017' AND '25/08/2017'        AND bs_category_vc='Rev' GROUP BY coa_t.gl_name_vc       ,Journal_T.GL_ID

I have a datetime column in MySQL.   How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?


So escaping a normal String is no problem with   $username = $mysqli->real_escape_string("Peter");   But how do I escape a global variable with user input? For example, I get the Username from the input field and saved it in $username. What have I to do now?  $username = ($_POST["Username"]);`


In mathematics there are some data , we have took them by convention  and mathematics is    not able to show us them proves , now want just to know  if the "convention" term enough   mathematics condition to say a student if he asked about the prove of $0! =1$ , "should     be for u to take it as convention".  I would like  someone to show me where is the science that proved $0!=1$ while mathematics   not able to prove  $0!=1$ ? is it applied in chemistry field ?   just i want how i can deal with a student in high school if he asked ?  i would interest for any replies or any comments

How can I prove  from first principles that $0!$ is equal to $1$?


Question :  If $z$ and $w$ are complex numbers, then prove :  $$zw=0\iff z=0 \lor w=0$$  My proof :  $p\Rightarrow q$ Suppose $z\ne 0$  $\Rightarrow w=\left(z^{-1}z\right)\cdot w=z^{-1}\cdot (zw)=z^{-1}\cdot 0=0$  $p\Leftarrow q$ Suppose $z\ne 0\land w=0$  $\Rightarrow zw=z\cdot 0=0$  I'm not sure with my proof, cz this doesn't involve the facts that $z$ and $w$ have form ($a+bi$).

I don't know if it's late or I'm tired, but for some reason my following argument for proving every field is an integral domain seems wrong to me:     Let $k$ be a field and $x,y \in k$. Assume that   $xy=0$. Then $$ x^{-1}xy=y=0=x=xyy^{-1}.$$   The reason I think my argument is wrong is that the conclusion I arrive to is $x=0$ and $y=0$, whereas the proper approach to proving this by the contrapositive is obtaining $x=0$ or $y=0$. Could someone highlight my mistake?


When I going through java tutorials I got an idea about the pointers are not used in java. but java internally uses pointers, but when we look through developer perspective java supports references only. Then why java does not support pass by reference?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I have just installed Ubuntu as dual boot on my laptop and everything runs well. I'm looking for a simple image editor. Till now I have been using the default photos app in win 8.1 and am comfortable and satisfied with the results. Is there something similar in Ubuntu? I have installed Gimp but the learning curve is steep for me and I need something which shows me a handful of preset settings/filters. You know what I'm talking about if you have used the windows photos app or snapseed

I want something similar to "preview" in macs.  For example: I want an image editor that ONLY does simple adjustments like increase/decrease contrast, saturation, exposure, color tinting.... rotate, flip vertically, flip horizontally, make black and white, change size or format, crop.  THATS IT.  I know gimp can do all those things but its a bit overkill.  I just want to right click an image, open it with this magical program i just described, do a few quick adjustments, and then save and exit.  Nothing really fancy.  Anyone know of anything like this?  Btw I am using ubuntu 12.04 :) It rocks and I am glad I switched from mac, i just need to replace this one piece of software.


According to my officially licenced Star Wars calendar, of the thirty X-wing and Y-wing pilots that participated in the Battle of Yavin, three returned.     We know that Luke and Wedge were two of the survivors, but who (if the calendar is actually accurate) was the third?     Note that it couldn't be referring to Han Solo, as he wasn't one of the original 30 pilots. Additionally, if it counted Han, it would have to count Chewbacca as well.  Wookieepedia tells me that in the Legends continuity, more than three pilots survived, so please limit your answers to the new canon.

Near the end of Star Wars IV: A New Hope, we see four spacecraft flying from the Death Star just moments before it explodes.     As you can see, there is the Millennium Falcon crewed by Han and Chewbacca, a pair of X-Wings which has to be Luke and Wedge, and then in the bottom corner, we see a Y-Wing. Who is this pilot and did he have any screen time to justify him actually existing in this moment? For as far as I can tell during the first trench runs, they were conducted by the Y-Wings and all of them seemed to have been destroyed during their run. So as I asked, who is flying this ship and how did survive to this moment?


I am using the tp4056 module with protection to charge NCR18650 li-ion battery. is it OK to connect to the load to the battery while it is charging?  I am using a booster to boost 3.7V to 9V(load voltage 9V) and load current is around 100mA

I need a circuit that utilizes the tp4056 breakout board to power a NodeMCU ESP like so:   tp4056 USB port connected: 18650 battery charging and NodeMCU running of USB tp4056 USB port not connected: NodeMCU running of 18650 battery   The problem is that the load of the tp4056 should be disconnected while charging, otherwise it can mess with the overcharge protection of the tp4056 (see ).  I have designed the following circuit hoping it will achieve my goal. My reasoning is that when no USB is connected the relay will let the boost module run off the battery and when USB is connected the relay will close and power the boost module over USB while letting the battery charge as usual.  Does the circuit achieve my goal? Are there any other issues with the setup?    Please note that there will be more components connected to the NodeMCU, so the exact current draw remains unknown (<500ma though).


So I'm doing a URL that expires and here's a some code   //DB query $stmt = $con->prepare("SELECT token_created_at from reset WHERE token = :urltoken"); $stmt->bindValue(':urltoken', $_GET['token']); $stmt->execute(); $stmt->setFetchMode(PDO::FETCH_ASSOC); while($row = $stmt->fetch()) {      $token_created_at = $row['token_created_at']; }  $expires_at = $token_created_at->modify('+1 hour');  //Return current time to match $current_time = date('m-d-Y H:i:s ', time());   The issue is here's the error I get      ( ! ) Fatal error: Call to a member function modify() on a non-object in /Users/matt/Desktop/Likes/forgot/activate.php on line 18   Line 18 is   $expires_at = $token_created_at->modify('+1 hour');   So if I can't do it this way, how would I do it?

So I'm refactoring my code to implement more OOP.  I set up a class to hold page attributes.  class PageAtrributes  {   private $db_connection;   private $page_title;      public function __construct($db_connection)      {         $this->db_connection = $db_connection;         $this->page_title = '';     }      public function get_page_title()     {         return $this->page_title;     }      public function set_page_title($page_title)     {         $this->page_title = $page_title;     } }   Later on I call the set_page_title() function like so  function page_properties($objPortal) {         $objPage->set_page_title($myrow['title']); }   When I do I receive the error message:     Call to a member function set_page_title() on a non-object   So what am I missing?


printf("%c",3["abcde"]);   How does this statement produces the output d? How the compiler executes this statement? I understand it for an int array where a[5] = 5[a] since *(a+5) = *(5+a). But here a string acts as an index other than a string name(variable name).

As Joel points out in , in  (aka: K & R), there is mention of this property of arrays in C: a[5] == 5[a]  Joel says that it's because of pointer arithmetic but I still don't understand. Why does a[5] == 5[a]?


During OpenBSD 6.2 install:   Do you want the X Windows System to be started by xenodm(1) [no]?   And the default answer is "no". Why does it brings it up, if the default is no?   The question: But why isn't it "yes" by default? Are there any "better" handlers that start the "GUI"?

When installing OpenBSD 5.1, I got the question:   Do you expect to run the X Windows System?   What change does the installer make to my system if I say "yes"? I know what X Windows is, but I don't know why the installer wants to know if I plan to use it. Does it enable/disable X somehow based on my answer?


Trying to install Linux alongside a long-standing Windows installation: Unallocated space not recognized by the installer  not even  by gparted

I'm trying to install Ubuntu 14.04 LTS on an HPG60 Laptop. I'm having a difficulty to install this coz I cant see the unallocated space I prepared in Windows.  As you can see on the attached screenshot:    I've prepared an unallocated space 96.72GB using Disk Management.  But when I boot up ubuntu and check Gparted,  I'm seeing this instead    An unallocated space of 1MB?!  Never encountered this before. I've installed ubuntu on a lenovo laptop that I use on office but I never like this before. Anybody have any idea why this is happening?


So I was wondering or was hoping to get some clarity on the dependencies in a sfdx-project.json file.   I know that for my project / scratch org I can list managed package dependencies within the sfdx-project.json file using a packageId and versionNumber. But does that mean if I define all of the dependencies and create my scratch org will those managed packages automatically be installed or do I still need to manually install them using the sfdx-cli? I ask this because it's a bit tedious to have to install each managed package using the cli every time I recreate the scratch org.   Furthermore we have some packages that require an installationKey and after some digging I found that the key is not yet supported in the sfdx-project.json file in the following url: .   So even if it did in fact install the managed packages from the project config file, I would not be able to install any of the ones that require an installationkey, is that correct?

I am trying to follow the  and . I tried to push some of my Lightning components which depend on a managed package in App Exchange. I would like to know how to install a managed package using Salsforce DX CLI so that i can use that command in my travis.YML file for my CI integration.  Here is the script for my Travis file  sudo: true dist: trusty cache: false env: - URL=https://developer.salesforce.com/media/salesforce-cli/sfdx-linux- amd64.tar.xz before_install:  - export SFDX_AUTOUPDATE_DISABLE=true - export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true - export SFDX_DOMAIN_RETRY=300 - wget -qO- $URL | tar xJf - - "./sfdx/install" - export PATH=./sfdx/$(pwd):$PATH - sfdx update - sfdx force:auth:jwt:grant --clientid $CONSUMERKEY --jwtkeyfile  assets/server.key --username $USERNAME --setdefaultdevhubusername -a DevHub script: - sfdx force:org:create -f config/project-scratch-def.json -s -a  PackageInstallation - sfdx force:org:list - sfdx force:org:display - sfdx force:user:password:generate -u PackageInstallation - sfdx force:org:display - sfdx force:org:open -u PackageInstallation - sfdx force:source:push -u PackageInstallation - sfdx force:apex:test:run -u PackageInstallation -c -r human   I get the following error as my components depend on the app exchange components:     No COMPONENT named markup://ldt:datatableDev found :


What is the appropriate question tag for the following sentence?      A man like you shouldn't do this , _________ ? ("should you" or "should he")   I think it should be "should you" after reading about question tags from my textbooks and conversations with my online friends. This question was in my English 2nd paper (Grammar) exam. My teacher said "should you" is incorrect and the answer is "should he" because "like" is a preposition in the sentence therefore "a man" is the subject.

Question:     A man like you should not do this, _______?   Which question tag should I use in the blank space?   should he? should you?   Which would be grammatically correct? I think 1 is true.


I have a string like so:  DECLARE @columnCamera varchar(MAX) = 'aaa,bbb,ccc'   and I am trying to split these and loop through, I am stuck on the splitting part:  SELECT * FROM STRING_SPLIT(@columnCamera, ',')   But I get this error:     Invalid object name 'STRING_SPLIT'.   What is the proper way to split a string and loop through it?

Using SQL Server, how do I split a string so I can access item x?  Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?


Recently I get to touch with partial trust application. Could you explain in some common words? Or give me an example? When should I think about this issue? I am trying to find some documents in the web, but I found very little. So I come to think maybe this is not used often in today's .net programming. Is this true?

Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is.   Also, what is a fully trusted assembly and how do they differ from one another?  I have a MS certification exam and this is the only topic that I just don't understand.  EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam.


Is it possible to set a property on an instance of a class like so;  MyCls item = new MyCls();  item['propName'] = propValue;

Is it possible to access Apex class properties dynamically? While we can create Object's, and assign any other class to an Object, I'm not sure how I can access the properties of these Object's. Can anyone provide some documentation or references to code which would allow me to do this?   Example:  public class XYZ {    public string s1 { get; set; }    public string s2 { get; set; } }  XYZ testXyzObj = new XYZ(); Object obj = testXyzObj;  // Method does not exist or incorrect signature: [Object].get(String) String s1 = obj.get('s1');


I want to open Windows command prompt from C# code and want to execute batch file from it containing few commands. I tried with simple "echo" and "dir" command on trial basis and it is not working. I am neither getting error nor expected output. At least cmd window should open then arguments can be passed.  I tried two options - runnind cmd.exe and running batch file. I am not able to find the mistake I am making in the code. Thanks in advance for the help.       var baseDirectory = "~/App_Data/TestRoot";     ProcessStartInfo processStartInfo = new ProcessStartInfo();     processStartInfo.UseShellExecute = false;     processStartInfo.WorkingDirectory = HttpContext.Current.Server.MapPath(baseDirectory);     processStartInfo.CreateNoWindow = false;     processStartInfo.WindowStyle = ProcessWindowStyle.Maximized;      //running cmd.exe then .bat as argument     processStartInfo.FileName = HttpContext.Current.Server.MapPath(baseDirectory + "/cmd.exe");     processStartInfo.Arguments = HttpContext.Current.Server.MapPath(baseDirectory + "/test.bat");      Process process = Process.Start(processStartInfo);   I changed FileName and removed Arguments property for option second, please refer code below.    processStartInfo.FileName = HttpContext.Current.Server.MapPath(baseDirectory + "/test.bat");   The test.bat file contains just one line echo hello. When I tried to run this directly from CMD and double click, it is working fine in both the cases. I am facing issue only in case of invoking it from C# code.  I am not going to get any result in output stream. That batch file will run a process in background, which won't return any output in stream. This is not duplicate question. Please stop marking this as duplicate.

How do I execute a command-line program from C# and get back the STD OUT results? Specifically, I want to execute DIFF on two files that are programmatically selected and write the results to a text box.


Can anybody share some ideas as to how to treat the dynamics of a gymnast's body when they're in air? As in, dynamics of a system consisting of mechanically coupled rigid bodies in a torque free system? My aim is to find out how a gymnast initiates a mid-air twist without any apparent torque.

Not sure whether this is an appropriate question for this site, but could anyone explain the physics behind how this skier is able to change his direction of rotation mid-air?


I am currently developing a desktop application in C#.  As I am going through my code, I keep finding other pieces of code that need a second look or can be improved on... but I don't want to derail from my current mission.  Is there a way in Git or Visual Studio that allows me to highlight a block of code for "future review"?

In C# I use the #warning and #error directives,  #warning This is dirty code... #error Fix this before everything explodes!   This way, the compiler will let me know that I still have work to do. What technique do you use to mark code so you won't forget about it?


Note: I installed Ubuntu Minimal because of a bug in (apparently) all *buntu 15.04, 14.04 and 14.10 versions which cause the installer to hang when installing on my system before the partitioning stage... See these questions... Example:  But I am not running on a laptop and that question did not help fix that problem, so I resorted to the minimal (text based) install. Question I have installed Ubuntu using the Ubuntu Minimal Install image (~40MB) on a USB disk. When I boot my computer I get the message on tty7 (CTRL+ALT+F7) starting version 219  That's it, there's nothing else there. (What does this message mean?) I figured there was no desktop environment, since one wasn't specified during the install process. (I'm sure the installed used to ask for a desktop environment option? Has this been removed from the install process?) So I ran sudo apt-get install mate-core sudo reboot  Still nothing, same message appears. I can log into any of the other tty's, but if I run startx, I get the error: The program `startx` is not currently installed. ... install package xinit  Do I want to install xinit? Or do I need to install mdm service or something? Graphics card is a GTX 260 although I don't think this is of any relevance. The question tagged as a duplicate is of no relevance to me. I acquired this problem through a completely different set of steps. (This is a new install, not a replacement of 1 desktop environment with another.) In addition, the fault is not "that I see this message" the fault is that I don't have a desktop environment. My question about starting version 219 is merely something I happen to be interested in. Update I believe I have no desktop manager installed? The file /etc/X11/default-desktop-manager does not exist. How can I fix this? Update 2 Okay so I might be breaking my system now... but I tried: sudo apt-get install mdm  Because I figured I need a display manager of some sort. (Not sure what it is or does, but it's probably important.) This didn't seem to help, so I then tried: sudo apt-get install xinit  Which installed a vast number of packages. I now have a desktop environment, but it's broken. When I run startx I get a desktop environment... but it looks like the 1990's linux desktop environments. (That sort of blocky grey everything.) I think this might be a fallback desktop environment for when you screw up your mate/gnome/unity/kde one? What should I do now?

After update my system to 15.04, I have an error message at the boot: 'starting build 219'.  The bug is known, its recommend to go to console mode and enter this command:  sudo systemctl enable sddm.service -f   But when I enter this command I get an error message:  Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)


I'm trying to update MySQL to the latest version, actually I have the version 5.7, what I did is the following:  1. Downloaded the package:  wget https://repo.mysql.com//mysql-apt-config_0.8.10-1_all.deb sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb   then I choosed this:    later I seelcted MySQL 8.0 and finally this:    2.Update  Then I run the following commands:  sudo apt-get update sudo apt-get install mysql-server   3. Version Checking:  So I checked the current version using apt policy mysql-server  and this return:    These are some logs during the update:    What I did wrong?  Output of cat /etc/apt/sources.list.d/mysql.list:  deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-apt-config deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-8.0 deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools #deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-tools-preview deb-src http://repo.mysql.com/apt/ubuntu/ bionic mysql-8.0

The error I am having when trying to update my package list.  W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333  W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.


In a game of Dungeon World, how do you handle different difficulties at the same task?  A few examples:   climbing a wall with easier handholds vs. climbing a smoother wall pushing a heavy cabinet out of the way vs. pushing it while enemies are pushing back lifting a heavy beam with debris on it vs. lifting the beam after the debris has been removed   Each of these examples gets at the players' approach to the problem.  They have a difficult (not impossible) task in front of them.  If they deal with something else, the task becomes easier.  So it would be really helpful to have some way of adjusting the difficulty of a task to reflect this.  In other roleplaying games, I'd just (as the GM) change the target difficulty, or give some bonus/negative to the die roll.  What's the Dungeon World way of handling this?    There's  about how to pile on more problems before you can even try the underlying task.  I'm not looking to just pile on more stuff, I'm looking to make the underlying task possible, but more difficult.

I've been GMing for a couple of sessions now and I'm still struggling at making encounters or situations more difficult. I will describe dangerous situations and encounters in fiction but the mechanics make it too easy for my players to succeed.  For instance no matter how big I describe the Troll, if the fighter of the party charges him and swing his sword, roll+2 for Hack and slash, he'll easily hit the troll. Almost 40% chance to hit without consequences.