Hello,
I have a rather simple question but i can't seem to find an answer to it.
I want when i click on any place on web page a div is opened. how can i accomplish that CSS style.
Thanks.
Hi,
i have a list with objects. The object has a property 'Sales' which is a string.
Now i want to create a list of doubles with the values of all objects' 'Sales' properties.
I tried this:
var tmp = from n in e.Result select new{ Convert.ToDouble ( n.Sales) };
but this gives me this error:
Error 106 Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.
Hi,
Suppose I have an element like this:
<div id="dv" class="red green blue">Something Here !!</div>
How do I get each of those class names using jquery? Should be simple, right?
So... I want to return value when C# function is called. I need a code example (simple summ of a,b values will be ok) Please help
I need something like this ( I know ActionScript so I will write in it):
public function sum(valueA:int, valueB:int):int
{
var summ:int = valueA + valueB;
return summ;
}
How to translate it into C#?
What is the significance of Thread.Join method in c sharp .net ?
MSDN says that it blocks the calling thread until a thread terminates. Can anybody explain this with a simple example ?
I have this loop that runs in O(end - start) and I would like to replace it with something O(1).
If "width" wouldn't be decreasing, it would be pretty simple.
for (int i = start; i <= end; i++, width--)
if (i % 3 > 0) // 1 or 2, but not 0
z += width;
start, end and width have positive values
Many Windows apps (like Skype or MSN for instance) don't let you start multiple instances, rather trying to run it a 2nd time just leaves the existing version running.
Is this typically done in some simple way - the start-menu shortcut is a 'wrapper' app around the main app - or is there some registry magic you can do to delegate the problem to Windows itself?
Specifically dealing with Win32 here (unmanaged C++) but happy to hear more general solutions as long as they are workable on Windows XP or alter.
So I have a model that has a field, which originally defaulted to not allow nulls. I want to change it to allow nulls, but syncdb doesn't make the change. Is it as simple as changing it in the database and reflecting it in the models.py file just for the next time its run against a new database?
have the tweetmeme button on my site (http://SweatingTheBigStuff.com) and I want to add a facebook button BELOW it.
Right now the tweetmeme settings show:
float: right; margin-left: 10px;
What's the best Facebook plugin for this and what settings do I need?
I think the Simple Facebook Share Button should be good but I'm not sure the bit of code I should put to move it below the tweetmeme button.
I have a simple perl script that via ftp uploads files to the server hosting our website. After I do that I have to login as a Wordpress admin and use the GUI to edit a page so that it reflects the new file I just uploaded. I want to programmatically edit that file to save a few steps, but I can't find the file. Are any Wordpress files sitting on the server? The file in question is basically a subpage of the main site.
I want some default values in my combo boxes but can't seem to figure out how to do this without writing a module that populates the combo boxes. How can I manually fill in the combo boxes so I don't have to use code to do something so simple.
Thanks
I have this simple form:
<form method="post" action".">
<input type="text" name="title">
<input type="submit" name"send">
</form>
I want that when a user click on submit, then will be open another window of browser with the results. Is it possible ?
I have a simple Zend Framework that has a view script to add records to the database. This is a silly question IMHO, but how can I use the add view script to edit the record as well??
I have played around with a few scenarios to no avail.
Thanks,
Steve
Really simple question. I'm on Ubuntu 9.04 (I'm new to Ubuntu) and I can't find the dev server logs for GAE. Could somebody tell me where they are? Googling hasn't returned a result.
Hi,
I'm trying to a create an update statement along the following lines:
TABLE car: id | owner_id | type | status
An owner can have multiple cars.
UPDATE car c
SET c.type = 1
WHERE c.owner_id IN ($ids)
AND c.status = [1 IF IT EXISTS, ELSE 0]
$ids is reasonably small (under 50 values).
It seems simple but I can't seem to get my head around it because I can't use a SELECT subquery with an UPDATE to the same table.
Anyone?
Thanks
I have built two programs in C# and I am sending simple strings through the sockets. This is fine for the moment but in the near future I will need to send more complicated items, such as objects down the sockets and eventually files.
What steps would I take to do this? What purpose do the buffers serve for the sockets/streams? Apologies if I am a little vague.
Hi All,
I am new to iPhone development. I want to make a simple iPhone application which when launched computes the distance travelled by the user,calories burnt,postion of the user,movement.Can anybody provide me the details or approach to follow to develop this application.
How does one construct and access a set of key-value pairs in C? To use a silly simple example, let's say I want to create a table which translates between an integer and its square root.
If I were writing javascript, I could just do this:
var squareRoots = {
4: 2,
9: 3,
16: 4,
25: 5
}
and then access them like:
var squareRootOf25 = squareRoots[5]
What's the prettiest way to do this in C? What if I want to use one type of enum as the key and another type of enum as the value?
Hi, I am opening a new popup window on click of an URL in my page.
My question over here is Can i pass whole structure to the new page ?
If thats not possible is there any simple method to do that ?
Is there a simple way to see if the xsd code generating C# code has a particular column? Or if you can reference a variable column? table.getColumn("column") instead of table.column?
I am really confused, I want to create one list that holds 2 Images and 2 labels as follows.
+----------------------+ ROW1
|Image1 Image2 Lebel1 |
| Lebel2 |
+----------------------+ ROW2
|Image1 Image2 Lebel1 |
| Lebel2 |
+----------------------+
But i don't want it in a table/columns it should be simple selectable rows without any borders.
Which widget i should use for this and how?
Thanks,
PP.
Hi guys:
I am trying to stop the windows XP timer, and actually I did it. The problem is that I want to do it using another way, not the one used before: running a visual basic script.
I need to stop it using a knoppix, or a floppy disk... maybe any other way that I don't know it.
Please, how to stop the timer without using a simple script?
I am sorry about my English.
Hi, This is a simple question:
I have 2 different view controllers, and each one has its own data stored in its .m file.
I want to take a value, for instance, an integer value (int i=3;) that is declared in ViewController1 and pass it to ViewController2, so I will be able to use that value in the second view controller.
Can anyone please tell me how to do it?
Thanks in advance,
Sagiftw
Hello, In MS SQL Server is there a way to detect whether a database has had its isolation level set via the T-SQL command ALTER DATABASE <database> SET READ_COMMITTED_SNAPSHOT ON;
I cannot find a simple way to detect this in either T-SQL or via the Management Studio's GUI.
TIA