hi
I want to implement Top-Down Parsing by c# language is there any source to show me the way. I mean good method and description to implement or algorithms.
I have a NSTableView that contains a NSButtonCell in one of the columns. To draw a custom background in neighbor cells (based on NSTextFieldCell) I use isHighlighted method:
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView {
if ([self isHighlighted]) {
//here I draw the cell background
But for NSButtonCell isHighlighted shows only the button pressed state.
How to determine when the NSButtonCell is selected, i.e. when it's highlighted in the row?
As the title suggests, is there any documentation on the FlexBuilder "expressions" tab, and what expressions it can accept?
As far as I can tell, it can show the value of variables, but that's it: comparisons, function and method calls all fail:
Edit: this is specific to FB3 — Flex Builder. Apparently FB4 — Flash Builder — is slightly less incompetent.
I have a json of the following format which I need to send in the Ajax request through POST method:
{
“gbus”: [
{
"code": "*"
}
],
“regions”: [
{
"code": "*"
}
],
“offices”: [
{
"code": "*"
}
],
“contracttypes”: [
{
"code": "*"
}
],
“jobnumbers”: [
{
"code": "*"
}
],
“disciplines”: [
{
"code": "*"
}
]
}
Its not working for me, giving 500 error always when I try to submit it. Please suggest if you have any idea.
If I try:
Groups = students.Remove(f => f.StudentID.Equals(studentID));
I get an error on this line: f => f.StudentID.Equals(studentID)
I am having difficulty from my previous posts here linq deleted users still associated with groups and here Delete method in WCF
So I thought maybe I could delete the students contained within groups but I get an error Cannot convert lamda expression to type Student because it is not a delegate type.
Is there a way that I can trace every method, basically a line trace, in an asp.net web site in production environment?
I dont want to go about creating db logging for every line - i see an intermittent error and would like to see every line called and performed by the website per user.
Given any number of the random real numbers from the interval [0,1] is there exist any method to construct a floating point number with zero decimal part?
Your algorithm can use only random() function calls and no variables or constants. No constants and variables are allowed, no type casting is allowed. You can use for/while, if/else or any other programming language operands.
I am wondering how I can add something between posts being queried in Wordpress through this method:
<?php $the_query = new WP_Query('category_name=name&showposts=2');
while ($the_query->have_posts()) : $the_query->the_post();?>
Is there a way I could add something simple, like say a <hr> between the two posts being pulled?
hello I want to make a magnifying glass on a picture so that the part of picture is extended ? in other words i want to find a easy method to create the illusion of a magnifying glass,I know ShapeDrawable and BitmapShader(Bitmap, Shader.TileMode.REPEAT,
Shader.TileMode.REPEAT) is useful,but I donot konw how tu du it.
AS http://i3.6.cn/cvbnm/72/60/36/73dfcc8862020e9ed366a55e72e88883.jpg
could you give me some code or sample? thank you
I need to strip out all font tags from a document. When attempting to do so with the following Ruby code, other elements and text within the font tags are lost. I've also attempted to iterate through all children elements and make them siblings of the font tag before unlinking the font tag--which also results in lost HTML. What is a good method for removing tags which can contain other elements and/or text?
doc.css('font').each do |element|
element.unlink
end
Suppose you have a (n*n) matrices and problematically you have to check that, whether it's a upper diagonal matrices or not. Is there any generic method to solve this problem.
I am creating a domain class named HOLIDAY in grails.I need to have a year dropdown in my Holiday year field. Hear is my domain:-
class Holiday extends CategoryMaster {
String holidayName
Date startDate
int year
Date dateCreated
static constraints = {
holidayName(blank:false,nullable:false)
}
}
I need to a year dropdown in year field, Should it come dynamically from a domain method that will discard the month & day and reflect only year in that dropdown adding +50 -50 to that?... How can I get it?
I'm getting the Cannot find symbol error from my code. Does anyone know what can cause this problem?
// Register JDBC driver Class.forName("net.sourceforge.jtds.jdbc.Driver"); method forName(java.Lang.String)
Class.forName("net.sourceforge.jtds.jdbc.Driver);
^
What I need is a method similar to shutdownNow, but, be able to submit new tasks after that. My ThreadPoolExecutor will be accepting a random number of tasks during my program execution.
I am getting error msg on the word Records - Type or namespace could not be found. Please help debugging it, what is missing?
if (ProjDDL1.SelectedItem.Value != "--") results = CustomSearch<Records>(results, s => s.Business == ProjDDL1.SelectedItem.Value);
Method CustomSearch:
private DataTable CustomSearch<TKEY>(DataTable dt, Func<Records, bool> selector)
{
DataTable results = (dt.AsEnumerable().Where(selector).CopyToDataTable());
return results;
}
I want to read all files inside a given folder(path to folder) using FindFirstFile method provide in windows API. Currently I'm only succeeded in reading files inside the given folder. I could not read files inside sub folders. Can anyone help me to do this??
Instead of
def foo(configuration: (String, String)*)
I'd like to be able to write:
type Configuration = (String, String)*
def foo(configuration: Configuration)
The main use case is to provide an easy method signature when overriding in subclasses
I would like to get the word that a user has clicked on in a FlowDocument.
I am currently adding an event handler to every Run in the document and iterating through the TextPointers in the Run that was clicked, calling GetCharacterRect() on each one and checking if the rectangle contains the point.
However, when the click occurs near the end of a long Run this takes 10 seconds.
Is there any more efficient method?
How can I use the ListView_GetBkImage macro:
http://msdn.microsoft.com/en-us/library/bb761246(v=VS.85).aspx
... from a C#/WinForms application? I think this macro just wraps the SendMessage method, but I'm not sure. I couldn't find any C#-based samples on this.
Basically I'm trying to get a LVBKIMAGE ( http://msdn.microsoft.com/en-us/library/bb774742(v=VS.85).aspx ) structure that references the Desktop's background bitmap.
Hi,
I have a model with a version field - autocreate timestamp.
When a model instance is being saved I want to create a new instance with a new timestamp instead of updating the old model instance.
Is it possible?
I thought of overriding the model save() method but I don't know how to create a new instance without creating a infinite save() loop.
Thanks
I'd like to know how to translate the following line of code to a Collaboration Diagram:
Food food = new Food("abc", 123);
I know that I can call an Food's method using the following notation:
MyStaticMethod()
----------------------> --------
| |
| Food |
| |
--------
being that equivalent to
Taste taste = Food.MyStaticMethod();
and
MyInstanceMethod()
----------------------> ---------------
| |
| food : Food |
| |
---------------
is equivalent to
food.MyInstanceMethod();
but how do I signal that I want to call a given constructor on Food?
Thanks
If I have a for loop which is nested within another, how can I efficiently come out of both loops (inner and outer) in the quickest possible way?
I don't want to have to use a boolean and then have to say go to another method, but rather just to execute the first line of code after the outer loop.
What is a quick and nice way of going about this?
Thanks
What I want to do is something like this:
searchid = 4
while searchid != -1
@a += A.find(searchid)
@b = B.find(searchid)
searchid = @b.parentid
end
The problem being the line
@a += A.find(searchid)
The error being something like
NoMethodError: undefined method `+' for #
So, how do you combine multiple 'find' requests?
as topic...
I try to use the didError method , but it does not works ...
if I am in room , the iPhone sdk seem insist try to got the location as it could in my app, even the value is not accurate ...
how to deal with such problem ?
thanks for your help in advance .
Regards
I have a directory named reports inside my winform project in .net. My project name is AccountingReports and inside that Directory reports exists. So i need the way to access this path via code. In Asp.net we use Request.PhysicalApplicationPath property. So is there any method or property exists that will give me the root of my project