Now I got a dictionary like this  Dictionary dict = new Hashtable(); dict.put("shipno", item.getShipNumber()); dict.put("addr", item.getFinalAddr()); dict.put("receiver", item.getReceiverName()); dict.put("phone", item.getReceiverPhone());   and I'm going to pass this dictionary to funcion Test() as a parameter, what should I put in the '()'  public static int Test(Dictionary)   Is this correct? Thanks!
I have seen this mentioned a few times and I am not clear on what it means. When and why would you do this?   I know what interfaces do, but the fact I am not clear on this makes me think I am missing out on using them correctly.   Is it just so if you were to do:  IInterface classRef = new ObjectWhatever()   You could use any class that implements IInterface? When would you need to do that? The only thing I can think of is if you have a method and you are unsure of what object will be passed except for it implementing IInterface. I cannot think how often you would need to do that.   Also, how could you write a method that takes in an object that implements an interface? Is that possible?
Blank white desktop icons on new Windows 7 install Hello Physics StackExchange!  I will put the TL;DR in the beginning: I need a self contained, relatively hand-holding sequence of textbooks that covers up from the end of Griffith's Intro to QM to relativistic QM/particle physics to QFT.    This will be my first post. I'm a medical physics grad student who majored in biomedical engineering for my undergrad, with serious regrets about not doing math/physics double major in hindsight. Oh well. I've made it my goal to eventually understand QFT.  My background in relevant subjects is Calc 1 to 3 and Diff EQ, 2 part freshman physics, an E&amp;M course that used Griffiths Electrodynamics, a summer of self studying Griffith's QM (got most of the way through). I will also be officially taking a class in QM using Griffith's textbook this next spring. I am aware of the Lagrangian and Hamiltonian approaches to mechanics as well. In addition I have familiarity with special and basic general relativity using tensors and all this. What would be the best way for me to get from where I am now to a strong understanding of QFT autodidactically? I have no aversion to studying pure maths where I need to.  EDIT: My question is much different than simply asking for a handholding explanation of QFT. Generally these textbooks assume a certain amount of physics/math background, and I was asking for a sequence of textbooks leading up to QFT from the end of a specific textbook, Griffith's QM. Did you even read my question? Did you read the thing you linked me to? The preimage of a subset If $A\subseteq B$ under what conditions is $f^{-1}(A) \subseteq f^{-1}(B)$, where $f^{-1}$ is the preimage, not  the inverse. Why doesn't calling a Python string method do anything unless you assign its output? Let $G$ be a group and $H$ be a subgroup of $G$ of index $2$ .Then show that if $a,b\notin H$ then $ab\in H$. Which is better: ... or ... How do i create a linestring from points sort by date in PostgreSQL?  I tried:  SELECT observations.id,    ST_MakeLine(observations.geom ORDER BY observations.date) AS newgeom    FROM   observations     GROUP BY    observations.id;   This is going wrong. It returns me a linestring with same coordinates.  So, instead of a line from a to b, it gives me a to a.    What am I doing wrong? "Authoring" versus "Writing" In my area of work the word author as a verb has become quite common. However, it seems to have a subtly different meaning than plain vanilla write. For example, one does not write software unit tests; one authors them.  Can anyone offer a clear distinction between the two words? Has author as a verb become a common usage outside of the field of computer software? taller than any student or taller than any other student Which of the following sentences is correct?     a)   1. John is taller than any student in his class.   2. John is taller than any other student in his class.        b)   1. No student is taller than John in his class.   2. No other student is taller than John in his class. Is $7$ the only prime followed by a cube? I've had a couple of answers today where the OP indicated via a comment that I solved their problem, but the question wasn't upvoted or accepted.  In both cases the person probably wasn't able to upvote since they were new, but they could have accepted my answer. I felt a little guilty asking them to accept the answer, but since it solved their problem I felt that it would help others who stumbled on the question trying to solve their own problem to know that my solution really was the answer. Is asking the OP to accept your answer when they've said that it solved their problem a reasonable thing to do or does that feel like nagging for reputation? robots meta not blocking indexing We have a staging version of our website to test changes on at trailheadpaddleshack.ca/staging1. This never appeared in search before. Recently the staging site has appeared on Google and is affecting our search results.  I'm trying to figure out how the pages got there and how to remove them. The pages have always had &lt;meta name="robots" content="noindex, nofollow"&gt; in the head.  I am kinda new at this but was under the impression this should prevent Google from showing my site in results. I am pretty sure the results appeared in google after I accidently copy pasted some codes from the staging site to the live site that contained links to pages on the staging site. If anyone can point me in the right direction to figure out what happened and prevent it from happening again would be much appreciated.  robots.txt looks like this:  User-agent: * Disallow: /calendar-2/action~posterboard/ Disallow: /calendar-2/action~agenda/ Disallow: /calendar-2/action~oneday/ Disallow: /calendar-2/action~month/ Disallow: /calendar-2/action~week/ Disallow: /calendar-2/action~stream/ #Begin Attracta SEO Tools Sitemap. Do not remove sitemap: http://cdn.attracta.com/sitemap/4035112.xml.gz #End Attracta SEO Tools Sitemap. Do not remove   I also tried adding an X-Robots-Tag header and submited the site to be re-crawled. Did that a few days ago and I still see no changes. Here are the HTTP headers according to "Fetch as Google":  HTTP/1.1 200 OK X-Robots-Tag: noindex,nofollow Vary: Accept-Encoding Transfer-Encoding: chunked Date: Sun, 24 May 2015 16:26:49 GMT Server: LiteSpeed Connection: close X-Pingback: http://trailheadpaddleshack.ca/staging1/xmlrpc.php Content-Type: text/html; charset=UTF-8 Link: &lt;http://trailheadpaddleshack.ca/staging1/?p=170&gt;; rel=shortlink   I am now faced with a bunch of results I need to remove from Google asap as they contain out of date information and are affecting our search results. Webmaster Tools has something for removal of a single URL but I am looking to remove the entire /staging1/ subfolder. Any tips? Search functionality in lightning:datatable? Is there a way to search across all rows/columns in a lightning:datatable to narrow down the list, just like jQuery DataTables? If so, how do implement that?  Can I somehow do it all on the client-side to make it super fast (some sort of DOM manipulation)  I'm having some issues with the lightning:datatable not updating. I have attached my code below, maybe you can help me spot the issue:  Markup:  &lt;aura:component extends="c:Base" controller="AccountBrowserForm"&gt; &lt;aura:handler name="init" value="{! this }" action="{! c.doInit }"/&gt; &lt;aura:attribute name="selectedAccountId" type="Id" access="public" /&gt; &lt;aura:attribute name="accounts" type="Object"/&gt; &lt;aura:attribute name="mycolumns" type="List"/&gt; &lt;aura:attribute name="sortedBy" type="String" /&gt; &lt;aura:attribute name="sortedDirection" type="Boolean" default="true" /&gt;  &lt;aura:registerEvent name="AccountFilterChange" type="c:AccountFilterChange" /&gt;  &lt;aura:attribute name="backingdata" type="List" /&gt; &lt;aura:attribute name="filter" type="String" /&gt; &lt;lightning:input type="text" onchange="{!c.filter}" value="{!v.filter}" label="Filter" /&gt;  &lt;lightning:datatable aura:id="lightningTable"                      data="{! v.accounts }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowaction="{! c.handleRowAction }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="true" /&gt;     Controller:  doInit: function (component, event, helper) {     helper.callServer(component, "c.getAccounts", $A.getCallback(function (response) {         component.set("v.accounts", response);         component.set("v.backingdata", response);         console.log(component.get("v.backingdata") + " /// BACKING DATA INSIDE ")         console.log(component.get("v.accounts") + " // ACCOUTN DATA INSIDE")          component.set('v.mycolumns', [{                 type: "button",                 typeAttributes: {                     label: '',                     iconName: 'utility:add',                     name: 'selectRecord',                     title: 'selectRecord',                     disabled: false,                     value: 'edit',                     variant: {                         fieldName: 'variantValue'                     },                 }             },             {label: 'Name', fieldName: 'Name', type: 'text', sortable: true},             {label: 'Street', fieldName: 'BillingStreet', type: 'text', sortable: true},             {label: 'Postal Code', fieldName: 'BillingPostalCode', type: 'text', sortable: true},             {label: 'City', fieldName: 'BillingCity', type: 'text', sortable: true},             {label: 'Country', fieldName: 'BillingCountry', type: 'text', sortable: true},         ]);          console.log(component.get("v.backingdata") + " *** BACKING DATA OUTSIDE *** ")         console.log(component.get("v.accounts") + " *** ACCOUNT DATA OUTSIDE *** ")     })) },  filter: function (component, event, helper) {     var data = component.get("v.backingdata"),         term = component.get("v.filter"),         results = data,         regex;     try {         regex = new RegExp(term, "i");         // filter checks each row, constructs new array where function returns true         results = data.filter(row =&gt; regex.test(row.name) || regex.test(row.age.toString()));     } catch (e) {         // invalid regex, use full list     }     component.set("v.accounts", results); },   For some reason the filter function is completely unresponsive. Also, does it matter that I'm populating the component with a response from a callback function. @sfdcfox, I noticed in your example that you simple created an array with dummy data. My "myaccounts" attribute is of type object I keep seeing places refer to the "multiverse" repository as a place I can get software, how can I enable this repository? Please specify how to do this graphically and via command line. We have our main BU (business unit) at the top of the tree, and one of the other BUs is TEST. In TEST we have created an Installed Package and in that installed package we have added a Server-to-Server API Integration. In the Access tab of that API Integration we've disabled the integration for the Parent BU, and have enabled it for the TEST BU.  When we make Rest API calls to the endpoint created in that API Integration we always get data from the "Main" BU, and not from the TEST BU.  If I create a contact that is available in both the Parent and TEST BU, but if I try to trigger an email based on a Triggered Send definition only the definitions created in the Parent BU are available and not the definitions from the TEST BU.  How can I access the data in the TEST BU from the Rest API? And why aren't the permissions preventing me from taking actions on the Parent BU? What is an unsigned char? In C/C++, what an unsigned char is used for? How is it different from a regular char? Suppose that $(s_n)$ converges to $s$, $(t_n)$ converges to $t$, and $s_n \leq t_n \: \forall \: n$. Prove that $s \leq t$. I'm stuck with the proof of the following:  Suppose that $(s_n)$ converges to $s$, $(t_n)$ converges to $t$, and $s_n \leq t_n \: \forall \: n$. Prove that $s \leq t$.   I've tried starting with $s_n \leq t_n \: \forall : n$ and the definitions of each limit (i.e. $|s_n - s| \leq \epsilon \: \forall \: n &gt; N_1$), but I'm not really getting very far. Any help is appreciated! Related posts:    These posts are different from mine in that they merely ask for the &quot;votes&quot; tab back or ask if it is at all possible to get such information, while I propose how to implement this as a search feature. Background I recently found myself facing a problem very similar to one that I had solved before. I remembered that I found the solution on SO and I remembered upvoting the post containing the solution. I wasn't able to find that particular post by just searching with relevant keywords. It would have been nice if I could search only among the questions I have voted on. I searched on meta and found that there had been a tab for looking at what you've voted on, but that it was removed due to lack of interest. This is understandable, since just listing the hundreds/thousands of posts you've voted on isn't particularly useful. Proposal What I want is to be able to search for posts I've voted on similarly to the way I'm able to search on my posts within a specific tag. For instance: user:310121 [iphone] apple  This will return all my posts tagged iPhone, where I mention Apple. This is brilliant. This is just how I want search to work. Now what I want to do is to extend this to include votes. The exact syntax isn't relevant, but I had to make one up to show you what I mean: To show all posts you've voted on: user:310121 {votes}  To show all posts you've upvoted: user:310121 {upvotes}  To show all posts you've downvoted: user:310121 {downvotes}  You could probably omit the the user part, since you're only allowed to see your own votes. (Unless it's desirable to be able to look at other peoples votes. Maybe you should be allowed to do this if you have enough rep? Well, that's another discussion.) I guess that even if you're allowed to see other peoples votes it would make sense to display your own votes if the user part is omitted. So in my case I could have done the following search and found the post I was looking for: {upvotes} keyword  Lastly I just want to suggest that clicking on your vote count will work just like clicking on a tag. If I click on a tag in my profile the following search will be done: user:310121 [tag]  So if I click on my upvote count the following search should be made: user:310121 {upvotes}  The same goes for downvotes: user:310121 {downvotes}  This would be a very useful feature and it wouldn't be intrusive in any way. The users that don't care for this feature might never know that it's there. And just for the record the favorite system doesn't replace this feature. I know how to , but I'd like to add a bunch of different extensions and avoid the tedious job of adding every single one. Is there a command line tool or registry key I can use to accomplish this? If a spell is cast on a moveable creature/object and lasts longer than a round, and the creature/object moves, does the spell move with it?