Hi
I use SQL server 2008 and I have created some tables but I want to edit some of them but it does not let me and will show an error ! how can i solve my problem ??? please help me
I would like to add Infragistics dlls as custom prerequisite when publishing my project.
I've read about that:
http://msdn.microsoft.com/en-us/library/aa730839%28VS.80%29.aspx
But this seems to be a bit complicated...
I wonder if exists a bit simple way to archive that (eg by passing URL to setup.exe or such) ?
EDIT
This Might be also interesting: http://www.codeproject.com/KB/aspnet/Add_Custom_Prerequisite.aspx?msg=2520811 will check and let you know...
Let's say I need to create a new file whose path is ".\a\bb\file.txt". The folder a and bb may not exist. How can I create this file in C# in which folder a and bb are automatically created if not exist?
Let's say I have something like 30-10-2025 12:53, how could I convert that to an NSDate? I guess there's some class that takes this plus an format string that tells it how the date looks as a string, so it can parse it... where must I look?
Let's say I have this list of asterisks, and I say it to print this way:
list = ['* *', '*', '* * *', '* * * * *', '* * * * * *', '* * * *']
for i in list:
print i
So here, the output is:
* *
*
* * *
* * * * *
* * * * * *
* * * *
But I want the output to be vertical, like this:
* * * * * *
* * * * *
* * * *
* * *
* *
*
Any tips on doing this? I've tried to conceptualize how to use things like list comprehension or for-loops for this, but haven't got it quite right.
I'm using the facebooker plugin in rails to let users sign up through facebook connect. the application uses iframe. Now when certain things occur,how can I send notifications to application users from the application through facebook.
I have a graph with 1000+ nodes that is fairly sparse. I would like to create a visualization of this graph, and let users drag around it, the same way that users can drag the image of Google or Bing maps around.
Is there any service/toolkit/technology that exists to allow me to do this easily? Javascript? Silverlight? Flash/Flex?
i am new to array. Hope you can help me. i have 2 array. Let say:
array 1 = [[50,60],[70,80]]
array 2 = ["Fire", "Marine"]
array 1 index : Array([0]=Array ([0]=50 [1]=60) [1]=Array
([0]=70 [1]=80))
array 2 index : Array ([0]= Fire [1]=Marine)
How i can insert array 2 into array 1 like output below :
Output that i want like below:
array 3 = [["Fire",50,60],["Marine",70,80]]
array 3 index = (Array([0]=Array ([0]=Fire [1]=50 [2]=60)
[1]=Array ([0]=Marine [1]=70 [2]=80))
Thanks
When you're opening page in IE it downloads lots of files, including CSS, scripts, pictures, SWFs, etc. I need to develop small plugin which will monitor all these URLs and let's say save to file this list.
I need it in Delphi, but any example in any other programming languages will be really appreciated.
Let's say we have the following function:
foo <- function(x)
{
line1 <- x
line2 <- 0
line3 <- line1 + line2
return(line3)
}
And that we want to change the second line to be:
line2 <- 2
How would you do that?
One way is to use
fix(foo)
And change the function.
Another way is to just write the function again.
Is there another way? (Remember, the task was to change just the second line)
I want to link the example with liba.so, and also the example is NOT using anything inside the liba.so ...
armlink --userlibpath /mylib/lib liba.so --fpic --shared -o example main.o demo.o
So finally I got nothing from: readelf -d example | grep NEEDED, it seems that armlink do some optimization to remove the linked library which is not really used by the "example" ? If I want to let the liba.so be always linked into example, what need I do with armlink options ?
Any information is very appreciated ;)
Suppose my client doesn't want me to own his iPhone Distribution Certificate, is there a way I can send him the compiled app and let him adjust all App Id, Provisioning etc parameters, then sign and submit it? How do I do this?
Can any one please let me know the best way to use IF statement in mysql query to show if the "email" field is NULL then it should show as "no email"...
Postcode Telephone Email
----------------------------------------------------------
BS20 0QN 1275373088 no email
BS20 0QN 1275373088 no email
PO9 4HG 023 92474208 [email protected]
SO43 7DS 07801 715200 [email protected]
----------------------------------------------------------
I have a datamodel with to-many to-many relations. Using the example of employee database let say the entity division is related to department which in turn is related to employee. The employee has an attribute salary. How best to have a attribute at the level of division which is derived from the salary attribute. For example average salary or maximum salary.
I would need those attributes to sort the list of departments.
Let's say I have a background worker like this:
private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
while(true)
{
//Kill zombies
}
}
How can I make this background worker start and stop using a button on a WinForm?
I'm trying to make sure that my Managed to Unmanaged calls are optimized. Is there a quick way to see by looking at the IL if any non-blittable types have accidentally gotten into my pinvoke calls?
I tried just writing two unmanaged functions in a .dll, one that uses bool (which is non-blittable) and one that uses ints. But I didn't see anything different when looking at the IL to let me know that it was doing something extra to marshal the bool.
I'm trying to be more modular in my CSS style sheets and was wondering if there is some feature like an include or apply that allows the author to apply a set of styles dynamically.
Since I am having a hard time wording the question, perhaps an example will make more sense.
Let's say, for example, I have the following CSS:
.red {color:#e00b0b}
#footer a {font-size:0.8em}
h2 {font-size:1.4em; font-weight:bold;}
In my page, let's say that I want both the footer links and h2 elements to use the special red color (there may be other locations I would like to use it as well). Ideally, I would like to do something like the following:
.red {color:#e00b0b}
#footer a {font-size:0.8em; apply-class:".red";}
h2 {font-size:1.4em; font-weight:bold; apply-class:".red";}
To me, this feels "modular" in a way because I can make modifications to the .red class without having to worry so much about where it is used, and other locations can use the styles in that class without worrying about, specifically, what they are.
I understand that I have the following options and have included why, in my fairly inexperienced opinion, they are less-than-perfect:
Add the color property to every element I want to be that color. Not ideal because, if I change the color, I have to update every rule to match the new color.
Add the red class to every element I want to be red. Not ideal because it means that my HTML is dictating presentation.
Create an additional rule that selects every element I want to be red and apply the color property to that. Not ideal because it is harder to find all of the rules that style a specific element, making maintenance more of a challenge
Maybe I'm just being an ass and the following options are the only options and I should stick with them. I'm wondering, however, if the "ideal" (well, my ideal) method exists and, if so, what is the proper syntax?
If it doesn't exist, option 3 above seems like my best bet. However, I would like to get confirmation.
Let's say we have following class
public class PlayerEvent extends Event
{
public static const PLAYER_INIT:String = "playerInit";
public static const PLAYER_MOVE:String = "playerMove";
public static const PLAYER_USE_SKILL:String = "playerUseSkill";
public function PlayerEvent(type:String)
{
super(type, false, true);
}
}
}
In Flash Player runtime, is there a way I can get a list of all the static members of lass PlayerEvent.
Something like:
trace(PlayerEvent.staticMethods) // ["PLAYER_INIT", "PLAYER_MOVE", "PLAYER_USE_SKILL"]...
Hi, :)
I set the "height = 100px","width=50px" of a div,but when the content of the div is changing dynamically,i want to let the height adapt to the change,what should i do?Thanks!
What is the basic setup on the subject?
Let say I have a QByteArray, and I need to encrypt it with simple password.
And then decrypt it in another piece of code
Just a very simple setup
This should be really simple but I can't get it to work, how do I disable and add a class to an input? Let's say I've got an input field with id = name, this is how far I got,
$("input#name").attr("disabled");
What am I doing wrong here? Any help would be greatly appreciated, thanks in advance!