I found plenty of info on this for Safari 3, but things have evidently changed in version 4. I just happened to stumble upon the answer by experimenting, so posting it here for others.
In what cases would a call to java.sql.ResultSetMetaData.isSearchable(int col) return false for an Oracle database? The documentation for the method doesn't really answer the question:
"Indicates whether the designated column can be used in a where clause."
I can think of only one case - when the column is the result of an aggregate function (in which case it would have to be part of a HAVING filter, not a WHERE filter).
Are there any other cases?
I want to make a JavaScript application that's not open source, and thus have two questions:
What's the best way to obfuscate the code?
What's the best way to obfuscate the strings themselves within the application (assuming that the answer to #1 does not handle this)?
My primary editor is Emacs, but my usage habits and knowledge of features has barely changed over the last few years.
What are the Emacs features that you use on a daily basis? Are there any little-known Emacs features that you find very useful?
Edit: Made this into the recommended poll format...please put one feature per answer from now on.
In ant, within a target are the tasks guaranteed to be executed in order or do I need to set up a (annoyingly long, thin) dependency chain? I couldn't find the answer in the manual or Google, but I may have just missed it. Much thanks.
I want to write a program in J2ME to turn the Bluetooth on/off automaticly in a certain time without the user permission.
I'v been looking for a while but I couldn't find an answer.
Hi,
How do I load MS Word document (.doc and .docx) to memory (variable) without doing this?:
wordApp.Documents.Open
I don't want to open MS Word, I just want that text inside.
You gave me answer for DOCX, but what about DOC? I want free and high performance solution - not to open 12.000 instances of Word to process all of them. :( Aspose is commercial product, and 900$ is a way too much for what I do.
I used this query URL
http://maps.google.com/maps?q=from+A+to+B&output=kml
,which is given in the answer to this question. But after I tried it, it doesn't work with coordinates. It works with address names tho. I guess I could use google's geocoding to get the addresses first. But I wonder if there is another way to get the walking distance between two coordinates?
Given a multimap<A,B> M what's a neat way to create a vector<B> of all values in M with a specific key.
e.g given a multimap how can I get a vector of all strings mapped to the value 123?
An answer is easy, looping from lower-upper bound, but is there a neat loop-free method?
I am a newbie to git so I think I made something stupid (will move back to hg soon ;-))
Assume I'm at version A and I commited a change but didn't want that. Now assume we have version B. I didn't found a good solution how to cleanly roll B back to A but went back to A via checkout and continued commiting - assume I have version C.
A--->B
\-->C
Now the problem is that those commits were successfull (I can see the SHA's and the msg in .git/logs/HEAD)
but the commits do not show up in the log and I couldn't push them to github. Before detecting the mess I checkout to 'master' ... and git rolled all back to B.
How can I get my version C back or are my changes lost?
Is this the same problem as described here?
Please close. I posted it here. On stackoverflow seems to be more questions related to that ...
Originally posted on StackOverflow, and edited for clarity
I have a custom Content Type inside a list that has over 30 items (Which were uploaded via DockIt), and I have added several "managed properties" to the "crawled properties", in the SSP.
All of them work except 1. The column "Synopsis" is a multiline field with no limit on it's length. It appears as a crawled property "Synopsis", and is mapped to a managed property 'asynop'.
On the 'Advanced Search Page', it is added as a property and searchable, however it only returns a some matching records (if any). I manually created an entry, ran the crawl and was able to search for it. I edited an existing entry, ran the crawl (full and incremental), and it still only returned the manually entered entry.
If I entered the search term in the Search box directly "asynop:fatigue", then all the correct results appear.
Why is this happening? And could it please stop?
I've checked other questions, but I can't find a working answer
I have a .Net web application which successfully takes on the callers windows credentials (Thread.CurrentPrincipal is my windows user).
Within that app, I call to a WCF service, but my windows identity isn't passed up. Regardless of what I put in the binding:
NetTcpBinding binding = new NetTcpBinding();
binding.Security.Mode = SecurityMode.Transport;
binding.Security.Transport.ClientCredentialType = TcpClientCredentialType.Windows;
Hi all,
I need to compile C++ code in windows application and append the results (Output or execution errors) on rich text box. I use CodeDomProvider Class but I unable to compile the code using C++ language. Please Help.......... Need Proper answer in easy way....
I want to know if its possible based on your experience to use our previous experiences using .net ORMs with nosql db such as MongoDB.
And also if you know samples doing this please refer in your answer.
Hello,
I am looking for a way to import BRE generated policy with its' vocabularies into BizTalk application from a command line (in order to script it) leveraging BtsTask command line tool.
I've searched around, and couldn't find a firm answer.
Thank you.
Based upon SO answer "my ($export = $doc) =~ s{.odt}{.pdf};" why does this Perl script produce a compile error?
$ cat so.pl
#!/usr/bin/perl
my $doc ="x.odt";
my ($export = $doc) =~ s{\.odt}{.pdf};
$ ./so.pl
Can't declare scalar assignment in "my" at ./so.pl line 3, near ") =~"
Execution of ./so.pl aborted due to compilation errors.
We have been using Cassandra 0.6 and now have Column Families with millions of keys. We are interested in using the new Secondary Index feature available in the 0.7 but couldn't find any documentation on how the new index is stored.
Is there any disk-space limitation or is the index stored similar to keys in that it's spread over multiple nodes?
I've tried combing through the Cassandra site for an answer but to no avail.
when I write a command
$ echo date
then it prints "date" as it is i.e it doesn't run date program.
But when I write
$ echo date | wc
then correct answer is produced as if date was run. How piping is making difference here ?
Please explain.
Hello,
I want to understand the logic of authorization,cookies,users logins,sessions..Do you know any source that explain and teach me about it. If it could give any examples it would be great. I mostly use php,jsp but it would be no problem if you give answer related other languages.
I was directed to post here, I started on Stackoverflow....
I'm trying to use 'sdd' on my Debian system, and can't get one set of options to work. They do work in 'dd' so I am wondering if I am specifying them incorrectly, or if sdd didn't implement them, or something else.
What I want to do is
sdd if=/dev/hdh1 of=/bay5/imagebay1 bs=4096 conv=sync,noerror
if I leave out the "conv=..." option, it works, or at least starts copying data.
sdd if=/dev/hdh1 of=/bay5/imagebay1 bs=4096
Can you shed a bit of light?
Is there any way to round numbers in C?
I do not want to use ceil and floor. Is there any other alternative?
I came across this code snippet when I Googled for the answer:
(int)(num < 0 ? (num - 0.5) : (num + 0.5))
The above line always prints the value as 4 even when float num =4.9.
Please suggest a solution.
I've never seen a good list of free Java libraries.
What are some of your can't-live-without Java libraries?
Note: to keep this poll as useful as possible, please remember:
Post only one library per answer
We don't want duplicate answers, so before posting check if the library has been mentioned already
When adding a new library, provide a short summary of what it does / why you think it's useful
Do anyone knows any kind of apps or services for "taking care of servers"? (besides managed servers)
There are hundreds of ways your server or application can stop working properly.
Small things are easy to miss but usually easy to fix. Log overgrouth, configuration issues, etc.
Of course there are best practice checklists, but its not a human task to check configuration best practices. Im sure it can be automated: some kind of agent can monitor all system settings, say what is right and wrong and give suggestions on how to make it right.
I have to admin several servers and I need some kind of overview of overall situation. As well as a tool, that will fix problems automatically.
Can you people suggest something?
(I know its a little bit out of rules of SF, but I think this particular question is quite specific) It would be great to have something like http://stackoverflow.com/questions/1451319/asp-net-mvc-view-engine-comparison
but for automation software.
Hi everyone. I'd ideally like a vim answer to this:
I want to change
[*, 1, *, *] to [*, 2, *, *]
Here the stars refer to individual characters in the substring, which I would like to keep unchanged. For example
[0, 1, 0, 1] to [0, 2, 0, 1]
[1, 1, 1, 1] to [1, 2, 1, 1]
If people know how to do this in perl or python or whatever, that would be equally good.
Cheers