i want to migrate the following code in c++ to c#    My problem its here,  How can I do this in c#   uint64_t matchid = *reinterpret_cast&lt;uint64_t*&gt;(result.data()); uint64_t outcomeId = *reinterpret_cast&lt;uint64_t*&gt;(result.data() + 8); uint16_t tokenId = *reinterpret_cast&lt;uint16_t*&gt;(result.data() + 16);   And the result must be this  matchId: 3203527750019186923, outcomeId: 3203531838828052697, tokenId: 13431   thanks
I'm looking for a way to reinterpret an array of type byte[] as a different type, say short[]. In C++ this would be achieved by a simple cast but in C# I haven't found a way to achieve this without resorting to duplicating the entire buffer.  Any ideas?
$\gcd(a,b)=1, x^a = y^b\Rightarrow x = n^b$, $ y = n^a$ for an integer $n$. 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$ $=&gt;$ $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 :) Suppose $G$ is a group and has exactly two nontrivial proper subgroups. Prove that $G$ is cyclic and $|G|=pq$ where p,q are distinct primes or $G$ is cyclic and $|G|=p^3$ where $p$ is a prime. Usually my tactic to show a group is cyclic is find an elements such that its order and order of the group are the same. But here I cannot do so because I have no informatio regarding order of elements. So I stuck. Can anyone help me? Is a function defined at a single point continuous? Is a function defined at a single point continuous?  For example $f:\{0\}\to\{0\}$ defined by $f(x)=\sqrt{x}+\sqrt{-x}$ is a sum of two continuous functions and is therefore continuous, however for $f$ to be continuous, it has to have the limit $\lim\limits_{x_0\to x}f(x_0)=f(x)$ but it dosen't seem to have that limit. How do I erase/format a harddisk from a live CD? I need to format a drive containing an old install of Ubuntu 10.04, to install Vista (not my idea!) Vista setup apparently refuses to format non-FAT32 or NTFS partitions. However, I can't seem to format it from my live CD (Ubuntu 11.04) at all; I keep getting "device is busy" errors. What is the simplest way to format this drive? Short story identification: society partitioned off by high wall Reading another question today reminded me of a short story I read in the early 90s (probably written in 60s or 70s though). A society is blocked off by a really high wall; the story follows a girl who tries to get over the wall. I think she manages it with a hot air balloon. When she reaches the other side she meets an older man who had managed to scale the wall in his youth - his solution had been to use a flock of birds to carry him.  UPDATE  I seem to recall that it splits off an elite group of people - getting over the wall is like a rite of passage. Most people don't even bother to get over it (or even be concerned by its existence at all), but a few try. There might be some magic involved (on the other / better side), or they might just be more advanced technologically.  FINAL UPDATE  As pointed out in the answer, and confirmed by me re-reading the story, I was mistaken in a few details. The main protagonist is not a girl, it's a boy called Porgie. He doesn't use a balloon, it's a glider he made, assisted with a broom. Magic is involved, but it's on the inside, with technology on the outside. UK Visitor Visa: Required Time or Interval Between Visits? I am a US citizen and have recently visted the UK  with simply a passport which allowed me to vist for 6months I have heard rumors that I am obligated to stay in the US for a Equal amount of time that I have visited the UK before I am able to return, but I am struggling tour no any proof of this obligation .. Am I missing somthing or is it simply not true Javascript Remoting - sending sObject as argument Require reputation earned on the main site to vote on a per-site meta Upvoting requires 15 reputation, but the association bonus is taken into account, so if you have at least 200 reputation on any site, you can upvote on all sites in the network.  This is a bit problematic when it comes to per-site metas. The votes there are used to gauge the opinion of the community, and they are often taken into account when implementing new policies.  What can happen is that a post from a per-site meta is linked in an unrelated high-traffic chat room, usually because there is some entertaining drama going on or because someone posted a particularly bad idea. This can lead to an influx of votes from external users that usually wouldn't visit or use the site, but currently still can vote on their meta due to the association bonus.  I think a very low minimum participation on the site should be required to vote on meta issues. This would make the votes on the per-site meta more robust and less easily skewed by being linked from outside.  Not counting the association bonus for the upvote privilege would be enough, then all users would have to earn 14 reputation on the site itself. Why does water pouring from a glass sometimes travel down the side of the glass? If you have a glass of water, say, three quarters full and you pour it at an angle of say, $45^{\circ}$ with respect to the the table, the water comes out of the glass and goes directly down towards the floor.  However, when the glass is more full, or even three quarters full and the 'angle of pouring' is far less with respect the table, when the water comes out of the glass, rather than going straight down it kind of stays stuck to the glass and travels down the outside of it.  Why does this happen? (I'm sure many of you have observed it yourself by accident and ended up making a mess). Proofs with limit superior and limit inferior: $\liminf a_n \leq \limsup a_n$ I am stuck on proofs with subsequences. I do not really have a strategy or starting point with subsequences.   NOTE: subsequential limits are limits of subsequences  Prove: $a_n$ is bounded $\implies \liminf a_n \leq \limsup a_n$   Proof:  Let $a_n$ be a bounded sequence. That is, $\forall_n(a_n \leq A)$.  If $a_n$ converges then $\liminf a_n = \lim a_n = \limsup a_n$ and we are done.  Otherwise $a_n$ has a set of subsequential limits we need to show $\liminf a_n \leq \limsup a_n$:  This is where I am stuck... I made a bootable Windows 7 USB using UNetbootin, and when I try to boot from the bootable USB and select the Default boot menu entry, it gets stuck at the UNetbootin boot menu and it keeps repeating an Automatic boot in 10 seconds... message in an endless countdown loop. Selecting Press [Tab] to edit options and editing the options has no effect. When I go back to the boot menu, it keeps repeating the same countdown loop.   I've tried redoing the UNetbootin extraction, but I still have the same issue. Prove $P(x,y)$: If $x$ and $y$ are odd integers, then the product  $xy$ must also be odd.   I need a direct proof of this.  I know that $ x $ and $y$ both have to equal to $2n+1$ in order for them to be odd. But that's all I have. Any help will be appreciated. An irreducible polynomial in a subfield of $\mathbb{C}$ has no multiple roots in $\mathbb{C}$ I understand that \bf and \it are now obsolete in LaTeX and that \textbf and \textit are proper, as they produce more sophisticated (in particular, cumulative and properly kerned) changes to font style. I have read the  and I understand the rules and their reasons, as well as the several other commands that are affected.  However, I find it convenient to use LaTeX for notetaking during lectures, and in that rushed environment, shortening a command by any number of keystrokes helps keep me from falling behind. \bf and its two-letter kin are still very useful to me for that reason, and once a presentation is finished I can go through and replace all appearances of \bf et al. with \textbf et al.  My question is this: is there a plan eventually to replace the short font style commands like \bf with the implementations of \textbf etc. some day, or should I expect \bf always to remain in existence but obsolete, for reasons of backward compatibility with original TeX? Original TeX has been greatly improved on in countless ways, but in the heat of transcription I sometimes miss its conciseness. I'm tutoring high school students. I've always taught them that:     A charged particle moving without acceleration produces an electric as well as a magnetic field.   It produces an electric field because it's a charge particle. But when it is at rest, it doesn't produce a magnetic field. All of a sudden when it starts moving, it starts producing a magnetic field. Why? What happens to it when it starts moving? What makes it produce a magnetic field when it starts moving? Setup IIS 7.5 with multiple website bindings and SSL? On IIS 7.5 I am trying to achieve this with two websites:  Default Web Site is bound to:  (blank host header port 80 - http) (blank host header port 443 - https) go.example.com www71.example.com the IP address of go.example.com  2nd web site "Beta" is bound to:  beta.example.com (blank host header port 443 - https) * using blank only because it doesn't seem to be possible to    bind https to a named host header   And both need to work with SSL.  But I have these problems:   When I type in beta.example.com, I see the go.example.com site instead I can not seem to add the SSL binding to both websites at once (I have a single *.example.com wildcard certificate).  The beta site will not even start if I add the https binding to it.   This is how I have set it up:    What is the correct way to set it up? Are there critical hits for spells? I am from Nigeria and I'm doing a one year Internship program with The Marriott hotel in Wisconsin, I applied for the UK visitor visa two weeks ago to visit my fiance who lives and work in the UK, but I was refused the visa because the letter of my workplace that I provided was back dated of 2014 which they say they are not satisfy it accurately reflects my current employment circumstance. I also provided my pay slips, but they said they were not satisfied with it demonstrating the terms and conditions of my employment, and they also said I did not present any evidence to satisfy me having sufficiently strong ties and commitments in my country of habitual residence or elsewhere to motivate my timely departure from the UK. They said the documents my fiance presented were OK.  How soon can I re-apply for a UK visa after getting a refusal? Can the milky way actually be photographed ? I know the image is manipulated, and is probably a composite, but how do you capture such contrast in the milky way? Is an equitorially mounted scope required? Any advice or pointers are welcome, thanks.  I'm heading out towards much less light polluted areas middle of next week and I want to try some nighttime sky captures with my 7D.  Additional info: I just found  on wikipedia that says: 54s, tripod mounted 5D, 16mm lens, f/2.8, ISO800. What else do I need to be aware of? My 7D is only an APS-C and the widest lens I have is 19mm. I'm thinking that might not be wide enough to capture an interesting shot? Unable to start XAMPP using sudo in Desktop Entry I am using Ubuntu 18.04. I have installed XAMPP and created a .desktop file to run it.  [Desktop Entry] Type=Application Name=XAMPP Control Panel Version=7.3.0.0 Exec=sudo -i python /opt/lampp/share/xampp-control-panel/xampp-control-panel.py Encoding=UTF-8 Terminal=false Comment=Start and Stop XAMPP Icon=/home/lee/.local/favicon.ico   But, for some reason it won't run. The "Exec" line runs fine on the CL. I have it set to execute. Any ideas?