So I have to find the set bits (on 1) of an unsigned char variable in C?  A similar question is  But it uses an algorithm that's not easily adaptable to 8-bit unsigned chars (or its not apparent).
8 bits representing the number 7 look like this:  00000111   Three bits are set.     What are algorithms to determine the number of set bits in a 32-bit integer?
How to run Visual Studio post-build events for debug build only How can I limit my post-build events to running only for one type of build?  I'm using the events to copy DLL files to a local IIS virtual directory, but I don't want this happening on the build server in release mode. Let $a_n$ be a sequence s.t $a_1 > 0 \land a_{n+1} = a_n + \dfrac{1}{a_n}$. Prove that $a_n$ is increasing and tends to infinity Let $a_n$ be a sequence s.t $a_1 &gt; 0 \land a_{n+1} = a_n + \frac{1}{a_n}$. Prove that $a_n$ is increasing and tends to infinity.  Proof:   Consider $a_{n+1} - a_n$:  $a_{n+1} - a_n = a_n + \frac{1}{a_n} - a_n = \frac{1}{a_n}$ This is greater than $0$. Thus, $a_n$ is increasing.  Now this is where I need some help. I would like to say that $a_n$ is unbounded and then conclude that monotone and unbounded implies tending to infinity.  Maybe by contradiction? "I want you succeeding" vs. "I want your succeeding" I am happy seeing you succeed.   I am happy to see you succeed.   I want you to succeed.   I want you succeeding. I want your succeeding.  Could you please explain the differences between them, and the first and second examples independently of each other? How to spawn a Giant with equipment? I really want to spawn Giant with armor and swords. Because Giants are strong, and great challenge if spawned with enchanted diamond armor and a diamond sword. install other packages when creating new package in R Set the location in iPhone Simulator How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator? A fellow player is uncooperative with the group and gets GM favoritism. How do I handle this? I actually have two situations but they are interconnected. Our group is currently playing a Dresden game. The GM and one of the players are married. Along with that, he is a new member to the group. I can understand her (the GM) wanting to make him feel welcome but it has gone into the the realm of blatant favoritism. A few examples:   Every idea he has is deemed fantastic, wonderful, awesome and is always successful. Most of the time he doesn't have to roll to see if he succeeds; he just does. After a series of major setbacks to the other player's characters, I joked that her husband was the only one left to mess with. Her answer to that was that she would absolutely not be messing with him in the game. He and his character were safe from that. In the last session, he and another player had to make the same roll using the same skill for the same information. He needed a fair to succeed. The other player needed a great. Not the first time that has happened.    The second part of this has to do with him as well. As I said, he is new to the group. When we were discussing a game to play, it was made clear that it would be cooperative. We would all be working together to a common end. However, he will not- I mean ever- share any information with the rest of the group. No matter how vital or needed that information is to advance the story, he just smiles and says he's got nothing. To try and get around this problem, a group aspect was created. That way if a situation or information that everybody needed to know came up, a fate chip could be played and anyone who wanted to be a part of it could be present. He is totally abusing it. Now, instead of just not telling us anything, he adds give me a fate chip and maybe I'll tell you something. It's like he is trying to beat us at the game and that is not the way it was set up.    So, the question to these two situations is what do I do? How do I handle this in a rational and sensitive way? To complicate things further, the GM is my best friend. He is her husband. I don't want to put her in the middle but I am about ready to quit the game. I am tired of it being his game and everyone else being bit players. Should I talk to her or should I talk to him? If anyone has had experience with this, any advice would be appreciated. In Euclidean geometry texts, it is always mentioned that point is undefined, it can only be described. Consider the following definition: "A point is a mathematical object with no shape and size." I do not understand what is the problem with this definition. Please give the detailed reasons. Thanks in advance! How to SEO a Single-Page website I am creating a new website for a client, and I think a single page website / layout will be pretty neat. There is not that much detailed content, it is a company that imports a lot of products from different companies. So it will be a bit of a showcase of the different types of products / equipment you can order. Of the whole catalog only maybe 10 products are actually shown.  Now I have the basic structure with sections and links like:      #home / #products / #equipment / #services / #contact.    Now from what I understand is that Google does not index links containing #, so there will be no problem of duplicate content, everything will be indexed as the frontpage.  Now what I want to optimize is searching. This company is agent of some product in the country, meaning only they have the permission to import and sell that product. This means  that when somebody searches for product x, this website pops up as the first hit.  Now can I make it that they will be automatically brought to the #products part of the website directly from google.  I was thinking of something like having google index the different sections as different pages. Is something like that possible? Cardioid in coffee mug? I've read that it is possible to add a method to an existing object (i.e., not in the class definition) in Python.   I understand that it's not always good to do so. But how might one do this? no Wi-Fi on Ubuntu 14.04 LTS Asus notebook with MEDIATEK MT7630e I'm new to Ubuntu. I installed it today, but the first thing I encounter is that I can only connect to the Internet through wifi.  Can someone help me?   iwconfig result :  eth0      no wireless extensions.  lo        no wireless extensions.   lspci:  00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM     Controller (rev 09) 00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09) 00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09) 00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04) 00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04) 00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04) 00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4) 00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4) 00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4) 00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04) 00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04) 00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04) 00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04) 01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/820M / GT 620M/625M/630M/720M] (rev a1) 03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5289 (rev 01) 04:00.2 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0a)   lspci -nnk | grep 0280 -A2:  03:00.0 Network controller [0280]: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter [14c3:7630]     Subsystem: Foxconn International, Inc. Device [105b:e074] 04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device [10ec:5289] (rev 01) I want to create posters for my poster presentation on a conference. What tools or LaTeX classes are available for preparing posters ? Multiple workspaces on Ubuntu 18.04.1 LTS and later with GNOME Shell Can you partition an infinite set, into an infinite number of infinite sets? Division ring if and only if it has no proper left ideals. I've been trying to find this darn series of books for ages, I read them back in early 2001-02 and can't really remember much of them. I think there were 10-ish books, it was an easy read but a long series. On early publications, the covers, were mainly yellow, with small pictures of whatever happens in that book.  The book began with two siblings, a brother and a sister, running in a forest. She conjures up what can only be remembered as a golem type creature. He then uses a high magic 'blast' and wipes out the golem, knackering himself. His sister laughs at him for being 'powerful' but expending himself too much on one big magic blast. The beginning I remember vividly, the rest, not so much.  The story continues as a conflict happens, I believe two worlds are involved? The brother and sister are split up, but this is where my memory becomes vague.  The mechanics of the world seems that there are gems, or stones, set in the backbone, which in turn give access to magic. When the person uses them, they can draw too much, which ends up exhausting them. The 'big bad evil king' kills their father, and destroys their farm early on in the story. is it problematic to cluster across two datacenters w/aag? In general is it problematic to cluster across two datacenters that are up to 15-miles apart?  For this one particular project the approach is the following?   2-Node Failover Cluster across two datacenters, one node per datacenter local SAN disks, no shared disks 'Node and FileShare Majority' at third location on-campus employ AAG, failover will be manual; asynchronous mode   Is anyone implementing something like this with success??!?  Thanks so much for the help!! I try to delete Action.005 permanently.    But I don't know how. If I click on the X    then it is still in the list.    I already researched without success, I even managed to loose all my animations by attempting to apply a fix, so I want to be cautious now... How can I do this? Why should a CTE start with a semi-colon? I was just looking at a post on  where Aaron Bertrand proposes using a CTE instead of a numbers table, which is an elegant way of performing the task at hand.  My question is, why does the first line of the CTE begin with a semi-colon?    ;WITH n AS (SELECT TOP (10000) n FROM    (SELECT n = ROW_NUMBER() OVER     (ORDER BY s1.[object_id])     FROM sys.all_objects AS s1     CROSS JOIN sys.all_objects AS s2   ) AS x ORDER BY n ) SELECT n FROM n ORDER BY n; -- look ma, no gaps!   Is this to ensure the WITH statement does not get parsed into a previous SELECT or something?  I see nothing in SQL Server 2005 BOL about using a semi-colon prior to the WITH.