How to get nid as int (and not as string)
queries with db_select don't respect integers
Currently the Flag feature, on answers, offers five choices. Three of them request moderator attention:   Not an answer Very low quality "Other"   In the spirit of reducing the burden on moderators, and distributing that work a little bit more evenly around the community, I'm proposing a couple of small tweaks to the way answers are flagged.   Eliminate  as an option. Very low quality posts that are, nevertheless, genuine answers do not need moderator attention - they should just be downvoted. (Further justification for this is  and ) Replace  with four specific options:   Should have been a comment - this is not an answer, it is a comment on the question or on another answer. Flagger would then be required to choose which post it should have been a comment on. Should have been an edit - this is not an answer, it is additional information about the question from the original asker. Only appears if the answer is from the same user as the question. Me-too! non-answer - this answer consists of nothing more than "Me too!" or "Did anyone find the answer?" Conversational and irrelevant - this is not an answer, just a random conversation or rant, or meaningless typing that should be deleted    This makes life much easier on the moderators, because now the moderator is not expected to clean up after the bad answer, they merely have to peek at what happened and click "Agree" or "Disagree". If they agree:   Should have been a comment converts the answer to a comment Should have been an edit converts the answer to an edit and it is appended to the question Me-too! non-answer deletes the answer and leaves a form-message for the poster explaining that we don't like "Me too", but they should upvote the question if they think it's important or valuable Conversational and irrelevant - deletes the answer and leaves a form-message for the poster explaining that we are a Q&amp;A site, etc. etc.   In fact, if enough people with high enough flag weight or reputation (FORMULA TBD) apply the same flag, the moderation happens automatically, without moderator involvement.  To prevent the moderation queue from filling up with problems that might cure themselves, these flags don't even go in the moderator queue until some period of time (TBD) has passed.  Thoughts? Will Area 51 be supported in the app? How do I mimic Pathauto transliterated output for an alias in my custom PHP code? When writing my custom function I need to manually append node name to a taxonomy term link. To get the taxonomy term part done I use:    $link_uri = taxonomy_term_uri($term);   $path_alias = drupal_get_path_alias($link_uri['path']);   This works ok, now - I want to append node name ("/" . $node_name), but instead of raw string, I want the Pathauto transliterated output, as set in the URL alias configuration, for that node context.  What function should I use to mimic that output? I looked at hook_pathauto_alias_alter(&amp;$alias, array $context) but I'm not sure that's what I need. Can a goalkeeper chip the ball to the head of a teammate from a goal kick to circumvent the backpass restriction? What is the best way to store ground coffee? I know it's better to use freshly ground beans and not store it ground at all, but if I have no other choice, how can I best preserve ground coffee?   sort of asks the same thing, but the answers focus on storing whole beans, and the answers addressing ground coffee make it pretty unclear whether a cool cabinet, the fridge, or the freezer is the best place. Castellation metal loop connector Here's a module with castellated pads attached to an eval board:  (source: ) Looking closely at the wires interfacing with the castellated pads, they're clearly soldered to the eval board. However, they don't look like they're soldered to the module, but rather they're being pressed against the pads with the tension in the wire. It also looks like the free end of the loops are protruding down into a channel cut in the PCB. Do these kind of connectors/metal loops have a name? What exactly is a photon? Consider the question, .  The answers say, "an elementary particle" and not much else. They don't actually answer the question. Moreover, the question is flagged as a duplicate of,  &ndash; the answers there don't tell me what a photon is either. Nor do any of the answers to  mentioned in the comments. When I search on , I can't find anything useful. Questions such as,  look promising, but bear no fruit.  say things like, "the photon is an excitation of the photon field." That tells me  nothing. Nor does the , which says:     The photon is the quantum of the electromagnetic four-potential, and therefore the massless bosonic particle associated with the electromagnetic force, commonly also called the 'particle of light'...   I'd say that's less than helpful because it gives the impression that photons are forever popping into existence and flying back and forth exerting force. This same concept is in the  too - but it isn't true. As , "Virtual particles only exist in the mathematics of the model." So, who can tell me what a real photon is, or refer me to some kind of authoritative informative definition that is accepted and trusted by particle physicists? I say all this because I think it's of paramount importance. If we have no clear idea of what a photon actually is, we lack foundation. It's like what :     Photons seem to be one of the foundation ideas of quantum mechanics, so I am concerned that without a clear definition or set of concrete examples, the basis for understanding quantum experiments is a little fuzzy.   I second that, only more so. How can we understand pair production if we don't understand what the photon is? Or the electron? Or the electromagnetic field? Or everything else? It all starts with the photon.   I will give a 400-point bounty to the least-worst answer to the question. One answer will get the bounty, even if I don't like it. And the question is this:    What exactly is a photon? Windows 10 Anniversary Upgrade error 0xc1900101 - 0x30018 referring to SYSPREP Can anyone enter as a student at the Citadel ? Or must one be recommended by Lords or a powerful institution?   Aemon Targaryen was a son of a King, so the Citadel would let him access without questioning. Samwell Tarly was sent by Lord Commander Jon Snow, from the Night's Watch. , a novice of the Citadel. A common born but it is not known how he entered the Citadel. We can notice that he is not a good student, but has not been fired.    I don't remember how the other Maesters were recruited, if they are always relatives of Lords, Kings... Can any lowborn commoner just "knock the door", and enter the Citadel? We have duplicates in our all contacts in Marketing Cloud. To solve this, we want to delete all contacts (audience builder).   We use the Marketing Cloud connector, and send emails to synchronized data extensions. Because of this connector the all contacts will be filled with fresh data after 15 minutes right?  Is there any reason not to do this? What can go wrong? I was about to reconfigure some of my code to use the newer Schema.describeSObjects(types) method that I had heard was faster than using a globalDescribe.   I made some code to quickly check this and I was dismayed to find that the newer technique is not only not faster, it's about twice as slow as using a global describe. Here's the code I used :  New DescribeSObjects() method  //each block was run separately for timing purposes String obj = 'Account'; String[] types = new String[]{obj}; System.debug('START DESCRIBE SOBJECTS');  for (Integer i = 0; i &lt; 50; i++) {   List&lt;Schema.DescribeSobjectResult&gt; results = Schema.describeSObjects(types);  } System.debug('FINISH DESCRIBE SOBJECTS');   Old getGlobalDescribe() method  String obj1 = 'Account'; System.debug('START DESCRIBE GLOBAL');  for (Integer i = 0; i &lt; 50; i++) {    Map&lt;String,Schema.SObjectType&gt; gd = Schema.getGlobalDescribe();    Schema.SObjectType sobjType = gd.get(obj1);    Schema.DescribeSObjectResult describeResult = sobjType.getDescribe();  } System.debug('FINISH DESCRIBE GLOBAL');   Over 5 runs of each, the getGlobalDescribe() method took an average of 337ms for 50 describes and the describeSObjects() method took and average of 658ms. This is basically twice as long.  Does anyone have any insight as to why this would be? Any improvements that will significantly improve the accuracy of the resulting data?  As this data stands, I'm sticking with the old method.  One final note: the old technique uses 3 times a much heap (67kb vs 27kb) Is commitment necessary to participate in beta (as of June 2015)? There's this proposal for a new S.E. site which is about to enter the beta phase. It reads  This proposal is in: Commitment A successful site needs people to commit to use it. This proposal is 100% complete. Committed users will be invited to the private beta soon.  I'd like to participate in the beta but I don't want to commit (due to a full name being required). Will I be unable to participate in the beta if I don't commit? Shader nodes are missing? Why is the Yang-Mills gauge group assumed compact and semi-simple? What is the motivation for including the compactness and semi-simplicity assumptions on the groups that one gauges to obtain Yang-Mills theories?  I'd think that these hypotheses lead to physically "nice" theories in some way, but I've never, even from a computational perspective. really given these assumptions much thought. Show that antipodal points remain antipodal under any isometry of $S^2$ "The antipodal map of $S^2$ is the isometry $\bar m$ sending each point $P$ to its opposite point $-P$" (from textbook)  Show that antipodal points remain antipodal under any isometry of $S^2$. In other words, for each isometry f of $S^2$, if $P$ and $P'$ are antipodal, then so are $f(P)$ and $f(P')$  I am unsure how I can define the $P$ and $P'$ so that they are opposites of each other in the antipodal map, and am I supposed to apply the traditional isometries (translation, reflection and rotation) to the points? I don't understand this problem. Disable automatic activation of Gnome Shell activities on mouse over What are the shell's control and redirection operators? How to specify font size less than 10pt (or more than 12pt)? I am  new to Linux. I am using Ubuntu 11.04 and do not know how to compile and execute C++ program in it. I need to know the commands to Compile and Execute a C++ program in Linux. In "Tasksel" how do I select a package?