#include "d3dApp.h" #include &lt;WindowsX.h&gt; #include &lt;sstream&gt;  namespace {     // This is just used to forward Windows messages from a global window     // procedure to our member function window procedure because we cannot     // assign a member function to WNDCLASS::lpfnWndProc.     D3DApp* gd3dApp = 0; }  LRESULT CALLBACK MainWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) {     // Forward hwnd on because we can get messages (e.g., WM_CREATE)     // before CreateWindow returns, and thus before mhMainWnd is valid.     return gd3dApp-&gt;MsgProc(hwnd, msg, wParam, lParam); }   I am curious about this use of namespace in C++. I started reading the documentation on namespace and I saw a lot of examples calling a name for the namespace like "namespace first" but none without anything after the namespace declaration like this one.
A feature of C++ is the ability to create unnamed (anonymous) namespaces, like so:  namespace {     int cannotAccessOutsideThisFile() { ... } } // namespace   You would think that such a feature would be useless -- since you can't specify the name of the namespace, it's impossible to access anything within it from outside. But these unnamed namespaces are accessible within the file they're created in, as if you had an implicit using-clause to them.  My question is, why or when would this be preferable to using static functions? Or are they essentially two ways of doing the exact same thing?
Link to the recommended job is broken in the mobile apps I've just received a memo which says (effectively)      As more people leave, there will be less people available.   I want that word to be fewer. Are there guidelines for which word ought to be used when? "Cannot find this file" error when deploying from Visual Studio 2010 I'm getting an error in Visual Studio 2010 after pressing F5 to Debug:     Error occurred in deployment step 'Add   Solution': Error: Cannot find this   file specified in the manifest file:   G2_SiteDefinition_List_Instances_Feature\ListInstance1\Elements.xml   But elements.xml file is there with the ListIntance1 folder. What am I missing here? What is the safest, quick way to defrost chicken? Microwave? Running water over it? Radeon error atombios stuck in loop The screen goes blank and shows logs me out immediately a while after using multiple monitors.   dmesg shows:  [33786.908877] [drm:atom_op_jump [radeon]] *ERROR* atombios stuck in loop for more than 5secs aborting [33786.908901] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 6DD2 (len 254, WS 0, PS 4) @ 0x6DE0 [33786.908910] [drm:atom_execute_table_locked [radeon]] *ERROR* atombios stuck executing 673E (len 78, WS 12, PS 8) @ 0x6777   lspci | grep -E 'VGA|Display' shows:  00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 03:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Sun  XT [Radeon HD 8670A/8670M/8690M / R5 M330 / M430] (rev 83)    explains exactly my situation. But I don't have /etc/modprobe.d/radeon.conf file. Integrating Knowledge into an existing website In QGIS, I have been learning a few expressions to style my trail maps but still know little and am stumped on what to use to filter my symbol data. I am showing Parking locations on my map. I use a marker symbol as a background element, so I can do callouts. I created a data field and added values to display beside this symbol a number that references a list of parking addresses in the book's text. All good except if the field has no number to display, it is NULL, it does not display my marker symbol. I need to filter this, so it does show even when there is no value in the field. Convergence of $A_nT$ to $AT$ in operator norm for compact $T$ $A_n:Y\rightarrow Z$ are operators that strongly converge to $A$. Also, $\|A_n\|_\text {op}\le c$ for $c&gt;0$. Given a compact operator $T:X\rightarrow Y$, I need to show that $A_nT$ converges to $AT$ in operator norm (all spaces in this question are Banach spaces).     I was unable to prove this and I also do not understand why we need to assume that $T$ is compact. Any ideas? Why do my shortcut icons get broken on Windows 7? I have a strange problem. My icons seem to disappear randomly on my Windows 7. They were there a while back, now they ain't.  It happens often and quite randomly. Anyone know a fix? How can i limit the character length in excerpt? Possible Duplicate:          I have a question after reading this post (). I like this function(Search Term Without Plugin) very much but the character length is too long. What php code should i add to make the excerpt shorter? Would appreciate if someone can suggest it. Thank you! Evaluating this integral $ \small\int \frac {x^2 dx} {(x\sin x+\cos x)^2} $ The question:      Compute$$ \int \frac {x^2 \, \operatorname{d}\!x} {(x\sin x+\cos x)^2} $$   Tried integration by parts. That didn't work.  How do I proceed? Accessing the web page's HTTP Headers in JavaScript Pretty self descriptive, without being able to view the source of the noise how can we tell the difference between a sound in front of us and a sound behind us if pitch, volume and distance are all the same.   Also assume that it is not biased to one side more than the other, e.g its not to your left or right but directly in front or behind.   I'm interested in knowing if it is a part of the ear that makes this distinction, or a function of the brain. Converting from shapefile or raster formats to LAS? Create a new cmd.exe window from within another cmd.exe prompt I rent a VPS that uses a SSD of 10GB (Debian 7) and I upgraded yesterday to their "second tier" plan that uses a 20GB disk. However, the "one-click-upgrade" process didn't work as I expected and what they did was to move my data to a bigger drive without actually extending the partitions. So now I have 10GB of unallocated space.  I do run around 5 websites on this VPS with mail accounts and all that jazz and I'm very scared to mess up anything so I called their support and they offered to do the job for me for 80 EUR that I find unacceptable since I thought it was included when doing the upgrade. Their older offers from last year used to be just a one click job but the excuse is that "SSD's are different, so it's up to the user".  Anyway, how can I actually do that without screwing things up and is it possible to do that on a "live" system?  I know a couple of commands so here it goes what I could find:  root@vpsxxxxxx:~# df -h Filesystem      Size  Used Avail Use% Mounted on rootfs          9.9G  7.6G  1.8G  81% / udev             10M     0   10M   0% /dev tmpfs           388M  200K  388M   1% /run /dev/vda1       9.9G  7.6G  1.8G  81% / tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           775M     0  775M   0% /run/shm /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client2/web2/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client1/web3/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client3/web5/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client5/web7/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client4/web6/log  root@vpsxxxxxx:~# fdisk -l  Disk /dev/vda: 21.5 GB, 21474836480 bytes 4 heads, 32 sectors/track, 327680 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/vda1   *        2048    41943039    20970496   83  Linux  root@vpsxxxxxx:~# sfdisk -l  Disk /dev/vda: 41610 cylinders, 16 heads, 63 sectors/track Warning: The partition table looks like it was made   for C/H/S=*/4/32 (instead of 41610/16/63). For this listing I'll assume that geometry. Units = cylinders of 65536 bytes, blocks of 1024 bytes, counting from 0     Device Boot Start     End   #cyls    #blocks   Id  System /dev/vda1   *     16  327679  327664   20970496   83  Linux /dev/vda2          0       -       0          0    0  Empty /dev/vda3          0       -       0          0    0  Empty /dev/vda4          0       -       0          0    0  Empty `/usr/bin/cd` is not working in mac terminal How do I add a Javascript library to a field formatter? I'm trying to include a Javascript gallery () on my new Drupal 8 site and wrote a field formatter for this purpose.   Now I need to add the jQuery lightGallery to pages using this field formatter and call the library when the page is ready. I am confused about how I am supposed to do this, though.   I defined the library in the module containing my field formatter, but I'm not sure how I attach it only on sites that contain the field.   The documentation of the library uses the jQuery $(document).ready function to call the libary, how would that work inside a Drupal module? I've seen many people who say:     This is a HTML page.   Yet I've also seen many people who say:     This is an HTML page.   Are both usages equally correct?  Or, which is the grammatically correct one?       Possible Duplicates: How do I manually install Adobe Flash player for Chromium?