Hi, I'm very new to Silverlight. I've downloaded VS 2010 so that I can mess around with silverlight in a more graphical way and without having to pay a ton of money for Expression Blend 3.. So please have mercy if this is an obvious question.
By default, in a tree view, all of the nodes are collapsed. I can get these to expand, but I wa...
I can see that scala can solve the Producer-Consumer problem using actors. There is a couple of examples on the web but what is worrying me is the unlimited growth of an actor's mailbox.
Suppose the producer produces on a much faster rate than the consumer can consume. Using the traditional synchronized threads approach, I can set up a ...
Is there any way to create a variable sized doubly-scripted array in C (not C++, just C)? I know that to create a variable sized singly-scripted array, you just use a pointer, e.g.
float *array;
array = (float *) calloc(sizeof(float), n);
creates a singly-scripted array of floats of size n. Is there something similar that I can do for...
I'm creating a HTML Canvas object using this javascript code:
var Canvas = document.createElement("canvas");
Canvas.style.width = "500px";
and then i'm drawing text upon it.
When the canvas is displayed, the whole canvas has been scaled up (including content) to to match the 500px width, which results in ugly resampling. What i real...
Lets say I have a c program where I use only stack variables, no dynamic variables (malloc, ...)
Is it possible to calculate how much memory my program will take during run time?
...
In cases such as this error:
Fatal error: Out of memory (allocated
31981568) (tried to allocate 3264
bytes)
Can I use the GD lib to reduce its file size first before getting to this stage?
...
Hi,
I would like to know how much data was sent in response to a certain http-request.
What I currently do is this:
HttpURLConnection con = (HttpURLConnection) feedurl.openConnection();
//check the response for the content-size
int feedsize = con.getContentLength();
The problem is, that content-legnth is not always set. E.g. w...
As I know, an array needs to have a specific size before compiling time in c.
I wonder why this code still works?
int s;
printf("enter the array size: ");
scanf("%d",&s);
int a[s]; // Isn't s value determined at run time?
...
Is size of a datatype hardware architecture dependent or compiler dependent?
I want to know what factors really influence in determining the size of a datatype?
...
Hi All,
I need to reduce the font size of the table view header. My string value is a little bit longer and it doesnot fit in to the header. so planning to reduce the size. Any one knows how to reduce the size, so that i can add the string to my table view header.
Thanks in advance,
Shibin
...
I send request from asp.net page and then wait for response, calling GetCommand via SetInterval method:
function GetCommand(id, sid) {
getCommandResponse = $.ajax({
type: "POST",
async: true,
url: "../WebServices/TSMConsole.asmx/GetCommand",
data: "{'param' : '" + id + "', 'sid' : '" + sid + "'}",
contentType: "applicatio...
Forgive me if this is a really stupid question, but I cant figure it out.
I must admit this is my first project in flex as opposed to flash cs3.
All of the assets that I'm using in my .swc are in a .fla that is 1024x768.
Nothing in my actionscript code is scaling down the size of my app, but every time I test my project, my project on...
What is the size of reference of a class in Java? Is it constant for a particular JVM and OS irrespective of the class for which the reference is made.
Class A
Class B
Class C
A a;
B b;
C c;
Is size of a , b and c are same irrespective of the size of A, B and C classes?
...
I need to make the tabs that I have oriented at the bottom of my QTabWidget larger. We'll be using a touch-screen, so the default sizes are a little too small.
I see no easy way to do this (currently seeing no good way to even do it at all. The only methods pertaining to the QTabBar that I see in QTabWidget are protected, and I don't se...
Hi all,
How can i go about changing the distribution list as well as the email text for the email that goes out to site collection admin when a site collection approaches it's size limit?
Thanks for your help.
...
I'v got a bitmap 24bits, I am writing application in c++, MFC,
I am using libjpeg for encoding the bitmap into jpeg file 24bits.
When this bitmap's width is M, and height is N.
How to estimate jpeg file size before saving it with certain quality factor N (0-100).
How can I do it ? Many thanks!
Is it possible to do this?
For example....
Is there a way to count/calculate the total size of a svn directory if you were to checkout a revision?
I have limited internet downloads so I need to know how big something is before I go and download it.
Thank you.
...
I have an application that uses lucene for searching. The search space are in the thousands. Searching against these thousands, I get only a few results, around 20 (which is ok and expected).
However, when I reduce my search space to just those 20 entries (i.e. I indexed only those 20 entries and disregard everything else...so that deve...
Hi All,
I get a ActionScript class for loading the content:
public class LoaderContainer extends Sprite {
public function LoaderExample() {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
addChild(loader);
var request:URLRequest = new URLReque...
Hi,
I'm programming a windows mobile app in C# and I need to resize the columns of a datagrid when columns from another datagrid are resized.
Is this possible ?
Thanks.
...