In trying to select elements that have any attributes, the following throws a jQuery syntax error.
$("div[*]")
Is there a selector to check if a tag has any attributes?
Tested with jQuery 1.3
I need an simple way to check whether a string that is sent to my function is of the form:
(x + n)(x + m)
//the +'s can be minus'
//n and m represent a double
//x represents the char 'x'
Is there a simple string format that I can use to check that this is the form. As opposed to checking each character singularly.
The whitespace will be removed to save any confusion.
Regards
Lloyd
Hi all,
I need to run a taks in CruiseControl .NET before checking for modification in source control. I mean this task should be the very firts thing that CruisControl will always do. I see section in cc.config, but it is for running tasks before building a solution, so it is not exactly what I need.
Will be very appriciate for any help.
Thank you.
Is there a simple package available that permits programming in xbase ( i.e. dbase or Foxpro syntax) and has a datatype to store and perform simple arithmatical operations on arbitrarily large integers ( say 100,000 decimal digits) ?
Hi there.
Using mysql and php
Is there any reason / value when checking a password to query the database using the user name and password (after sanitizing, of course) and recording a failed attempt when no rows are returned vs querying the database using the user name and then comparing the return password string?
EDIT: To those who mentioned it below, yes the password is hashed up in the database.
I have a list of System.DirectoryServices.ActiveDirectory.Domain objects gotten via this method. How do I know instantiate a DirectoryEntry object with this Domain object? The syntax seems to escape me.
I have two Perl one liners:
perl -pe "s/\b$a\b/$b/g if m/param1 /" test
and
perl -pe "s/\b$a\b/$b/g unless /^#/" test
How can I combine theif m/somthing/ and the unless /something/, like:
[root@localhost tmp]# perl -pe "s/\b$a\b/$b/g if m/param1/ unless /^#/" test
syntax error at -e line 1, near "m/param1/ unless"
Checking few RDBMS I find that things like
SELECT COUNT (a), SUM (b)
FROM TABLE
are allowed (notice space between aggregate functions and parenthesis).
Could anyone provide a pointer to SQL standard itself where this is defined (any version will do)?
I'm trying to compile Python 2.6 for 64bit, I tried various compile commands but not sure whether those are correct
./configure --with-universal-archs=32-bit --prefix="$HOME/python"
make
make install
What is the correct syntax ... ?
Dear friends
I use the following command syntax to search params in my script
grep -qsRw -m1 "any_param" /dir/..../
Some times the search take avery long time
The question is how to add time out to grep command
For example after 20 seconds grep will break out
If it not illegal to add time out to grep , how it will possible on other way?
THX
Yael
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs = yyvsa;
register YYSTYPE *yyvsp;
For the code above,it just reports:
Description Resource Path Location Type
syntax error before "yyvsa" yysphinxexpr.c /sp/src line 852 C/C++ Problem
Which is far from useful,is it for configuration reasons?
Sometimes I get errors while coding, because of typing some combination of keys (eg. ALT + SHIFT + SQUARE BRACKET) in a wrong way. So I get Syntax Error in Python, but I can't see where the illegal character is, 'cause Coda do not show it to me. Any solution?
I am trying to echo the action for my form if a post equals 'paypal'
This is what I have:
<?php if $_POST['method'] == 'paypal' echo 'action="paypal/process.php"' else echo 'action="moneybookers/process.php" '?>
Do i need to print the variable before I do this? what am I doing wrong?
I get this error:
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /var/www/account/credits/credit_amount.php on line 27
I have a script where I do not want it to call 'exit' if it's being sourced. Initially I though checking if $0 == bash but this has problems if the script is sourced from another script, or if the user sources it from ksh. Is there a reliable way of detecting if a script is being sourced?
Is it possible to check for pressed keys without using the KeyboardEvent?
I have an ENTER_FRAME event setup called enterFrameHandler and I want to check within the function enterFrameHandler if any keys are pressed.
normally when using a KeyboardEvent I could check for keys easily using a switch that checks the KeyCode of the event, but in an ENTER_FRAME event this isn't possible for me.
Is there any other way of checking the keyboard's state within the ENTER_FRAME event?
One of my co-workers has resigned and was made to leave the premises before checking in all of his code to TFS. I have access to the physical files. Is there a way for me to access his workspace and check in some of the changes that are still left unchecked in? From tfs I can see which files he has checked out but no way of seeing the exact changes unless very manually.
I get an error that says
Parse error: syntax error, unexpected
T_PRIVATE in
E:\PortableApps\xampp\htdocs\SN\AC\ACclass.php
on line 6
while trying to run my script. I'm new to classes in PHP and was wondering if someone could point out my error. Here's the code for that part.
<?php
class ac
{
public function authentication()
{
private $plain_username = $_POST['username'];
private $md5_password = md5($_POST['password']);
$ac = new ac();
So there's plenty of vs.settings files for nice dark syntax highlighting in VS2008, but I find them basically unusable since they're surrounded by an otherwise white visual studio application and general windows environment. I'd like an adequate dark windows 7 theme I can use while coding in VS.
All of the 3rd party Win7 themes (that utilize the patched system files) I've come across have had fairly major problems and were unusable for one reason or another. Does anyone out there have a dark theme + VS combination they're actually happy with?
Hey Everyone,
I am getting this error in Expression Engine when I am clicking on the Extensions Manager in the Utilities setting. Think anyone can help me out ... Parse error: syntax error, unexpected '&', expecting T_VARIABLE or '$' in ...
Thanks,
Jason
ITT: Post a program that doesn't do anything, but breaks all syntax highlighting.
??=include<stdio.h>
// lol????/
why does this compile???????/
haha :>
int main()<%int lol<:0x1UL??);printf("%.""0s",(0[lol]??'=*lol,&lol<:(unsigned)"hi"??)));??>
I was just wondering which would be cheaper, using a try catch block for index out of bounds or checking the length of a multi dimensional array and comparing values?
I have a feeling it's the length, since I can store the length in a variable and then just do if's which are relatively cheap. I'm just not sure how expensive try-catch is.
Thanks!
I'm trying to configure the cygwin to work with TWiki, I have to input this in the Cygwin bash shell:
mount -b -s c:/...
but it doesn't recognize the "-s", I already fixed the problem with -b, it changed the syntax and now is "mount -o binary" for the "mount -b"part. But now it says unknown option with the "-s" anyone?? help?? or what does the -s mean, so I can look it up :S
Say I have a MATLAB object defined in a class file
classdef foo
properties
bar
end
end
And I create a foo object
myfoo = foo();
Now I want to add another field to foo dynamically. What I want is
foo.newfield = 42;
but this will throw an error.
I know there is a way to dynamically add a field/property to a MATLAB object but I can't remember it or find it easily in the help. Anyone know the syntax?
Hi I would like to know if there's an existing implementation of checking if application exist in your local machine before I start to open it.
System.Diagnostics.Process.Start("path")