i am building a formula like this:
=if(a1="something" or a1="alex","returned","not found")
but i guess the syntax is wrong. what is the correct way to write this?
Guys,
I was hoping that someone can shed some light on why I am getting this error:
Parse error: syntax error, unexpected '{' in /homepages/22/d223624283/htdocs/drupal_new/includes/install.core.inc on line 74
Could it be something that I missed as far as D& configurations?
Thanks,
Matt
Trying to save files in python:
g = open('~/ccna_pages/'+filename, 'w')
g.write(page)
g.close()
Get this error:
Traceback (most recent call last): File "dl-pages.py", line 50, in
g = open('~/ccna_pages/'+filename, 'w') IOError: [Errno 2] No such file or directory: '~/ccna_pages/1.0.1.1.html'
However, the directory does exist at that location.
This syntax seems to be the what the python docs recommend.. http://docs.python.org/release/1.5/tut/node46.html
What am I missing? Thanks..
I am curious about code in my action script project:
public var _p:Object
...
in a function:
public function WObject(pp:MovieClip)
{
_p = pp;
_p.Play();
}
The Play() function is in MovieClip but not Object, can action script allow such syntax?
I try to declare a variable in a code like this, but it's doesn't work. Can you tell me what's the problem?
ERROR: syntax error at or near "VARCHAR"
LINE 2: p_country VARCHAR;
DECLARE
p_country VARCHAR;
p_country : = '';
SELECT p_country;
I have a problem as I'm conditionally including the Prototype-based Lightbox script for IE6 as it works better than the jQuery plugin.
Of course the two libraries conflict but the official solution is not really feasible for me as i would have to replace tons of $ with the alternative no-conflict syntax.
Is there any other solution for me, keeping in mind that in my case it would be easier to have Prototype work nicely with jQuery than the other way around?
Hello,
I'm looking for a library that could perform "easy" pattern matching, a kind of pattern that can be exposed via GUI to users.
It should define a simple matching syntax like * matches any char and alike.
In other words, I want to do glob (globbing) like sun's implemented logic http://openjdk.java.net/projects/nio/javadoc/java/nio/file/PathMatcher.html but without relation to the file system.
Ideas?
I am extremely confused as to how a JButton works. I have read over the oracle documents of the JButton, but I have failed to see how a JButton can have an actionlistener added to it. I have really always wondered how things like JFrames and all that can have things like .addMouseListener and all that. Can anyone explain how a JButton can have an actionListener added to it like the .addActionListener(...) syntax?
I am looking for the syntax to add node fields to the body of an email. Examples I looked at indicate the the format is:
[content_type:content_type_title]
However my email arrives with just the string :
[content_type:content_type_title]
Even better would be a PHP snippet that loads the node and dumps filed title and filed value into the body of the message.
I just got my free web hosting set up (trigoblocks.comuf.com), I connected via FileZilla FTP and uploaded my files. The error I get is "Parse error: syntax error, unexpected T_STRING in /home/a3639879/public_html/header.php on line 1".
Header.php line 1-2:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
I do not get this error while on localhost with XAMPP.
I'm writing a DSL where the "+" operator is strictly numeric, and the String "+" operator is messing up my implicit conversions. What's the syntax for unimporting an operator of the String class?
Thanks
$ bc
BC> ibase=2
BC> 110&101 // wanna get 100
(standar_in) 8: syntax error
Wikipedia informs that the ops are "|, & and ^". It may be that they work only in certain BC-types or I misread something.
i want to declare a global link list for a name space in c# i tried to extern the link list but not know the correct syntax can any one tell me how to extren the variables.
Hi,
I have two tables like of this structure
content (content_id, content_type, user_id, time, comment_count)
comments (comment_id, content_id, userid, comment, comment_time)
What I wold like to do is update the comments_count field with sum of comments i.e COUNT(content_id) from the comments table.
I am not able to figure out the right syntax
Thanks
Among the C-syntax family of languages (C, C++, Java, C#, ObjC, JS, AS, ...), which have a preprocessor compatible (to whatever extent) with the C preprocessor?
What is the syntax for the hash value for a Perl object member subroutine reference in a dispatch table?
use lib Alpha;
my $foo = new Alpha::Foo;
$foo->bar();
my %disp_table = ( bar => ??? );
I want ??? to be the code reference for $foo->bar().
i have one image background of table with following syntax
style="background-image(URL)"
the problem is when i print it on printer it did't print.
can you please tell me how to get this
image background also get it printed on paper as watermark.
Thanks
[revised]
I'm creating a TreePanel in ExtJs that is loading its children from a JSON file. I'm having trouble adding a click action to the nodes. I'm not sure whether it's added in the script creating the tree, or if its added as a property in the JSON, and if so, what the syntax would be. Any help would be appreciated! Please provide an example if possible.
How do I get Aptana to recognize .jspf files?
I'd like to have syntax highlighting for .jspf files. I'm sure there's a preference/config option or an xml file to edit, but I'm not finding it.
I assume it's similar to the eclipse process, so I'm tagging eclipse, too. If it's not, I'll remove the tag.
I've always wondered how to write the "A ? B : C" syntax in a C++ compatible language.
I think it works something like: (Pseudo code)
If A > B
C = A
Else
C = B
Will any veteran C++ programmer please help me out?
I am trying to create a multi line string in Groovy. I have a list of strings that I'd like to loop through within the multi line string. I am not sure what the syntax is for this. Something like below...
def html = """\
<ul>
<li>$awaiting.each { it.toPermalink()}</li>
</ul>
"""
I'm having trouble with the following collections initalization:
private Dictionary<string, string> mydictionary = new Dictionary<string, string>()
{
{"key", "value"}
, {"key2", "value2"}
, {"key3", "value3"}
};
I keep getting various compiler errors about the syntax. From what I have googled this should be perfectly valid C# 3.0 code.
The first error that pops up is:
Error 102 ; expecte
What am I doing wrong?
I've checked out the man pages and did some searching but can't find info on ways to have rsync skip files greater than a certain size. We're doing rsync to an offline location and when someone puts a hug video file, the rsync jobs run into work hours.
I've looked at the 'exclude' syntax and didn't see anything for excluding based on file size.
Can I do it with rsync or should I look for other offline synching alternatives?
Hi,
After loading an entity from the database using LINQ-to_SQL,I pass the entity.ID to a method having argument of type GUID.When I access this parameter in the method,I get an empty value,and not the GUID.Why is it so?