PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8,833,085 | 01/12/2012 09:56:29 | 887,601 | 08/10/2011 09:35:33 | 123 | 7 | REQUEST_DENIED in responce of Google Places API Request (sensor=true) | I am trying to get places around my location, using Google Places API.
Following is the code, for hitting URL for places search.
NSString *URL = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&sensor=true&key=0dp-j3dkCU_YUb97RHcbL5shmRrJ5R2y4bYz1Vw"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:URL]
cachePolicy: NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval: 4];
[request setValue:@"application/json" forHTTPHeaderField:@"accept"];
NSObject *id1 = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
Which gets me the following response, in JSON Format.
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
On Searching Google Places API, It says, sensor parameter is general cause for "REQUEST_DENIED". But, In my case, I am providing that, too, correct.
Any Idea where am I going wrong ??
Again, the key I am using is the key for the App, which we are supposed to develope on Android, iPhone and BlackBerry. So, Another question is, **Can i use the same key generated single time with the app name, on all three platforms ??** | iphone | ios | google-maps | google-places-api | null | null | open | REQUEST_DENIED in responce of Google Places API Request (sensor=true)
===
I am trying to get places around my location, using Google Places API.
Following is the code, for hitting URL for places search.
NSString *URL = [NSString stringWithFormat:@"https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&sensor=true&key=0dp-j3dkCU_YUb97RHcbL5shmRrJ5R2y4bYz1Vw"];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:URL]
cachePolicy: NSURLRequestReloadIgnoringLocalCacheData
timeoutInterval: 4];
[request setValue:@"application/json" forHTTPHeaderField:@"accept"];
NSObject *id1 = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
Which gets me the following response, in JSON Format.
{
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
On Searching Google Places API, It says, sensor parameter is general cause for "REQUEST_DENIED". But, In my case, I am providing that, too, correct.
Any Idea where am I going wrong ??
Again, the key I am using is the key for the App, which we are supposed to develope on Android, iPhone and BlackBerry. So, Another question is, **Can i use the same key generated single time with the app name, on all three platforms ??** | 0 |
1,732,208 | 11/13/2009 22:07:40 | 46,810 | 12/16/2008 20:31:05 | 376 | 19 | A SAFE way to pass an array or arrys[][] in C# to a DLL | I have an array of arrays that I want to pass into a DLL. I am running into the error "There is no marshaling support for nested arrays."
I can pass a single array in fine but if I stack them up it fails. I need/want a "safe" way of passing in the array of arrays.
private static extern int PrintStuff(string[][] someStringsInGroups, int numberOfGroups, int[] lengthSetsInGroups);
| c#-3.0 | arrays | safe | c++ | dll | null | open | A SAFE way to pass an array or arrys[][] in C# to a DLL
===
I have an array of arrays that I want to pass into a DLL. I am running into the error "There is no marshaling support for nested arrays."
I can pass a single array in fine but if I stack them up it fails. I need/want a "safe" way of passing in the array of arrays.
private static extern int PrintStuff(string[][] someStringsInGroups, int numberOfGroups, int[] lengthSetsInGroups);
| 0 |
7,601,565 | 09/29/2011 18:10:04 | 512,426 | 11/18/2010 16:42:21 | 1 | 0 | interface for business rules | i'm creating a framework for a specific problem. I would now like to let the developer using that framework to be able to create his business rules that can then be passed in the constructor of the according objects in the framework.
The rules would be like triggers in a database, eg. check rule before insert or after delete.
Is this a feasible approach? | java | business-rules | null | null | null | 09/30/2011 10:52:38 | not a real question | interface for business rules
===
i'm creating a framework for a specific problem. I would now like to let the developer using that framework to be able to create his business rules that can then be passed in the constructor of the according objects in the framework.
The rules would be like triggers in a database, eg. check rule before insert or after delete.
Is this a feasible approach? | 1 |
8,529,438 | 12/16/2011 03:31:36 | 877,065 | 08/03/2011 16:43:23 | 11 | 0 | What i need to know to understand argumented reality | First off let me say that i can use AR SDK(like artoolkits) to build an AR app. But now i want to know more about how it works(like the detector,...) because it's kind of annoying when you use something but don't understand it(of course it have something to do with my study as well).
So basically lets assume that i want to do AR without using SDK, what knowledge i need to know to do that. Any help would be greatly appreciated.
p/s:sorry for my bad english. | vision | ar | null | null | null | 12/16/2011 22:51:51 | off topic | What i need to know to understand argumented reality
===
First off let me say that i can use AR SDK(like artoolkits) to build an AR app. But now i want to know more about how it works(like the detector,...) because it's kind of annoying when you use something but don't understand it(of course it have something to do with my study as well).
So basically lets assume that i want to do AR without using SDK, what knowledge i need to know to do that. Any help would be greatly appreciated.
p/s:sorry for my bad english. | 2 |
9,141,203 | 02/04/2012 13:25:06 | 1,189,366 | 02/04/2012 13:15:13 | 1 | 0 | Database Issue in mysql | I just make one changes in database,
create one user in new database which was created my me and assign some PRIVILEGESI to this database
every things has been deleted I don’t know what was changes by me my all database deleted can you please give me solution how can i get my all database?
mysql connect with server but it will give me error to No Privileges for crete user or database ?
its only display information_schema there is no any user or database? | database | null | null | null | null | 02/04/2012 14:08:24 | off topic | Database Issue in mysql
===
I just make one changes in database,
create one user in new database which was created my me and assign some PRIVILEGESI to this database
every things has been deleted I don’t know what was changes by me my all database deleted can you please give me solution how can i get my all database?
mysql connect with server but it will give me error to No Privileges for crete user or database ?
its only display information_schema there is no any user or database? | 2 |
8,814,722 | 01/11/2012 05:43:36 | 986,566 | 10/09/2011 16:53:22 | 48 | 0 | Change Data Directory in Mysql | How to change data directory in Mysql With Mysqld command?<br/>
Please help me. | mysql | mysqld | null | null | null | null | open | Change Data Directory in Mysql
===
How to change data directory in Mysql With Mysqld command?<br/>
Please help me. | 0 |
10,019,828 | 04/04/2012 21:56:58 | 1,198,582 | 06/16/2011 21:39:48 | 554 | 6 | fun with sequence | I have a set of five functions, that could be called one of five ways. I'm expressing that with patern-matching like so,
type Configure = ReaderT Config IO ()
data Step = PreVal
| PreProc
| Proc
| PostProc
| PostVal
foo :: Step -> Configure
foo PreVal = do some stuff
foo PreProc = do some stuff
and so on `bar` and `baz` are set up similarly
I know how to use `sequence` to call a list of actions. Given a `[Step]`, how could I go about calling `[foo,bar,baz]`. in sequence, while also calling each possible step.
so it should do this
`foo PreVal`
`foo PreProc`
... and so on
`bar Preval`
`bar PreProc`
.. and so on
`baz` ... | haskell | null | null | null | null | null | open | fun with sequence
===
I have a set of five functions, that could be called one of five ways. I'm expressing that with patern-matching like so,
type Configure = ReaderT Config IO ()
data Step = PreVal
| PreProc
| Proc
| PostProc
| PostVal
foo :: Step -> Configure
foo PreVal = do some stuff
foo PreProc = do some stuff
and so on `bar` and `baz` are set up similarly
I know how to use `sequence` to call a list of actions. Given a `[Step]`, how could I go about calling `[foo,bar,baz]`. in sequence, while also calling each possible step.
so it should do this
`foo PreVal`
`foo PreProc`
... and so on
`bar Preval`
`bar PreProc`
.. and so on
`baz` ... | 0 |
3,930,423 | 10/14/2010 05:45:53 | 475,324 | 10/14/2010 04:21:33 | 1 | 0 | Angle of mobile while using | I'm working on an Android program for my research.
It needs to find out the angle while user using my mobile phone.
The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.
----------
I've tried keyword "angle" on <http://developer.android.com/reference/packages.html>
And I found a method "onSensorChanged" under public interface SensorListener
But the description there is too hard to me to understand :Q
Is it the function I want?
| android | null | null | null | null | null | open | Angle of mobile while using
===
I'm working on an Android program for my research.
It needs to find out the angle while user using my mobile phone.
The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.
----------
I've tried keyword "angle" on <http://developer.android.com/reference/packages.html>
And I found a method "onSensorChanged" under public interface SensorListener
But the description there is too hard to me to understand :Q
Is it the function I want?
| 0 |
6,556,586 | 07/02/2011 10:55:16 | 811,792 | 06/23/2011 07:55:32 | 1 | 0 | all css files and image are not loading in cakephp | Why all css files and images are not getting loaded in cakephp. Although i've written code like this in my default.ctp
echo $html->css('generic');
Please help me in this issue..
css files are placed in app\webroot\css | cakephp | cakephp-1.3 | null | null | null | null | open | all css files and image are not loading in cakephp
===
Why all css files and images are not getting loaded in cakephp. Although i've written code like this in my default.ctp
echo $html->css('generic');
Please help me in this issue..
css files are placed in app\webroot\css | 0 |
11,494,298 | 07/15/2012 18:00:31 | 828,671 | 07/04/2011 19:58:33 | 220 | 1 | Output / Input questions in C | I would like your help with understanding the following:
For the code:
int main() {
int i=23;
float f=7.5;
printf("%f", i);
return 1;
}
The output is `0.000000`, how come it is not `7.500000`?
For the code
int main() {
int i=23;
float f=7.5;
printf("%d\n",f);
printf("%f",i);
return 1;
}
The output is `1455115000, 7.500000`. Why doesn't it make an error compilation? what is this number 1455115000? and why now 7.500000 is being printed?
| c | null | null | null | null | 07/16/2012 04:22:58 | too localized | Output / Input questions in C
===
I would like your help with understanding the following:
For the code:
int main() {
int i=23;
float f=7.5;
printf("%f", i);
return 1;
}
The output is `0.000000`, how come it is not `7.500000`?
For the code
int main() {
int i=23;
float f=7.5;
printf("%d\n",f);
printf("%f",i);
return 1;
}
The output is `1455115000, 7.500000`. Why doesn't it make an error compilation? what is this number 1455115000? and why now 7.500000 is being printed?
| 3 |
9,026,827 | 01/26/2012 23:08:29 | 1,152,873 | 01/16/2012 23:39:38 | 21 | 0 | Threading in python | The gui was freezing so i tried threading and it's still freezing on me. Am i threading it improperly of something?
Code: http://pastie.org/3259657 | python | multithreading | null | null | null | 01/28/2012 01:09:23 | not a real question | Threading in python
===
The gui was freezing so i tried threading and it's still freezing on me. Am i threading it improperly of something?
Code: http://pastie.org/3259657 | 1 |
6,913,926 | 08/02/2011 14:45:36 | 305,732 | 03/31/2010 06:35:03 | 315 | 8 | how to create Oracle database for MS platform | I'd like to test Oracle database connection via web service. Could I create Oracle database in MS development environment? Oracle version is 10.2... is it Oracle 10g. I'm familiar with MS SQL Server. Oracle is new for me. Please share me some hints. | vb.net | web-services | oracle10g | null | null | 08/02/2011 17:46:29 | not a real question | how to create Oracle database for MS platform
===
I'd like to test Oracle database connection via web service. Could I create Oracle database in MS development environment? Oracle version is 10.2... is it Oracle 10g. I'm familiar with MS SQL Server. Oracle is new for me. Please share me some hints. | 1 |
5,321,802 | 03/16/2011 06:30:21 | 661,955 | 03/16/2011 06:21:32 | 1 | 0 | how to install a MQTT Broker on shared hosting server | "Really Small Message Broker" is an MQTT message broker, but I was wondering how could I install a RSMB on my shared hosting server with Justhost | php | shared-hosting | mqtt | null | null | 03/16/2011 13:08:20 | off topic | how to install a MQTT Broker on shared hosting server
===
"Really Small Message Broker" is an MQTT message broker, but I was wondering how could I install a RSMB on my shared hosting server with Justhost | 2 |
4,697,649 | 01/15/2011 02:42:53 | 289,246 | 03/08/2010 23:30:38 | 141 | 3 | prevent pages in web.config according to user member | I am using custom user membership in asp.NET so user is an object that contains members. One of the user's members is "IsCompanyAdmin".
I have a few aspx pages for company administrators only.
Is there any way to prevent those pages from non-administrator users using the web.config? | asp.net | web-config | asp.net-membership | null | null | null | open | prevent pages in web.config according to user member
===
I am using custom user membership in asp.NET so user is an object that contains members. One of the user's members is "IsCompanyAdmin".
I have a few aspx pages for company administrators only.
Is there any way to prevent those pages from non-administrator users using the web.config? | 0 |
3,633,608 | 09/03/2010 06:55:39 | 438,158 | 09/02/2010 15:58:36 | 1 | 0 | Installing .net Application | Is there anyway to to install .net Application **without** installing .net framework.
I use .netFramework 2.0 .
And I do not want remotesoft .
| c# | null | null | null | null | 09/06/2010 00:35:51 | not a real question | Installing .net Application
===
Is there anyway to to install .net Application **without** installing .net framework.
I use .netFramework 2.0 .
And I do not want remotesoft .
| 1 |
5,495,891 | 03/31/2011 06:06:22 | 640,739 | 03/02/2011 07:28:17 | 67 | 11 | how to check exponent of a number in java | I want to check the exponent of numbers generated in my program. ( they are generated like 2.333E-4 , when i do S.O.P ) . Then i want to check which numbers are having Exponent smaller than E-4 , which needs to be increased by multiplying with 10 till they reach E-4. Any ideas how to achieve this? Even if someone can tell me how to extract the exponent , it will be helpful.
Thanks in Advance | java | null | null | null | null | null | open | how to check exponent of a number in java
===
I want to check the exponent of numbers generated in my program. ( they are generated like 2.333E-4 , when i do S.O.P ) . Then i want to check which numbers are having Exponent smaller than E-4 , which needs to be increased by multiplying with 10 till they reach E-4. Any ideas how to achieve this? Even if someone can tell me how to extract the exponent , it will be helpful.
Thanks in Advance | 0 |
7,168,882 | 08/23/2011 23:51:38 | 908,662 | 08/23/2011 23:43:54 | 1 | 0 | Hey I need help In java netbeans Gui | Hey I need help In java netbeans programming to open frame automatic after specific period of time how to do this plzz i wanna make inrto for my application ??? and thnx:) | java | netbeans | netbeans-6.9 | netbeans6.8 | null | 08/24/2011 01:52:42 | not a real question | Hey I need help In java netbeans Gui
===
Hey I need help In java netbeans programming to open frame automatic after specific period of time how to do this plzz i wanna make inrto for my application ??? and thnx:) | 1 |
6,048,546 | 05/18/2011 17:20:03 | 87,336 | 04/05/2009 17:19:32 | 241 | 2 | How to set up non-instantiated classes in Objective-C (Classes with just methods) | I'm looking to create a class in Objective-C for an iOS project that is focussed on fetching data. I'm familiar with how classes normally work, setter and getter methods and variables. However, for this class since it's only performing a function (returning NSMutableArrays) I don't want to have to create an instance of the class to use the methods inside the class.
Any idea how I can do this neatly and efficiently?
Thanks! | iphone | objective-c | ios | class | null | null | open | How to set up non-instantiated classes in Objective-C (Classes with just methods)
===
I'm looking to create a class in Objective-C for an iOS project that is focussed on fetching data. I'm familiar with how classes normally work, setter and getter methods and variables. However, for this class since it's only performing a function (returning NSMutableArrays) I don't want to have to create an instance of the class to use the methods inside the class.
Any idea how I can do this neatly and efficiently?
Thanks! | 0 |
9,150,570 | 02/05/2012 15:50:51 | 1,125,030 | 01/01/2012 11:32:24 | 7 | 1 | why this javascript RegExp syntax will be infinite loop? | -------------test.hta file code ------------
<!DOCTYPE html>
<html>
<head>
<title>dead</title>
</head>
<body>
txt<textarea id="content" >
<input name="" type="text" class="qu_te1n05ew" value="请输入您的E-mail地址" />
<input name="" type="submit" class="qu_sbt02" value="提 交" />
</textarea>
<button onclick="startCls();">start</button>
<script>
function getObj(id) {
return 'string' == typeof id ? document.getElementById(id) : id;
}
function startCls() {
var txt = getObj('content').value;
var srcRe = /<\w+(?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*\s+src\s*\=\s*["']?(?:[^"' <>]*\/)?([^\/"'<>]+\.(?:gif|jpg|png))['" ](?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*\/?>/ig;
alert(srcRe.exec(txt));
}
</script>
</body>
</html>
------------code end-------
__why `srcRe.exec(txt)` loop and the hta is dead?but other test string it will work.__
the `srcRe` my mean is get a `img` tagname's src,and split it to get filename,but don't get no tagname's src,like `<b><img src="ss.gif" </b>`,because it isn't a html tagname.have not end `>`;
this synax `(?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*`,the mean is if have a `<` or `>` ,it must be in the `''` or `""`,and other string must be not `<` or `>`;and is start by `<`,end by `>`; | javascript | regex | null | null | null | 02/06/2012 15:16:51 | not a real question | why this javascript RegExp syntax will be infinite loop?
===
-------------test.hta file code ------------
<!DOCTYPE html>
<html>
<head>
<title>dead</title>
</head>
<body>
txt<textarea id="content" >
<input name="" type="text" class="qu_te1n05ew" value="请输入您的E-mail地址" />
<input name="" type="submit" class="qu_sbt02" value="提 交" />
</textarea>
<button onclick="startCls();">start</button>
<script>
function getObj(id) {
return 'string' == typeof id ? document.getElementById(id) : id;
}
function startCls() {
var txt = getObj('content').value;
var srcRe = /<\w+(?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*\s+src\s*\=\s*["']?(?:[^"' <>]*\/)?([^\/"'<>]+\.(?:gif|jpg|png))['" ](?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*\/?>/ig;
alert(srcRe.exec(txt));
}
</script>
</body>
</html>
------------code end-------
__why `srcRe.exec(txt)` loop and the hta is dead?but other test string it will work.__
the `srcRe` my mean is get a `img` tagname's src,and split it to get filename,but don't get no tagname's src,like `<b><img src="ss.gif" </b>`,because it isn't a html tagname.have not end `>`;
this synax `(?:\s[^<>]*(?:(?:'[^']*')|(?:"[^"]*"))?[^<>]*)*`,the mean is if have a `<` or `>` ,it must be in the `''` or `""`,and other string must be not `<` or `>`;and is start by `<`,end by `>`; | 1 |
4,078,146 | 11/02/2010 13:33:31 | 14,606 | 09/17/2008 01:27:48 | 28,287 | 1,281 | How to do custom drawing on a Bitmap / BitmapField on the BlackBerry? | I want to do something relatively simple: I want to create a Bitmap object entirely in code, draw on it (lines, text, ellipses, rectangles, points etc.), and display it in a BitmapField on the BlackBerry screen.
Can anyone give me a simple code sample that shows how to do this, or a link to a good sample project? | graphics | blackberry | null | null | null | null | open | How to do custom drawing on a Bitmap / BitmapField on the BlackBerry?
===
I want to do something relatively simple: I want to create a Bitmap object entirely in code, draw on it (lines, text, ellipses, rectangles, points etc.), and display it in a BitmapField on the BlackBerry screen.
Can anyone give me a simple code sample that shows how to do this, or a link to a good sample project? | 0 |
10,663,568 | 05/19/2012 08:16:52 | 1,393,605 | 05/14/2012 11:24:31 | 128 | 17 | Draw dots in canvas like matrix android | I have a application where i want to generate dots like 2 x 2, 3 x 3 and 4 x 4 dynamically
![like this][1]
now i am drawing dot matrix without dynamic using code as follows :
if(test.equals("galmenu2"))
{
canvas.drawCircle(wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,5*ht/8,3, mPaint);
canvas.drawCircle(wid/4,5*ht/8,3, mPaint);
}
else if(test.equals("galmenu3"))
{
canvas.drawCircle(wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(wid/2,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(wid/4,ht/2,3, mPaint);
canvas.drawCircle(wid/2,ht/2,3, mPaint);
canvas.drawCircle(3*wid/4,ht/2,3, mPaint);
canvas.drawCircle(wid/4,5*ht/8,3, mPaint);
canvas.drawCircle(wid/2,5*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,5*ht/8,3, mPaint);
}
else if(test.equals("galmenu4"))
{
for(wid=1/8;wid<1;wid+=2/8)
{
for(ht=5/16;ht<3/4;ht+=1/8)
{
canvas.drawCircle(wid,ht,3, mPaint);
}
}
}
[1]: http://i.stack.imgur.com/yOg46.gif
and i need a formula to generate dots in my center of canvas please help me
The code mentioned above is added in onDraw() method Thanks in advance | android | null | null | null | null | null | open | Draw dots in canvas like matrix android
===
I have a application where i want to generate dots like 2 x 2, 3 x 3 and 4 x 4 dynamically
![like this][1]
now i am drawing dot matrix without dynamic using code as follows :
if(test.equals("galmenu2"))
{
canvas.drawCircle(wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,5*ht/8,3, mPaint);
canvas.drawCircle(wid/4,5*ht/8,3, mPaint);
}
else if(test.equals("galmenu3"))
{
canvas.drawCircle(wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(wid/2,3*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,3*ht/8,3, mPaint);
canvas.drawCircle(wid/4,ht/2,3, mPaint);
canvas.drawCircle(wid/2,ht/2,3, mPaint);
canvas.drawCircle(3*wid/4,ht/2,3, mPaint);
canvas.drawCircle(wid/4,5*ht/8,3, mPaint);
canvas.drawCircle(wid/2,5*ht/8,3, mPaint);
canvas.drawCircle(3*wid/4,5*ht/8,3, mPaint);
}
else if(test.equals("galmenu4"))
{
for(wid=1/8;wid<1;wid+=2/8)
{
for(ht=5/16;ht<3/4;ht+=1/8)
{
canvas.drawCircle(wid,ht,3, mPaint);
}
}
}
[1]: http://i.stack.imgur.com/yOg46.gif
and i need a formula to generate dots in my center of canvas please help me
The code mentioned above is added in onDraw() method Thanks in advance | 0 |
8,266,694 | 11/25/2011 08:59:17 | 485,844 | 10/24/2010 20:24:50 | 463 | 19 | Free alternative to SQLAPI++? | Are there any free (and maybe open source) alternatives to [SQLALI++][1]? This library looks very good but it is not free.
Thanx in advance.
[1]: http://www.sqlapi.com/ | c++ | database | api | null | null | null | open | Free alternative to SQLAPI++?
===
Are there any free (and maybe open source) alternatives to [SQLALI++][1]? This library looks very good but it is not free.
Thanx in advance.
[1]: http://www.sqlapi.com/ | 0 |
8,523,872 | 12/15/2011 17:05:13 | 389,745 | 07/12/2010 18:23:51 | 2,722 | 160 | C# Can I hook to log4net Log, Debug, Info, and Error? | I want to set different console colors depending on the severity of the logged message.
I would want something like
_log.Error("Expected exception",e);
to somehow do
Console.PushColor(ConsoleColor.DarkRed);
_log.Error("Expected exception",e);
Console.PopColor();
is there an easy way to hook the console logger to do stuff like this? | c# | console | log4net | null | null | null | open | C# Can I hook to log4net Log, Debug, Info, and Error?
===
I want to set different console colors depending on the severity of the logged message.
I would want something like
_log.Error("Expected exception",e);
to somehow do
Console.PushColor(ConsoleColor.DarkRed);
_log.Error("Expected exception",e);
Console.PopColor();
is there an easy way to hook the console logger to do stuff like this? | 0 |
5,380,009 | 03/21/2011 15:41:08 | 485,765 | 10/24/2010 17:57:41 | 11 | 0 | google spreadsheet to gmail and preserving formatting | Is there a way to cut/paste a google spreadsheet into gmail? In particular, I have a formatted table, fairly simple, but when I cut and paste it into gmail, the column headers get all out of whack and offset from the data below the headers.
I've heard of web clipboard but that doesn't show up in gmail.
I'm using the latest version of Chrome. | google | gmail | spreadsheet | null | null | 03/21/2011 16:07:50 | off topic | google spreadsheet to gmail and preserving formatting
===
Is there a way to cut/paste a google spreadsheet into gmail? In particular, I have a formatted table, fairly simple, but when I cut and paste it into gmail, the column headers get all out of whack and offset from the data below the headers.
I've heard of web clipboard but that doesn't show up in gmail.
I'm using the latest version of Chrome. | 2 |
10,795,209 | 05/29/2012 07:59:41 | 718,534 | 04/21/2011 08:01:06 | 92 | 0 | Dynamic DNS for professional servers | This might sound like a unusual subject but recently I had major issues with changing DNS servers for our web apps and certain nameservers not releasing our domain names quick enough.
So I've been thinking about either signing up for DDNS servers and putting all our IP's/Domains on there so we can change quickly if needed - good idea?
Secondly is they any need or benefit to creating my own dynamic name server and if so what are the major benefit?
Sorry if this sounds like a open question but I am interested in the concept of DDNS for all of our domains
| linux | dns | dyndns | null | null | 05/29/2012 13:20:04 | off topic | Dynamic DNS for professional servers
===
This might sound like a unusual subject but recently I had major issues with changing DNS servers for our web apps and certain nameservers not releasing our domain names quick enough.
So I've been thinking about either signing up for DDNS servers and putting all our IP's/Domains on there so we can change quickly if needed - good idea?
Secondly is they any need or benefit to creating my own dynamic name server and if so what are the major benefit?
Sorry if this sounds like a open question but I am interested in the concept of DDNS for all of our domains
| 2 |
189,228 | 10/09/2008 21:10:14 | 13,552 | 09/16/2008 19:48:30 | 1,163 | 49 | Ending asynchronous delegate invocation with partial type information | When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something like the following (and to save you guessing this is an async wrapper around a cache):
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = (Action<string, object>)((AsyncResult)asyncResult).AsyncDelegate;
put.EndInvoke(asyncResult);
}
This works perfectly well because it's known what the type of delegate is, so it can be cast. However it starts to get messy when you have two `Put` methods, because although the method returns void you seemingly have to cast it to a strongly typed delegate to end the invocation, e.g.
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
IAsyncResult BeginPut(string region, string key, object value)
{
Action<string, string, object> put = this.Put;
return put.BeginInvoke(region, key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = ((AsyncResult)asyncResult).AsyncDelegate;
var put1 = put as Action<string, object>;
if (put1 != null)
{
put1.EndInvoke(asyncResult);
return;
}
var put2 = put as Action<string, string, object>;
if (put2 != null)
{
put2.EndInvoke(asyncResult);
return;
}
throw new ArgumentException("Invalid async result", "asyncResult");
}
I'm hoping there is a cleaner way to do this, because the only thing I care about the delegate is the return type (in this case void) and not the arguments that were supplied to it. But I've racked my brains and asked others in the office, and nobody can think of the answer.
I know one solution is to write a custom `IAsyncResult`, but that's such a difficult task with the potential threading issues around things like lazy instantiation of the `WaitHandle` that I'd rather have this slightly hacky looking code than go down that route.
Any ideas on how to end the invocation without a cascading set of `is` checks? | c# | delegates | async | null | null | null | open | Ending asynchronous delegate invocation with partial type information
===
When writing async method implementations using the BeginInvoke/EndInvoke pattern the code might look something like the following (and to save you guessing this is an async wrapper around a cache):
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = (Action<string, object>)((AsyncResult)asyncResult).AsyncDelegate;
put.EndInvoke(asyncResult);
}
This works perfectly well because it's known what the type of delegate is, so it can be cast. However it starts to get messy when you have two `Put` methods, because although the method returns void you seemingly have to cast it to a strongly typed delegate to end the invocation, e.g.
IAsyncResult BeginPut(string key, object value)
{
Action<string, object> put = this.Put;
return put.BeginInvoke(key, value, null, null);
}
IAsyncResult BeginPut(string region, string key, object value)
{
Action<string, string, object> put = this.Put;
return put.BeginInvoke(region, key, value, null, null);
}
void EndPut(IAsyncResult asyncResult)
{
var put = ((AsyncResult)asyncResult).AsyncDelegate;
var put1 = put as Action<string, object>;
if (put1 != null)
{
put1.EndInvoke(asyncResult);
return;
}
var put2 = put as Action<string, string, object>;
if (put2 != null)
{
put2.EndInvoke(asyncResult);
return;
}
throw new ArgumentException("Invalid async result", "asyncResult");
}
I'm hoping there is a cleaner way to do this, because the only thing I care about the delegate is the return type (in this case void) and not the arguments that were supplied to it. But I've racked my brains and asked others in the office, and nobody can think of the answer.
I know one solution is to write a custom `IAsyncResult`, but that's such a difficult task with the potential threading issues around things like lazy instantiation of the `WaitHandle` that I'd rather have this slightly hacky looking code than go down that route.
Any ideas on how to end the invocation without a cascading set of `is` checks? | 0 |
3,114,532 | 06/24/2010 23:03:10 | 225,876 | 12/06/2009 17:38:25 | 16 | 0 | Calling a Python program from PHP. | I've got a version of the A* algorithm that builds a graph of the
UK road and cycle network in Python lists. It takes about 30 seconds
to initialise, but once done can very quickly find the shortest route
between any two vertices. The start and finish vertex ids are provided
by PHP.
I'm trying to work out the best way of communicating between
PHP and the Python program. I only want to do the initialisation phase
when the Apache server starts, so my question is: How do I keep the
python program alive and request routes from it via php? I have a
GLAMP setup. | php | python | ipc | null | null | null | open | Calling a Python program from PHP.
===
I've got a version of the A* algorithm that builds a graph of the
UK road and cycle network in Python lists. It takes about 30 seconds
to initialise, but once done can very quickly find the shortest route
between any two vertices. The start and finish vertex ids are provided
by PHP.
I'm trying to work out the best way of communicating between
PHP and the Python program. I only want to do the initialisation phase
when the Apache server starts, so my question is: How do I keep the
python program alive and request routes from it via php? I have a
GLAMP setup. | 0 |
8,445,642 | 12/09/2011 12:43:18 | 1,028,866 | 11/04/2011 00:59:57 | 1 | 1 | Making (or passing) an <a href> php variable invisibly on a link | Is there a way to put a php variable in an <a href> without it automatically being visible, like a GET variable?
<a href="myphpfile.php?variable=hidden">Some click</a>
I want the subsequent browser URL to be www.myphpfile.php (no variable visible).
Thanks for any help. | php | null | null | null | null | null | open | Making (or passing) an <a href> php variable invisibly on a link
===
Is there a way to put a php variable in an <a href> without it automatically being visible, like a GET variable?
<a href="myphpfile.php?variable=hidden">Some click</a>
I want the subsequent browser URL to be www.myphpfile.php (no variable visible).
Thanks for any help. | 0 |
8,759,305 | 01/06/2012 14:26:20 | 962,360 | 09/24/2011 06:54:38 | 121 | 18 | What is difference between int.class and Integer.TYPE in java? | Hi I want to know the difference between int.class and Integer.TYPE in java?
Thanks. | java | null | null | null | null | null | open | What is difference between int.class and Integer.TYPE in java?
===
Hi I want to know the difference between int.class and Integer.TYPE in java?
Thanks. | 0 |
7,988,147 | 11/02/2011 22:34:26 | 309,798 | 04/06/2010 07:15:54 | 787 | 9 | What is the best unicode library for .NET? | .NET does not supports many features of Unicode. It supports some basic features.
What is the best unicode library for .NET?
**Edit**:
I mean some thing like icu project:
http://icu-project.org | .net | unicode | null | null | null | 11/02/2011 23:58:54 | not a real question | What is the best unicode library for .NET?
===
.NET does not supports many features of Unicode. It supports some basic features.
What is the best unicode library for .NET?
**Edit**:
I mean some thing like icu project:
http://icu-project.org | 1 |
2,549,639 | 03/31/2010 00:32:47 | 130,758 | 06/30/2009 00:39:49 | 2,007 | 17 | Books on Code Contracts in C# 4.0 | Altough I've known Code Contracts for some time, as I've used it a bit in Java, I would like to start using them in C#, now that they are part of C# 4.0.
I am looking on learning material, books or vids. Altough tutorials are also welcome, I'd like to have something comprehensive to read, not the typical "here's how you use Requires and here's how you use Ensures". I am looking for something that really stands out in this area.
Thanks | c# | code-contracts | c#-4.0 | null | null | 09/30/2011 12:25:59 | not constructive | Books on Code Contracts in C# 4.0
===
Altough I've known Code Contracts for some time, as I've used it a bit in Java, I would like to start using them in C#, now that they are part of C# 4.0.
I am looking on learning material, books or vids. Altough tutorials are also welcome, I'd like to have something comprehensive to read, not the typical "here's how you use Requires and here's how you use Ensures". I am looking for something that really stands out in this area.
Thanks | 4 |
7,327,330 | 09/06/2011 23:31:42 | 929,966 | 09/06/2011 05:19:13 | 3 | 0 | NSLog to TableView | I'm having a difficulty trying to get what I'm seeing in the console and add it in a table view .
My program is basically trying to read , write and delete to a sqlite3 database and i want to retrieve the written data to a TableView.
Could anyone enlighten me in this area thanks. | iphone | tableview | nslog | null | null | 09/07/2011 02:18:17 | not a real question | NSLog to TableView
===
I'm having a difficulty trying to get what I'm seeing in the console and add it in a table view .
My program is basically trying to read , write and delete to a sqlite3 database and i want to retrieve the written data to a TableView.
Could anyone enlighten me in this area thanks. | 1 |
2,987,321 | 06/07/2010 05:45:45 | 354,460 | 05/31/2010 09:40:57 | 84 | 1 | Search Engine in php? | Sir,
I want to create a search engine in php.
So, please tell me how can I create it.
What is the logic for it.
Thanks, | php | search | logic | engine | null | 06/07/2010 06:16:32 | not a real question | Search Engine in php?
===
Sir,
I want to create a search engine in php.
So, please tell me how can I create it.
What is the logic for it.
Thanks, | 1 |
9,950,239 | 03/30/2012 20:49:09 | 1,304,134 | 03/30/2012 20:37:31 | 1 | 0 | PHP - How to parse string information into usable form from database | I am working on a web-app system that has multiple apps, each with a Primary Key to identify them. Each user also has a security level tied to an app, for instance App #1 with a security level of 5. I want to store all the app / security information in the database as a token, and then retrieve that information to store it in Session.
So given the following apps:
1 - Task App
2 - Email App
3 - Notes App
and a user that has security level 3, 5, and 7 respectively, the token will be stored as:
1.3|2.5|3.7.
My question is, how do I retrieve that data in a usable form? I was thinking of having it in an array, with the array key of the App ID, like somearray[1] = 3, somearray[2] = 5, etc, but I have no idea how to handle this.
I'm early in development on this part, so I have a very open mind towards suggestions. Thanks in advance for the help. | php | security | php5 | null | null | null | open | PHP - How to parse string information into usable form from database
===
I am working on a web-app system that has multiple apps, each with a Primary Key to identify them. Each user also has a security level tied to an app, for instance App #1 with a security level of 5. I want to store all the app / security information in the database as a token, and then retrieve that information to store it in Session.
So given the following apps:
1 - Task App
2 - Email App
3 - Notes App
and a user that has security level 3, 5, and 7 respectively, the token will be stored as:
1.3|2.5|3.7.
My question is, how do I retrieve that data in a usable form? I was thinking of having it in an array, with the array key of the App ID, like somearray[1] = 3, somearray[2] = 5, etc, but I have no idea how to handle this.
I'm early in development on this part, so I have a very open mind towards suggestions. Thanks in advance for the help. | 0 |
487,719 | 01/28/2009 14:03:55 | 26,126 | 10/08/2008 12:43:18 | 33 | 1 | Using assemblies registered in Web.Config in files not in root folder | I've registered a control in my web.config file and the .dll for the control has been placed in the application's Bin folder.
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="RichTextEditor"/>
</assemblies>
</compilation>
<pages>
<controls>
<add assembly="RichTextEditor" namespace="RichTextEditor" tagPrefix="cc1" />
</controls>
</pages>
I can now use this control in .aspx pages in the application root folder without issue. However, some of the .aspx pages I want to use this control in are stored in a sub-folder of the application (In this case a sub-folder called "Admin"). When I try to use these controls in these pages and run in debug I get an error of:
Error 1 Unknown server tag 'cc1:RichTextEditor'. N:\IntranetV2\admin\EditMenuItem.aspx 27
I'm sure I'm missing something simple here but I can't seem to figure out how to get this working and googling doesn't seem to have helped much.
| asp.net | c# | visual-studio-2008 | null | null | null | open | Using assemblies registered in Web.Config in files not in root folder
===
I've registered a control in my web.config file and the .dll for the control has been placed in the application's Bin folder.
<compilation debug="true">
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="RichTextEditor"/>
</assemblies>
</compilation>
<pages>
<controls>
<add assembly="RichTextEditor" namespace="RichTextEditor" tagPrefix="cc1" />
</controls>
</pages>
I can now use this control in .aspx pages in the application root folder without issue. However, some of the .aspx pages I want to use this control in are stored in a sub-folder of the application (In this case a sub-folder called "Admin"). When I try to use these controls in these pages and run in debug I get an error of:
Error 1 Unknown server tag 'cc1:RichTextEditor'. N:\IntranetV2\admin\EditMenuItem.aspx 27
I'm sure I'm missing something simple here but I can't seem to figure out how to get this working and googling doesn't seem to have helped much.
| 0 |
4,101,394 | 11/04/2010 21:06:11 | 443,523 | 09/09/2010 14:44:44 | 408 | 41 | Javascript MIME Type | Based on this question: http://stackoverflow.com/questions/4100872/jquery-code-not-working-in-ie
So text/javascript is used in html documents so internet explorer understands it aswell. But I was wondering when you would use application/javascript and more important why would you use it instead of text/javascript? | javascript | mime-types | null | null | null | null | open | Javascript MIME Type
===
Based on this question: http://stackoverflow.com/questions/4100872/jquery-code-not-working-in-ie
So text/javascript is used in html documents so internet explorer understands it aswell. But I was wondering when you would use application/javascript and more important why would you use it instead of text/javascript? | 0 |
8,789,535 | 01/09/2012 13:59:10 | 279,982 | 02/24/2010 01:36:38 | 810 | 67 | How to animate control in WPF? | I've seen a sample WPF program that I cannot find. In this sample when I click a button another button starts growing and shrinking. Mean while I can do other stuff with the form. How do I do this? | c# | wpf | control | animate | null | 01/10/2012 17:45:41 | not a real question | How to animate control in WPF?
===
I've seen a sample WPF program that I cannot find. In this sample when I click a button another button starts growing and shrinking. Mean while I can do other stuff with the form. How do I do this? | 1 |
4,478,387 | 12/18/2010 14:08:56 | 547,024 | 12/18/2010 14:06:29 | 1 | 0 | Compiler Design Help.... | Are there any lexical, syntactic, semantic analyzers and optimizers available...??? | c | null | null | null | null | 12/18/2010 17:50:58 | not a real question | Compiler Design Help....
===
Are there any lexical, syntactic, semantic analyzers and optimizers available...??? | 1 |
9,715,274 | 03/15/2012 07:05:46 | 1,268,293 | 03/14/2012 06:56:25 | 1 | 0 | print the fill out form values using java script | i trying to print the filled out form value when form submit. this process will do in client side. so i need to display the values in screen itself.
`<form id="regform" name="regform" method="post" action="#" style=" float:left;">
<table width="406" border="0" align="center" cellspacing="10">
<tr>
<td width="108">Name</td>
<td width="226"><label for="name"></label>
<input name="name" type="text" id="name" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Gender</td>
<td id="gender"><input type="radio" name="gender" id="gender" value="male" />
<label for="gender">Male
<input type="radio" name="gender" id="gender" value="female"style="color:#000;" />
Female</label></td>
</tr>
<tr>
<td>Department</td>
<td><label for="dept"></label>
<input name="dept" type="text" id="dept" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Year</td>
<td><label for="year"></label>
<select name="year" id="year" style="color:#000;">
<option value="1" selected="selected">1st Year</option>
<option value="2">2nd Year</option>
<option value="3">3rd Year</option>
<option value="4">4th Year</option>
</select></td>
</tr>
<tr>
<td>College</td>
<td><label for="college"></label>
<input name="college" type="text" id="college" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Email Id</td>
<td><label for="email"></label>
<input name="email" type="text" id="email" size="40" style="color:#000;" /></td>
</tr>
<tr>
<td>Mobile No</td>
<td><label for="mobile"></label>
<input name="mobile" type="text" id="mobile" size="40" style="color:#000;" /></td>
</tr>
<tr valign="top">
<td>Events</td>
<td><p>
<input type="checkbox" name="events" value="paper" />
Paper presentation<br />
<input type="checkbox" name="events" value="project" />
Project display<br />
<input type="checkbox" name="events" value="techiz" />
Techiz<br />
<input type="checkbox" name="events" value="debug" />
Debugger<br />
<input type="checkbox" name="events" value="kries" />
Kries dizayn<br />
<input type="checkbox" name="events" value="film" />
Film mostra<br />
<input type="checkbox" name="events" value="bidding" />
Bidding academy<br />
<input type="checkbox" name="events" value="smart" />
I'm smart<br />
<input type="checkbox" name="events" value="freak" />
Freak out<br />
<input type="checkbox" name="events" value="snap" />
Just a snap<br />
<input type="checkbox" name="events" value="race" />
The crown battle<br />
<input type="checkbox" name="events" value="spot" />
On spot events </p></td>
</tr>
<tr>
<td>Accomodation </td>
<td><input type="checkbox" name="accomodation" id="accomodation" value="yes"/>
<label for="accomodation">Check if you need Accomodation</label></td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Register" id="Register" value="Register" onclick="populateForm(this.form)"/> <input type="submit" name="Clear" id="Clear" value="Clear" /></td>
</tr>
</table>
</form>
`
This is the example code. Plz help me.
Thanks in advance. | javascript | html | null | null | null | 04/18/2012 05:59:56 | not a real question | print the fill out form values using java script
===
i trying to print the filled out form value when form submit. this process will do in client side. so i need to display the values in screen itself.
`<form id="regform" name="regform" method="post" action="#" style=" float:left;">
<table width="406" border="0" align="center" cellspacing="10">
<tr>
<td width="108">Name</td>
<td width="226"><label for="name"></label>
<input name="name" type="text" id="name" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Gender</td>
<td id="gender"><input type="radio" name="gender" id="gender" value="male" />
<label for="gender">Male
<input type="radio" name="gender" id="gender" value="female"style="color:#000;" />
Female</label></td>
</tr>
<tr>
<td>Department</td>
<td><label for="dept"></label>
<input name="dept" type="text" id="dept" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Year</td>
<td><label for="year"></label>
<select name="year" id="year" style="color:#000;">
<option value="1" selected="selected">1st Year</option>
<option value="2">2nd Year</option>
<option value="3">3rd Year</option>
<option value="4">4th Year</option>
</select></td>
</tr>
<tr>
<td>College</td>
<td><label for="college"></label>
<input name="college" type="text" id="college" size="40" style="color:#000;"/></td>
</tr>
<tr>
<td>Email Id</td>
<td><label for="email"></label>
<input name="email" type="text" id="email" size="40" style="color:#000;" /></td>
</tr>
<tr>
<td>Mobile No</td>
<td><label for="mobile"></label>
<input name="mobile" type="text" id="mobile" size="40" style="color:#000;" /></td>
</tr>
<tr valign="top">
<td>Events</td>
<td><p>
<input type="checkbox" name="events" value="paper" />
Paper presentation<br />
<input type="checkbox" name="events" value="project" />
Project display<br />
<input type="checkbox" name="events" value="techiz" />
Techiz<br />
<input type="checkbox" name="events" value="debug" />
Debugger<br />
<input type="checkbox" name="events" value="kries" />
Kries dizayn<br />
<input type="checkbox" name="events" value="film" />
Film mostra<br />
<input type="checkbox" name="events" value="bidding" />
Bidding academy<br />
<input type="checkbox" name="events" value="smart" />
I'm smart<br />
<input type="checkbox" name="events" value="freak" />
Freak out<br />
<input type="checkbox" name="events" value="snap" />
Just a snap<br />
<input type="checkbox" name="events" value="race" />
The crown battle<br />
<input type="checkbox" name="events" value="spot" />
On spot events </p></td>
</tr>
<tr>
<td>Accomodation </td>
<td><input type="checkbox" name="accomodation" id="accomodation" value="yes"/>
<label for="accomodation">Check if you need Accomodation</label></td>
</tr>
<tr>
<td> </td>
<td></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="Register" id="Register" value="Register" onclick="populateForm(this.form)"/> <input type="submit" name="Clear" id="Clear" value="Clear" /></td>
</tr>
</table>
</form>
`
This is the example code. Plz help me.
Thanks in advance. | 1 |
5,424,358 | 03/24/2011 19:17:39 | 665,200 | 03/17/2011 22:28:39 | 6 | 0 | java solar system simulator | I have created a solar system generator in JAVA. I was wondering, if I have an asteroid in the sytem and want to check if it has coliided with a planet would I just get the distance between the asteroid and each planet and if the distance minus the radius was 0 or less it would be a collision. Is that the correct math?
Thanks | detection | collision | null | null | null | 03/25/2011 09:50:46 | not a real question | java solar system simulator
===
I have created a solar system generator in JAVA. I was wondering, if I have an asteroid in the sytem and want to check if it has coliided with a planet would I just get the distance between the asteroid and each planet and if the distance minus the radius was 0 or less it would be a collision. Is that the correct math?
Thanks | 1 |
6,063,453 | 05/19/2011 18:48:52 | 737,124 | 05/04/2011 00:41:02 | 1 | 0 | Store json data returned using javascript | I have json string retuned via a ajax call
$.ajax({
type: 'GET',
url: quoteURL,
dataType: 'json',
timeout: 10000,
crossDomain: true,
success: function(result) {
/// required code
}
});
The returned json response from server is
{"_emptyscopedata":[{},{}],"errMsgBuffer":{"errMsg":""},"descriptor":[{"template":"projects\/mobile\/market\/mostactives.xsl","componentname":"getmostactives"},{"template":"","componentname":"quotelist"}],"invest.mostactive":{"MoverExchange":"NSDQ","MoverType":"ACT","urlType":""},"quotelist":{},"quote.quote":[{"timezoneid":"EST","change":"0.01","halted":"0","type":"EQ","bidsize":"2900","fastmarket":"0","asksize":"300","close":"16.64","timestamp":"May 18, 2011 3:00 PM EST","open":"16.64","productid":"CSCO:NSDQ:EQ","bid":"16.63","exchange":"NSDQ","symbol":"CSCO","news":"0","quotetype":"2","percentchange":"0.0006","symboldesc":"CISCO SYS INC COM","price":"16.65","utctime":"1305748800","volume":"92738240","high":"16.66","quotestatus":"0","low":"16.34","ask":"16.64","timestring2":"05\/18\/11 04:00 PM ET"},{"timezoneid":"EST","change":"0.04","halted":"0","type":"EQ","bidsize":"91200","fastmarket":"0","asksize":"241000","close":"2.14","timestamp":"May 18, 2011 3:00 PM EST","open":"2.13","productid":"SIRI:NSDQ:EQ","bid":"2.17","exchange":"NSDQ","symbol":"SIRI","news":"0","quotetype":"2","percentchange":"0.0187","symboldesc":"SIRIUS XM RADIO INC COM","price":"2.18","utctime":"1305748800","volume":"74540998","high":"2.2","quotestatus":"0","low":"2.12","ask":"2.18","timestring2":"05\/18\/11 04:00 PM ET"}
I want to show some of the values of the response on the site. But I am not able to retrieve the values.
Can someone help. | javascript | jquery | null | null | null | null | open | Store json data returned using javascript
===
I have json string retuned via a ajax call
$.ajax({
type: 'GET',
url: quoteURL,
dataType: 'json',
timeout: 10000,
crossDomain: true,
success: function(result) {
/// required code
}
});
The returned json response from server is
{"_emptyscopedata":[{},{}],"errMsgBuffer":{"errMsg":""},"descriptor":[{"template":"projects\/mobile\/market\/mostactives.xsl","componentname":"getmostactives"},{"template":"","componentname":"quotelist"}],"invest.mostactive":{"MoverExchange":"NSDQ","MoverType":"ACT","urlType":""},"quotelist":{},"quote.quote":[{"timezoneid":"EST","change":"0.01","halted":"0","type":"EQ","bidsize":"2900","fastmarket":"0","asksize":"300","close":"16.64","timestamp":"May 18, 2011 3:00 PM EST","open":"16.64","productid":"CSCO:NSDQ:EQ","bid":"16.63","exchange":"NSDQ","symbol":"CSCO","news":"0","quotetype":"2","percentchange":"0.0006","symboldesc":"CISCO SYS INC COM","price":"16.65","utctime":"1305748800","volume":"92738240","high":"16.66","quotestatus":"0","low":"16.34","ask":"16.64","timestring2":"05\/18\/11 04:00 PM ET"},{"timezoneid":"EST","change":"0.04","halted":"0","type":"EQ","bidsize":"91200","fastmarket":"0","asksize":"241000","close":"2.14","timestamp":"May 18, 2011 3:00 PM EST","open":"2.13","productid":"SIRI:NSDQ:EQ","bid":"2.17","exchange":"NSDQ","symbol":"SIRI","news":"0","quotetype":"2","percentchange":"0.0187","symboldesc":"SIRIUS XM RADIO INC COM","price":"2.18","utctime":"1305748800","volume":"74540998","high":"2.2","quotestatus":"0","low":"2.12","ask":"2.18","timestring2":"05\/18\/11 04:00 PM ET"}
I want to show some of the values of the response on the site. But I am not able to retrieve the values.
Can someone help. | 0 |
6,319,671 | 06/12/2011 02:00:51 | 458,969 | 09/26/2010 21:55:04 | 295 | 11 | Why some processes don't have user name? | In my task manager, I found one process (csrss.exe) doesn't have user name. How does the program get started? | windows | process | null | null | null | 06/12/2011 02:10:38 | off topic | Why some processes don't have user name?
===
In my task manager, I found one process (csrss.exe) doesn't have user name. How does the program get started? | 2 |
8,389,225 | 12/05/2011 17:21:44 | 968,032 | 09/27/2011 22:41:32 | 127 | 0 | C videos anywhere online | Does anyone have any knowledge of a C or c++ tutorials that teach the language on video and through examples? Thanks! | c++ | c | null | null | null | 12/05/2011 17:31:41 | off topic | C videos anywhere online
===
Does anyone have any knowledge of a C or c++ tutorials that teach the language on video and through examples? Thanks! | 2 |
6,054,706 | 05/19/2011 06:33:14 | 138,030 | 07/14/2009 12:08:16 | 163 | 5 | Info about Blackberry JDE 7.0 release | Where can i find the blackberry 7.0 sdk ?Where can i get the info for it?
While googling i came to know,it will be there in end of may
When is to be released?
Regards
Rakesh Shankar.P
| blackberry | blackberry-jde | null | null | null | 05/19/2011 14:11:38 | not a real question | Info about Blackberry JDE 7.0 release
===
Where can i find the blackberry 7.0 sdk ?Where can i get the info for it?
While googling i came to know,it will be there in end of may
When is to be released?
Regards
Rakesh Shankar.P
| 1 |
8,188,886 | 11/18/2011 20:47:06 | 350,542 | 05/26/2010 05:03:49 | 1,370 | 79 | How do J2EE applications scale compared to MVC Servlet/JSP applications? | Hi guys : I've used JSP/Servlet frameworks pretty broadly, generally picking up J2EE tricks when necessary (for example, when my data access code get complicated, I usually adopt Ibatis/Hibernate ; or when my UI gets ugly, I start using tools like guice/spring DI to simplify testing) .... However, I've never seen the point in a "full" J2EE stack --- usually most applications only need one or two of the typical J2EE features.
My question is : What is the benefit of full blown J2EE containers ? It seems like running a standard tomcat server, dependency manger, in the context of a daily test/builds cycle is capable of managing complexity pretty effectively, in my experience.
My thoughts :
1) Maybe J2EE stacks like glassfish/jboss are more scalable (i.e. they can be easily extended to handle higher volume with out spot coding or ad-hoc optimizations) ?
2) Maybe J2EE stacks are more modular (i.e. they can communicate with other J2EE components that were built for different contexts ?)
3) Maybe J2EE stacks allow seamless interoperation between different features (for example, maybe JMS interoperates cleanly with JPA data operations, so that you don't have to "manually" glue different system components together...) ?
Any thoughts on these suggestions would be appreciated ... I'm somewhat new to heavyweight J2EE frameworks and am trying to contextualize their usefulness over simpler, homegrown mvc code-bases. | java | mvc | java-ee | dependency-injection | jms | 11/22/2011 12:21:29 | not constructive | How do J2EE applications scale compared to MVC Servlet/JSP applications?
===
Hi guys : I've used JSP/Servlet frameworks pretty broadly, generally picking up J2EE tricks when necessary (for example, when my data access code get complicated, I usually adopt Ibatis/Hibernate ; or when my UI gets ugly, I start using tools like guice/spring DI to simplify testing) .... However, I've never seen the point in a "full" J2EE stack --- usually most applications only need one or two of the typical J2EE features.
My question is : What is the benefit of full blown J2EE containers ? It seems like running a standard tomcat server, dependency manger, in the context of a daily test/builds cycle is capable of managing complexity pretty effectively, in my experience.
My thoughts :
1) Maybe J2EE stacks like glassfish/jboss are more scalable (i.e. they can be easily extended to handle higher volume with out spot coding or ad-hoc optimizations) ?
2) Maybe J2EE stacks are more modular (i.e. they can communicate with other J2EE components that were built for different contexts ?)
3) Maybe J2EE stacks allow seamless interoperation between different features (for example, maybe JMS interoperates cleanly with JPA data operations, so that you don't have to "manually" glue different system components together...) ?
Any thoughts on these suggestions would be appreciated ... I'm somewhat new to heavyweight J2EE frameworks and am trying to contextualize their usefulness over simpler, homegrown mvc code-bases. | 4 |
8,959,423 | 01/22/2012 06:19:57 | 569,027 | 01/09/2011 18:29:20 | 420 | 7 | OpenCV eye tracking on Android | I'm looking to do basic eye tracking in android using the OpenCV api. I've found that there seem to be two ways to use opencv in Andriod, either by using their c++ wrapper or by using JavaCV api. I'm willing to do either but I'm looking for some idea or sample code as to how i would track basic eye movement with either platform. | android | null | null | null | null | null | open | OpenCV eye tracking on Android
===
I'm looking to do basic eye tracking in android using the OpenCV api. I've found that there seem to be two ways to use opencv in Andriod, either by using their c++ wrapper or by using JavaCV api. I'm willing to do either but I'm looking for some idea or sample code as to how i would track basic eye movement with either platform. | 0 |
5,261,817 | 03/10/2011 15:25:27 | 451,969 | 10/02/2008 14:43:56 | 2,018 | 110 | How to use Excel VBA to activate and copy row data from multiple worksheets in multiple workbooks into another workbook's worksheet? | I have a series of workbooks, containing a series of worksheets, in which I am needing to consolidate those worksheets into one worksheet (they are all identical columns).
I have the below snippet from my combined() sub that I'm trying to use to access each file, iterate over them, get each worksheet inside, and then copy the contents of each worksheet over to the combined.xlsm file.
My problem is, I'm not quite following how I should activate the workbooks/worksheets with my code. Is my code just not going to work?
CombinedWB = "Combined.xlsm"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set FLS = FSO.GetFolder("c:\path\to\files").Files
For Each F In FLS
CurrentWB = F.Name
Windows(CurrentWB).Activate
If CurrentWB <> CombinedWB Then
On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Combined").Delete
Application.DisplayAlerts = True
For Each Cell In ActiveSheet.Range("A3")
Worksheets("Combined").Range("A" & Row).Value = "Name"
Worksheets("Combined").Range("B" & Row).Value = "Player"
Worksheets("Combined").Range("C" & Row).Value = Cell.Value
Worksheets("Combined").Range("D" & Row).Value = Cell.Offset(0, 1).Value
Worksheets("Combined").Range("E" & Row).Value = Cell.Offset(0, 2).Value
Worksheets("Combined").Range("F" & Row).Value = Cell.Offset(0, 3).Value
Worksheets("Combined").Range("G" & Row).Value = Cell.Offset(0, 4).Value
Worksheets("Combined").Range("H" & Row).Value = Cell.Offset(0, 5).Value
Worksheets("Combined").Range("I" & Row).Value = Cell.Offset(0, 6).Value
Worksheets("Combined").Range("J" & Row).Value = Cell.Offset(0, 7).Value
Worksheets("Combined").Range("K" & Row).Value = Cell.Offset(0, 8).Value
Worksheets("Combined").Range("L" & Row).Value = Cell.Offset(0, 9).Value
Worksheets("Combined").Range("M" & Row).Value = Cell.Offset(0, 10).Value
Worksheets("Combined").Range("N" & Row).Value = Cell.Offset(0, 11).Value
Worksheets("Combined").Range("O" & Row).Value = Cell.Offset(0, 12).Value
Worksheets("Combined").Range("P" & Row).Value = Cell.Offset(0, 13).Value
Next
Row = 2
For J = 1 To Sheets.Count
Player = Sheets(J).Cells(1).Parent.Name
Injury = Sheets(J).Range("A5").Value
InjuryDate = Sheets(J).Range("B5").Value
For Each Cell In Sheets(J).Range("A5:A100")
If IsEmpty(Cell.Offset(0, 2).Value) <> True Then
Worksheets("Combined").Range("A" & Row).Value = Name
Worksheets("Combined").Range("B" & Row).Value = Player
Worksheets("Combined").Range("C" & Row).Value = Injury
Worksheets("Combined").Range("D" & Row).Value = InjuryDate
Worksheets("Combined").Range("E" & Row).Value = Cell.Offset(0, 2).Value
Worksheets("Combined").Range("F" & Row).Value = Cell.Offset(0, 3).Value
Worksheets("Combined").Range("G" & Row).Value = Cell.Offset(0, 4).Value
Worksheets("Combined").Range("H" & Row).Value = Cell.Offset(0, 5).Value
Worksheets("Combined").Range("I" & Row).Value = Cell.Offset(0, 6).Value
Worksheets("Combined").Range("J" & Row).Value = Cell.Offset(0, 7).Value
Worksheets("Combined").Range("K" & Row).Value = Cell.Offset(0, 8).Value
Worksheets("Combined").Range("L" & Row).Value = Cell.Offset(0, 9).Value
Worksheets("Combined").Range("M" & Row).Value = Cell.Offset(0, 10).Value
Worksheets("Combined").Range("N" & Row).Value = Cell.Offset(0, 11).Value
Worksheets("Combined").Range("O" & Row).Value = Cell.Offset(0, 12).Value
Worksheets("Combined").Range("P" & Row).Value = Cell.Offset(0, 13).Value
Row = Row + 1
End If
Next
Next
End If
Next | excel | vba | worksheet-function | workbook | null | null | open | How to use Excel VBA to activate and copy row data from multiple worksheets in multiple workbooks into another workbook's worksheet?
===
I have a series of workbooks, containing a series of worksheets, in which I am needing to consolidate those worksheets into one worksheet (they are all identical columns).
I have the below snippet from my combined() sub that I'm trying to use to access each file, iterate over them, get each worksheet inside, and then copy the contents of each worksheet over to the combined.xlsm file.
My problem is, I'm not quite following how I should activate the workbooks/worksheets with my code. Is my code just not going to work?
CombinedWB = "Combined.xlsm"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set FLS = FSO.GetFolder("c:\path\to\files").Files
For Each F In FLS
CurrentWB = F.Name
Windows(CurrentWB).Activate
If CurrentWB <> CombinedWB Then
On Error Resume Next
Application.DisplayAlerts = False
Worksheets("Combined").Delete
Application.DisplayAlerts = True
For Each Cell In ActiveSheet.Range("A3")
Worksheets("Combined").Range("A" & Row).Value = "Name"
Worksheets("Combined").Range("B" & Row).Value = "Player"
Worksheets("Combined").Range("C" & Row).Value = Cell.Value
Worksheets("Combined").Range("D" & Row).Value = Cell.Offset(0, 1).Value
Worksheets("Combined").Range("E" & Row).Value = Cell.Offset(0, 2).Value
Worksheets("Combined").Range("F" & Row).Value = Cell.Offset(0, 3).Value
Worksheets("Combined").Range("G" & Row).Value = Cell.Offset(0, 4).Value
Worksheets("Combined").Range("H" & Row).Value = Cell.Offset(0, 5).Value
Worksheets("Combined").Range("I" & Row).Value = Cell.Offset(0, 6).Value
Worksheets("Combined").Range("J" & Row).Value = Cell.Offset(0, 7).Value
Worksheets("Combined").Range("K" & Row).Value = Cell.Offset(0, 8).Value
Worksheets("Combined").Range("L" & Row).Value = Cell.Offset(0, 9).Value
Worksheets("Combined").Range("M" & Row).Value = Cell.Offset(0, 10).Value
Worksheets("Combined").Range("N" & Row).Value = Cell.Offset(0, 11).Value
Worksheets("Combined").Range("O" & Row).Value = Cell.Offset(0, 12).Value
Worksheets("Combined").Range("P" & Row).Value = Cell.Offset(0, 13).Value
Next
Row = 2
For J = 1 To Sheets.Count
Player = Sheets(J).Cells(1).Parent.Name
Injury = Sheets(J).Range("A5").Value
InjuryDate = Sheets(J).Range("B5").Value
For Each Cell In Sheets(J).Range("A5:A100")
If IsEmpty(Cell.Offset(0, 2).Value) <> True Then
Worksheets("Combined").Range("A" & Row).Value = Name
Worksheets("Combined").Range("B" & Row).Value = Player
Worksheets("Combined").Range("C" & Row).Value = Injury
Worksheets("Combined").Range("D" & Row).Value = InjuryDate
Worksheets("Combined").Range("E" & Row).Value = Cell.Offset(0, 2).Value
Worksheets("Combined").Range("F" & Row).Value = Cell.Offset(0, 3).Value
Worksheets("Combined").Range("G" & Row).Value = Cell.Offset(0, 4).Value
Worksheets("Combined").Range("H" & Row).Value = Cell.Offset(0, 5).Value
Worksheets("Combined").Range("I" & Row).Value = Cell.Offset(0, 6).Value
Worksheets("Combined").Range("J" & Row).Value = Cell.Offset(0, 7).Value
Worksheets("Combined").Range("K" & Row).Value = Cell.Offset(0, 8).Value
Worksheets("Combined").Range("L" & Row).Value = Cell.Offset(0, 9).Value
Worksheets("Combined").Range("M" & Row).Value = Cell.Offset(0, 10).Value
Worksheets("Combined").Range("N" & Row).Value = Cell.Offset(0, 11).Value
Worksheets("Combined").Range("O" & Row).Value = Cell.Offset(0, 12).Value
Worksheets("Combined").Range("P" & Row).Value = Cell.Offset(0, 13).Value
Row = Row + 1
End If
Next
Next
End If
Next | 0 |
11,574,172 | 07/20/2012 06:47:00 | 1,460,917 | 06/16/2012 17:12:53 | 44 | 0 | ruby if logged in use. php else use .php | is there a way to tell ruby to use this.php if logged in else use that.php if not?
Im stuck using ruby and php is this going to work? or are the two languages completely incompatible to cross talk them like that.
Thanks for any information or guidance.
if not .php the rhtml, will have to try and adapt things. | ruby | null | null | null | null | 07/20/2012 10:17:53 | not a real question | ruby if logged in use. php else use .php
===
is there a way to tell ruby to use this.php if logged in else use that.php if not?
Im stuck using ruby and php is this going to work? or are the two languages completely incompatible to cross talk them like that.
Thanks for any information or guidance.
if not .php the rhtml, will have to try and adapt things. | 1 |
11,422,699 | 07/10/2012 22:00:48 | 800,270 | 06/15/2011 19:18:29 | 560 | 46 | Fastcall in 64 bit | I've been reading up on the differences in 32bit calling conventions. The `fastcall` vs. `stdcall` ordeal that is.
From what I read there was great confusion with the two conventions, and 64 bit was standardized to avoid this confusion.
I have to ask, why was `fastcall` chosen?
Also, since `fastcall` and `stdcall` are win32 terms, what is the UNIX term for function calling that does or does not use registers for passing arguments? | unix | 64bit | x86-64 | stdcall | fastcall | null | open | Fastcall in 64 bit
===
I've been reading up on the differences in 32bit calling conventions. The `fastcall` vs. `stdcall` ordeal that is.
From what I read there was great confusion with the two conventions, and 64 bit was standardized to avoid this confusion.
I have to ask, why was `fastcall` chosen?
Also, since `fastcall` and `stdcall` are win32 terms, what is the UNIX term for function calling that does or does not use registers for passing arguments? | 0 |
6,160,833 | 05/28/2011 09:43:27 | 774,194 | 05/28/2011 09:29:03 | 1 | 0 | My images are not loaded in the my webpages | I am using PHP and HTML for designing My web page.I gave the correct path for my images.., and all images are in that destination folder.But if i view the file using the sub domain name, the images in that page are not displaying,but if i use the direct path it display the images properly For Example :-> my subdomain name is Kannan, and i had one folder named Kannan. If i access through the
>`URL->: http://Kannan.xxxx.com/home.php`
images are not showing properly but if i view the page using direct url
> URL->: http://xxxx.com/Kannan/home.php
then it shows that images correctly . I dont know what's going wrong.I am working on this issue more than 1 day . till i am unable to solve this plz guide me thanks in advance | html | null | null | null | null | 05/28/2011 09:52:45 | off topic | My images are not loaded in the my webpages
===
I am using PHP and HTML for designing My web page.I gave the correct path for my images.., and all images are in that destination folder.But if i view the file using the sub domain name, the images in that page are not displaying,but if i use the direct path it display the images properly For Example :-> my subdomain name is Kannan, and i had one folder named Kannan. If i access through the
>`URL->: http://Kannan.xxxx.com/home.php`
images are not showing properly but if i view the page using direct url
> URL->: http://xxxx.com/Kannan/home.php
then it shows that images correctly . I dont know what's going wrong.I am working on this issue more than 1 day . till i am unable to solve this plz guide me thanks in advance | 2 |
5,336,096 | 03/17/2011 07:28:04 | 542,926 | 12/15/2010 05:33:01 | 1 | 0 | ZOOMING CODE with image swapping | hi i want perfect zooming code or link!!!
pls sen | iphone | null | null | null | null | null | open | ZOOMING CODE with image swapping
===
hi i want perfect zooming code or link!!!
pls sen | 0 |
11,624,799 | 07/24/2012 05:41:40 | 1,335,546 | 04/16/2012 05:11:31 | 1 | 0 | Slugs: Ugly Bugs, Pretty URLs not working Cakephp | My one communication portal is already developed and in that we have used each url with id(http://dev.indianic.com/arguenet/cms_pages/view/45)
now client wants SEO friendly URL so ,now we are not in position to add slug field in each ,model,so i think this is the best solution to use this support(http://42pixels.com/blog/slugs-ugly-bugs-pretty-urls) .
But in my portal the function which converts a url (match) from SluggableRoute class is not getting called so url is not getting replaced ...so can you please support me...and help me out.It would be great if i get any solution. | cakephp | cakephp-1.3 | null | null | null | 07/25/2012 19:03:09 | not a real question | Slugs: Ugly Bugs, Pretty URLs not working Cakephp
===
My one communication portal is already developed and in that we have used each url with id(http://dev.indianic.com/arguenet/cms_pages/view/45)
now client wants SEO friendly URL so ,now we are not in position to add slug field in each ,model,so i think this is the best solution to use this support(http://42pixels.com/blog/slugs-ugly-bugs-pretty-urls) .
But in my portal the function which converts a url (match) from SluggableRoute class is not getting called so url is not getting replaced ...so can you please support me...and help me out.It would be great if i get any solution. | 1 |
4,131,662 | 11/09/2010 08:22:55 | 18,749 | 09/19/2008 11:05:51 | 600 | 31 | C++ Batch Geocoding with Garmin Mapsource | I lost track of this effort years ago but have need to geocode thousands of addresses nightly. I would like to use the very accurate database sitting on the machine, installed when my Nuvi map update installed Mapsource.
When I contacted Garmin years ago, they expressed an interest in providing an API for this, but then I heard nothing and did not follow up. Their database is provided
I posted on the Garmin Developer forum a while ago, but its a little lethargic over there :)
Has anyone done this?
Does anyone know how it might be done without an API; meaning database structure and calls? | c++ | geocoding | garmin | null | null | null | open | C++ Batch Geocoding with Garmin Mapsource
===
I lost track of this effort years ago but have need to geocode thousands of addresses nightly. I would like to use the very accurate database sitting on the machine, installed when my Nuvi map update installed Mapsource.
When I contacted Garmin years ago, they expressed an interest in providing an API for this, but then I heard nothing and did not follow up. Their database is provided
I posted on the Garmin Developer forum a while ago, but its a little lethargic over there :)
Has anyone done this?
Does anyone know how it might be done without an API; meaning database structure and calls? | 0 |
8,532,134 | 12/16/2011 09:26:44 | 966,247 | 09/27/2011 04:22:52 | 63 | 10 | Update Datepickerfield from Model Sencha Touch | I have a model and store that take in values from my form fields.
My form contains a textfield, selectfield, datepickerfield and radiofield.
I take the values from the form and update my model with them. When later I load the model into the form, the values reappear on all components EXCEPT the datepickerfield.
Im using a localstorage proxy. I checked the values in the database, the date shows in the following format : "2011-12-13T18:30:00.000Z"
I think this may be the problem. Maybe the datepickerfield doesnt know how to load the format. What should I do ??
Sasha | forms | model | datepicker | sencha-touch | store | null | open | Update Datepickerfield from Model Sencha Touch
===
I have a model and store that take in values from my form fields.
My form contains a textfield, selectfield, datepickerfield and radiofield.
I take the values from the form and update my model with them. When later I load the model into the form, the values reappear on all components EXCEPT the datepickerfield.
Im using a localstorage proxy. I checked the values in the database, the date shows in the following format : "2011-12-13T18:30:00.000Z"
I think this may be the problem. Maybe the datepickerfield doesnt know how to load the format. What should I do ??
Sasha | 0 |
4,151,701 | 11/11/2010 05:50:17 | 469,823 | 10/08/2010 03:44:11 | 1 | 2 | website browser | Which website browser is better for business use?
Thanks. | browser | website | null | null | null | 11/12/2010 01:53:51 | not a real question | website browser
===
Which website browser is better for business use?
Thanks. | 1 |
9,507,080 | 02/29/2012 21:40:04 | 791,657 | 06/09/2011 20:06:14 | 37 | 2 | handling refresh using pushState or PJAX like github | I am attempting to build a treeslider to navigate on a site's content, and have had some success, i have a test page utilizing PJAX, a separate version using history.js, and a third version using jquery functions calling pushState/replaceState HTML 5 api
My issue is refresh handling, or direct link to a secondary page...if the original page has not been loaded, all that is displayed is the snippet
heres a pjax example: http://ur.nd.edu/pjax/
navigating to the links loads via pjax fine, but refreshing the page shows only the snippet, which i expect, i just want to know how to handle refreshes and direct links to include header formatting
gthub handles this beautifully, I just don't know where to begin | html5 | pushstate | history.js | pjax | null | null | open | handling refresh using pushState or PJAX like github
===
I am attempting to build a treeslider to navigate on a site's content, and have had some success, i have a test page utilizing PJAX, a separate version using history.js, and a third version using jquery functions calling pushState/replaceState HTML 5 api
My issue is refresh handling, or direct link to a secondary page...if the original page has not been loaded, all that is displayed is the snippet
heres a pjax example: http://ur.nd.edu/pjax/
navigating to the links loads via pjax fine, but refreshing the page shows only the snippet, which i expect, i just want to know how to handle refreshes and direct links to include header formatting
gthub handles this beautifully, I just don't know where to begin | 0 |
5,720,938 | 04/19/2011 18:29:40 | 693,928 | 04/05/2011 23:48:00 | 23 | 0 | What other numeric systems are there? | There's binary, decimal, hexadecimal, anything else? | numeric | null | null | null | null | 04/20/2011 02:32:27 | not a real question | What other numeric systems are there?
===
There's binary, decimal, hexadecimal, anything else? | 1 |
3,473,540 | 08/13/2010 02:50:17 | 154,065 | 08/11/2009 00:25:07 | 273 | 7 | jQuery selectors not working or unable to bind events | I have several dynamically-created links and forms on one page named with IDs "sub_comment_form_[id]" and "sub_add_comment_[id]", respectively. I'm trying to:
1. Hide all forms when the page loads
2. Bind a click event to the link directly above the form to hide/show the form.
I'm not sure if there is a problem with my *selectors*, or if jQuery simply does not allow *binding on multiple objects at once*. Here is my code:
HTML
<a href="#" id="sub_add_comment_to_answer_[id]">Add comment</a>
<form id="sub_comment_form_to_answer_[id]"...
JQUERY
$("form[ @id^='sub_comment_form'").hide();
$("a[ @id^='sub_add_comment' ]").click(function() {
var sibform = $(this).next("form");
if(sibform.is(':hidden')) {
$(this).text('Cancel');
sibform.slideDown('fast');
} else {
$(this).text('Add comment');
sibform.slideUp('fast');
}
});
| jquery | jquery-selectors | null | null | null | null | open | jQuery selectors not working or unable to bind events
===
I have several dynamically-created links and forms on one page named with IDs "sub_comment_form_[id]" and "sub_add_comment_[id]", respectively. I'm trying to:
1. Hide all forms when the page loads
2. Bind a click event to the link directly above the form to hide/show the form.
I'm not sure if there is a problem with my *selectors*, or if jQuery simply does not allow *binding on multiple objects at once*. Here is my code:
HTML
<a href="#" id="sub_add_comment_to_answer_[id]">Add comment</a>
<form id="sub_comment_form_to_answer_[id]"...
JQUERY
$("form[ @id^='sub_comment_form'").hide();
$("a[ @id^='sub_add_comment' ]").click(function() {
var sibform = $(this).next("form");
if(sibform.is(':hidden')) {
$(this).text('Cancel');
sibform.slideDown('fast');
} else {
$(this).text('Add comment');
sibform.slideUp('fast');
}
});
| 0 |
5,228,298 | 03/08/2011 04:19:32 | 363,140 | 06/10/2010 05:59:49 | 64 | 6 | why self referencing table? | In what scenarios a self referencing table is used?
| sql-server | null | null | null | null | 03/08/2011 04:26:56 | not a real question | why self referencing table?
===
In what scenarios a self referencing table is used?
| 1 |
4,741,236 | 01/19/2011 21:54:24 | 166,940 | 09/02/2009 00:15:41 | 534 | 30 | How to remove a Facebook app | I removed an app from http://www.facebook.com/developers/apps.php a couple days ago.
However, that removed app is still showing from Facebook's search and also if I go directly to the app url (i.e http://apps.facebook.com/[app_name])
I'm guessing it is cached by Facebook? How can I clear that all the way?
Thank you,
Tee | facebook | null | null | null | null | 01/20/2011 15:29:43 | off topic | How to remove a Facebook app
===
I removed an app from http://www.facebook.com/developers/apps.php a couple days ago.
However, that removed app is still showing from Facebook's search and also if I go directly to the app url (i.e http://apps.facebook.com/[app_name])
I'm guessing it is cached by Facebook? How can I clear that all the way?
Thank you,
Tee | 2 |
7,094,510 | 08/17/2011 14:27:54 | 387,852 | 07/09/2010 15:03:07 | 1,345 | 52 | What are bad use cases for Jackson/JSON? | What would be characteristics or smells that would indicate it is a **bad** idea to use Jackson/JSON for a particular task or set of tasks? I'm still learning about this technology, and I don't want to fall into the trap of treating everything like a nail just because I happen to have a fancy new hammer to play with.
For example, if my objects tend to have a lot of fields that are not basic types (by basic types I mean things like String or Double), is that an indication that Jackson/JSON would be inappropriate for serializing and deserializing? I don't want to overly dwell on this example, but that should give a feel of the type of thing I am wondering about. | java | json | serialization | jackson | null | 08/17/2011 21:58:53 | not constructive | What are bad use cases for Jackson/JSON?
===
What would be characteristics or smells that would indicate it is a **bad** idea to use Jackson/JSON for a particular task or set of tasks? I'm still learning about this technology, and I don't want to fall into the trap of treating everything like a nail just because I happen to have a fancy new hammer to play with.
For example, if my objects tend to have a lot of fields that are not basic types (by basic types I mean things like String or Double), is that an indication that Jackson/JSON would be inappropriate for serializing and deserializing? I don't want to overly dwell on this example, but that should give a feel of the type of thing I am wondering about. | 4 |
5,386,405 | 03/22/2011 03:27:03 | 670,518 | 03/22/2011 03:27:03 | 1 | 0 | How to assume css on title of div tag? | I wanna change design for title of div tag? | css | null | null | null | null | 03/22/2011 15:33:20 | not a real question | How to assume css on title of div tag?
===
I wanna change design for title of div tag? | 1 |
10,741,735 | 05/24/2012 16:39:11 | 1,414,521 | 05/24/2012 08:40:02 | 1 | 0 | JavaScript error using jQuery - "missing } after property list" | I'm using jQuery in my Google Web Toolkit app, through the JSNI facility.
My javascript is as follows:
$wnd.jQuery(function($){
$wnd.$('#cropImage').Jcrop({
onSelect: getCoords
});
});
//This calls a static Java method to record the crop coordinates
function getCoords(c){
@carddesigner.client.ui.Crop::grabInfo(IIIIII)(c.x, c.y, c.x2, c.y2, c.w, c.h);
};
The error, "missing } after property list", is flagged on the line:
$wnd.$('#cropImage').Jcrop({
Strangely, the application functions correctly despite this error, but I am scared to ignore it incase it causes future disturbances. There doesn't seem to be a property list on this line. Am I missing something here? | java | javascript | gwt | jsni | null | 05/25/2012 19:07:39 | too localized | JavaScript error using jQuery - "missing } after property list"
===
I'm using jQuery in my Google Web Toolkit app, through the JSNI facility.
My javascript is as follows:
$wnd.jQuery(function($){
$wnd.$('#cropImage').Jcrop({
onSelect: getCoords
});
});
//This calls a static Java method to record the crop coordinates
function getCoords(c){
@carddesigner.client.ui.Crop::grabInfo(IIIIII)(c.x, c.y, c.x2, c.y2, c.w, c.h);
};
The error, "missing } after property list", is flagged on the line:
$wnd.$('#cropImage').Jcrop({
Strangely, the application functions correctly despite this error, but I am scared to ignore it incase it causes future disturbances. There doesn't seem to be a property list on this line. Am I missing something here? | 3 |
9,531,805 | 03/02/2012 10:34:43 | 479,553 | 10/18/2010 17:06:33 | 417 | 2 | Django hosting for an Italian webapp | it's almost time to deploy my Django application.
In the past I've hosted my apps within an Italian company called http://unbit.it/ .
I was happy with it, but they are a bit expensive and I haven't the total control of my deploy workflow. I would like to deploy my next app with a VPS solution. Here are my questions:
- Do you suggest a VPS solution for deploying Django apps?
- I was looking to companies like slicehost and linode. My biggest concern is the physical location of the servers. Since I know for sure that 100% of incoming traffic of my app will be from Italy, I'm afraid to introduce too much overhead between the page request and the response, because the http request have to travel from Italy to the server (in London, or worse in America) and finally come back to Italy again.
Thanks in advance. (I hope not to be OT) | django | hosting | vps | geographic-distance | null | 06/26/2012 14:04:45 | off topic | Django hosting for an Italian webapp
===
it's almost time to deploy my Django application.
In the past I've hosted my apps within an Italian company called http://unbit.it/ .
I was happy with it, but they are a bit expensive and I haven't the total control of my deploy workflow. I would like to deploy my next app with a VPS solution. Here are my questions:
- Do you suggest a VPS solution for deploying Django apps?
- I was looking to companies like slicehost and linode. My biggest concern is the physical location of the servers. Since I know for sure that 100% of incoming traffic of my app will be from Italy, I'm afraid to introduce too much overhead between the page request and the response, because the http request have to travel from Italy to the server (in London, or worse in America) and finally come back to Italy again.
Thanks in advance. (I hope not to be OT) | 2 |
3,396,128 | 08/03/2010 11:45:42 | 248,818 | 01/12/2010 11:11:51 | 1 | 0 | Documented solution for detection of users connecting with multiple screen names? | Say that I have a site where I want to block users from using multiple screen names, based on their connection data. I would want to block them even if they are not using the multiple screen names simultaneously, but rather sequentially.
Do you know of any documented method for doing this? | user-identification | null | null | null | null | 11/28/2011 01:37:02 | not a real question | Documented solution for detection of users connecting with multiple screen names?
===
Say that I have a site where I want to block users from using multiple screen names, based on their connection data. I would want to block them even if they are not using the multiple screen names simultaneously, but rather sequentially.
Do you know of any documented method for doing this? | 1 |
11,313,252 | 07/03/2012 14:35:57 | 1,498,588 | 07/03/2012 11:14:43 | 1 | 0 | Access front-end and oracle back-end | This is my first question here. It is a long question, I will try to be brief. I tried find on internet,but didn't got anything. I even asked question in telecom form, but I didn't a single reply. I hope I will get help here.
REQUEST:
I am working for a telecommunication company. I am newbie. Presently I have to write an application in access 2007, which has Oracle 11g as a back-end. This function of this application is to generate an excel file as an output. when I enter a site name in text box in the access form and click search button, it should generate a excel file (text file or csv is also okay) which should have specific fields in a specific order for that particular site. These fields(columns) are present in different tables in Oracle database like transmitter, sites, neighbors etc. And some fields have fixed values depending on selection of option in combo\list box in the forms. Combo box includes City, Rural, Indoors etc options.
Can you please tell me, how to do it in Access or VBA
WHAT I HAVE DONE:
I connected Access to Oracle using ODBC and linked specific tables, which include the columns I need. Then using query design view in Access. I defined the relation of linked tables(which I knew from the database schema) and selected specific fields and in one field named Site_name, on criteria option, I typed "[site name]". Actually here, I need a filter expression which will filter the sites on the input of text box in the form. I don't know what expression to write, So I wrote site name here. so that latter it will ask for parameter of site name, and save it as query1
Then I created a macro and I typed in action column: outputto function, in arguments object type: query, object name as query1(name of the query) and output file: excel and saved as macro1. Then I created a button on the form and in design view, in property sheet> event tab> on click option: I selected macro1.
Now when I click this button on form (in form view). It asks for parameters of site name. I give it site name, And it generates a excel file which site name and other fields but without fixed values, because I didn't included them.(whole thing I will explain below in second issue)
ISSUES
First issue, I need to create a text box in form. and I should type site_name there and then click on button, it will prompt me saving a file only (not asking again for parameter). I don't what know,what filter expression to use and how to connect button, text box, query. Please help how I will get output file based on input in text box.
Second issue, I haven't talked about fixed value in some fields in output file which is based on options of list box\combo box in the form. I made a table named Terrain having field name as topography and its columns as city, rural, indoors etc. then I filled the other field names with specific field name as in output excel file and gave their columns respective values as in options. My idea was to add specific fields of Terrain table along with other three linked tables from Oracle database in query design view. So that output file also includes fixed fields with respective values triggered by options in list box based on filter expression in criteria option of topography field. For it I have to define relation of other three related tables with Terrain table. I don't know how to do, because all the fields are different in Terrain table from other tables. When I don't give any relation, and to check, I change to datasheet view. It gives the error message "SQL query cannot be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the first join and then include that query in the SQL statement." It gives some information, but I don't know how to use it practically. Please explain how can I include those fields in output file. Or do I need to do it in VBA, (I am learning VBA)
Third issue: In Oracle table, there is a field "frequency channels" It contains max 32 separate values delimited by space. But in output file(text, csv or excel),these need to be in separate fields as c0, c1,c3, ... c31.
If the channel field of a specific site has lesser channels. it e.g. 20. then the output file should have 20 cells or fields only.
If there are two sectors in a site. Then site_name will return two records as Site name A, site name B. If site name A has lesser channels than Site name B, then other blank cells of Site name A should return NULL.Please explain me how to do it. I think it is a split function in VBA. But how to use it practically, I don't know
CONCLUSION:
Can you please help me how to write this application in Access or VBA. And if it is possible in Access or do I need to use VBA and recordsets. which I am currently learning.
If you like I can send you the required output excel file and the design schema of Oracle database. I know, writing this software is not very difficult, but I have to learn the VBA and write it an application of it simultaneously. Also I have to complete the project in a time limit and there are tasks to complete.
| sql | database | vba | null | null | 07/03/2012 14:47:37 | too localized | Access front-end and oracle back-end
===
This is my first question here. It is a long question, I will try to be brief. I tried find on internet,but didn't got anything. I even asked question in telecom form, but I didn't a single reply. I hope I will get help here.
REQUEST:
I am working for a telecommunication company. I am newbie. Presently I have to write an application in access 2007, which has Oracle 11g as a back-end. This function of this application is to generate an excel file as an output. when I enter a site name in text box in the access form and click search button, it should generate a excel file (text file or csv is also okay) which should have specific fields in a specific order for that particular site. These fields(columns) are present in different tables in Oracle database like transmitter, sites, neighbors etc. And some fields have fixed values depending on selection of option in combo\list box in the forms. Combo box includes City, Rural, Indoors etc options.
Can you please tell me, how to do it in Access or VBA
WHAT I HAVE DONE:
I connected Access to Oracle using ODBC and linked specific tables, which include the columns I need. Then using query design view in Access. I defined the relation of linked tables(which I knew from the database schema) and selected specific fields and in one field named Site_name, on criteria option, I typed "[site name]". Actually here, I need a filter expression which will filter the sites on the input of text box in the form. I don't know what expression to write, So I wrote site name here. so that latter it will ask for parameter of site name, and save it as query1
Then I created a macro and I typed in action column: outputto function, in arguments object type: query, object name as query1(name of the query) and output file: excel and saved as macro1. Then I created a button on the form and in design view, in property sheet> event tab> on click option: I selected macro1.
Now when I click this button on form (in form view). It asks for parameters of site name. I give it site name, And it generates a excel file which site name and other fields but without fixed values, because I didn't included them.(whole thing I will explain below in second issue)
ISSUES
First issue, I need to create a text box in form. and I should type site_name there and then click on button, it will prompt me saving a file only (not asking again for parameter). I don't what know,what filter expression to use and how to connect button, text box, query. Please help how I will get output file based on input in text box.
Second issue, I haven't talked about fixed value in some fields in output file which is based on options of list box\combo box in the form. I made a table named Terrain having field name as topography and its columns as city, rural, indoors etc. then I filled the other field names with specific field name as in output excel file and gave their columns respective values as in options. My idea was to add specific fields of Terrain table along with other three linked tables from Oracle database in query design view. So that output file also includes fixed fields with respective values triggered by options in list box based on filter expression in criteria option of topography field. For it I have to define relation of other three related tables with Terrain table. I don't know how to do, because all the fields are different in Terrain table from other tables. When I don't give any relation, and to check, I change to datasheet view. It gives the error message "SQL query cannot be executed because it contains ambiguous outer joins. To force one of the joins to be performed first, create a separate query that performs the first join and then include that query in the SQL statement." It gives some information, but I don't know how to use it practically. Please explain how can I include those fields in output file. Or do I need to do it in VBA, (I am learning VBA)
Third issue: In Oracle table, there is a field "frequency channels" It contains max 32 separate values delimited by space. But in output file(text, csv or excel),these need to be in separate fields as c0, c1,c3, ... c31.
If the channel field of a specific site has lesser channels. it e.g. 20. then the output file should have 20 cells or fields only.
If there are two sectors in a site. Then site_name will return two records as Site name A, site name B. If site name A has lesser channels than Site name B, then other blank cells of Site name A should return NULL.Please explain me how to do it. I think it is a split function in VBA. But how to use it practically, I don't know
CONCLUSION:
Can you please help me how to write this application in Access or VBA. And if it is possible in Access or do I need to use VBA and recordsets. which I am currently learning.
If you like I can send you the required output excel file and the design schema of Oracle database. I know, writing this software is not very difficult, but I have to learn the VBA and write it an application of it simultaneously. Also I have to complete the project in a time limit and there are tasks to complete.
| 3 |
11,380,402 | 07/08/2012 03:17:43 | 1,484,193 | 06/26/2012 23:36:50 | 25 | 1 | iTunes Connect asking me SARN | I requested iAds contract and then iTunes Connect asked me to choose the country : saudi arabia then iTunes Connect asked me for SARN, so what is the SARN ? | iphone | ios | itunes | itunesconnect | itunes-store | 07/09/2012 01:13:04 | off topic | iTunes Connect asking me SARN
===
I requested iAds contract and then iTunes Connect asked me to choose the country : saudi arabia then iTunes Connect asked me for SARN, so what is the SARN ? | 2 |
2,938,082 | 05/30/2010 09:26:32 | 341,228 | 05/14/2010 12:39:42 | 45 | 1 | creating instance of labeled fields data type | how do i instance a "labeled fields data type"?
data InputData = InputData { events :: [Event], newResources :: [Resource] }
=>
where myInputData = ???
| data | haskell | label | fields | null | 05/30/2010 14:43:37 | not a real question | creating instance of labeled fields data type
===
how do i instance a "labeled fields data type"?
data InputData = InputData { events :: [Event], newResources :: [Resource] }
=>
where myInputData = ???
| 1 |
4,164,037 | 11/12/2010 11:15:04 | 19,410 | 09/20/2008 00:07:45 | 15,741 | 882 | How do I read arbitrary bytes from a zlib stream? | I would like to read the output of a zlib stream's `inflate()` into a buffer one byte at a time, so that I can parse out single lines.
Is there a way to specify the number of bytes that `inflate()` returns, so that I can watch for newlines? | c | zlib | inflate | null | null | null | open | How do I read arbitrary bytes from a zlib stream?
===
I would like to read the output of a zlib stream's `inflate()` into a buffer one byte at a time, so that I can parse out single lines.
Is there a way to specify the number of bytes that `inflate()` returns, so that I can watch for newlines? | 0 |
2,851,280 | 05/17/2010 17:31:59 | 85,514 | 04/01/2009 06:31:35 | 1,728 | 61 | How can I get offline Doctrine 1.2 documentation | I need to have offline documentation for Doctrine 1.2. I just don't seem to find it anywhere, while I remember having seen something like that.
Who can give me any pointers? | doctrine1.2 | documentation | null | null | null | 04/30/2012 14:23:11 | not constructive | How can I get offline Doctrine 1.2 documentation
===
I need to have offline documentation for Doctrine 1.2. I just don't seem to find it anywhere, while I remember having seen something like that.
Who can give me any pointers? | 4 |
2,980,301 | 06/05/2010 12:22:13 | 359,185 | 06/05/2010 12:22:13 | 1 | 0 | Using strchr to build a string | I have the following:
LPSTR email // Has data in it already
LPSTR index=strchr(email,'@');
Now I want to Insert into a new string:
LPSTR username
the part of "email" from the beginning of the string to "index".
For example:
email="roel@emailI-ISP.com"
so username="roel" .
Is there a function to do it quick or do I need to build one?
Roel
| c++ | c | null | null | null | null | open | Using strchr to build a string
===
I have the following:
LPSTR email // Has data in it already
LPSTR index=strchr(email,'@');
Now I want to Insert into a new string:
LPSTR username
the part of "email" from the beginning of the string to "index".
For example:
email="roel@emailI-ISP.com"
so username="roel" .
Is there a function to do it quick or do I need to build one?
Roel
| 0 |
885,309 | 05/19/2009 22:18:10 | 38,180 | 11/17/2008 08:41:20 | 11 | 2 | Animate a round rectangle in ActionScript 3 | I'm trying to animate a round rectangle in ActionScript 3.
I want it to appear in the centre of the screen, and then grow out quickly in all four directions. Initial size should be about 30x10 pixels and final size about 300x100 pixels. The animation should take somewhere between 500 and 1000 milliseconds. I'd like the box to slightly outgrow these dimensions in the last few frames and then bounce back to the right size.
I'm using an elastic tween which seems to match my requirements, however I am unsure about the parameters. I know that elastic corresponds to an exponentially decaying sine wave, which seems about right, except that in the code example below, the bouncing happens in the beginning not at the end. Oh, and to be honest, the matrix class is mystifying.
package {
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.display.*;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.utils.setTimeout;
public class Scaling extends Sprite
{
public var mySprite:Sprite = new Sprite();
public var myTween:Tween;
public function Scaling()
{
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.align = StageAlign.TOP_LEFT;
mySprite.graphics.beginFill(0xF7F3DC);
mySprite.graphics.lineStyle(5, 0xD35F72);
mySprite.graphics.drawRoundRect(0, 0, 300, 100, 10, 10);
mySprite.graphics.endFill();
mySprite.x = 800 / 2;
mySprite.y = 600 / 2;
mySprite.width = 300;
mySprite.height = 100;
addChild(mySprite);
setTimeout(DoScale, 500);
}
public function DoScale():void {
var ptScalePoint:Point = new Point(mySprite.x + mySprite.width/2, mySprite.y + mySprite.height/2);
var o:Object = new Object();
o["scale"] = 0;
myTween = new Tween(o, "scale", Elastic.easeIn, 1, 1.5, 0.75, true);
myTween.addEventListener(TweenEvent.MOTION_CHANGE, function(evt:TweenEvent):void {
ScaleFromCenter(mySprite, o["scale"], o["scale"], ptScalePoint);
});
}
private function ScaleFromCenter(ob:*, sx:Number, sy:Number, ptScalePoint:Point):void {
var m:Matrix=ob.transform.matrix;
m.tx -= ptScalePoint.x;
m.ty -= ptScalePoint.y;
m.scale(sx, sy);
m.tx += ptScalePoint.x;
m.ty += ptScalePoint.y;
ob.transform.matrix = m;
}
}
}
| actionscript-3 | null | null | null | null | null | open | Animate a round rectangle in ActionScript 3
===
I'm trying to animate a round rectangle in ActionScript 3.
I want it to appear in the centre of the screen, and then grow out quickly in all four directions. Initial size should be about 30x10 pixels and final size about 300x100 pixels. The animation should take somewhere between 500 and 1000 milliseconds. I'd like the box to slightly outgrow these dimensions in the last few frames and then bounce back to the right size.
I'm using an elastic tween which seems to match my requirements, however I am unsure about the parameters. I know that elastic corresponds to an exponentially decaying sine wave, which seems about right, except that in the code example below, the bouncing happens in the beginning not at the end. Oh, and to be honest, the matrix class is mystifying.
package {
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
import flash.display.*;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.utils.setTimeout;
public class Scaling extends Sprite
{
public var mySprite:Sprite = new Sprite();
public var myTween:Tween;
public function Scaling()
{
this.stage.scaleMode = StageScaleMode.NO_SCALE;
this.stage.align = StageAlign.TOP_LEFT;
mySprite.graphics.beginFill(0xF7F3DC);
mySprite.graphics.lineStyle(5, 0xD35F72);
mySprite.graphics.drawRoundRect(0, 0, 300, 100, 10, 10);
mySprite.graphics.endFill();
mySprite.x = 800 / 2;
mySprite.y = 600 / 2;
mySprite.width = 300;
mySprite.height = 100;
addChild(mySprite);
setTimeout(DoScale, 500);
}
public function DoScale():void {
var ptScalePoint:Point = new Point(mySprite.x + mySprite.width/2, mySprite.y + mySprite.height/2);
var o:Object = new Object();
o["scale"] = 0;
myTween = new Tween(o, "scale", Elastic.easeIn, 1, 1.5, 0.75, true);
myTween.addEventListener(TweenEvent.MOTION_CHANGE, function(evt:TweenEvent):void {
ScaleFromCenter(mySprite, o["scale"], o["scale"], ptScalePoint);
});
}
private function ScaleFromCenter(ob:*, sx:Number, sy:Number, ptScalePoint:Point):void {
var m:Matrix=ob.transform.matrix;
m.tx -= ptScalePoint.x;
m.ty -= ptScalePoint.y;
m.scale(sx, sy);
m.tx += ptScalePoint.x;
m.ty += ptScalePoint.y;
ob.transform.matrix = m;
}
}
}
| 0 |
11,515,439 | 07/17/2012 03:00:03 | 843,828 | 07/14/2011 03:37:38 | 11 | 0 | How to download rtsp streaming media from youtube? | Does anyone know how to download rtsp streaming media from youtube?
such as this one: rtsp://v2.cache7.c.youtube.com/video.3gp?cid=0xc80658495af60617&fmt=18&user=android-device-test
I've tried many tools but none of them works.
| youtube | rtsp | null | null | null | 07/17/2012 07:17:50 | off topic | How to download rtsp streaming media from youtube?
===
Does anyone know how to download rtsp streaming media from youtube?
such as this one: rtsp://v2.cache7.c.youtube.com/video.3gp?cid=0xc80658495af60617&fmt=18&user=android-device-test
I've tried many tools but none of them works.
| 2 |
4,390,653 | 12/08/2010 17:53:54 | 368,537 | 06/16/2010 18:11:10 | 234 | 2 | SQL Server: Trace Flag 4135 | What is the Trace Flag 4135 in SQL Server and what is the purpose of this flage? Should it be enabled? How to enable it? | sql-server | sql-server-2005 | sql-server-2008 | null | null | null | open | SQL Server: Trace Flag 4135
===
What is the Trace Flag 4135 in SQL Server and what is the purpose of this flage? Should it be enabled? How to enable it? | 0 |
1,192,785 | 07/28/2009 08:50:16 | 68,287 | 02/19/2009 09:43:26 | 268 | 0 | Book on .Net Serialization? | Can anyone please recomend me a book on >net Serialization? | .net | null | null | null | null | 06/11/2012 08:28:54 | not constructive | Book on .Net Serialization?
===
Can anyone please recomend me a book on >net Serialization? | 4 |
5,684,092 | 04/16/2011 02:27:36 | 562,158 | 01/04/2011 06:14:57 | 27 | 0 | how to get multiple images animating from top to bottom of screen | In snow fall application, an image is animating from top to bottom of the screen. I want to know how multiple images animating from top to bottom.
can anyone suggest the sample code for this.
Thank You. | iphone | objective-c | null | null | null | 04/16/2011 19:17:28 | not a real question | how to get multiple images animating from top to bottom of screen
===
In snow fall application, an image is animating from top to bottom of the screen. I want to know how multiple images animating from top to bottom.
can anyone suggest the sample code for this.
Thank You. | 1 |
6,692,206 | 07/14/2011 11:05:43 | 590,254 | 01/26/2011 07:41:44 | 277 | 3 | Is MediaWiki viable for sensitive information? | I was under the impression that MediaWiki is due to its nature as "open for all Wiki platform" not tailored towards managing sensitive information.
I found some warnings about this on the MediaWiki FAQ and some user account extensions as:
> If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package. MediaWiki was not written to provide per-page access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We are not responsible for anything being leaked, leading to loss of funds or one's job.
Now a consultant of my boss tells him there is no problem with sensitive information at all. I would like to hear if he is right and I worry too much.
I suppose all problems would go away if we would use separate instances of MediaWiki for every user group with the same rights. | security | mediawiki | null | null | null | 07/15/2011 05:24:39 | off topic | Is MediaWiki viable for sensitive information?
===
I was under the impression that MediaWiki is due to its nature as "open for all Wiki platform" not tailored towards managing sensitive information.
I found some warnings about this on the MediaWiki FAQ and some user account extensions as:
> If you need per-page or partial page access restrictions, you are advised to install an appropriate content management package. MediaWiki was not written to provide per-page access restrictions, and almost all hacks or patches promising to add them will likely have flaws somewhere, which could lead to exposure of confidential data. We are not responsible for anything being leaked, leading to loss of funds or one's job.
Now a consultant of my boss tells him there is no problem with sensitive information at all. I would like to hear if he is right and I worry too much.
I suppose all problems would go away if we would use separate instances of MediaWiki for every user group with the same rights. | 2 |
8,073,576 | 11/10/2011 00:20:28 | 913,356 | 08/26/2011 04:31:20 | 3 | 0 | How to get rid of "Device busy" during reboot, redhat 5.1 without modifying rc.sysinit? | I have a samba mount located within /opt. I have a script in init.d called sysinit that is linked to in rc6.d. This gets called on a reboot (the first thing, I set it to K01sysinit) and it is supposed to unmount the /opt directory. However, on reboot I see that it is failing from the commands in the rc.sysinit file. When I manually run my sysinit script and then reboot, everything works fine. Am I running into some sort of race condition here where the rc.sysinit umount command is getting run before the other script is done unmounting /opt, or is something else going on? Or do I not understand how run levels work? I thought that what happened on a reboot is that the stuff from rc6.d is run first and then the unmounting from rc.sysinit occurs. | redhat | init | rc | umount | null | 11/19/2011 03:09:20 | off topic | How to get rid of "Device busy" during reboot, redhat 5.1 without modifying rc.sysinit?
===
I have a samba mount located within /opt. I have a script in init.d called sysinit that is linked to in rc6.d. This gets called on a reboot (the first thing, I set it to K01sysinit) and it is supposed to unmount the /opt directory. However, on reboot I see that it is failing from the commands in the rc.sysinit file. When I manually run my sysinit script and then reboot, everything works fine. Am I running into some sort of race condition here where the rc.sysinit umount command is getting run before the other script is done unmounting /opt, or is something else going on? Or do I not understand how run levels work? I thought that what happened on a reboot is that the stuff from rc6.d is run first and then the unmounting from rc.sysinit occurs. | 2 |
1,880,013 | 12/10/2009 10:13:10 | 132,754 | 07/03/2009 11:00:24 | 23 | 1 | SQL Full Text search on HTML/XML data | I have a sql full text catalog on a cms database (SQL 2005). The database holds the CMS page content within a ntext column which is part of the full text catalog. As expected the searching takes into account the xml tags within the page content so searching for "H1" returns all the pages with H1 tags.
Is it possible to apply filters within the full text search to only index data within the xml tags.
I can see it is possible for SQL full text search to index/search .html binary types or xml columns. However as you can the setup is slightly different to this.
Many Thanks,
Adam
| sql | full-text-search | full-text-indexing | sql-server | sql-server-2005 | null | open | SQL Full Text search on HTML/XML data
===
I have a sql full text catalog on a cms database (SQL 2005). The database holds the CMS page content within a ntext column which is part of the full text catalog. As expected the searching takes into account the xml tags within the page content so searching for "H1" returns all the pages with H1 tags.
Is it possible to apply filters within the full text search to only index data within the xml tags.
I can see it is possible for SQL full text search to index/search .html binary types or xml columns. However as you can the setup is slightly different to this.
Many Thanks,
Adam
| 0 |
9,708,668 | 03/14/2012 19:17:21 | 1,118,156 | 12/27/2011 19:14:25 | 1 | 0 | IOS app to view my webpage that uses flash | I have a website that uses flash for a training course, and I wanted to write a fairly simple iphone app to pull up my webpage www.<my site>.com/training.htm . I was wondering if using webkit is the best way to go about this, or if there are any other simple solutions. I am completely open to any language, I don't need to add anything complex to it- simplicity is the key. If you have any code examples that would be helpful. | iphone | ios | website | webkit | simplicity | 04/29/2012 12:46:25 | not a real question | IOS app to view my webpage that uses flash
===
I have a website that uses flash for a training course, and I wanted to write a fairly simple iphone app to pull up my webpage www.<my site>.com/training.htm . I was wondering if using webkit is the best way to go about this, or if there are any other simple solutions. I am completely open to any language, I don't need to add anything complex to it- simplicity is the key. If you have any code examples that would be helpful. | 1 |
2,021,556 | 01/07/2010 15:49:56 | 26,133 | 10/08/2008 13:10:27 | 1,016 | 55 | Examples of popular, commercial applications written in PHP? | I was just curious to see if I could get together a list of some popular, commercial applications written with the PHP language. I'm just curious what people have built using PHP and how well it seems to fit the application they've developed.
Some I know of are:
1. ModernBill
2. WHMCS
3. vBulletin
What else is out there? | php | null | null | null | null | 01/06/2012 15:40:49 | not constructive | Examples of popular, commercial applications written in PHP?
===
I was just curious to see if I could get together a list of some popular, commercial applications written with the PHP language. I'm just curious what people have built using PHP and how well it seems to fit the application they've developed.
Some I know of are:
1. ModernBill
2. WHMCS
3. vBulletin
What else is out there? | 4 |
9,379,091 | 02/21/2012 14:15:53 | 1,164,936 | 01/23/2012 12:25:15 | 1 | 0 | what is the best/recomended platform to create custom ROMs | Hi I was wondering what is the preferred OS when it comes to development. Ubuntu or OSX?
I have a mac and a linux machine but just curious as to what is the preferred these days.
Im going to be building a new machine soon and was wondering if I should buy Lion!
Kind Regards,
stoff | android | linux | osx | development | rom | 02/22/2012 14:39:00 | not constructive | what is the best/recomended platform to create custom ROMs
===
Hi I was wondering what is the preferred OS when it comes to development. Ubuntu or OSX?
I have a mac and a linux machine but just curious as to what is the preferred these days.
Im going to be building a new machine soon and was wondering if I should buy Lion!
Kind Regards,
stoff | 4 |
8,401,815 | 12/06/2011 14:51:43 | 1,083,719 | 12/06/2011 14:47:07 | 1 | 0 | Designing file processing application | I am developing a dialog based application using VC++/MFC.
The application is required to do following processing:
1. Read input files those has a Header(one per file), Metadata section(multiple in single file) and Data Sections(multiple in single file)
2. Based on the One Data sample per x seconds, generate missing Data Section records
E.g. The file contains Data Section have records for time T1, T5, T7 and T10 and Data sample rate is 1 then
The output file should contain generated records for T2,T3,T4 and T6 along with existing records.
3. All Header section info is required to be written to one INI file text format.
All Data Section records required to be written to separate binary file.
I am evaluating solution designs for it, considering below points:
A. Where to use threads ? One for reading, One for processing and one for Writing?
B. How to read input file? All file contents and retain in memory for processing? OR
Read it by block by block (to handle large size file as well)?
C. How to do processing? On the fly right after reading -> process -> write ? OR
Reade contents completely then processes it and then write.
In simple way I have to Read File -> Process data read -> and finally write it to different file format
Please give your valuable comments / design approaches for it. | algorithm | design | visual-c++ | file-io | mfc | 12/06/2011 19:23:57 | not constructive | Designing file processing application
===
I am developing a dialog based application using VC++/MFC.
The application is required to do following processing:
1. Read input files those has a Header(one per file), Metadata section(multiple in single file) and Data Sections(multiple in single file)
2. Based on the One Data sample per x seconds, generate missing Data Section records
E.g. The file contains Data Section have records for time T1, T5, T7 and T10 and Data sample rate is 1 then
The output file should contain generated records for T2,T3,T4 and T6 along with existing records.
3. All Header section info is required to be written to one INI file text format.
All Data Section records required to be written to separate binary file.
I am evaluating solution designs for it, considering below points:
A. Where to use threads ? One for reading, One for processing and one for Writing?
B. How to read input file? All file contents and retain in memory for processing? OR
Read it by block by block (to handle large size file as well)?
C. How to do processing? On the fly right after reading -> process -> write ? OR
Reade contents completely then processes it and then write.
In simple way I have to Read File -> Process data read -> and finally write it to different file format
Please give your valuable comments / design approaches for it. | 4 |
6,926,101 | 08/03/2011 11:59:49 | 871,551 | 07/31/2011 12:52:27 | 1 | 0 | command to create custom controls in dotnet 3.5 | i had been for interview, they asked me Few question .i could not get the answer for it, so i am blogging it out here
1: is there any tool/command to create a custom control
2: how do we create schema in wcf services
3: can you provide an good link for design patters in C# where i can go through. | c#-3.0 | null | null | null | null | 08/03/2011 17:07:04 | not a real question | command to create custom controls in dotnet 3.5
===
i had been for interview, they asked me Few question .i could not get the answer for it, so i am blogging it out here
1: is there any tool/command to create a custom control
2: how do we create schema in wcf services
3: can you provide an good link for design patters in C# where i can go through. | 1 |
7,411,752 | 09/14/2011 05:42:12 | 813,852 | 06/24/2011 09:54:34 | 140 | 4 | Programmatically Create PDF | I need to implement a feature that under a certain condition the "Save to PDF" Dialog shows up & the user can save their document to PDF. How is this achieved in Objective C, C or C++ i.e in Mac OS X? (anyone of them is good). | c++ | objective-c | c | pdf | printing | 09/19/2011 08:00:31 | not a real question | Programmatically Create PDF
===
I need to implement a feature that under a certain condition the "Save to PDF" Dialog shows up & the user can save their document to PDF. How is this achieved in Objective C, C or C++ i.e in Mac OS X? (anyone of them is good). | 1 |
1,214,796 | 07/31/2009 20:44:21 | 137,109 | 07/12/2009 19:59:33 | 205 | 0 | Dev-C++ include file paths FLTK(Fast Light Toolkit) | When I compile and run programs in Bloodshed I save everything into a a folder labeled C++ in my username folder. When I downloaded FLTK, extracted it to the C++ folder, then tried to run a program using header files from FLTK, it was unable to find the files. My guess is that when the compiler looks for the header files it's only looking in the C++ folder, and the FLTK header files are embedded in folders that are inside of the C++ folder.
I googled around for a way to somehow have file paths that include looks into when it looks for the specified header file, but I couldn't find anything. Does anyone with experience using Bloodshed know how to do this? | compiler | c++ | null | null | null | null | open | Dev-C++ include file paths FLTK(Fast Light Toolkit)
===
When I compile and run programs in Bloodshed I save everything into a a folder labeled C++ in my username folder. When I downloaded FLTK, extracted it to the C++ folder, then tried to run a program using header files from FLTK, it was unable to find the files. My guess is that when the compiler looks for the header files it's only looking in the C++ folder, and the FLTK header files are embedded in folders that are inside of the C++ folder.
I googled around for a way to somehow have file paths that include looks into when it looks for the specified header file, but I couldn't find anything. Does anyone with experience using Bloodshed know how to do this? | 0 |
7,037,529 | 08/12/2011 08:33:55 | 656,963 | 03/12/2011 21:04:10 | 406 | 2 | Change a JTable's Look and Feel | I have a JTable and need to change some of it's properties, such as it's Highlight colour.
[This website][1] indicates there are fields in the table such as "highlight" and "light".
![enter image description here][2]
I can't find them anywhere. When you create an instance of a JTable, nothing involving "Highlight" or "light" show up in intellisense. (However some methods such as table.setFont() do show up).
I did however notice `table.setUI();` but I don't know how to use it, or if it has anything to do with this.
[1]: http://www.java2s.com/Tutorial/Java/0240__Swing/JTableLookandFeel.htm
[2]: http://i.stack.imgur.com/5lCGX.png
What I exactly am looking for is to make a row change it's colour when you hover the mouse over it, I'm not sure if `Highlight` will do this or if I will have to go the long way by implementing the mouseListener. I still want to be able to change other L&F settings though. | java | swing | jtable | null | null | null | open | Change a JTable's Look and Feel
===
I have a JTable and need to change some of it's properties, such as it's Highlight colour.
[This website][1] indicates there are fields in the table such as "highlight" and "light".
![enter image description here][2]
I can't find them anywhere. When you create an instance of a JTable, nothing involving "Highlight" or "light" show up in intellisense. (However some methods such as table.setFont() do show up).
I did however notice `table.setUI();` but I don't know how to use it, or if it has anything to do with this.
[1]: http://www.java2s.com/Tutorial/Java/0240__Swing/JTableLookandFeel.htm
[2]: http://i.stack.imgur.com/5lCGX.png
What I exactly am looking for is to make a row change it's colour when you hover the mouse over it, I'm not sure if `Highlight` will do this or if I will have to go the long way by implementing the mouseListener. I still want to be able to change other L&F settings though. | 0 |
7,657,648 | 10/05/2011 06:48:21 | 767,581 | 05/24/2011 10:57:09 | 119 | 6 | FileNotFoundException in Silverlight for WP7 | **File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.**
I'm pretty sure its something to do with some file not properly installed, seeing how this exception occurs on various occasions. It might be a file with exception names in it.
Does anybody know if I can reinstall it or something like that?
It occurs in a place where no disassembly is available.
**Callstack Location**
mscorlib.dll!System.ThrowHelper.throwVersion37CompatException(System.ExceptionType newEType = FileNotFoundException, string newString = "File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.", System.ExceptionType oldEType = IOException, string oldString = "File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.") + 0x19 bytes
**Full Exception Details**
System.IO.FileNotFoundException occurred
Message=File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.
StackTrace:
at System.ThrowHelper.throwVersion37CompatException(ExceptionType newEType, String newString, ExceptionType oldEType, String oldString)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Windows.Resx..ctor()
at System.Windows.Resx.GetLoader()
at System.Windows.Resx.GetStringHelper(String name)
at System.Windows.Resx.GetString(String name)
at System.Windows.PropertyAccessPathStep.ConnectToPropertyInSource(Boolean isSourceCollectionViewCurrentItem)
at System.Windows.PropertyAccessPathStep.ConnectToProperty()
at System.Windows.PropertyAccessPathStep.ReConnect(Object newSource)
at System.Windows.PropertyPathListener.ReConnect(Object source)
at System.Windows.Data.BindingExpression.SourceAcquired()
at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)
at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)
at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent, Byte bCanCreateParent)
at MS.Internal.XcpImports.Measure_WithDesiredSizeNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.UIElement_Measure_WithDesiredSize(UIElement element, Size availableSize)
at System.Windows.UIElement.Measure_WithDesiredSize(Size availableSize)
at System.Windows.Controls.VirtualizingStackPanel.MeasureChild(UIElement child, Size layoutSlotSize)
at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight)
at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at Microsoft.Phone.Controls.PhoneApplicationFrame.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
| c# | visual-studio | silverlight | exception | windows-phone-7 | null | open | FileNotFoundException in Silverlight for WP7
===
**File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.**
I'm pretty sure its something to do with some file not properly installed, seeing how this exception occurs on various occasions. It might be a file with exception names in it.
Does anybody know if I can reinstall it or something like that?
It occurs in a place where no disassembly is available.
**Callstack Location**
mscorlib.dll!System.ThrowHelper.throwVersion37CompatException(System.ExceptionType newEType = FileNotFoundException, string newString = "File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.", System.ExceptionType oldEType = IOException, string oldString = "File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.") + 0x19 bytes
**Full Exception Details**
System.IO.FileNotFoundException occurred
Message=File or assembly name 'System.Windows.debug.resources, Version=2.0.5.0, Culture=en-US, PublicKeyToken=7cec85d7bea7798e', or one of its dependencies, was not found.
StackTrace:
at System.ThrowHelper.throwVersion37CompatException(ExceptionType newEType, String newString, ExceptionType oldEType, String oldString)
at System.Reflection.Assembly.Load(String assemblyString)
at System.Windows.Resx..ctor()
at System.Windows.Resx.GetLoader()
at System.Windows.Resx.GetStringHelper(String name)
at System.Windows.Resx.GetString(String name)
at System.Windows.PropertyAccessPathStep.ConnectToPropertyInSource(Boolean isSourceCollectionViewCurrentItem)
at System.Windows.PropertyAccessPathStep.ConnectToProperty()
at System.Windows.PropertyAccessPathStep.ReConnect(Object newSource)
at System.Windows.PropertyPathListener.ReConnect(Object source)
at System.Windows.Data.BindingExpression.SourceAcquired()
at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)
at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)
at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)
at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)
at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent, Byte bCanCreateParent)
at MS.Internal.XcpImports.Measure_WithDesiredSizeNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.UIElement_Measure_WithDesiredSize(UIElement element, Size availableSize)
at System.Windows.UIElement.Measure_WithDesiredSize(Size availableSize)
at System.Windows.Controls.VirtualizingStackPanel.MeasureChild(UIElement child, Size layoutSlotSize)
at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureNative(IntPtr element, Single inWidth, Single inHeight)
at MS.Internal.XcpImports.UIElement_Measure(UIElement element, Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
at MS.Internal.XcpImports.MeasureOverrideNative(IntPtr element, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)
at MS.Internal.XcpImports.FrameworkElement_MeasureOverride(FrameworkElement element, Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(Size availableSize)
at Microsoft.Phone.Controls.PhoneApplicationFrame.MeasureOverride(Size availableSize)
at System.Windows.FrameworkElement.MeasureOverride(IntPtr nativeTarget, Double inWidth, Double inHeight, Double& outWidth, Double& outHeight)
| 0 |
7,184,621 | 08/25/2011 02:52:34 | 541,686 | 12/14/2010 08:54:07 | 22,371 | 675 | Why can't C++ infer the template type? | Why can't the compiler figure out these template parameters? Is there a way to make it do so?
(I'm using Visual Studio 2010.)
template<typename T, typename TFunc>
void call(TFunc func) { func(T()); }
void myfunc(void *) { }
int main() { call(myfunc); }
| c++ | templates | visual-c++ | null | null | null | open | Why can't C++ infer the template type?
===
Why can't the compiler figure out these template parameters? Is there a way to make it do so?
(I'm using Visual Studio 2010.)
template<typename T, typename TFunc>
void call(TFunc func) { func(T()); }
void myfunc(void *) { }
int main() { call(myfunc); }
| 0 |
8,932,802 | 01/19/2012 20:28:27 | 869,721 | 07/29/2011 16:20:45 | 43 | 0 | Handling TransactionTimeout Exception in EJB | I have an EJB method called methodA() calling another EJB method called methodB() which starts a new container managed transaction. in methodB, I am forcing a transaction timeout which is rightly caught by caughtB and not propagated to methodA. But I am surprised that methodA receives the Exception. Am I missing soemthing here?
methodA() {
try {
methodB();
System.out.println("print me!");
} catch(Exception e) {
System.out.println("shouldn't be here");
}
}
@TransactionTimeout(5) //5 sec timeout
methodB() {
try {
Thread.sleep(6000);
} catch(Throwable t) {
System.out.println("Eating all the Exception..");
}
}
The first method should have never caught the exception (EJBTransactionTimeoutException) because the methodB have eaten it. I am seeing the output of "Shouldn't be here" instead of "print me!". It makes me wonder if container throws yet another exception of EJBTransactionTimeoutException immediately after methodB is completed although it has already thrown Timeout exception? | java | exception-handling | transactions | jboss | ejb | null | open | Handling TransactionTimeout Exception in EJB
===
I have an EJB method called methodA() calling another EJB method called methodB() which starts a new container managed transaction. in methodB, I am forcing a transaction timeout which is rightly caught by caughtB and not propagated to methodA. But I am surprised that methodA receives the Exception. Am I missing soemthing here?
methodA() {
try {
methodB();
System.out.println("print me!");
} catch(Exception e) {
System.out.println("shouldn't be here");
}
}
@TransactionTimeout(5) //5 sec timeout
methodB() {
try {
Thread.sleep(6000);
} catch(Throwable t) {
System.out.println("Eating all the Exception..");
}
}
The first method should have never caught the exception (EJBTransactionTimeoutException) because the methodB have eaten it. I am seeing the output of "Shouldn't be here" instead of "print me!". It makes me wonder if container throws yet another exception of EJBTransactionTimeoutException immediately after methodB is completed although it has already thrown Timeout exception? | 0 |
5,248,387 | 03/09/2011 15:55:40 | 453,732 | 09/21/2010 09:36:03 | 1 | 0 | jQuery nextUntil strangeness...WTF?! | Am I missing something or is this method fubar? I couldn't get a script to select properly, so I stripped everything out except jQuery 1.5 and tried this as a test:
HTML:
<a href="test.php" id="test" class="notActive">test active</a>
<p><a href="ui.php#content" class="ajax" data-target="loadid">Link 1</a></p>
<p><a href="widgets.html" class="ajax" data-target="loadid">Link 2</a></p>
<div id="loadid" class="right bgGreen pad">test;</div>
jQuery:
var z = $('#test').nextUntil('div');
z.css({'background-color' : '#000000' });
console.log(z.html());
Returns:
<a href="test.php" id="test" class="notActive">test active</a>
<p style="background-color: #000000">
<a href="ui.php#content" class="ajax" data-target="loadid">
</p>
<p style="background-color: #000000">
<a href="widgets.html" class="ajax" data-target="loadid">
</p>
<div id="loadid" class="right bgGreen pad">
LOG: <\a href="ui.php#content" class="ajax" data-target="loadid">Link 1</a>
Also, changing the selector from 'div' to 'p' results null... any ideas?
| jquery | jquery-selectors | null | null | null | null | open | jQuery nextUntil strangeness...WTF?!
===
Am I missing something or is this method fubar? I couldn't get a script to select properly, so I stripped everything out except jQuery 1.5 and tried this as a test:
HTML:
<a href="test.php" id="test" class="notActive">test active</a>
<p><a href="ui.php#content" class="ajax" data-target="loadid">Link 1</a></p>
<p><a href="widgets.html" class="ajax" data-target="loadid">Link 2</a></p>
<div id="loadid" class="right bgGreen pad">test;</div>
jQuery:
var z = $('#test').nextUntil('div');
z.css({'background-color' : '#000000' });
console.log(z.html());
Returns:
<a href="test.php" id="test" class="notActive">test active</a>
<p style="background-color: #000000">
<a href="ui.php#content" class="ajax" data-target="loadid">
</p>
<p style="background-color: #000000">
<a href="widgets.html" class="ajax" data-target="loadid">
</p>
<div id="loadid" class="right bgGreen pad">
LOG: <\a href="ui.php#content" class="ajax" data-target="loadid">Link 1</a>
Also, changing the selector from 'div' to 'p' results null... any ideas?
| 0 |
9,904,579 | 03/28/2012 09:24:10 | 1,280,291 | 03/20/2012 07:48:54 | 1 | 0 | how to switch between views by tap in sencha touch 2.0.0 | i am following sencha touch 2.0.0 MVC architecture. there are a tab panel in my main.js file, and another tab panel (y) as a xtype of my main panel.
now i want to switch tabs of my another panel (y) dynamically at run time.
how can i achieve this .. please reply me as soon as possible. | sencha-touch-2 | null | null | null | null | null | open | how to switch between views by tap in sencha touch 2.0.0
===
i am following sencha touch 2.0.0 MVC architecture. there are a tab panel in my main.js file, and another tab panel (y) as a xtype of my main panel.
now i want to switch tabs of my another panel (y) dynamically at run time.
how can i achieve this .. please reply me as soon as possible. | 0 |
10,237,399 | 04/19/2012 21:54:46 | 1,097,837 | 12/14/2011 12:57:07 | 1 | 0 | Word Semantic-Similiarity [distance measures] webservices? | Is there any web-service that provides a word semantic-similarty measurements? I'm aware of [Disco][1], but i prefer if it's a web-service with an ongoing growing base(and it would be most helpful if you had tried it in ur projects). And I'm also aware of WordNet-based algorithm, but Still installing it and managing it as part of the project resources brings heavy weight. Thanx in advance.
[1]: http://www.linguatools.de/disco/disco_en.html | semantic | similarity | text-mining | wordnet | null | null | open | Word Semantic-Similiarity [distance measures] webservices?
===
Is there any web-service that provides a word semantic-similarty measurements? I'm aware of [Disco][1], but i prefer if it's a web-service with an ongoing growing base(and it would be most helpful if you had tried it in ur projects). And I'm also aware of WordNet-based algorithm, but Still installing it and managing it as part of the project resources brings heavy weight. Thanx in advance.
[1]: http://www.linguatools.de/disco/disco_en.html | 0 |
1,475,743 | 09/25/2009 06:32:37 | 146,128 | 07/28/2009 03:35:27 | 96 | 1 | Secure swf using flash obfuscator? | In order to protect swf files, prevent decompile and reading the action script CODE, now I am looking for best/popular(being used by big companies) flash obfuscator. Could you recommend some of the best flash obfuscators that you know?
(I am not sure if its an appropriate question to ask here. But its very important for action script programmers, hope you guys can help) | code-obfuscation | flash | null | null | null | 10/19/2011 13:48:21 | not constructive | Secure swf using flash obfuscator?
===
In order to protect swf files, prevent decompile and reading the action script CODE, now I am looking for best/popular(being used by big companies) flash obfuscator. Could you recommend some of the best flash obfuscators that you know?
(I am not sure if its an appropriate question to ask here. But its very important for action script programmers, hope you guys can help) | 4 |
10,906,083 | 06/05/2012 22:47:37 | 836,059 | 07/08/2011 20:40:11 | 26 | 0 | capistrano not deploying to localhost | I am trying to set up Capistrano on my public server (mywebserver) that I already have my Rails3 installation, my database (Postgres) server, and using Apache2 as the web server. My repository SVN is in a different development server (mysvnserver). My config/deploy.rb looks like this:
set :application, "myapp"
set :location, "mywebserver"
set :domain, "apps.mydomain.com"
set :user, "app_admin"
set :host, "localhost"
set :repository, "svn+ssh://app_admin@192.168.XXX.XXX/home/svn/myapp"
set :svn_username, "svn_admin"
set :svn_password, "password"
set :use_sudo, false
set :scm, :subversion
default_run_options[:pty] = true
role :web, location
role :app, location
role :db, location, :primary => true
set :deploy_to, "/home/app_admin/#{application}"
set :deploy_via, :checkout
ssh_options[:forward_agent] = true
While I run `cap deploy:setup` from my public server, the code runs properly without any error. However, it deploys in the development server (the server that has SVN repo), but not in my public server (localhost). I am not getting any errors in deployment but it is not deploying in public server. Any suggestions? Thanks in advance!
| ruby-on-rails | apache | svn | capistrano | null | null | open | capistrano not deploying to localhost
===
I am trying to set up Capistrano on my public server (mywebserver) that I already have my Rails3 installation, my database (Postgres) server, and using Apache2 as the web server. My repository SVN is in a different development server (mysvnserver). My config/deploy.rb looks like this:
set :application, "myapp"
set :location, "mywebserver"
set :domain, "apps.mydomain.com"
set :user, "app_admin"
set :host, "localhost"
set :repository, "svn+ssh://app_admin@192.168.XXX.XXX/home/svn/myapp"
set :svn_username, "svn_admin"
set :svn_password, "password"
set :use_sudo, false
set :scm, :subversion
default_run_options[:pty] = true
role :web, location
role :app, location
role :db, location, :primary => true
set :deploy_to, "/home/app_admin/#{application}"
set :deploy_via, :checkout
ssh_options[:forward_agent] = true
While I run `cap deploy:setup` from my public server, the code runs properly without any error. However, it deploys in the development server (the server that has SVN repo), but not in my public server (localhost). I am not getting any errors in deployment but it is not deploying in public server. Any suggestions? Thanks in advance!
| 0 |
7,155,049 | 08/23/2011 00:20:04 | 471,303 | 10/10/2010 03:22:51 | 304 | 9 | How can I hide the save panel when I'm using a NSDocument | So I'm trying to play around with WebKit and create my own browser. However, now I'm kind of stuck where I can't hide the save panel when I try to close my window. I can't find any method in the NSDocument reference that hides the panel. Does anyone know how I can solve that? Thanks. | objective-c | cocoa | nsdocument | nssavepanel | null | null | open | How can I hide the save panel when I'm using a NSDocument
===
So I'm trying to play around with WebKit and create my own browser. However, now I'm kind of stuck where I can't hide the save panel when I try to close my window. I can't find any method in the NSDocument reference that hides the panel. Does anyone know how I can solve that? Thanks. | 0 |
7,829,615 | 10/19/2011 23:51:41 | 815,767 | 06/25/2011 23:54:04 | 388 | 0 | UITableView has problems scrolling after upgrading to iOS5 | I just noticed now that I've updated my app to iOS 5, that when my tableview has fewer cells than fit the screen, it doesn't scroll, but if I click a cell to go to detail view, and then pop back to the table, it scrolls fine. Also, if I initially have more cells than fit on the screen, it scrolls fine from the start.
Any ideas? | iphone | objective-c | uitableview | ios5 | null | null | open | UITableView has problems scrolling after upgrading to iOS5
===
I just noticed now that I've updated my app to iOS 5, that when my tableview has fewer cells than fit the screen, it doesn't scroll, but if I click a cell to go to detail view, and then pop back to the table, it scrolls fine. Also, if I initially have more cells than fit on the screen, it scrolls fine from the start.
Any ideas? | 0 |
3,952,801 | 10/17/2010 10:16:01 | 477,804 | 03/08/2010 05:50:07 | 24 | 4 | which is faster views or stored procedure? asp.net sql server | i want to know whether views or stored procedures are faster. i am developing application in asp.net with sql server. Which one should i use for good performance of asp.net application.
Thanks | views | null | null | null | null | 10/17/2010 11:54:49 | not a real question | which is faster views or stored procedure? asp.net sql server
===
i want to know whether views or stored procedures are faster. i am developing application in asp.net with sql server. Which one should i use for good performance of asp.net application.
Thanks | 1 |
9,167,350 | 02/06/2012 21:13:54 | 1,090,206 | 12/09/2011 17:19:53 | 358 | 45 | Using buttons in DataTemplate for DataGrid for Action | Ok so here's what I got, as example.
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<HyperlinkButton Content="Delete" Visibility="{Binding Priority, Converter={StaticResource FDPriorityToVisibilityConverter}}" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cal:ActionMessage MethodName="DeleteRule">
<cal:Parameter Value="{Binding Id}"/>
</cal:ActionMessage>
</i:EventTrigger>
</i:Interaction.Triggers>
</HyperlinkButton>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
What I want to do is replace the HyperlinkButton control with a Button (Essentially just deleting "Hyperlink" from the tag ), but it doesnt respect the eventtrigger when I do that. So when clicked it just doesnt do anything. I figured I could maybe solve this with replacing cal:ActionMessage with EventToCommand but I must not be implementing correctly.
Short version of question, can someone shed some light on how I can get the functionality the existing HyperlinkButton accomplishes, but with a button control so I can give it an icon instead of just text that says Delete? Thanks for any insight! | silverlight | xaml | datagrid | datatemplate | eventtrigger | null | open | Using buttons in DataTemplate for DataGrid for Action
===
Ok so here's what I got, as example.
<sdk:DataGridTemplateColumn>
<sdk:DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<HyperlinkButton Content="Delete" Visibility="{Binding Priority, Converter={StaticResource FDPriorityToVisibilityConverter}}" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cal:ActionMessage MethodName="DeleteRule">
<cal:Parameter Value="{Binding Id}"/>
</cal:ActionMessage>
</i:EventTrigger>
</i:Interaction.Triggers>
</HyperlinkButton>
</DataTemplate>
</sdk:DataGridTemplateColumn.CellTemplate>
</sdk:DataGridTemplateColumn>
What I want to do is replace the HyperlinkButton control with a Button (Essentially just deleting "Hyperlink" from the tag ), but it doesnt respect the eventtrigger when I do that. So when clicked it just doesnt do anything. I figured I could maybe solve this with replacing cal:ActionMessage with EventToCommand but I must not be implementing correctly.
Short version of question, can someone shed some light on how I can get the functionality the existing HyperlinkButton accomplishes, but with a button control so I can give it an icon instead of just text that says Delete? Thanks for any insight! | 0 |
10,160,248 | 04/15/2012 07:19:00 | 1,334,176 | 04/15/2012 06:15:44 | 1 | 0 | specific combine two text files with powershell | I have two text files with data.
First text file contains a big list of fullpaths to my files.
d:\cat\cat1.txt
d:\test\file1-1.txt
d:\test\file1-2.txt
....
d:\test\file1-N.txt
Second text file contains a short list of fullpath to my \files
d:\cat\file\cat2.txt
d:\test\file2-1.txt
d:\test\file2-2.txt
I need third file which contains
d:\test\file1-1.txt
d:\test\file1-2.txt
d:\test\file2-1.txt
d:\test\file1-3.txt
d:\test\file1-4.txt
d:\test\file2-2.txt
d:\test\file1-5.txt
d:\test\file1-6.txt
d:\test\file2-1.txt
Thx for help.
| powershell | combine | null | null | null | null | open | specific combine two text files with powershell
===
I have two text files with data.
First text file contains a big list of fullpaths to my files.
d:\cat\cat1.txt
d:\test\file1-1.txt
d:\test\file1-2.txt
....
d:\test\file1-N.txt
Second text file contains a short list of fullpath to my \files
d:\cat\file\cat2.txt
d:\test\file2-1.txt
d:\test\file2-2.txt
I need third file which contains
d:\test\file1-1.txt
d:\test\file1-2.txt
d:\test\file2-1.txt
d:\test\file1-3.txt
d:\test\file1-4.txt
d:\test\file2-2.txt
d:\test\file1-5.txt
d:\test\file1-6.txt
d:\test\file2-1.txt
Thx for help.
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.