Hi, I've taken over an existing Drupal installation and have been asked to remove a single page from the site search results. I know about the lullabot tutorial through this question: http://stackoverflow.com/questions/1748837/hide-drupal-nodes-from-search, but that talks about excluding a class of content when I really just want to exclude a single page.
I've tried manually deleting the node from the search_index table, but that didn't seem to work either.
Any recommendations for excluding a single regular content page from the search index?
Sorry if this is obvious: I found a lot of questions similar to mine but I can't figure it out for my own data. I have a data frame that looks like this:
A <- c(1,6)
B <- c(2,7)
C <- c(3,8)
D <- c(4,9)
E <- c(5,0)
df <- data.frame(A,B,C,D,E)
df
A B C D E
1 1 2 3 4 5
2 6 7 8 9 0
And I need this:
df
X1
A 1
A 6
B 2
B 7
C 3
C 8
D 4
D 9
E 5
E 0
Thanks!
I'm creating a ASP.NET MVC 2 application that envolve a section like questions here in stackoverflow (mine is with exams is another kind of application but can be extrapolate to same general idea of SO).
OK I'm creating a cache per page, its mean something like this:
[OutputCache(Duration=60, VaryByParam="page")]
ActionResult AllQuestions(int page){...}
But i want to invalidate that cache when a new question is created. What can i do.
I'm open to suggestions, perhaps this is not the best way to solve this problem
I'm looking for a good example of reading and writing to the Windows Registry using VB6.
Yes, I know there are lots of mediocre examples. I spent an hour googling and testing. Some were incredibly complex, others had only some of the functions, and almost none of it had been vetted in any way (voted on).
Since Stack Overflow is intended to the canonical location for answers to programming questions, it seems reasonable to post it here.
Several questions:
How do I get my C# WCF service to use Protocol Buffers?
How do I write a C++ client for a WCF service?
How do I get that C++ client to use Protocol Buffers when talking to the WCF service.
There seems to be lots of tiny snippets of information out there, but nobody appears to have pulled it all together in one place.
Hi,
i want to get the domain extention (at least i hope it is called this way) from the site name the user is currently on.
so from www.bbc.co.uk it's co.uk and
www.google.com = .com
http://stackoverflow.com/questions/ask = .com
etc.
especially the ones with the double name (like co.uk) gives me headaches....
EDIT
as i understand from the comments, co.uk is not a top level domain? that makes life easier!
EDIT
new name (top level domain) in the title
i would like to use this syntax to update a table in access based on data from a txtfile.
fenton in his comments on this answer:
http://stackoverflow.com/questions/2992168/read-text-file-line-by-line-and-insert-update-values-in-table/2992337#2992337
said that this is possible and i would like to see the exact syntax please
I'd like to pass parameters to my C++ program in the following manner:
./myprog --setting=value
Are there any libraries which will help me to do this easily?
See also http://stackoverflow.com/questions/189972/argument-parsing-helpers-for-c-unix/191821
I'm really looking for something very similar to the way SO is setup where a few different kinds of things can be voted on (questions AND answers). What kind of DB schema, generally, could I use to support voting on many different kinds of objects?
Would I have a single Vote table that would have references to other objects in the database? Or do I have to have or should have a separate vote table for each of the objects I would like to vote on.
How do video playback speed at windows media player on any browser ?
Example: http://stackoverflow.com/questions/797723/accessing-windows-media-players-playback-speed-controls
Lot of questions has been already asked about the differences between string and string builder and most of the people suggest that string builder is faster than string. I am curious to know if string builder is too good so why string is there? Moreover, can some body give me an example where string will be more usefull than string builder?
Is it possible to require the user be authenticated (logged in) when downloading ZIP files from my site? Note that I don't have direct control of IIS7. (I'm on a shared hosting account.)
I can't simply alter the access for a particular directory because many directories are involved and most contain other files that can be accessed freely.
I've Googled this a bit and found similar questions. But I've been unable to find this exact question.
I am trying to write a pre-qualification programming exam, hopefully using Google Forms... however they seem to be unable to do new-lines in both the questions and the section headers...
My current format is new page for each question, with a "section header" as the main question (because it has a textarea for the "code snippet") and a "multiple choice question" as the ummm... question answer...
Help much appreciated...
I'm a super beginner. I did find related questions here but I think they're too advanced for my skills. :-(
Here's my function:
function get_fname($un){
$registerquery = $this->conn->query("SELECT f_name FROM tz_members WHERE
usr='".$un."'");
while ($row = $registerquery->fetch_assoc()) {
return $fname = $row[$un];
}
}
Any help plsss??
I've seen some jobs that require nhibernate knowledge, as well as numerous questions on stack. I found another question that pointed me to Summer Of NHibernate and I am watching the videos now. However it has no introduction explaining why NHibernate was created and what problem is solves. By looking on wikipedia, I can see vaguely what it does, but to me it looks like .NET already has the entity framework which seems to do the same thing.
Can anyone clarify why nhibernate exists?
I posted a question a few days ago mentionning Spring's OpenEntityManagerInViewFilter:
http://stackoverflow.com/questions/2385858/uirepeat-inside-a-uirepeat-and-lazyinitexception
An obvious thing that should have been asked and now comes to mind is how to test for the presence of an EntityManager in a JSF project. What is a good way of doing this?
dear friends,
referring to the code example of mine
http://stackoverflow.com/questions/2997703/android-remote-image-getting-problem
how can i accommodate bigger resolution images in android.
when i try to display bigger resolution image from internet it give me null bitmap.
any one guide me whats the solution?
any help would be appreciated.
in this : http://stackoverflow.com/questions/2879146/is-there-a-twitter-user-login-framework-for-gae
i find some mistake when i download the framework, and it is not running ,
has any other easy code framework example ?
thanks
I know very well about the traditional arguments about why Interface Inheritance is prefered to multiple inheritance, there has been already a post here :
http://stackoverflow.com/questions/191691/should-c-include-multiple-inheritance
But according to Stroutroup the real reason why Microsoft and Sun decided to get rid off multiple inheritance is that they have vested interest to do so: instead of putting features in the languages, they put in frameworks so that people then become tied to their platform instead of people having the same capability at a language standard level.
What do you think ?
Using Java, you can get the list of ISO2 codes through Locale.getISOCountries() (see this related question http://stackoverflow.com/questions/712231/best-way-to-get-a-list-of-countries-in-java).
However, I would like to have the list of all country names (in English for example) and not the list of ISO2 country codes. How can I do that by programming in Java or Groovy ?
Thank you very much,
Fabien.
Need to know how to execute this in the best way possible so that the suggestions will load really quick and secured. I want something like how the Related Questions works here after typing a question title.
Thanks
I am facing a problem on load pdf on browser. its working fine but slow in load. That's why i want to display a loading message / gif until it's fully loaded so the user isn't looking at a blank screen.
My question is same as previous question
http://stackoverflow.com/questions/1138232/html-embedded-pdfs-onload
Hi folks,
I have name, phone number and E-mail infomation of a contact. I just want to insert the additional email and phone for the existing contact. My questions are
How to find the contact is already existing or not?
How to insert the values on the additional or secondary address option?
Thanks in Advance.
I read through this post:
http://stackoverflow.com/questions/741345/how-do-i-implement-direct-identity-based-openid-authentication-with-zend-openid
Why does it look so complicated to implement?
IMO, it's just to send request to a remote site and retrieve the response.
What's the problem those OpenID libraries are dealing with?