Say I start with:  uint8_t x = 0x12;   For debugging purposes I want to "print" it in binary (using NSLog) so I see: 000010010.   Is there a way to do that in Objective-C? The closest I got is using %o format, which gives 22 and then manually translate that to binary.  Also what about uint16_t y = 0x1234; or uint32_t z = 0x12345678; ?
I can print with printf as a hex or octal number.  Is there a format tag to print as binary, or arbitrary base? I am running gcc. printf(&quot;%d %x %o\n&quot;, 10, 10, 10); //prints &quot;10 A 12\n&quot; print(&quot;%b\n&quot;, 10); // prints &quot;%b\n&quot;
Two submit buttons in one form I have two submit buttons in a form. How do I determine which one was hit serverside? How can I prove the convergence of the sequence $b_n=\sqrt[n]{x^n+y^n}$ where $x, y &gt; 0$?  Can I divide it in two cases?  Case 1: $x &gt; y$.  $$ b_n=\sqrt[n]{x^n+y^n} &lt; \sqrt[n]{x^n+x^n} = \sqrt[n]{2 \cdot x^n}=x \cdot \sqrt[n]{2} $$  Case 2: $x &lt; y$.  $$ b_n=\sqrt[n]{x^n+y^n} &lt; \sqrt[n]{y^n+y^n} = \sqrt[n]{2 \cdot y^n}=y \cdot \sqrt[n]{2}$$  Result: Does the sequence converges to $\max(x,y)$? Subtracting (erasing) polygons from polygon using ArcGIS for Desktop? I have two polygon layers, one is green that represents all non-public right-of-way land. I have another polygon that is just a circle with a specified radius.  I would like my output to be a polygon layer that represents all the white space (the gaps) in the private land polygon layer that is also within the black circle.    How does one do this (In ArcGIS 10.2)? When is it better to use String.Format vs string concatenation? We are always introduced to magnets by pictures illustrating a parallepiped magnet, a horseshoe magnet, etc... Anyway the first time we actually calculate a magnetic field is for eelectromagnets. Indeed I've rarely seen explaining or calculating the magnetic field of a permanent magnet. I know formulas for the magnetic field of a moving charge, around a conductive wire, inside a solenoid, but I don't have idea on how to go about calcualting the filed of a simple permanent magnet. It's like that without the help of electricity I'm stuck. I'd guess it would be heavily dependent on the magnetic material, its shape and the medium in which is placed. I hope that someone would provide me some insights on why such formulas are  never introduced in most physics courses and lay down some examples of a permanent magnet field caluclation. Travelling on Business visa to UK for tourism purposes I already have a 6 month valid UK business visa received prior to April 24 2015. I was supposed to travel to the UK in April, but my trip was cancelled on medical grounds.  I am now planning to visit the UK in July for tourism. Would it be fine for me to do so? Will I be allowed to enter the UK? Should I carry the original invite letter and medical certificate to prove why I didn't go the first time? In particular, when $x=y=z$ isn't the above expression equal to 1 and not -1? I've installed Process Lasso and in All processes tab, set all affinities to 1-7, meaning that all the processes can be start on all my CPUs except the first one. Yet, there is a huge load on my first CPU.   I personally have no clue what's happening here and really appreciate any help.  My system is:   Intel core i7 - 4720 HQ  2.6 GHz upto 3.6 Windows 10 (64 bit) NVidia GTX 950 M   This screenshot, shows the software's interface. Those 8 green bars on upper right show my CPU usage. Also the column called Rules, indicates the affinities on the processes.       PS: These are screenshots that show the more familiar Task Manager and Resource Monitor. I've sorted all with respect to their CPU usage. Note that the overall CPU usage is just fine (less than 30% most of the time), but in Resource Monitor, same as the Process Lasso, it's obvious that that most of the load is on CPU0 and the others are almost free.  Also I found out that my total CPU usage, is actually more than all my processes altogether! The orange line in Resource Monitor picture, shows the amount of CPU usage of all my processes. (I did the same in safe mode. Orange line, exactly coincides the total usage in safe mode. So I'm suspecting that something is happening in my normal boot.) My 1.12 solution can be found . When trying to update command blocks to 1.13, I have the following:  scoreboard objectives add invert dummy   (run at start) then:  scoreboard players set FakePlayer invert 1   (impulse unconditional repeat) chained into:  execute at @e[tag=summoned] run scoreboard players reset FakePlayer invert   (chain unconditional repeat) chained into:  execute if score FakePlayer invert = 1 invert run say "All summoned animals are dead!"   This should reset FakePlayers score continuously until all entities with tag "summoned" are dead, then it should run the final condition. This does not happen, and I can't see why. Has the disputed flag message changed? I know how disputed flags work. Today, I reviewed a "not an answer" flag and marked it as invalid.   I've later seen a disputed message with this reason:     invalid flag         disputed - a moderator reviewed your flag, but found no evidence to   support it   Given that disputed flags are in the ,  Is this message applicable only to my flag or is this message also for the original flagger?  Or put otherwise, are all disputed flags now shown this message (or similar decline reason)?  I've run out of flags for today to test this further. Running JAR file on Windows I have a JAR file named helloworld.jar. In order to run it, I'm executing the following command in a command-line window:  java -jar helloworld.jar   This works fine, but how do I execute it with double-click instead? Do I need to install any software? What is the difference between "is subject to" and "is subjected to"? I found the following sentence on the U.S. Customs and Border Protection website:     All persons, baggage, and other merchandise arriving in or leaving the   United States are subject to inspection and search by CBP officers.   I would like to know whether changing "subject" to "subjected" will change the meaning of the sentence. How do I clear all user defined symbols? "Not with a whimper, but with a roar of triumph!" Looking for the title of an old sci-fi book, pretty sure it is a Baen or Del Rey imprint. Basically, mankind has reached the stars and expanded throughout the galaxy. Suddenly, an unknown race appears and begins a war of extermination against man. Finally, the galaxy is desolate, and one man remains. He is in a starship with an AI and becomes injured in the battle.  The ship's AI takes over and speeds out into the unknown, followed by the last remaining member of the unknown alien race. As all speeds are at tremendous multiples of the speed of light, the man cannot get away, but the alien cannot catch up.  Finally, communication is opened, at which point the man asks "why?" The alien tells him that man had discovered immortality, but that it required the death of a member of a race known as the Flower People for every human who achieved immortality. The alien says that Man would have found the answer eventually, but that genocide was so intolerable that the aliens came from another dimension, to which they could never return, to stop Man, which resulted in the war of extermination.  Finally, the light speeds become so great that the two remaining living beings in the universe approach the Big Crunch. As the Man begins to dive into the singularity, with the alien hot on his heels, he says that maybe there will be room in the next universe for both races to live in peace, and the final line is "not with a whimper, but with a roar of triumph"! Proving by induction that $\sum\limits_{k=2}^n \frac1{k^2}\le 1$ How can I edit/create new launcher items in Unity by hand? Will Unity allow making custom launcher icons from .desktop files or via menu editing system? (Right now the launcher doesn't give the option to "keep in launcher" on all programs.  For some programs I use, I have to make custom launchers or .desktop files.  For instance, daily blender builds are generally just folders with an executable.  In basic Gnome or KDE, I can make a new menu entry with the menu editing system. Then, I can also add it to Docky either from the menu or by dragging a .desktop file to it. Unity launcher doesn't support drag and drop, so thats not a bug or anything, but when I open a .desktop file, it has unpredictable results. Most time it will not have "keep in launcher". Sometime it will have a pinnable item without the .desktop's icon, and if I pin the item to the launcher, it will not call upon the program again after closing it. I've also gotten it to just work with a .desktop file for celtx. Upgrade to the latest PHP version in Ubuntu What do the symbols displayed by ls -F mean? I noticed that if I run ls -F on a directory, some of the entries have a * or a @ after them.   spuder@ubuntu:~$ ls -F /sbin acpi_available*   getpcaps*           lvmconf*                 ntfscp*        start-stop-daemon* agetty*           getty*              lvmdiskscan@             ntfslabel*     status@ alsa*             halt@               lvmdump*                 ntfsresize*    stop@ alsactl*          hdparm*             lvmsadc@      spuder@ubuntu:~$ ls -F ~ daq-0.6.1/  examples.desktop       noname-cache.lib  snort-2.9.1/   Templates/ Desktop/    jpgraph-1.27.1/        noname.sch        snortfiles/    Ubuntu One/ Documents/     According to the ls man pages   spuder@ubuntu:~$ man ls ... -F, --classify   append indicator (one of */=&gt;@|) to entries ...   I'm guessing that @ means symbolic link,     What do these other indicators mean ( */=&gt;@| )  ? Serana disappeared during dawnguard questline. I've got a qml file and I just want to ssh to the phone and do  qmlscene myfile.qml   Is it possible without doing all that stuff with SDK and packages? Just vim and some simple commands that can fit into person's memory.