I need Regex which can satisfy all my three condtions for zip-code. E.g-
12345
12345-6789
12345 1234
Any pointers and suggestion would be much appreciated. Thanks !
Hello, my JavaDoc doesn't work when I have a code example with an annotation.
Any suggestions?
/**
* <pre>
* public class Demo {
* @DemoAnnotation
* public void demoMethod() {
* }
* }
* </pre>
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface DemoAnnotation {
int i ;
void set_array(int num){
int array[10];
for(i=0;i<10;i++){
array[i]=compare(num,i){
}
}
int compare(int a ,int b){
if(sub(a,b)>=0)
return 1;
else
return 0;
}
int sub(int a,int b){
return a-b;
}
anybody know how to convert to mips code
I'm using embed tag in PHP like this:
echo "<embed src='images/meccaAdhan.mp3' name='guitar' id='BGS_ID' autostart='true' loop='false' width='2' height='0'></embed>";
I need to add this code before images:
templates/<?php echo $this->template ?>
Please guide me how to solved it.
A friend of mine sent me this code snippet to celebrate his new baby birth:
void new_baby_name() { father_surname++; }
The snippet is from his point of view, he is the father and the new baby get the surname from him.
I answered with this:
class father_name {};
class mother_name {};
class new_baby_name: public father_name, public mother_name {};
but I am not fully satisfied of my answer...
Its been mentioned in other answers about getting the same code running for both the def get(self) and the def post(self) for any given request. I was wondering what techniques people use, I was thinking of:
class ListSubs(webapp.RequestHandler):
def get(self):
self._run()
def post(self):
self._run()
def _run(self):
self.response.out.write("This works nicely!")
I have a table with 600+ columns imported from a csv with special chars % _ - in the column names, is there a way to change the column names to remove these special chars ?
the code can be tsql or tsql
Java is striving to be backward compatible. It is to such an extent that it crippled its generics for that (off-topic).
But are there situations when old code would not compile on newer versions (more importantly Java 5, and the forthcoming Java 7)
Is there any reason why the asterisk is next to the object type in this code? I'm a little confused by the way I see this used. Some times it looks like this:
NSString* stringBefore;
and sometimes like this:
NSString *stringBefore;
Is there a difference? Or a right or wrong way to do this?
Thanks
please any 1 can solve it...
how can i select single file page model or code behind page model......please...solve.../ ow can programmer select each according to condition with visual studio 2008 (3.5))
Hi! This was a question in our old C++ exam. This code is driving me crazy, could anyone explain what it does and - especially - why?
int arr[3]={10,20,30};
int *arrp = new int;
(*(arr+1)+=3)+=5;
(arrp=&arr[0])++;
std::cout<<*arrp;
url = "http://example.com"
new Ajax.Request(url, {
onComplete: function(transport) {
alert(transport.status);
}
});
I'd like that to return a status of 200 if the site is working, or 500 if it is not working, etc.. But that code is returning 0 all the time.
Ultimately, I want to have a setinterval function that regularly pings a website for uptime status.
I realise that Sharepoint in asp .net based but I have a PHP application that a user wants me to include in a Sharepoint site.
So is it possible to use PHP code inside sharepoint?
Hi
I am noob to parsers.I like to fetch specific data from a website I need to use parsers for that. Can anybody please tel me how to get started with parsers.What do I need to download?
Can anybody the code to fetch the data from a website using parsers in java.
Thanks in advance.
Java is striving to be backward compatible. (It is to such an extent that it crippled its generics for that).
But are there situations when old code would not compile on newer versions (more importantly Java 5, and the forthcoming Java 7)
I have seen some solutions, or at least tries, but none of them really work.
How do I strip all tags except those inside or [code] - and replace all the < and with < etc. in order to let js do some syntax highlighting on the output?
I am taking over someone elses code. What are some good ways to learn what that programmer did as quickly as possible? I have been running it, stepping through it and looking at the callstack. What else can I do?
Sorry I forgot to mention, but there is little documentation and I have been trying to fix simple problems. Thanks!
As part of my test automation, I have to start Selenium Server on my server.
As of now I am manually executing a batch file to start selenium server on m,y machine.
Batch file contains the following command.
java -jar selenium-server-standalone-2.16.1.jar -role hub http://server.com:5555/grid/register
But as I required it for my test automation, I want to automate running the selenium server on a remote server from my C# code. How do I do this?
hi, here is my code.
<?php if(!empty($rows_Recordset1['domicile']))
{
echo "Domicile";
}
else {
echo "";
} ?>
domicile is field in record set.
the problem is that Domicile heading is not showing where I want it to print. Its showing nothing.
int Size(struct node* node)
{
if(node == NULL)
{
return 0;
}
else if(node != NULL)
{
return (Size(node->left) + 1 + Size(node->right));
}
}
Hi, Can Anybody please post the stack trace for the following piece of code.
Lets say if we insert the values 2, 1, 10, 5...
Then what could be the stack representation during the recursion process.. Please, its very urgent, and its very confusing too...
Hi,
i'm new user about this interesting forum!
I want start develop application for android and before starting i want learn about some android feature...
the first android feature is how to correlate finger motion in screen with java...
Exist some source code that show how to realize application to draw with finger in android screen?
can you suggest me where donwload it?
thanks
My .htaccess file is as follows:
Options -Multiviews
RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php
It works, but I'm wondering how it works. For example, if I type in example.com/main, I get the file at www.example.com/main.php. How do I get the .php extension if the code tells the rewriting to stop after adding the www. to the beginning of example.com?