Hi All,
I'm really new to AppleScript so this is a real basic question but I couldn't find the answer or an example in the AppleScript ref. guide.
I'm making a simple script that I'll bundle as an .app file, in the AppleScript Editor I can see the .app's Bundle Contents in which I have an icon a descritpion file and a "Scripts" folder. How do I access that content from the script? And how do I access Scripts inside the "scripts folder"
Thanks
i ve used pagination. what the problem is for example: i ve 3 pages 1) in the first i'm clicking some checkboxes and 2) i move on to the second and 3) return back to the 1st page the checkbox that i already checked is unchecked. for form submission i need the checkbox status that i ve checked on all pages should be submit. i need a detail description and clear answer for my question. Is anybody there to help me pls.....
function isNewUsername(str){
var result;
$.post('/api/isnewusername',
{username:str},
function(data) {
result = data.result;
},
"json");
return result;
}
So , my problem is very simple but I can not figure it out . I want to access result from the isnewusername function . I am very curious about answer because I spent 1 hour on it .
Thank you
I have an application that displays some HTML in a QWebview, which references images on the local file system. This works fine directly running the python. When compiling via py2exe, the images no longer load. Google doesn't seem to know the answer, any ideas?
Let's say you're away from your computer and all you've got is a web browser. You'd still like to run a piece of code (e.g. to check an answer on SO). What are your options?
Let's create a list of on-line interpreters of various programming languages. Here are some examples:
Python: http://try-python.mired.org/
Haskell: http://tryhaskell.org/
Scala: http://www.simplyscala.com/
Many languages: http://ideone.com/
Many languages: http://codepad.org/
While taking a look at this awesome thread I noticed that some examples use
PS1="Blah Blah Blah"
and some use
PROMPT_COMMAND="Blah Blah Blah"
(and some use both) when setting the prompt in a bash shell. What is the difference between the two? An SO search and even a bit of broader google searching aren't getting me results, so even a link to the right place to look for the answer would be appreciated. Thanks!
the question is rather simple but I couldn't find a precise answer:
in a myisam db, what happens if a php file locks a table (with an atomic operation, say an INSERT) and another php file tries to access the same table (reading or writing)?
Now, while it is obvious that the second session will not be able to access the table, what exactly happens? Does it return some kind of error? Does is wait in queue until it is able to access it?
Thanks in advance!
assumbe ie is still the dominate web browser, the XMLHttpRequest.responseText or XMLHttpRequest.responseXML in ie desire txt or xml/xhtml/html,but what about the server response the xmlHttprequest whith MIME TYPE octact/binary? would the response string all littele than 256 ?(every char of that string < 256), thanks very much for a straight answer, i have no webserver env,so i don't know how to test it out.
hi i m finding similarity between documents ....nd to measure that i used jaccard coefficient...i did like dis
D1=(8,0,0,1) where 8,0,0,1 are the tf-idf scores of the terms t1, t2, t3 , t4
D2=(7,0,0,0)
jaccard coefficient= dotproduct(d1,d2) / |d1|+|d2|-dotproduct(d1,d2)
and the answer comes out to be " -1.367931 "...what does it signify about the similarity between the documents...pls do reply..please...thank u..
The thing is that I have hundreds of nodes each with 4 to 12 images all of them around the same size in an imagefield but I want to order that so it looks at the end in a grid or something like that.
I know that panels and views are the answer but I think I've seen all of the tutorials available but nothing.
If anyone know where can I find something like I need, I'll be very gratefull.
When I build a unit test project before the tests are executed the test output is copied to a TestResults folder and then the tests are executed. The issue I'm having is that not all the files in the Debug/bin directory are copied to the TestResults project.
How can I get a file that is copied to the Debug/bin directory to also be copied to the TestResults folder?
EDIT: Here is a link to a similar question on another site (no answer there though), http://www.eggheadcafe.com/software/aspnet/29316967/files-and-unit-testing-wi.aspx
thx for the answer..can i asked u more question.hehe..since im new in sql...thx b4...
how about if i hv 2 loop
while @@fetch_status=0
begin
set y=y+1
set x=0
while @@fetch_status=0
begin
x=y+1
if y = 5
'exit the second do while and back to the first do while -- y=y+1
end
end
I have the string
a.b.c.d
I want to count the occurrences of '.' in an idiomatic way, preferably a one-liner.
(Previously I had expressed this constraint as "without a loop", in case you're wondering why everyone's trying to answer without using a loop).
In my answer to this question, where the asker needed a fast way to get a directory listing of a folder on a network drive, I suggested using the DOS "dir" command. Unfortunately, it's a command, not a program, so you can't execute it with CreateProcess and so I had to put it in a batch file. I don't really like that solution. It feels like a hack to me. Does anyone know a way to run dir from Delphi instead of from an external batch file?
my local is 'en_IN' (ie Zend_Registry::get('Zend_Locale'))
I have to convert the local value to standard float number format
for example
1,235.23 = 1235.23
3.23 = 3.23
I have used the following code
Zend_Locale_Format::getFloat($value, array('locale' = Zend_Registry::get('Zend_Locale')));
it working fine for 1,235.23, and i get the answer 1235.23.
But when i give 3.23 , i get the error on this code
And the error shown as
'No localized value in 3.23 found',
This issue is happening in the browser opera, when we set the language is
English(IN)(en-IN)
The specific situation is I have a .zip file that I want to open with a certain application. However, I don't want all ZIP files associated with that application. I think the answer is that instead of saying, "download this zip file, and open it with application X" I could have the browser basically go well my desktop application to go fetch it on its own (the same way directives like itunes: mailto: or aim: do things like launch the itunes store, add buddies, etc). Thoughts?
Thought I would ask the knowledgeable StackOverflow community a question that was on my mind today and I can't seem to find an answer.
Is there any performance difference or advantage between an "IN" or using "OR"?
Ie. Is
SELECT type FROM types WHERE typecat IN ('abc', 'def')
better than
SELECT type FROM types WHERE typecat = 'abc' OR typecat = 'def'
I would like to track metrics that can be used to improve my team’s software development process, improve time estimates, and detect special case variations that need to be addressed during the project execution.
Please limit each answer to a single metric, describe how to use it, and vote up the good answers.
I have been pondering why it is recommended that we should not release managed resources inside finalize.
If you see the code example at http://msdn.microsoft.com/en-us/library/system.gc.suppressfinalize.aspx , and search for string "Dispose(bool disposing) executes in two distinct scenarios" and read that comment, you will understand what I mean.
Only possibility I can think of is that it probably has something to do with the fact that it is not possible to predict when finalizer will get called.
Does anyone know the right answer ?
thanks,
mishal
Hi
This was the question asked in interview, null pointer exception is very common why it is not declared as checked exception.I googled but did not get proper answer.
Thanks
I need to choose right architecture model for my solution(client-server, web application, web services).
Can you please tell me what questions I must answer to make good decision?
thanks
I read on the net someplace that in a tight loop if you are clearing your vector repetitively, it might be better to use setsize as it might be faster. I am not sure about this. Anyone's got a definitive answer to this?
HI! Could you please tell me how to resize a .png image. Or better give an example. I've been searching for the answer for a long time and it seems that nobody knows how to resize a .png image and keep its transparency. :(