ASP.NET mvc3 Custom resource provider
ASP.NET MVC 3 localization with DisplayAttribute and custom resource provider
How to find Oracle's installed version and release from a program? I am trying to setup a dual screen configuration on debian 8 jessie with Gnome.  My computer has 3 graphical outputs : 2 displayport and 1 HDMI. I can't manage to have two of this 3 outputs to work simultaneously.  output of xrandr is (with the other display on displayport):  xrandr: Failed to get size of gamma for output default Screen 0: minimum 1680 x 1050, current 1680 x 1050, maximum 1680 x 1050 default connected primary 1680x1050+0+0 0mm x 0mm 1680x1050      0.00* `   output of xrandr is (with hdmi working):  xrandr: Failed to get size of gamma for output default Screen 0: minimum 1920 x 1080, current 1920 x 1080, maximum 1920 x 1080 default connected primary 1920x1080+0+0 0mm x 0mm 1920x1080      0.00*   I also tried to use both displayport but it does not work either.  output of lshw -c videò:  *-display UNCLAIMED         description: VGA compatible controller    product: Intel Corporation    vendor: Intel Corporation    physical id: 2    bus info: pci@0000:00:02.0    version: 06    width: 64 bits    clock: 33MHz    capabilities: pciexpress msi pm vga_controller bus_master cap_list    configuration: latency=0    resources: memory:f6000000-f6ffffff memory:e0000000-efffffff  ioport:f000(size=64)   (with both screens connected via displayport)  output of lspci -v -s0:0:2.0  00:02.0 VGA compatible controller: Intel Corporation Device 1912 (rev 06) (prog-if 00 [VGA controller]) Subsystem: Dell Device 06b9 Flags: bus master, fast devsel, latency 0, IRQ 255 Memory at f6000000 (64-bit, non-prefetchable) [size=16M] Memory at e0000000 (64-bit, prefetchable) [size=256M] I/O ports at f000 [size=64] Expansion ROM at &lt;unassigned&gt; [disabled] Capabilities: &lt;access denied&gt; The ls -al command shows the following output;  -rwxrw-r--    10    root   root 2048    Jan 13 07:11 afile.exe   What are all the fields in the preceding display? Kind of converse of Kolmogorov maximal inequality Let $S_n=\zeta_1+...+\zeta_n$ where $\zeta_i$ are independent with $E\zeta_i=0, E\zeta_i^2=\sigma_i^2&lt;\infty, |\zeta_i|&lt;K$.  Then, $P(\max_{1 \leq m  \leq n}|S_m| \leq x) \leq (x+K)^2/\operatorname{var}(S_n)$.  How do we show this?  The hint says that I should use the fact that $S_n^2-\sum_{m \leq n}\sigma_m^2$ is a martingale. But I am totally clueless....  Any hint would be appreciated! Thanks and regards. I have some text in a table and I want to add a forced line break. I want to insert a forced line break without having to specify the column width, i.e. something like the following: \begin{tabular}{|c|c|c|} \hline Foo bar &amp; Foo &lt;forced line break here&gt; bar &amp; Foo bar \\ \hline \end{tabular}  I know that \\ inserts a line break in most cases, but here it starts a new table row instead.  A similar question was asked before: In a table of contents that has been generated with LaTeX's \tableofcontents command, I would like to add a vertical space before a Chapter item in the table of contents. One way that I have in my notes is to use  \addtocontents{toc}{\protect\vspace{10pt}}   at a desired location in the document so that this gets processed by \tableofcontents to include an appropriate vertical space in the table of contents. I have two questions:   Is the above the correct way to get a vertical space in a table of contents? Why is it necessary to use the \protect command here?   Thank you... Possible Duplicate:             When I listen to major news programs, often I notice that they seem to intentionally omit "the" before the name of the government organizations. For example:     We contacted E.P.A. for comment but they refused our requests.   or     Others consider the actions of treasury to be detrimental to the economy.   These just sound wrong to me. I think it should be "the E.P.A" or "the treasury". However I most often hear this on very credible news programs (The PBS News Hour and Frontline come to mind) so I am sure they know what they're doing...  Is it proper to use "the" before the name of a government organization, or is it optional? How to pass command output as multiple arguments to another command What price should I charge for design services? I was hoping I would find some people in the industry that could help me decide what's the best price to charge to design (in this case) business cards.  What are standard prices for professional designers?  From a firm point of view? From a freelancer?  I don't want to overcharge clients but I don't want to ruin the industry by underselling my services. Exists a dedicated non-O(n²) Algorithm for avoiding to have overlapping elements? I am generating positions in a random fashion.  In the game world, instantiated elements have a radius, and shouldn't overlap.  The problem is that they will overlap because I use a usual random number generator combined with other fanciness. I can't use other random number generation algorithms where I can guarantee that the elements will never overlap.  A way to solve this is to use a spatial data structure and search for the nearest neighbors in that tree. When I insert an element into that tree, I update it accordingly.  This solution would do the work and it would be fast but my question is:  Is there a dedicated algorithm without that Tree implementation complexity which is faster than O(n²)? TypeError: 'str' does not support the buffer interface Prove that the number of $\alpha\in\mathbb{F}_{27}$ such that $|A_\alpha|=26 $ equals 12. Let $\mathbb{F}_{27}$ denote the finite field of size 27. For each $\alpha\in\mathbb{F}_{27}$ , define $ A_{\alpha}$ $=$ { $ 1, 1+\alpha , 1+\alpha+{\alpha}^2 , 1+\alpha+{\alpha}^2+{\alpha}^3 , .... $} . Then  prove that  the number of  $\alpha\in\mathbb{F}_{27}$ such that $|A_\alpha|$=26 equals 12.  $ 0\in A_\alpha $ if and only if $\alpha\neq 0$ For the first proof , the multiplicative group of the field $\mathbb{F}_{27}$ is cyclic and its order is 26  , so there are 12 generators in that group.   Now  I need  to  show  that  $ 1+\alpha+{\alpha}^2+.. {\alpha}^{25} $ =0  , where order of $\alpha$=26 . Since   $\alpha ^{26}$ =1 ($\alpha$-1)(1+$\alpha$+${\alpha}^2$+...+${\alpha}^{25}$)=0 , since $\alpha\neq 1$  , So $ 1+\alpha+...+{\alpha}^{25} $ =0 My question is , can I write these last two  lines?  I mean are those two lines alright to write? If those two lines are invalid then I need some help to show  $ 1+\alpha+{\alpha}^2+..+{\alpha}^{25} $=0  .Thanks I've deleted a system file from my Mac and need to get it back.  System files can include:   hidden files in the root of / - especially unix files in /private  /System files /Library files /Applications files that ship with the core OS   System files are not any app, user files or files that can be regenerated by a known sequence such as cache files, Spotlight index files, etc…    Canonical question and answer for . "Heard me [infinitive]" vs. "heard me [present participle]"             At that time, you wouldn't have heard me talk about it.   At that time, you wouldn't have heard me talking about it.         At that time, you wouldn't have heard me condemn it.   At that time, you wouldn't have heard me condemning it.         Which one of the above sentences are incorrect and why? 10 servers to administer and I'm a history major Through reasons that don't warrant exhaustive discussion, I find myself in charge of 10 servers:   A domain controller-~500 hosts/~350 users IIS web server-This is where we make our money SQL server-The crown jewels Exchange server Linux box for data entry AV server Backup server A few others tossed around   The company where I work believes everybody is replaceable and therefore believes they can pay a minimum wage for any position. The IT manager and Sysadmin quit recently and I think I was the only person who did not take a big step backward when the call went out for volunteers. This also explains why someone with my background is in this position. That is the reality, as much as I wish it otherwise.  What are the things I should be doing to keep those systems running? There is no written procedure left behind and I crammed the A+ and Network+ certs in the last two months but that leaves me with some theory and no practical experience.  I am in the process of teaching myself powershell but from here to there is a long way. I have no scripting or programming experience.  What tasks should I be performing? What practices should I implement?  I understand I am probably hosed but a lifeline to get me through would be helpful. Why can't a CNAME record be used at the apex (aka root) of a domain? This is a  about CNAMEs at the apices (or roots) of zones   It's relatively common knowledge that CNAME records at the apex of a domain are a taboo practice.  Example: example.com. IN CNAME ithurts.example.net.  In a best case scenario nameserver software might refuse to load the configuration, and in the worst case it might accept this configuration and invalidate the configuration for example.com.  Recently I had a webhosting company pass instructions to a business unit that we needed to CNAME the apex of our domain to a new record. Knowing that this would be a suicide config when fed to BIND, I advised them that we would not be able to comply and that this was bunk advice in general. The webhosting company took the stance that it is not outright forbidden by standard defining RFCs and that their software supports it. If we could not CNAME the apex, their advice was to have no apex record at all and they would not provide a redirecting webserver. ...What?  Most of us know that  insists that A CNAME record is not allowed to coexist with any other data., but let's be honest with ourselves here, that RFC is only Informational. The closest I know to verbiage that forbids the practice is from :     If a CNAME RR is present at a node, no other data should be   present; this ensures that the data for a canonical name and its aliases   cannot be different.   Unfortunately I've been in the industry long enough to know that "should not" is not the same as "must not", and that's enough rope for most software designers to hang themselves with. Knowing that anything short of a concise link to a slam dunk would be a waste of my time, I ended up letting the company get away with a scolding for recommending configurations that could break commonly used software without proper disclosure.  This brings us to the Q&amp;A. For once I'd like us to get really technical about the insanity of apex CNAMEs, and not skirt around the issue like we usually do when someone posts on the subject.  is off limits, as are any other Informational RFC applicable here that I didn't think of. Let's shut this baby down. How to use AP Style commas after dates I was wondering how you are supposed to use commas after full dates in AP style. I've been told to always put a comma after the year, like in the sentence:  On April 4th, 2012, I found a cat.  However, I thought the following might be an exception:  April 4th, 2012 brought the death of my cat.  Notice how there's no comma after &quot;2012.&quot;  My teacher disagreed and told me that the AP style dictates that we always put commas after dates like that. The way I reasoned through it is by replacing the dates with the word &quot;Monday&quot;  On Monday, I found a cat. Monday brought the death of my cat.  And you wouldn't write  Monday, brought the death of my cat.  TL;DR Which one is correct?  April 4th, 2012 brought the death of my cat.  or  April 4th, 2012, brought the death of my cat. Delete the entire table rendered from different pages using Javascript How can I remove duplicates in my .bash_history, preserving order? I really enjoying using control+r to recursively search my command history. I've found a few good options I like to use with it: # ignore duplicate commands, ignore commands starting with a space export HISTCONTROL=erasedups:ignorespace  # keep the last 5000 entries export HISTSIZE=5000  # append to the history instead of overwriting (good for multiple connections) shopt -s histappend  The only problem for me is that erasedups only erases sequential duplicates - so that with this string of commands: ls cd ~ ls  The ls command will actually be recorded twice. I've thought about periodically running w/ cron: cat .bash_history | sort | uniq &gt; temp.txt mv temp.txt .bash_history  This would achieve removing the duplicates, but unfortunately the order would not be preserved. If I don't sort the file first I don't believe uniq can work properly. How can I remove duplicates in my .bash_history, preserving order? Extra Credit: Are there any problems with overwriting the .bash_history file via a script? For example, if you remove an apache log file I think you need to send a nohup / reset signal with kill to have it flush it's connection to the file. If that is the case with the .bash_history file, perhaps I could somehow use ps to check and make sure there are no connected sessions before the filtering script is run? Why is the ISO size for 12.04.3 larger than a CD? Why is the Ubuntu 12LTS 4MB bigger than all the blank CDs I have?  I had to burn it on to a DVD.  This never used to be the case.