I need to make a general class for transform Tuple data, to Data Set. Is possible to call "unknown data method's" with different return type. For example &lt;Tuple&lt;List&lt;string,int&gt;&gt;, &lt;Tuple&lt;List&lt;int,int&gt;&gt; and put it in like generic type?  I have a generic Class  static class Helper&lt;T&gt; {     public static DataSet Transform(T data)     {         ...transform logic         return new DataSet();     } }   And another class, which call different methods, which return different types.  For example, I call a method which returns this type: Tuple&lt;List&lt;Tuple&lt;long, string, string&gt;&gt;, List&lt;Tuple&lt;long, string, string&gt;&gt;&gt; and I try to call generic class method Transform and insert specific date type, which I get from method result by GetType(). But I have a problem with it.   For Example - this work, I set string like generic type and string content.  Helper&lt;string&gt;.Transform("test");   But if I want to use "unknown" type, I don't know, how I put it like date type.  var data = Data.GetData(); var type = data.GetType(); //this doesn't work Helper&lt;type&gt;.Transform(data);   I hope so my question is clear.  Thanks for your help.
What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod&lt;T&gt;() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod&lt;T&gt;()?         GenericMethod&lt;myType&gt;(); // This doesn't work          // What changes to call StaticMethod&lt;T&gt;()?         Sample.StaticMethod&lt;myType&gt;(); // This also doesn't work     }      public void GenericMethod&lt;T&gt;()     {         // ...     }      public static void StaticMethod&lt;T&gt;()     {         //...     } }
I remember coming across this fact a while ago in a pdf somewhere, but I haven't been able to find it again. Can someone show me how to prove it? I would appreciate easier proofs.  EDIT: I'm very sorry, I forgot to actually state it.  Prove that $-1$ is not a quadratic residue modulo primes of the form $4k+3$.  Thanks! In bash, read after a pipe is not setting values How can I take pictures through a skyscraper, airplane, or train window? 8.4 - Use entity browser in a module block from in same way as I would in a custom block Box around single element in list Is there any way in latex to create a simple box around one item in a list?  I tried both \framebox, and \fbox, none of them worked  \begin{enumerate}[label=\Alph*),ref=\Alph*] {\color{red}\item null.}  \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Works, but   \begin{enumerate}[label=\Alph*),ref=\Alph*]  {\color{red}  \fbox{ \item null.} }   \item lik vektdifferansen $GT - GK$. \item lik vektsummen $GT + GK$. \item lik vekten av $K$. \end{enumerate}   Does not. So yeah, any way to box a single entry in a list? I recently installed Ubuntu Server edition 13.10 (Saucy Salamander). But I have run into a bit of problem. At the end of the installation, it asks about several extra packages whether you want them or not, like OpenSSH server and virtual machine host. Here's what I'm looking at:  Now, my problem is that I can't remember if I have checked the &quot;virtual machine host&quot; checkbox. How do I check if my server has the corresponding packages? What packages come with the virtual machine host? Javascript && operator as if statement? Here's a pickle: reference style links in markdown are fantastic. Numbered footnotes, however, can be a pain. Named references are a beautiful solution, but the editor seems to choke on them in certain contexts, throwing an error:  your post appears to contain code that is not properly formatted as code...  I've looked at a  and tested it out quite a bit and I'm pretty sure line breaking isn't the problem, named references are valid , and I can get multi-word named references to work basically every time (in this post, even). Is there a reason for named references to be seen as improperly formatted code in certain contexts? At the risk of being verbose (but for the sake of completeness), here's the source of the specific question I was trying to post when I encountered the problem: I'm trying to build a [Google Apps Script] that integrates with [Trello], the idea being to use it to push information from spreadsheets and forms into the [Trello API] and create cards on a `pending` list on a certain board.  I found this [question] on here that pointed me in the right direction, and added in OAuth based on the [GAS OAuth Documentation]. The problem is I can't post the the board. I run the script, the OAuth prompt fires, and the script completes with no errors. I can also `GET` data from the private board, so I assume the authorization is working properly.  So, what am I doing wrong that prevents my script from `POST`ing to Trello?  Here's the code I'm working with:      var trelloKey = [Trello API key];     var trelloSecret = [Trello API key secret];     var trelloList = [the id of the list we're posting to];      var oauthConfig = UrlFetchApp.addOAuthService('trello');         oauthConfig.setAccessTokenUrl('https://trello.com/1/OAuthGetAccessToken');         oauthConfig.setRequestTokenUrl('https://trello.com/1/OAuthGetRequestToken');         oauthConfig.setAuthorizationUrl('https://trello.com/1/OAuthAuthorizeToken');         oauthConfig.setConsumerKey(trelloKey);         oauthConfig.setConsumerSecret(trelloSecret);      function createTrelloCard() {        //POST [/1/cards], Required permissions: write       var payload = {'name': 'apiUploadedCard',                       'desc': 'description',                       'pos': 'top',                       'due': '',                       'idList': trelloList};        var url = 'https://api.trello.com/1/cards'       var options = {'method' : 'post',                      'payload' : payload,                      'oAuthServiceName' : 'trello',                      'oAuthUseToken' : 'always'};        UrlFetchApp.fetch(url, options);     }  [Trello]: http://trello.com [Google Apps Script]: https://developers.google.com/apps-script/ [Trello API]: https://trello.com/docs/ [other question]: http://stackoverflow.com/questions/18710641/trello-api-how-to-post-a-card-from-google-apps-script-gas [GAS OAuth Documentation]: https://developers.google.com/apps-script/guides/services/external#making_requests_to_services_with_oauth  If I'm being a complete dunce, please let me know. It seems like one of those errors where it's either a hardcore backend bug or a really stupid user mistake and I'm ready to admit to the latter. In electrostatics, why the electric field inside a conductor is zero? In electromagnetism books, such as Griffiths or the like, when they talk about the properties of conductors in case of electrostatics they say that the electric field inside a conductor is zero.  I have 2 questions:    We know that conductors (metallic) have free electrons which randomly moves in all directions, so how come we can talk about electrostatics which by definition means stationary charges? When the textbooks try to show why the electric field inside a conductor is zero they say let us put our conductor in an electric field. What happens then is that there will be an induced surface charge density which consequently induces an electric field within the conductor such that the total electric field within the conductor will be zero. That is perfectly understood, but my problem is the following: the original claim was that the electric field within a conductor is 0, not the electric field after putting the conductor in an external electric field it became zero. I do not understand the logic! Prove or disprove: If H is a normal subgroup of G such that H and G/H are abelian, then G is abelian. it seems like it... should be? In that I can't think of any counterexamples off the top of my head. I was looking up these  and saw the quaternion group, but the subgroups of the quaternion group aren't abelian... I'm working on this problem already, the domain and co-domain are the set of Rational Numbers. we see that setting $x = 1$ and $y = n$, we obtain $f(n + 1) = f(n) + 1$  But I'm trying to prove that $f(n) = n + 1$ for all $n$, the case when $n = 1, 2$ is obviously true, how do I approach this via induction? Can someone define what exactly 'POCO' means? I am encountering the term more and more often, and I'm wondering if it is only about plain classes or it means something more? Getting hyperref to work with \citeyear and \citeyearpar in biblatex change whole font of beamer to arial bold italic? how to change the font of the content to bold italic ?  thank you   here my cool superbe example:  \documentclass[14pt,t]{beamer} \usepackage{url} \usepackage{hyperref} \usepackage{graphicx} \usepackage{grffile} \begin{frame}\maketitle\end{frame} \begin{frame} \frametitle{test0} \begin{itemize} \item test \item test \begin{itemize} \item test \end{itemize} \end{itemize} \end{frame} \end{document}   A possible solution would be to use:  \usepackage{helvet} \renewcommand{\familydefault}{\sfdefault} \renewcommand{\rmdefault}{phv} \renewcommand{\sfdefault}{phv} %\renewcommand{\mddefault}{b}   % this content bold with b \renewcommand{\bfdefault}{phv} % Helvetica has no bx series \renewcommand{\updefault}{sl}   But it does do helvel arial bold for the whole document, and maybe there are ways to have the items/text of the slides in bold italic, and to keep normal phv for the top of the slide (frame title)? Continuous Fibonacci number F(n) Show that $C[a,b]$ is a complete space under the metric $d(f,g)=\sup_{t\in [a,b]}|f(t)-g(t)|$. Are there attacks that break collision resistance but not preimage resistance? Are there any examples of attacks on hash functions which:   break collision resistance and second preimage resistant, or break collision resistance and preimage resistant?   I have looked at Rogaway's paper1, but it seems complicated, hence was wondering if a succinct example exists.  1)  Phillip Rogaway and Tom Shrimpton. Fast Software Encryption (FSE) 2004, LNCS vol. 3017, pp. 371&ndash;388, Springer, 2004. Since the Earth has a magnetic field, can it, in theory, be run through a conductive metal coil to create electricity? How to download image using requests Limit of $n$th root of $n$! I am asked to determine if a series converges or not:  $$\displaystyle\sum\limits_{n=1}^{\infty} \frac{(2^n)n!}{(n^n)}$$  So I'm using the $n$th root test and came up with $\lim_{n \to {\infty}}\frac{2}{n}\times(\sqrt[n]{n!})$ I know that the limit of $\frac{2}{n}$ goes to $0$ when $n$ goes to infinity but what about the $(\sqrt[n]{n!})$?