PostId
int64 4
11.8M
| PostCreationDate
stringlengths 19
19
| OwnerUserId
int64 1
1.57M
| OwnerCreationDate
stringlengths 10
19
| ReputationAtPostCreation
int64 -55
461k
| OwnerUndeletedAnswerCountAtPostTime
int64 0
21.5k
| Title
stringlengths 3
250
| BodyMarkdown
stringlengths 5
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 32
30.1k
| OpenStatus_id
int64 0
4
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11,400,915 | 07/09/2012 18:26:23 | 355,281 | 06/01/2010 10:16:33 | 439 | 30 | how to set a default 'selected value' on a :collection dropdown/select textfield? | Im trying to make a certain value the default selected one, in a drop down/select textfield. Ive have tried numerous options to no avail. Who knows how to set the default one based on a value from the Profile model?
= f.input_field :state_id,
:label => "Your state",
:collection => DataState.all,
:default => [DataState.where(:id => @user.profile.state_id)],
:style => "width: 110px !important"
Im using simple_form
| ruby-on-rails | ruby-on-rails-3 | forms | collections | simple-form | null | open | how to set a default 'selected value' on a :collection dropdown/select textfield?
===
Im trying to make a certain value the default selected one, in a drop down/select textfield. Ive have tried numerous options to no avail. Who knows how to set the default one based on a value from the Profile model?
= f.input_field :state_id,
:label => "Your state",
:collection => DataState.all,
:default => [DataState.where(:id => @user.profile.state_id)],
:style => "width: 110px !important"
Im using simple_form
| 0 |
11,401,381 | 07/09/2012 19:01:15 | 1,512,865 | 07/09/2012 18:47:57 | 1 | 0 | Creating a batch file to copy, and move… | This sounds easy, until I explain the files are scattered in multiple subdirectories. Example;
\\server1\DIR1\
\\server1\DIR1\SUB1
\\server1\DIR1\SUB2
\\server1\DIR1\SUB3
And on and on…
I need to first copy all Adobe files (in those sub directories) to a folder called \\server2\import. I don’t want the subfolders to follow. I need all the files to be in the root of “import”.
Then I want to move all the \\server1\DIR1\SUB* to \\server2\finish.
This should be easy but I can’t get this to work. Any help would be appreciated.
BTW - I'm using Windows XP | file | for-loop | copy | null | null | null | open | Creating a batch file to copy, and move…
===
This sounds easy, until I explain the files are scattered in multiple subdirectories. Example;
\\server1\DIR1\
\\server1\DIR1\SUB1
\\server1\DIR1\SUB2
\\server1\DIR1\SUB3
And on and on…
I need to first copy all Adobe files (in those sub directories) to a folder called \\server2\import. I don’t want the subfolders to follow. I need all the files to be in the root of “import”.
Then I want to move all the \\server1\DIR1\SUB* to \\server2\finish.
This should be easy but I can’t get this to work. Any help would be appreciated.
BTW - I'm using Windows XP | 0 |
11,401,385 | 07/09/2012 19:01:47 | 1,475,765 | 06/22/2012 19:29:31 | 44 | 2 | Calling Method in Android | I am trying to call a method I have written. It compiles except for one line...
public class http extends Activity {
httpMethod(); //will not compile
public void httpMethod(){
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://site/api/");
try {
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("apikey", "6899eyukglhkfd67654"));
nameValuePairs.add(new BasicNameValuePair("method", "ipq"));
nameValuePairs.add(new BasicNameValuePair("ip", "65.82.126.103"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);
String test = "hello";
TextView myTextView = (TextView) findViewById(R.id.myTextView);
myTextView.setText(test);
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}
}
}
I'm not the best java guy, but I would think calling the method like so would get a response. "Hello" is not displayed however...
How do I properly call the method? | java | android | null | null | null | null | open | Calling Method in Android
===
I am trying to call a method I have written. It compiles except for one line...
public class http extends Activity {
httpMethod(); //will not compile
public void httpMethod(){
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://site/api/");
try {
// Add your data
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);
nameValuePairs.add(new BasicNameValuePair("apikey", "6899eyukglhkfd67654"));
nameValuePairs.add(new BasicNameValuePair("method", "ipq"));
nameValuePairs.add(new BasicNameValuePair("ip", "65.82.126.103"));
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
// Execute HTTP Post Request
HttpResponse response = httpclient.execute(httppost);
String test = "hello";
TextView myTextView = (TextView) findViewById(R.id.myTextView);
myTextView.setText(test);
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
} catch (IOException e) {
// TODO Auto-generated catch block
}
}
}
I'm not the best java guy, but I would think calling the method like so would get a response. "Hello" is not displayed however...
How do I properly call the method? | 0 |
11,401,386 | 07/09/2012 19:01:48 | 112,381 | 05/26/2009 05:08:02 | 713 | 43 | Preload & Cache Images then Delete Older Images from Cache |
I'm building an Android app that displays a series of images.
I want to preload the images in the background and put them in the cache.
When a user sees an image, there is no need to continue caching the images since the user cannot go back to it so I want to remove them from the cache.
Can anybody point me to web sites related to this?
Thanks.
| android | null | null | null | null | null | open | Preload & Cache Images then Delete Older Images from Cache
===
I'm building an Android app that displays a series of images.
I want to preload the images in the background and put them in the cache.
When a user sees an image, there is no need to continue caching the images since the user cannot go back to it so I want to remove them from the cache.
Can anybody point me to web sites related to this?
Thanks.
| 0 |
11,197,693 | 06/25/2012 21:34:22 | 451,383 | 09/18/2010 12:53:25 | 731 | 48 | Is the order of webrequest Headers important? | I'm making a POST request to upload a picture to a website.
In the page, there is one `FileUpload` and one `input` `(textBox)` and in fiddler I found out that the page is sending some data using Multipart Post request mode `(Content Disposition: multipart-formdata;)`
Everything seems to be OK, coz in fiddler everything is the same about what my app is posting and what the page is sending... Just not about headers order...
My question is that is it really important to put headers in a right order? and if yes, how can I do it? (as we are just setting some properties in request, there is no where to set the order...)
thanks for any advise... | httpwebrequest | http-status-code-500 | http-request | http-error | post-request | null | open | Is the order of webrequest Headers important?
===
I'm making a POST request to upload a picture to a website.
In the page, there is one `FileUpload` and one `input` `(textBox)` and in fiddler I found out that the page is sending some data using Multipart Post request mode `(Content Disposition: multipart-formdata;)`
Everything seems to be OK, coz in fiddler everything is the same about what my app is posting and what the page is sending... Just not about headers order...
My question is that is it really important to put headers in a right order? and if yes, how can I do it? (as we are just setting some properties in request, there is no where to set the order...)
thanks for any advise... | 0 |
11,197,694 | 06/25/2012 21:34:25 | 1,444,754 | 06/08/2012 14:28:11 | 15 | 0 | How can I saturate the color in gplots heatmap.2 by defining a range (e.g. -3 to 3)? | I have a table for gplots heatmap.2 with values ranging from -10 to 5. When I use heatmap.2 as follows, most of the values between -3 to 3 are displayed as sort of "black". But this is the range I would like to see differences (e.g. between 1 and 2). Is there a way I can saturate the heatmap color at -3 to 3, and magnify the difference in between? e.g. treating any numbers that are <-3, or >3 as -3, and 3, respectively. Thanks in advance.
heatmap.2(exprs(eset), col = greenred(100), scale="row", max(exprs(eset)) = "3",
key=TRUE, symkey=FALSE, density.info="none", trace="none", cexRow=0.9, cexCol=0.9)
| r | colors | range | heatmap | null | null | open | How can I saturate the color in gplots heatmap.2 by defining a range (e.g. -3 to 3)?
===
I have a table for gplots heatmap.2 with values ranging from -10 to 5. When I use heatmap.2 as follows, most of the values between -3 to 3 are displayed as sort of "black". But this is the range I would like to see differences (e.g. between 1 and 2). Is there a way I can saturate the heatmap color at -3 to 3, and magnify the difference in between? e.g. treating any numbers that are <-3, or >3 as -3, and 3, respectively. Thanks in advance.
heatmap.2(exprs(eset), col = greenred(100), scale="row", max(exprs(eset)) = "3",
key=TRUE, symkey=FALSE, density.info="none", trace="none", cexRow=0.9, cexCol=0.9)
| 0 |
11,401,390 | 07/09/2012 19:02:09 | 468,312 | 10/06/2010 18:10:45 | 1,410 | 12 | php returning FALSE from private function in another function | In my Codeigniter controller have the following private function which validates file uploads.
private function avatar_file_validation()
{
$config['upload_path'] = './uploads/avatars/';
$config['allowed_types'] = 'jpg|png';
$config['overwrite'] = TRUE; //overwrite user avatar
$config['max_size'] = '800'; //in KB
$this->load->library('upload', $config);
if (! $this->upload->do_upload('avatar_upload'))
{
$error_data = array('error' => $this->upload->display_errors());
$this->avatar_view($error_data); //loads view
return FALSE;
}
}
if an error occurs in uploading I want to stop this function from continuing
function upload_avatar()
{
//some code
if($_FILES['entry_upload']['error'] !== 4) //if file added to file field
{
$this->avatar_file_validation(); //if returns FALSE stop code
}
//code continues: adds data to database, redirects
}
However the function continues even when returning false. It works only when I use the entire code in 1 function but I need to separate them as I'll be using the upload validation in multiple functions. What am I doing wrong here? | php | function | codeigniter | null | null | null | open | php returning FALSE from private function in another function
===
In my Codeigniter controller have the following private function which validates file uploads.
private function avatar_file_validation()
{
$config['upload_path'] = './uploads/avatars/';
$config['allowed_types'] = 'jpg|png';
$config['overwrite'] = TRUE; //overwrite user avatar
$config['max_size'] = '800'; //in KB
$this->load->library('upload', $config);
if (! $this->upload->do_upload('avatar_upload'))
{
$error_data = array('error' => $this->upload->display_errors());
$this->avatar_view($error_data); //loads view
return FALSE;
}
}
if an error occurs in uploading I want to stop this function from continuing
function upload_avatar()
{
//some code
if($_FILES['entry_upload']['error'] !== 4) //if file added to file field
{
$this->avatar_file_validation(); //if returns FALSE stop code
}
//code continues: adds data to database, redirects
}
However the function continues even when returning false. It works only when I use the entire code in 1 function but I need to separate them as I'll be using the upload validation in multiple functions. What am I doing wrong here? | 0 |
11,349,900 | 07/05/2012 17:59:12 | 1,504,757 | 07/05/2012 17:28:30 | 1 | 0 | PHP include function used before codeigniter class changes the view loading order | Ok, so my code looks like this:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("/application/controllers/base/genericPageC.php");
class TutorialsC extends GenericPageC{
function __construct(){
parent::__construct();
}
protected function loadPage($args){
..................
}
}
/* End of file tutorialsC.php */
/* Location: ./application/controllers/pages/tutorialsC.php */
The require_once statement is present so i can have my inheritance.
Now, when i didn't have the require_once statement and all my code was in a single mammoth bad formatted controller, everything worked fine. As soon as i added the require_once, though, my header.php view, in which i have all the scripts and css added is loaded inside the BODY tag, instead of the head tag. That causes minor, but annoying effects on my site's styles. From what i could figure out by myself, i think the order in which the views are loaded is being changed. Any ideas how to fix it?...
| php | mvc | codeigniter | include | require | null | open | PHP include function used before codeigniter class changes the view loading order
===
Ok, so my code looks like this:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
require_once("/application/controllers/base/genericPageC.php");
class TutorialsC extends GenericPageC{
function __construct(){
parent::__construct();
}
protected function loadPage($args){
..................
}
}
/* End of file tutorialsC.php */
/* Location: ./application/controllers/pages/tutorialsC.php */
The require_once statement is present so i can have my inheritance.
Now, when i didn't have the require_once statement and all my code was in a single mammoth bad formatted controller, everything worked fine. As soon as i added the require_once, though, my header.php view, in which i have all the scripts and css added is loaded inside the BODY tag, instead of the head tag. That causes minor, but annoying effects on my site's styles. From what i could figure out by myself, i think the order in which the views are loaded is being changed. Any ideas how to fix it?...
| 0 |
11,349,907 | 07/05/2012 17:59:38 | 865,939 | 07/27/2011 17:03:15 | 153 | 1 | Insert Social Buttons Javascript render codes at the end of the document on page load | I want to inject all my social buttons Javascript codes on page load to make the page load faster. I don't mind the buttons being rendered after the page is loaded. I don't want to use JQuery just for that and prefer doing that in pure javascript code.
I wanted to know how can I insert the code before the end body tag. The other alternative is to create a Div with id, but I want to go the first way. I've read that insertBefore isn't supported well on IE, at least that what I've read.
1) Is there any JS code recommended to inject the social buttons JS codes?
2) Is there any importance to the code being written in new lines or I can just write it in one long line without adding '\n'?
3) Are their any restriction regarding terms of service of social buttons that might prevent me from going in this approach?
4) Should this code be executed on (window).onload or <body onload='..> - what is the method that you is the best one?
Thanks. | javascript | social-networking | null | null | null | null | open | Insert Social Buttons Javascript render codes at the end of the document on page load
===
I want to inject all my social buttons Javascript codes on page load to make the page load faster. I don't mind the buttons being rendered after the page is loaded. I don't want to use JQuery just for that and prefer doing that in pure javascript code.
I wanted to know how can I insert the code before the end body tag. The other alternative is to create a Div with id, but I want to go the first way. I've read that insertBefore isn't supported well on IE, at least that what I've read.
1) Is there any JS code recommended to inject the social buttons JS codes?
2) Is there any importance to the code being written in new lines or I can just write it in one long line without adding '\n'?
3) Are their any restriction regarding terms of service of social buttons that might prevent me from going in this approach?
4) Should this code be executed on (window).onload or <body onload='..> - what is the method that you is the best one?
Thanks. | 0 |
11,349,920 | 07/05/2012 18:00:05 | 1,150,071 | 01/15/2012 05:17:19 | 14 | 0 | how to get values From a scanned ECG image? | In my project, I have to digitize an ECG image taken with a normal camera (jpeg). For example, I have the following camera captured image:
i'm using c# to implement this
![enter image description here][1]
Then i convert this image to greyscale image and then apply threshold to seperate the wave from the grid.
Finally remove unnecessary things from the image and final output is like this
![enter image description here][2]
now i want to fetch the values which are mention on bellow image using pixel count between those segments.what is the best way to do that?
![enter image description here][3]
[1]: http://i.stack.imgur.com/M27An.png
[2]: http://i.stack.imgur.com/rpFoO.jpg
[3]: http://i.stack.imgur.com/t3jez.jpg
main things i want to get are height of p wave,height if QR wave PR interval.
how to implement bellow code to get those values and store them in arrays
public void black(Bitmap bmp)
{
Color[,] results = new Color[bmp.Width, bmp.Height];
for (int i = 0; i < bmp.Height; i++)
{
for (int j = 0; j < bmp.Width; j++)
{
Color col = bmp.GetPixel(j, i);
if (col.R == 0)
{
results[j, i] = bmp.GetPixel(j, i);
}
}
}
}
| c# | image | multidimensional-array | graphic | waveform | null | open | how to get values From a scanned ECG image?
===
In my project, I have to digitize an ECG image taken with a normal camera (jpeg). For example, I have the following camera captured image:
i'm using c# to implement this
![enter image description here][1]
Then i convert this image to greyscale image and then apply threshold to seperate the wave from the grid.
Finally remove unnecessary things from the image and final output is like this
![enter image description here][2]
now i want to fetch the values which are mention on bellow image using pixel count between those segments.what is the best way to do that?
![enter image description here][3]
[1]: http://i.stack.imgur.com/M27An.png
[2]: http://i.stack.imgur.com/rpFoO.jpg
[3]: http://i.stack.imgur.com/t3jez.jpg
main things i want to get are height of p wave,height if QR wave PR interval.
how to implement bellow code to get those values and store them in arrays
public void black(Bitmap bmp)
{
Color[,] results = new Color[bmp.Width, bmp.Height];
for (int i = 0; i < bmp.Height; i++)
{
for (int j = 0; j < bmp.Width; j++)
{
Color col = bmp.GetPixel(j, i);
if (col.R == 0)
{
results[j, i] = bmp.GetPixel(j, i);
}
}
}
}
| 0 |
11,349,113 | 07/05/2012 17:04:31 | 1,484,248 | 06/27/2012 00:31:09 | 3 | 0 | Transferring java program from windows to linux machine | im very inexperienced with linux machines and have been tasked with transferring a java program I made on windows onto a linux machine where it will permanently be running. I looked online for help but it's all very cryptic to me. Can anyone explain the necessary process I must take in order to accomplish this? If it matters, I'm usingWinSCP and PuTTY. | java | windows | linux | transfer | null | 07/05/2012 17:11:01 | off topic | Transferring java program from windows to linux machine
===
im very inexperienced with linux machines and have been tasked with transferring a java program I made on windows onto a linux machine where it will permanently be running. I looked online for help but it's all very cryptic to me. Can anyone explain the necessary process I must take in order to accomplish this? If it matters, I'm usingWinSCP and PuTTY. | 2 |
11,349,114 | 07/05/2012 17:04:37 | 1,187,070 | 02/03/2012 08:44:16 | 6 | 0 | Want to convert Variants from raido buttons to dropdown in Spree 1.1.1 | I am using Spree 1.1.1 and now i want to have Dropdown instead of radio buttons for variants in product page.
I have gone through spree extension "spree-dropdown-variants" but, was 2Year older GEM and I don't Know if i can use this 2 year older GEM with latest vesrion of Spree.
and if yes the git repository of "spree-dropdown-variants" has no .gem file.so, how to install extention for that.
Thanks in Advance. | ruby-on-rails | spree | null | null | null | null | open | Want to convert Variants from raido buttons to dropdown in Spree 1.1.1
===
I am using Spree 1.1.1 and now i want to have Dropdown instead of radio buttons for variants in product page.
I have gone through spree extension "spree-dropdown-variants" but, was 2Year older GEM and I don't Know if i can use this 2 year older GEM with latest vesrion of Spree.
and if yes the git repository of "spree-dropdown-variants" has no .gem file.so, how to install extention for that.
Thanks in Advance. | 0 |
11,349,115 | 07/05/2012 17:04:52 | 1,000,985 | 10/18/2011 11:12:31 | 17 | 0 | Is it possible to modify post's privacy setting programmatically using Graph API? | Here's the thing. My app has created some posts on user wall. Now I need to modify the privacy settings of those posts(which has already been published).
I saw similar posts but none of them specifically said weather we can change it if the post has been created by the app itself.
Sorry if it's a duplicate question.
Thanks! | facebook | facebook-graph-api | privacy | null | null | null | open | Is it possible to modify post's privacy setting programmatically using Graph API?
===
Here's the thing. My app has created some posts on user wall. Now I need to modify the privacy settings of those posts(which has already been published).
I saw similar posts but none of them specifically said weather we can change it if the post has been created by the app itself.
Sorry if it's a duplicate question.
Thanks! | 0 |
11,349,116 | 07/05/2012 17:04:53 | 792,522 | 06/10/2011 09:46:58 | 159 | 13 | How to take input from user on canvas? | I am working on a simple game in android and stuck to a rather simple thing. I know that the widget controls like button, textview, edittext can't be used on canvas directly instead we can use `boolean onTouchEvent(MotionEvent event)`for getting button functionality. But how to get input from user.
Is there a way to add edittext to the canvas? Or do we have some alternative for it? | android | android-canvas | android-view | null | null | null | open | How to take input from user on canvas?
===
I am working on a simple game in android and stuck to a rather simple thing. I know that the widget controls like button, textview, edittext can't be used on canvas directly instead we can use `boolean onTouchEvent(MotionEvent event)`for getting button functionality. But how to get input from user.
Is there a way to add edittext to the canvas? Or do we have some alternative for it? | 0 |
11,349,923 | 07/05/2012 18:00:12 | 938,071 | 09/10/2011 10:16:50 | 11 | 0 | Asynchronous NSURLConnection getting failed with auto mistypecasting of class instance | I am creating a single instance of a chase class which has dictionary as property.
As I add elements to dictionary, I can the change in the count of dictionary keys.
But when I am accessing, its firing a crash with message like give below.
- [__NSCFString connection:didReceiveData:];
- [__NSCFArray reqmap]; etc..
Basically I am mapping request url with NSDATA instance, so that the response could be mapped and appended properly asynchronously.
Code:
-(id)init
{
self = [super init];
if (self)
{
self.cacheDict = [[NSMutableDictionary alloc] initWithCapacity:20];
self.reqmap = [[NSMutableDictionary alloc] initWithCapacity:20];
}
return self;
}
+ (CommunityImageCache*)getSharedCommunityImageCache
{
if (sharedCommunityImageCacheInstance == nil) {
sharedCommunityImageCacheInstance = [[super allocWithZone:NULL] init];
}
return sharedCommunityImageCacheInstance;
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSString* keyurl = [[[connection currentRequest] URL] absoluteString];
//crash point >>>>
NSMutableData* tempdata = (NSMutableData*)[self.reqmap objectForKey:keyurl];
[tempdata appendData:data];
}
- (void)connectionDidFinishLoading:(NSURLConnection*)theConnection
{
NSString* keyurl = [[[theConnection currentRequest] URL] absoluteString];
NSMutableData* tempdata = [self.reqmap objectForKey:keyurl];
UIImage* img = [UIImage imageWithData:tempdata];
[self.cacheDict setObject:img forKey:[@"image:\\\\public\\" stringByAppendingString:keyurl]];
[self.reqmap removeObjectForKey:keyurl];
}
-(UIImage *)getImageFromUrl:(NSString *)url
{
UIImage* image = nil;
image = [self.cacheDict objectForKey:url];
if (!image)
{
image = [UIImage imageNamed:@"defaultProfile.png"];
//dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
NSString* localUrl = [NSString stringWithString:url];
NSString* finurl = [localUrl substringFromIndex:[@"image:\\\\public\\" length]];
UIImage* img = nil;
NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:finurl]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
NSMutableData* data = [[NSMutableData alloc] init];
NSURLConnection* connect = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
NSString* keyurl = [[[connect currentRequest] URL] absoluteString];
[self.reqmap setObject:data forKey:keyurl];
}
}
Needed badly, Thanks in advance. | iphone | multithreading | cocoa-touch | nsurlconnection | null | null | open | Asynchronous NSURLConnection getting failed with auto mistypecasting of class instance
===
I am creating a single instance of a chase class which has dictionary as property.
As I add elements to dictionary, I can the change in the count of dictionary keys.
But when I am accessing, its firing a crash with message like give below.
- [__NSCFString connection:didReceiveData:];
- [__NSCFArray reqmap]; etc..
Basically I am mapping request url with NSDATA instance, so that the response could be mapped and appended properly asynchronously.
Code:
-(id)init
{
self = [super init];
if (self)
{
self.cacheDict = [[NSMutableDictionary alloc] initWithCapacity:20];
self.reqmap = [[NSMutableDictionary alloc] initWithCapacity:20];
}
return self;
}
+ (CommunityImageCache*)getSharedCommunityImageCache
{
if (sharedCommunityImageCacheInstance == nil) {
sharedCommunityImageCacheInstance = [[super allocWithZone:NULL] init];
}
return sharedCommunityImageCacheInstance;
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
NSString* keyurl = [[[connection currentRequest] URL] absoluteString];
//crash point >>>>
NSMutableData* tempdata = (NSMutableData*)[self.reqmap objectForKey:keyurl];
[tempdata appendData:data];
}
- (void)connectionDidFinishLoading:(NSURLConnection*)theConnection
{
NSString* keyurl = [[[theConnection currentRequest] URL] absoluteString];
NSMutableData* tempdata = [self.reqmap objectForKey:keyurl];
UIImage* img = [UIImage imageWithData:tempdata];
[self.cacheDict setObject:img forKey:[@"image:\\\\public\\" stringByAppendingString:keyurl]];
[self.reqmap removeObjectForKey:keyurl];
}
-(UIImage *)getImageFromUrl:(NSString *)url
{
UIImage* image = nil;
image = [self.cacheDict objectForKey:url];
if (!image)
{
image = [UIImage imageNamed:@"defaultProfile.png"];
//dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
NSString* localUrl = [NSString stringWithString:url];
NSString* finurl = [localUrl substringFromIndex:[@"image:\\\\public\\" length]];
UIImage* img = nil;
NSURLRequest* request = [NSURLRequest requestWithURL:[NSURL URLWithString:finurl]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
NSMutableData* data = [[NSMutableData alloc] init];
NSURLConnection* connect = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
NSString* keyurl = [[[connect currentRequest] URL] absoluteString];
[self.reqmap setObject:data forKey:keyurl];
}
}
Needed badly, Thanks in advance. | 0 |
11,660,337 | 07/25/2012 23:43:56 | 236,993 | 12/22/2009 16:17:38 | 734 | 86 | Get Avg for this query | Let’s say I have a table with the following columns:
`EmployeeID, PayEntity, HourWorked, Date` where `PayEntity can be 1:Normal, 2:OverTime, etc` How can I get the average of Hours worked for a period of time for example if we do have on my table those data:
1, 1, 40, 7/25/12
1, 2, 5, 7/25/12
2, 1, 30, 7/25/12
The average for this date must be `(40+5)+30/2 -- 37.5`
| sql | tsql | null | null | null | null | open | Get Avg for this query
===
Let’s say I have a table with the following columns:
`EmployeeID, PayEntity, HourWorked, Date` where `PayEntity can be 1:Normal, 2:OverTime, etc` How can I get the average of Hours worked for a period of time for example if we do have on my table those data:
1, 1, 40, 7/25/12
1, 2, 5, 7/25/12
2, 1, 30, 7/25/12
The average for this date must be `(40+5)+30/2 -- 37.5`
| 0 |
11,660,333 | 07/25/2012 23:43:25 | 648,922 | 03/06/2011 00:00:29 | 6 | 0 | How to find out the reason of the slow loading of the web page? | The homepage i guess is alright. Each time it take around 1s to load. ( i am using YSlow plugin)
http://pocomaru.cloudapp.net/
However if I go to a specify category, for example:
http://pocomaru.cloudapp.net/category/45/iphone-4-4s-cases
It still takes 1.7-2s to load.
I am expecting a very fast load that is at most 1s. The page only contains one major sql call:
get products belong to a category, and there is only 18 products in that category.
I am aware of normal technology for increasing the page loading time like lazy load pictures etc. but my problem here is that the initial page load takes too long.
I am not sure what is the reason. the database is sql azure web version. Can any one shed some light on it? I am using .net EF.
Thanks much!
| performance | entity-framework | website | slow-load | null | null | open | How to find out the reason of the slow loading of the web page?
===
The homepage i guess is alright. Each time it take around 1s to load. ( i am using YSlow plugin)
http://pocomaru.cloudapp.net/
However if I go to a specify category, for example:
http://pocomaru.cloudapp.net/category/45/iphone-4-4s-cases
It still takes 1.7-2s to load.
I am expecting a very fast load that is at most 1s. The page only contains one major sql call:
get products belong to a category, and there is only 18 products in that category.
I am aware of normal technology for increasing the page loading time like lazy load pictures etc. but my problem here is that the initial page load takes too long.
I am not sure what is the reason. the database is sql azure web version. Can any one shed some light on it? I am using .net EF.
Thanks much!
| 0 |
11,660,334 | 07/25/2012 23:43:29 | 511,230 | 11/17/2010 19:19:05 | 23 | 0 | How can I reliably show a native google map on Trigger? | How can I reliably show native google maps in Trigger?
*Here's the background:*
I'm showing Google Maps on Trigger.io using backbone, copying the format on the Trigger blog here: <http://trigger.io/cross-platform-application-development-blog/2012/05/15/how-to-build-a-location-based-hybrid-mobile-app-with-reverse-geocoding/>
Now, on my friend's phone, these maps show up as native maps. On my phone, the maps show up as javascript embedded maps (they have pinch-to-zoom, and are noticeably slower).
Both phones are running Android, though his is running v4, and mine is 2.3.x.
What am I missing?
Thank you. | google-maps | trigger.io | null | null | null | null | open | How can I reliably show a native google map on Trigger?
===
How can I reliably show native google maps in Trigger?
*Here's the background:*
I'm showing Google Maps on Trigger.io using backbone, copying the format on the Trigger blog here: <http://trigger.io/cross-platform-application-development-blog/2012/05/15/how-to-build-a-location-based-hybrid-mobile-app-with-reverse-geocoding/>
Now, on my friend's phone, these maps show up as native maps. On my phone, the maps show up as javascript embedded maps (they have pinch-to-zoom, and are noticeably slower).
Both phones are running Android, though his is running v4, and mine is 2.3.x.
What am I missing?
Thank you. | 0 |
11,659,713 | 07/25/2012 22:36:19 | 274,826 | 02/16/2010 23:16:31 | 137 | 1 | Can commits/pushes to github be automated? | I've moved a site to a Jekyll / GitHub Pages setup and have an iOS-based markdown editor that syncs to dropbox. Currently I'm investigating ways to bridge the gap and have files created on the go automatically committed and pushed to the GitHub repo but unsure where to start. Is anything like this possible?
(I am not experienced in using Automator on OSX but it seems like it might be an option, though I can't guarantee that a machine will be awake all the time) | github | jekyll | null | null | null | null | open | Can commits/pushes to github be automated?
===
I've moved a site to a Jekyll / GitHub Pages setup and have an iOS-based markdown editor that syncs to dropbox. Currently I'm investigating ways to bridge the gap and have files created on the go automatically committed and pushed to the GitHub repo but unsure where to start. Is anything like this possible?
(I am not experienced in using Automator on OSX but it seems like it might be an option, though I can't guarantee that a machine will be awake all the time) | 0 |
11,660,342 | 07/25/2012 23:44:21 | 1,516,425 | 07/11/2012 02:10:15 | 61 | 0 | See threads that JavaScript/jQuery is creating? | Is there a way to see the 'threads' that Javascript/jQuery is creating? For example, if I have an event handler attached to a DOM element, I assume that Javascript/jQuery will implicitly make a new thread to run that code in the background? If so, is there a way to see (e.g. via Firebug, WebKit inspector, etc.) the different 'threads' that Javascript is open? (And if it's not threads that Javascript is using, then how do event handlers work 'behind-the-scenes'?)
Thanks!
| javascript | jquery | null | null | null | null | open | See threads that JavaScript/jQuery is creating?
===
Is there a way to see the 'threads' that Javascript/jQuery is creating? For example, if I have an event handler attached to a DOM element, I assume that Javascript/jQuery will implicitly make a new thread to run that code in the background? If so, is there a way to see (e.g. via Firebug, WebKit inspector, etc.) the different 'threads' that Javascript is open? (And if it's not threads that Javascript is using, then how do event handlers work 'behind-the-scenes'?)
Thanks!
| 0 |
11,660,346 | 07/25/2012 23:44:47 | 950,709 | 09/17/2011 22:09:49 | 55 | 0 | Installing QT Visual Studio Addin | I'm trying to follow this guide to install the QT plugin into VS 2010: http://thomasstockx.blogspot.ca/2011/03/qt-472-in-visual-studio-2010.html
After when I reach Step 11 and try to execute the command:
configure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -no-webkit -no-script -platform win32-msvc2010
I get the following error:
'configure' is not recognized as an internal or external command,
operable program or batch file.
I'm using the VS command prompt window and not a regular command prompt window. Can someone one please suggest what I might be doing wrong?
Currently, I see the add-in in VS . However, when I click Qt-> Launch Designer, I get this error message:
No default QT version found. Please check your QT Visual Studio Add-in settings. | visual-studio-2010 | qt | null | null | null | null | open | Installing QT Visual Studio Addin
===
I'm trying to follow this guide to install the QT plugin into VS 2010: http://thomasstockx.blogspot.ca/2011/03/qt-472-in-visual-studio-2010.html
After when I reach Step 11 and try to execute the command:
configure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -no-webkit -no-script -platform win32-msvc2010
I get the following error:
'configure' is not recognized as an internal or external command,
operable program or batch file.
I'm using the VS command prompt window and not a regular command prompt window. Can someone one please suggest what I might be doing wrong?
Currently, I see the add-in in VS . However, when I click Qt-> Launch Designer, I get this error message:
No default QT version found. Please check your QT Visual Studio Add-in settings. | 0 |
11,660,347 | 07/25/2012 23:44:50 | 140,448 | 07/17/2009 22:00:35 | 1,140 | 44 | Emit event from the parent of the current function | Would it be possible to emit an event from the parent of the currently executing function in Node.JS? I have never seen it done, but from what I know about `this`, it seems plausible.
Any ideas? | javascript | node.js | null | null | null | null | open | Emit event from the parent of the current function
===
Would it be possible to emit an event from the parent of the currently executing function in Node.JS? I have never seen it done, but from what I know about `this`, it seems plausible.
Any ideas? | 0 |
11,660,352 | 07/25/2012 23:45:09 | 1,191,840 | 02/06/2012 08:26:23 | 8 | 1 | Exceldna equivalent for Java | ExcelDNA is a fantastic resource for C# developers - is there anything similar for Java? | java | excel-dna | null | null | null | 07/27/2012 00:45:50 | not constructive | Exceldna equivalent for Java
===
ExcelDNA is a fantastic resource for C# developers - is there anything similar for Java? | 4 |
11,650,543 | 07/25/2012 13:14:46 | 525,649 | 11/30/2010 19:50:40 | 1,048 | 40 | Mark code as stable using composer | I've recently come across the change meaning that the default `minimum-stability` is `stable`, and rather than set this to `dev` I'd like to make some of my libraries as stable.
I actually use two relevant branches, `release` and `dev` branched from `master`. Every so often something is merged into `release` and tagged as new version.
How does composer determine the stability of my libraries, is there a naming convention for branches, version nums, a key in composer.json?
Thanks | php | git | composer-php | null | null | null | open | Mark code as stable using composer
===
I've recently come across the change meaning that the default `minimum-stability` is `stable`, and rather than set this to `dev` I'd like to make some of my libraries as stable.
I actually use two relevant branches, `release` and `dev` branched from `master`. Every so often something is merged into `release` and tagged as new version.
How does composer determine the stability of my libraries, is there a naming convention for branches, version nums, a key in composer.json?
Thanks | 0 |
11,650,544 | 07/25/2012 13:14:48 | 1,551,657 | 07/25/2012 12:52:03 | 1 | 0 | Can't figure out how to return polygon drawing data to be added to frame | Hello everyone :) I'm brand new here, as I just learned about this website from fellow students that were trying to help me with my Java program problem.
I have a program that has 2 frames. 1 frame holds a simple button and JComboBox GUI interface while the other frame is supposed to draw and manipulate shapes according to the options selected on the interface.
I have the interface set up but sadly for the life of me I cannot figure out how to implement polygon drawings. I know how to draw polygons but all the tutorials and help I've searched for online hasn't really provided me with a combination of drawing + multiple methods. Additionally, my code has probably gotten quite convoluted with all my attempts at building my program so I wonder if maybe that could be adding to my issues.
I will post my code below and write "Need help here 1" and "Need help here 2" at the places I need focused on. Here is an image of what my program roughly looks like "[http://imgur.com/ydqa4][1]" Thanks to anyone in advance that tries to take a stab at my issue.
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.Polygon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class Final {
// Declare variables for everything used in the program
private JFrame f;
private JPanel p, p2;
private JButton b1, b2, b3, b4, b5, b6, b7, b8;
private JComboBox combo, combo2, combo3;
private JTextField txt, txt2, txt3;
private Graphics g;
private Shape selectedShape;
public Final() {
gui();
draw();
}
public void gui() {
f = new JFrame("Interface");
f.setVisible(true);
f.setSize(800, 600);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Closes the program
// when you click
// the X
p = new JPanel(new GridBagLayout()); // create panel and decide the
// details
p.setBackground(Color.WHITE);
GridBagConstraints c = new GridBagConstraints(); // Define way to call
// constraints for
// grid layout
GridBagConstraints c2 = new GridBagConstraints();
GridBagConstraints c3 = new GridBagConstraints();
c.insets = new Insets(0, 0, 0, 0); // add spacing between objects on the
// grid. 10 pixels from bottom top,
// left and right
c2.insets = new Insets(5, 5, 5, 5);
c3.insets = new Insets(0, 0, 0, 0);
// Combo Box stuff below this
String course2[] = { "CHOOSE", "YELLOW", "BLUE", "RED" };
String course3[] = { "CHOOSE", "YELLOW", "BLUE", "RED" };
combo = new JComboBox(Shape.values());
combo.setBackground(Color.white);
combo.setForeground(Color.black);
txt = new JTextField(20);
combo.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
if(ie.getStateChange() == ItemEvent.DESELECTED) {
return;
}
Shape selectedShape = (Shape) combo.getSelectedItem();
setSelectedShape(selectedShape);
String str = selectedShape.getLabel();
txt.setText(str);
switch (selectedShape) {
case NONE:
break;
case PARALLELOGRAM:
drawParallelogram();
break;
case QUADRILATERAL:
drawQuadrilateral();
break;
case RECTANGLE:
drawRectangle();
break;
case RHOMBUS:
drawRhombus();
break;
case SQUARE:
drawSquare();
break;
case TRAPEZOID:
drawTrapezoid();
break;
case TRIANGLE:
drawTriangle();
break;
default:
break;
}
}
private Polygon drawTriangle() {
// Need Help Here 1
Polygon triangle = new Polygon();
triangle.addPoint(100,100);
triangle.addPoint(150,150);
triangle.addPoint(50,150);
return triangle;
}
private void drawTrapezoid() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a trapezoid");
}
private void drawSquare() {
// TODO Auto-generated method stub
g.drawRect(0, 0, 50, 50);
}
private void drawRhombus() {
// TODO Auto-generated method stub
}
private void drawRectangle() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a rectangle");
}
private void drawQuadrilateral() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a quadrilateral");
}
private void drawParallelogram() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a parallelogram");
}
});
combo2 = new JComboBox(course2);
combo2.setBackground(Color.white);
combo2.setForeground(Color.black);
txt2 = new JTextField(20);
combo2.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
String str2 = (String) combo2.getSelectedItem();
txt2.setText(str2 + " BORDER");
}
});
combo3 = new JComboBox(course3);
combo3.setBackground(Color.white);
combo3.setForeground(Color.black);
txt3 = new JTextField(20);
combo3.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
String str3 = (String) combo3.getSelectedItem();
txt3.setText(str3 + " INSIDE");
}
});
// X and Y movement buttons
b1 = new JButton("X+");
b2 = new JButton("X-");
b3 = new JButton("Y+");
b4 = new JButton("Y-");
b5 = new JButton("Clockwise");
b6 = new JButton(" Counter ");
b7 = new JButton("Enlarge");
b8 = new JButton("Shrink ");
// Object adding to panel and grid layout here
c.gridx = 0;
c.gridy = 0;
p.add(combo, c);
c.gridx = 1;
c.gridy = 0;
p.add(txt, c);
c2.gridx = 0; // x and y for first object
c2.gridy = 1;
p.add(b1, c2);
c2.gridx = 1;
c2.gridy = 1;
p.add(b2, c2);
c2.gridx = 0;
c2.gridy = 2;
p.add(b3, c2);
c2.gridx = 1;
c2.gridy = 2;
p.add(b4, c2);
c3.gridx = 0;
c3.gridy = 4;
p.add(combo2, c3);
c3.gridx = 1;
c3.gridy = 4;
p.add(txt2, c3);
c3.gridx = 0;
c3.gridy = 5;
p.add(combo3, c3);
c3.gridx = 1;
c3.gridy = 5;
p.add(txt3, c3);
c2.gridx = 0;
c2.gridy = 6;
p.add(b5, c2);
c2.gridx = 1;
c2.gridy = 6;
p.add(b6, c2);
c2.gridx = 0;
c2.gridy = 7;
p.add(b7, c2);
c2.gridx = 1;
c2.gridy = 7;
p.add(b8, c2);
f.add(p, BorderLayout.NORTH); // add the entire panel to the frame
f.show();
}
public void draw() {
// Need help here 2
// Create a frame
JFrame frame = new JFrame();
// Add a component with a custom paint method
//frame.getContentPane().add(new MyComponent());
Container contentPane = frame.getContentPane();
contentPane.add(drawTriangle());
// Display the frame
int frameWidth = 600;
int frameHeight = 600;
frame.setSize(frameWidth, frameHeight);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
/* class MyComponent extends JComponent {
// This method is called whenever the contents needs to be painted
public void paint(Graphics g) {
// Retrieve the graphics context; this object is used to paint
// shapes
Graphics2D g2d = (Graphics2D) g;
}
}*/
public static void main(String[] args) {
new Final();
}
public Shape getSelectedShape() {
return selectedShape;
}
public void setSelectedShape(Shape selectedShape) {
this.selectedShape = selectedShape;
}
public enum Shape {
NONE, TRIANGLE, QUADRILATERAL, PARALLELOGRAM, TRAPEZOID, RHOMBUS, RECTANGLE, SQUARE;
static {
NONE.label = "Choose one...";
TRIANGLE.label = "Triangle";
QUADRILATERAL.label = "Quadrillateral";
PARALLELOGRAM.label = "Parallelogram";
TRAPEZOID.label = "Trapezoid";
RHOMBUS.label = "Rhombus";
RECTANGLE.label = "Rectangle";
SQUARE.label = "Square";
}
private String label;
public String getLabel() {
return label;
}
}
}
Sorry for the mess, JComboBoxes seem to be the bane of my existence, I wonder if I should just rebuild the program from scratch using only JButtons.
[1]: http://imgur.com/ydqa4 | java | swing | null | null | null | null | open | Can't figure out how to return polygon drawing data to be added to frame
===
Hello everyone :) I'm brand new here, as I just learned about this website from fellow students that were trying to help me with my Java program problem.
I have a program that has 2 frames. 1 frame holds a simple button and JComboBox GUI interface while the other frame is supposed to draw and manipulate shapes according to the options selected on the interface.
I have the interface set up but sadly for the life of me I cannot figure out how to implement polygon drawings. I know how to draw polygons but all the tutorials and help I've searched for online hasn't really provided me with a combination of drawing + multiple methods. Additionally, my code has probably gotten quite convoluted with all my attempts at building my program so I wonder if maybe that could be adding to my issues.
I will post my code below and write "Need help here 1" and "Need help here 2" at the places I need focused on. Here is an image of what my program roughly looks like "[http://imgur.com/ydqa4][1]" Thanks to anyone in advance that tries to take a stab at my issue.
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.Polygon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
public class Final {
// Declare variables for everything used in the program
private JFrame f;
private JPanel p, p2;
private JButton b1, b2, b3, b4, b5, b6, b7, b8;
private JComboBox combo, combo2, combo3;
private JTextField txt, txt2, txt3;
private Graphics g;
private Shape selectedShape;
public Final() {
gui();
draw();
}
public void gui() {
f = new JFrame("Interface");
f.setVisible(true);
f.setSize(800, 600);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Closes the program
// when you click
// the X
p = new JPanel(new GridBagLayout()); // create panel and decide the
// details
p.setBackground(Color.WHITE);
GridBagConstraints c = new GridBagConstraints(); // Define way to call
// constraints for
// grid layout
GridBagConstraints c2 = new GridBagConstraints();
GridBagConstraints c3 = new GridBagConstraints();
c.insets = new Insets(0, 0, 0, 0); // add spacing between objects on the
// grid. 10 pixels from bottom top,
// left and right
c2.insets = new Insets(5, 5, 5, 5);
c3.insets = new Insets(0, 0, 0, 0);
// Combo Box stuff below this
String course2[] = { "CHOOSE", "YELLOW", "BLUE", "RED" };
String course3[] = { "CHOOSE", "YELLOW", "BLUE", "RED" };
combo = new JComboBox(Shape.values());
combo.setBackground(Color.white);
combo.setForeground(Color.black);
txt = new JTextField(20);
combo.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
if(ie.getStateChange() == ItemEvent.DESELECTED) {
return;
}
Shape selectedShape = (Shape) combo.getSelectedItem();
setSelectedShape(selectedShape);
String str = selectedShape.getLabel();
txt.setText(str);
switch (selectedShape) {
case NONE:
break;
case PARALLELOGRAM:
drawParallelogram();
break;
case QUADRILATERAL:
drawQuadrilateral();
break;
case RECTANGLE:
drawRectangle();
break;
case RHOMBUS:
drawRhombus();
break;
case SQUARE:
drawSquare();
break;
case TRAPEZOID:
drawTrapezoid();
break;
case TRIANGLE:
drawTriangle();
break;
default:
break;
}
}
private Polygon drawTriangle() {
// Need Help Here 1
Polygon triangle = new Polygon();
triangle.addPoint(100,100);
triangle.addPoint(150,150);
triangle.addPoint(50,150);
return triangle;
}
private void drawTrapezoid() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a trapezoid");
}
private void drawSquare() {
// TODO Auto-generated method stub
g.drawRect(0, 0, 50, 50);
}
private void drawRhombus() {
// TODO Auto-generated method stub
}
private void drawRectangle() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a rectangle");
}
private void drawQuadrilateral() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a quadrilateral");
}
private void drawParallelogram() {
// TODO Auto-generated method stub
System.out.println("This is the code to draw a parallelogram");
}
});
combo2 = new JComboBox(course2);
combo2.setBackground(Color.white);
combo2.setForeground(Color.black);
txt2 = new JTextField(20);
combo2.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
String str2 = (String) combo2.getSelectedItem();
txt2.setText(str2 + " BORDER");
}
});
combo3 = new JComboBox(course3);
combo3.setBackground(Color.white);
combo3.setForeground(Color.black);
txt3 = new JTextField(20);
combo3.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
String str3 = (String) combo3.getSelectedItem();
txt3.setText(str3 + " INSIDE");
}
});
// X and Y movement buttons
b1 = new JButton("X+");
b2 = new JButton("X-");
b3 = new JButton("Y+");
b4 = new JButton("Y-");
b5 = new JButton("Clockwise");
b6 = new JButton(" Counter ");
b7 = new JButton("Enlarge");
b8 = new JButton("Shrink ");
// Object adding to panel and grid layout here
c.gridx = 0;
c.gridy = 0;
p.add(combo, c);
c.gridx = 1;
c.gridy = 0;
p.add(txt, c);
c2.gridx = 0; // x and y for first object
c2.gridy = 1;
p.add(b1, c2);
c2.gridx = 1;
c2.gridy = 1;
p.add(b2, c2);
c2.gridx = 0;
c2.gridy = 2;
p.add(b3, c2);
c2.gridx = 1;
c2.gridy = 2;
p.add(b4, c2);
c3.gridx = 0;
c3.gridy = 4;
p.add(combo2, c3);
c3.gridx = 1;
c3.gridy = 4;
p.add(txt2, c3);
c3.gridx = 0;
c3.gridy = 5;
p.add(combo3, c3);
c3.gridx = 1;
c3.gridy = 5;
p.add(txt3, c3);
c2.gridx = 0;
c2.gridy = 6;
p.add(b5, c2);
c2.gridx = 1;
c2.gridy = 6;
p.add(b6, c2);
c2.gridx = 0;
c2.gridy = 7;
p.add(b7, c2);
c2.gridx = 1;
c2.gridy = 7;
p.add(b8, c2);
f.add(p, BorderLayout.NORTH); // add the entire panel to the frame
f.show();
}
public void draw() {
// Need help here 2
// Create a frame
JFrame frame = new JFrame();
// Add a component with a custom paint method
//frame.getContentPane().add(new MyComponent());
Container contentPane = frame.getContentPane();
contentPane.add(drawTriangle());
// Display the frame
int frameWidth = 600;
int frameHeight = 600;
frame.setSize(frameWidth, frameHeight);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
/* class MyComponent extends JComponent {
// This method is called whenever the contents needs to be painted
public void paint(Graphics g) {
// Retrieve the graphics context; this object is used to paint
// shapes
Graphics2D g2d = (Graphics2D) g;
}
}*/
public static void main(String[] args) {
new Final();
}
public Shape getSelectedShape() {
return selectedShape;
}
public void setSelectedShape(Shape selectedShape) {
this.selectedShape = selectedShape;
}
public enum Shape {
NONE, TRIANGLE, QUADRILATERAL, PARALLELOGRAM, TRAPEZOID, RHOMBUS, RECTANGLE, SQUARE;
static {
NONE.label = "Choose one...";
TRIANGLE.label = "Triangle";
QUADRILATERAL.label = "Quadrillateral";
PARALLELOGRAM.label = "Parallelogram";
TRAPEZOID.label = "Trapezoid";
RHOMBUS.label = "Rhombus";
RECTANGLE.label = "Rectangle";
SQUARE.label = "Square";
}
private String label;
public String getLabel() {
return label;
}
}
}
Sorry for the mess, JComboBoxes seem to be the bane of my existence, I wonder if I should just rebuild the program from scratch using only JButtons.
[1]: http://imgur.com/ydqa4 | 0 |
11,650,542 | 07/25/2012 13:14:40 | 298,875 | 03/20/2010 16:01:12 | 493 | 1 | how to detect radiobutton checked conditon in asp.net mvc 3? | <p>
how to recognize selected radiobutton value or check condition. i have been developing some below codes but i can not realise why if i check IsPerDay,
IsPerDay not return to controller checked. how to see radiobutton check or unchecked in controller?
</p>
<b>View</b>
<pre><code>
<script type="text/javascript">
function EveryDay() {
document.getElementById('RdIsPerDay').checked = true;
document.getElementById('RdIsPerWeekDay').checked = false;
document.getElementById("txtPerDay").style.visibility = 'visible';
document.getElementById("lblPerday").style.visibility = 'visible';
}
function EveryWeekDay() {
document.getElementById('RdIsPerDay').checked = false;
document.getElementById('RdIsPerWeekDay').checked = true;
document.getElementById("txtPerDay").style.visibility = 'hidden';
document.getElementById("lblPerday").style.visibility = 'hidden';
}
</script>
<table><tr><td>Per Day(s) </td><td>
<%= Html.RadioButtonFor(q => q.IsPerDay, 1, new { onClick = "EveryDay();", id = "RdIsPerDay", Checked = "checked" })%>
</td><td>Every WeekDay </td><td> <%= Html.RadioButtonFor(q => q.IsPerWeekDay, 0, new { onClick = "EveryWeekDay();", id = "RdIsPerWeekDay" })%></td></tr></table>
</td></tr> . . . . . .
</code></pre>
<b>Model:</b>
<pre><code>
public class DailySchedule : Schedule
{
public bool IsPerDay { get; set; }
public bool IsPerWeekDay { get; set; }
}
</code></pre>
<b>Controller:</b>
![enter image description here][1]
i checked IsPerWeekDay not return true value from view in controller. I checked IsPerWeekDay radiobutton , but i can not see checked value below pic. how to solve this problem?
[1]: http://i.stack.imgur.com/VRDLH.png | c# | .net | asp.net-mvc | asp.net-mvc-3 | null | null | open | how to detect radiobutton checked conditon in asp.net mvc 3?
===
<p>
how to recognize selected radiobutton value or check condition. i have been developing some below codes but i can not realise why if i check IsPerDay,
IsPerDay not return to controller checked. how to see radiobutton check or unchecked in controller?
</p>
<b>View</b>
<pre><code>
<script type="text/javascript">
function EveryDay() {
document.getElementById('RdIsPerDay').checked = true;
document.getElementById('RdIsPerWeekDay').checked = false;
document.getElementById("txtPerDay").style.visibility = 'visible';
document.getElementById("lblPerday").style.visibility = 'visible';
}
function EveryWeekDay() {
document.getElementById('RdIsPerDay').checked = false;
document.getElementById('RdIsPerWeekDay').checked = true;
document.getElementById("txtPerDay").style.visibility = 'hidden';
document.getElementById("lblPerday").style.visibility = 'hidden';
}
</script>
<table><tr><td>Per Day(s) </td><td>
<%= Html.RadioButtonFor(q => q.IsPerDay, 1, new { onClick = "EveryDay();", id = "RdIsPerDay", Checked = "checked" })%>
</td><td>Every WeekDay </td><td> <%= Html.RadioButtonFor(q => q.IsPerWeekDay, 0, new { onClick = "EveryWeekDay();", id = "RdIsPerWeekDay" })%></td></tr></table>
</td></tr> . . . . . .
</code></pre>
<b>Model:</b>
<pre><code>
public class DailySchedule : Schedule
{
public bool IsPerDay { get; set; }
public bool IsPerWeekDay { get; set; }
}
</code></pre>
<b>Controller:</b>
![enter image description here][1]
i checked IsPerWeekDay not return true value from view in controller. I checked IsPerWeekDay radiobutton , but i can not see checked value below pic. how to solve this problem?
[1]: http://i.stack.imgur.com/VRDLH.png | 0 |
11,471,895 | 07/13/2012 13:53:26 | 1,031,895 | 11/06/2011 06:01:33 | 13 | 0 | NodeJS - "This type of response MUST not have a body..." | I've recently ran into a very interesting problem while writing a web app with node.js.
Essentially, all I am doing is serving the **index.html** page to the client.
Here is the code:
var http = require('http');
var url = require('url');
var fs = require('fs');
var util = require('util');
var server = http.createServer(function(req, res){
var path = url.parse(req.url).pathname;
if(path == '/'){
console.log("LOADING INDEX...");
openIndex(req, res);
console.log("LOADING COMPLETE.")
} else {
res.write("Something went wrong...");
res.end();
}
}
);
var openIndex = function(req, res){
fs.readFile('./index.html', function(error, content){
if(error){
res.writeHead(500);
res.end();
}
else{
res.writeHead(200, {'Content-Type': 'text/html'});
res.end(content, 'utf-8');
}
});
}
I've put some debugging statements just before and after the **index.html** page loads: *"LOADING INDEX..."* and *"LOADING COMPLETE"*.
Now, I have shared the link to my server with my Facebook friends so they can see my app. Most of the time, everything works as it should, but once in a while I get this error:
> LOADING INDEX...
> This type of response MUST NOT have a body. Ignoring data passed to end().
and just now I've also gotten:
> LOADING INDEX...
> This type of response MUST NOT have a body. Ignoring write() calls.
**The process never raches the *"LOADING COMPLETE"* statement.**
I've tried to reproduce this countless times (accessing my app on different machines, browsers, devices, OS-versions) but every time it works as it should.
I've looked around for other people having this problem, and it seems that somehow, a body is getting into a GET response? I'm not entirely sure what this means or how to fix my code to prevent that from happening. Also, I'm not sure what the clients that produce this error see? Do they get to see my app? (i.e. are these just warnings and as far as they are concerned everything is fine?)
Any help with this will be greatly appreciated.
Xaan | javascript | http | node.js | null | null | null | open | NodeJS - "This type of response MUST not have a body..."
===
I've recently ran into a very interesting problem while writing a web app with node.js.
Essentially, all I am doing is serving the **index.html** page to the client.
Here is the code:
var http = require('http');
var url = require('url');
var fs = require('fs');
var util = require('util');
var server = http.createServer(function(req, res){
var path = url.parse(req.url).pathname;
if(path == '/'){
console.log("LOADING INDEX...");
openIndex(req, res);
console.log("LOADING COMPLETE.")
} else {
res.write("Something went wrong...");
res.end();
}
}
);
var openIndex = function(req, res){
fs.readFile('./index.html', function(error, content){
if(error){
res.writeHead(500);
res.end();
}
else{
res.writeHead(200, {'Content-Type': 'text/html'});
res.end(content, 'utf-8');
}
});
}
I've put some debugging statements just before and after the **index.html** page loads: *"LOADING INDEX..."* and *"LOADING COMPLETE"*.
Now, I have shared the link to my server with my Facebook friends so they can see my app. Most of the time, everything works as it should, but once in a while I get this error:
> LOADING INDEX...
> This type of response MUST NOT have a body. Ignoring data passed to end().
and just now I've also gotten:
> LOADING INDEX...
> This type of response MUST NOT have a body. Ignoring write() calls.
**The process never raches the *"LOADING COMPLETE"* statement.**
I've tried to reproduce this countless times (accessing my app on different machines, browsers, devices, OS-versions) but every time it works as it should.
I've looked around for other people having this problem, and it seems that somehow, a body is getting into a GET response? I'm not entirely sure what this means or how to fix my code to prevent that from happening. Also, I'm not sure what the clients that produce this error see? Do they get to see my app? (i.e. are these just warnings and as far as they are concerned everything is fine?)
Any help with this will be greatly appreciated.
Xaan | 0 |
11,471,896 | 07/13/2012 13:53:26 | 168,594 | 09/04/2009 15:14:01 | 1,077 | 38 | On iOS, can you make a synchronous network request (but not on the main thread) and still get progress callbacks (on a separate, non-main thread)? | On iOS, can you make a synchronous network request (off the main thread) and get progress callbacks (on a separate, non-main thread)?
I have have a serial (one-operation-at-a-time) background queue that runs all of time-consuming jobs that don't need to finish *right* now. I do want to show progress for the download jobs though. It doesn't look like you can instantiate an `NSURLConnection` and configure a delegate, start synchronous connection, and then get progress callbacks.
Is there a way to make a synchronous request on that background queue (synchronous in that the job behind it doesn't start until its done), and still get `setProgress:` callbacks which could be sent to update a progressbar? (Callbacks would have to be on a different queue thread, since my serial queue's thread is blocked until the request is finished.)
[Apple's docs for NSURLConnection][1] say that the synchronous request is actually built on top of the asynchronous behind the scenes. Do I have to re-implement that? I need a way to block a thread until the request finishes/fails. The best leads I have so far are `NSOperationQueue`'s `waitUntilFinished` method, but I don't want to start async and continually poll on the synchronous method.
> **NSURLConnection Discussion**
>
> A synchronous load is built on top of the asynchronous loading code made available by the class. The calling thread is blocked while the asynchronous loading system performs the URL load on a thread spawned specifically for this load request. No special threading or run loop configuration is necessary in the calling thread in order to perform a synchronous load.
[1]: https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/nsurlconnection_Class/Reference/Reference.html | ios | nsurlconnection | gcd | null | null | null | open | On iOS, can you make a synchronous network request (but not on the main thread) and still get progress callbacks (on a separate, non-main thread)?
===
On iOS, can you make a synchronous network request (off the main thread) and get progress callbacks (on a separate, non-main thread)?
I have have a serial (one-operation-at-a-time) background queue that runs all of time-consuming jobs that don't need to finish *right* now. I do want to show progress for the download jobs though. It doesn't look like you can instantiate an `NSURLConnection` and configure a delegate, start synchronous connection, and then get progress callbacks.
Is there a way to make a synchronous request on that background queue (synchronous in that the job behind it doesn't start until its done), and still get `setProgress:` callbacks which could be sent to update a progressbar? (Callbacks would have to be on a different queue thread, since my serial queue's thread is blocked until the request is finished.)
[Apple's docs for NSURLConnection][1] say that the synchronous request is actually built on top of the asynchronous behind the scenes. Do I have to re-implement that? I need a way to block a thread until the request finishes/fails. The best leads I have so far are `NSOperationQueue`'s `waitUntilFinished` method, but I don't want to start async and continually poll on the synchronous method.
> **NSURLConnection Discussion**
>
> A synchronous load is built on top of the asynchronous loading code made available by the class. The calling thread is blocked while the asynchronous loading system performs the URL load on a thread spawned specifically for this load request. No special threading or run loop configuration is necessary in the calling thread in order to perform a synchronous load.
[1]: https://developer.apple.com/library/ios/#documentation/Cocoa/Reference/Foundation/Classes/nsurlconnection_Class/Reference/Reference.html | 0 |
11,471,903 | 07/13/2012 13:54:06 | 461,712 | 09/29/2010 12:24:33 | 873 | 55 | How do I keep placeholders from hiding when clicking on a input in Firefox? | I need some help with Firefox browser issues please?
I have an input with a placeholder:
<input id="contact_lastname" type="text" value="" name="contact_lastname" size="45" placeholder="Type your last name" style="-moz-user-select: none; -moz-user-input: disabled; -moz-user-modify: read-only;" autocomplete="off">
Only in Firefox, when I click on that input box, the placeholder will disappear and only then does the unselectable part kick in. Is there some way to disable that html5 event that actually makes the placeholder hidden every time I click on the unselectable input?
I have tried these CSS values already:
-moz-user-input: disabled
-moz-user-modify: read-only
-moz-user-select: none
user-select: none
Am I missing one?
| css | html5 | firefox | placeholder | null | null | open | How do I keep placeholders from hiding when clicking on a input in Firefox?
===
I need some help with Firefox browser issues please?
I have an input with a placeholder:
<input id="contact_lastname" type="text" value="" name="contact_lastname" size="45" placeholder="Type your last name" style="-moz-user-select: none; -moz-user-input: disabled; -moz-user-modify: read-only;" autocomplete="off">
Only in Firefox, when I click on that input box, the placeholder will disappear and only then does the unselectable part kick in. Is there some way to disable that html5 event that actually makes the placeholder hidden every time I click on the unselectable input?
I have tried these CSS values already:
-moz-user-input: disabled
-moz-user-modify: read-only
-moz-user-select: none
user-select: none
Am I missing one?
| 0 |
11,471,904 | 07/13/2012 13:54:10 | 1,318,993 | 04/07/2012 11:37:48 | 21 | 0 | How to clear the data in other columns when editing one column in SWT table? | Assume there is a **SWT** table, like following:
http://www.javaworld.com/javaworld/jw-05-2004/images/jw-0531-swt3.jpg
And I assume the second column(FirstName) is editable, and it is **TextCellEditor**.
My question: When the data in a cell of this column is changed, the data in other columns in this row should be cleared. How to achieve such function? Is there any tutorial code? | eclipse | swt | null | null | null | null | open | How to clear the data in other columns when editing one column in SWT table?
===
Assume there is a **SWT** table, like following:
http://www.javaworld.com/javaworld/jw-05-2004/images/jw-0531-swt3.jpg
And I assume the second column(FirstName) is editable, and it is **TextCellEditor**.
My question: When the data in a cell of this column is changed, the data in other columns in this row should be cleared. How to achieve such function? Is there any tutorial code? | 0 |
11,471,919 | 07/13/2012 13:54:35 | 1,496,196 | 07/02/2012 13:37:44 | 1 | 0 | How can I catch event ExitFullScreen of a video? | How can I catch event ExitFullScreen of a video ?
I need to redraw the page when I exit the FullScreen of tag video. | javascript | html5 | webkit | android-browser | null | null | open | How can I catch event ExitFullScreen of a video?
===
How can I catch event ExitFullScreen of a video ?
I need to redraw the page when I exit the FullScreen of tag video. | 0 |
11,471,920 | 07/13/2012 13:54:42 | 1,115,471 | 12/25/2011 17:10:02 | 495 | 25 | How to minimaze/maximaze the Ribbon | I use the Ribbon for WPF (2010 - Microsoft.Windows.Controls.Ribbon). I want to create a Button, which minimize or maximize the Ribbon Tab, like in msoffice this button:
![enter image description here][1]
How can I do that?
[1]: http://i.stack.imgur.com/QyTVz.png | wpf | ribbon | minimize | maximize | null | null | open | How to minimaze/maximaze the Ribbon
===
I use the Ribbon for WPF (2010 - Microsoft.Windows.Controls.Ribbon). I want to create a Button, which minimize or maximize the Ribbon Tab, like in msoffice this button:
![enter image description here][1]
How can I do that?
[1]: http://i.stack.imgur.com/QyTVz.png | 0 |
11,471,921 | 07/13/2012 13:54:47 | 1,257,132 | 03/08/2012 13:47:42 | 3 | 1 | Submit action changing my routes | I have one form in my page, when i send this form my routes change automatically.
One example:
My normal route: login/attempt
route changed: login/attempt/email_ak/brian.rno%40gmail.com/submit_ak/Enviar
But not is my current route, are the respective links on the page that are changed.
Someone know how i can remove this? | php | zend-framework | submit | route | null | null | open | Submit action changing my routes
===
I have one form in my page, when i send this form my routes change automatically.
One example:
My normal route: login/attempt
route changed: login/attempt/email_ak/brian.rno%40gmail.com/submit_ak/Enviar
But not is my current route, are the respective links on the page that are changed.
Someone know how i can remove this? | 0 |
11,410,527 | 07/10/2012 09:39:29 | 999,588 | 10/17/2011 16:33:32 | 79 | 18 | how can I configure nginx with tomcat | I had deployed one application in tomcat, say 'sample'. and I want to configure with nginx.
how can I do it?
what changes I have to do it in server.xml file of tomcat and in nginx.conf file of NGINX? | java | tomcat | nginx | application-server | null | null | open | how can I configure nginx with tomcat
===
I had deployed one application in tomcat, say 'sample'. and I want to configure with nginx.
how can I do it?
what changes I have to do it in server.xml file of tomcat and in nginx.conf file of NGINX? | 0 |
11,410,530 | 07/10/2012 09:39:51 | 603,200 | 02/04/2011 13:19:17 | 1,120 | 32 | Replace a website's CSS with my own | I was wondering whether it is possible to override a website's CSS with my own? I have seen a blog about how to replace a `.js` file from the website with Fiddler2. I'm guessing this is possible for CSS files too, or is there a better way to do this? | css | fiddler | null | null | null | null | open | Replace a website's CSS with my own
===
I was wondering whether it is possible to override a website's CSS with my own? I have seen a blog about how to replace a `.js` file from the website with Fiddler2. I'm guessing this is possible for CSS files too, or is there a better way to do this? | 0 |
11,410,531 | 07/10/2012 09:39:52 | 746,190 | 05/10/2011 05:13:38 | 984 | 43 | Current location of user is not finding using GPS Provider | I am using the following code to find current location of user
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L, 500.0f, this);
public void onLocationChanged(Location location) {
Log.e("changed","location");
// TODO Auto-generated method stub
showLocation(location);
}
But the location of user is not finding.If i change provider to Network Provider its working.But with GPS provider only it not working. | android | gps | null | null | null | null | open | Current location of user is not finding using GPS Provider
===
I am using the following code to find current location of user
LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000L, 500.0f, this);
public void onLocationChanged(Location location) {
Log.e("changed","location");
// TODO Auto-generated method stub
showLocation(location);
}
But the location of user is not finding.If i change provider to Network Provider its working.But with GPS provider only it not working. | 0 |
11,410,533 | 07/10/2012 09:39:58 | 1,514,057 | 07/10/2012 07:46:32 | 8 | 0 | Android(Table layout) | I am trying to display a table layout.In that i have the following error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.budget1/com.budget1.Report}: android.view.InflateException: Binary XML file line #2: Error inflating class Tablelayout
My xml code is:
<?xml version="1.0" encoding="utf-8"?>
<Tablelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Tablerow>
<Textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Enter your name">
</Textview>
<Edittext android:layout_width="150px" android:layout_height="wrap_content">
</Edittext>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit"
/>
</Tablerow>
<Tablerow>
<Textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Spanning Two columns" android:layout_span="2">
</Textview>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cancel"
/>
</Tablerow>
</Tablelayout>
Please help me..
| android | tablelayout | null | null | null | null | open | Android(Table layout)
===
I am trying to display a table layout.In that i have the following error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.budget1/com.budget1.Report}: android.view.InflateException: Binary XML file line #2: Error inflating class Tablelayout
My xml code is:
<?xml version="1.0" encoding="utf-8"?>
<Tablelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent">
<Tablerow>
<Textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Enter your name">
</Textview>
<Edittext android:layout_width="150px" android:layout_height="wrap_content">
</Edittext>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Submit"
/>
</Tablerow>
<Tablerow>
<Textview android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Spanning Two columns" android:layout_span="2">
</Textview>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cancel"
/>
</Tablerow>
</Tablelayout>
Please help me..
| 0 |
11,410,535 | 07/10/2012 09:40:27 | 1,514,314 | 07/10/2012 09:20:47 | 1 | 0 | Jquery Mobile only changes up to 3 Sliders with Masterslider | first question for me here so please forgive my dumbness. ;)
I was trying to change multiple Sliders with 1 master slider.
It works fine for the first 3 sliders I want to be changed, if I want to change 4 - nothing happens.
I'm new in Java/JQM so forgive, please.
Code:
For masterslider:
` <input type="range" name="master" id="master" value="$masterpreishalf" min="0" max="$masterpreismax" data-mini="true" step="0.1" onChange="changeSliders()" />`
The changeSlider function looks like the following:
`function changeSliders()
{
var slider1 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxDiesel .";
var slider2 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxuDiesel .";
var slider3 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxE10 .";
var slider4 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxSuper .";
var slider5 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxSuperPlus .";
$(\"#slider1\").val( slider1 );
$(\"#slider1\").slider(\"refresh\");
$(\"#slider2\").val( slider1 );
$(\"#slider2\").slider("\refresh\");
$(\"#slider3\").val( slider1 );
$(\"#slider3\").slider(\"refresh\");
$(\"#slider4\").val( slider1 );
$(\"#slider4\").slider(\"refresh\");
$(\"#slider5\").val( slider1 );
$(\"#slider5\").slider(\"refresh\");
}`
It's inside a php document so the values are in the variables.
| java | jquery | mobile | null | null | null | open | Jquery Mobile only changes up to 3 Sliders with Masterslider
===
first question for me here so please forgive my dumbness. ;)
I was trying to change multiple Sliders with 1 master slider.
It works fine for the first 3 sliders I want to be changed, if I want to change 4 - nothing happens.
I'm new in Java/JQM so forgive, please.
Code:
For masterslider:
` <input type="range" name="master" id="master" value="$masterpreishalf" min="0" max="$masterpreismax" data-mini="true" step="0.1" onChange="changeSliders()" />`
The changeSlider function looks like the following:
`function changeSliders()
{
var slider1 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxDiesel .";
var slider2 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxuDiesel .";
var slider3 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxE10 .";
var slider4 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxSuper .";
var slider5 = $(\"#master\").val() / ". $masterpreismax ." * ". $maxSuperPlus .";
$(\"#slider1\").val( slider1 );
$(\"#slider1\").slider(\"refresh\");
$(\"#slider2\").val( slider1 );
$(\"#slider2\").slider("\refresh\");
$(\"#slider3\").val( slider1 );
$(\"#slider3\").slider(\"refresh\");
$(\"#slider4\").val( slider1 );
$(\"#slider4\").slider(\"refresh\");
$(\"#slider5\").val( slider1 );
$(\"#slider5\").slider(\"refresh\");
}`
It's inside a php document so the values are in the variables.
| 0 |
11,410,432 | 07/10/2012 09:34:23 | 1,081,396 | 12/05/2011 10:51:17 | 145 | 1 | Making doctrine ORM work on PHP | I have tried to follow the "steps" detailed on the website but i couldn't make it work:
http://docs.doctrine-project.org/en/latest/reference/configuration.html
I have downloaded the doctrine package.
Then i have installed it using PEAR.
Now, i create a file called "test.php" with the following content:
//loding Setup from the doctrine package...
require 'vendor/Doctrine/ORM/Tools/Setup.php';
Doctrine\ORM\Tools\Setup::registerAutoloadPEAR();
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
$paths = array("/path/to/entities-or-mapping-files");
$isDevMode = false;
// the connection configuration
$dbParams = array(
'driver' => 'pdo_mysql',
'host' => 'localhost',
'user' => 'admin',
'password' => 'mypass',
'dbname' => 'test',
);
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
$em = EntityManager::create($dbParams, $config);
// or if you prefer yaml or xml
//$config = Setup::createXMLMetadataConfiguration($paths, $isDevMode);
//$config = Setup::createYAMLMetadataConfiguration($paths, $isDevMode);
What else should i do to make it work?
I can not currently do something like:
print_r($em->getRepository("User"));
Something is missing but i dont know what.
Thanks. | php | orm | doctrine | doctrine2 | null | null | open | Making doctrine ORM work on PHP
===
I have tried to follow the "steps" detailed on the website but i couldn't make it work:
http://docs.doctrine-project.org/en/latest/reference/configuration.html
I have downloaded the doctrine package.
Then i have installed it using PEAR.
Now, i create a file called "test.php" with the following content:
//loding Setup from the doctrine package...
require 'vendor/Doctrine/ORM/Tools/Setup.php';
Doctrine\ORM\Tools\Setup::registerAutoloadPEAR();
use Doctrine\ORM\Tools\Setup;
use Doctrine\ORM\EntityManager;
$paths = array("/path/to/entities-or-mapping-files");
$isDevMode = false;
// the connection configuration
$dbParams = array(
'driver' => 'pdo_mysql',
'host' => 'localhost',
'user' => 'admin',
'password' => 'mypass',
'dbname' => 'test',
);
$config = Setup::createAnnotationMetadataConfiguration($paths, $isDevMode);
$em = EntityManager::create($dbParams, $config);
// or if you prefer yaml or xml
//$config = Setup::createXMLMetadataConfiguration($paths, $isDevMode);
//$config = Setup::createYAMLMetadataConfiguration($paths, $isDevMode);
What else should i do to make it work?
I can not currently do something like:
print_r($em->getRepository("User"));
Something is missing but i dont know what.
Thanks. | 0 |
11,407,336 | 07/10/2012 05:50:30 | 633,513 | 02/25/2011 03:21:14 | 865 | 26 | pdf size options botches up object positions | I have a PDF report generated with the TCPDF library. It generates barcodes and lays them out to fit EXACTLY to Staples address labels (#18057). When the PDF is printed with the Size Option set at "Actual Fit", they fit perfectly. However, the attendant at the Copy shop doesn't always get the "Actual Fit" option selected and it's left at the "Fit" setting, which distorts the width, height, and xy positions of the labels. Is there anyway to create the PDF where the "Fit" and "Actual Fit" settings produce the exact same positions? | php | pdf | null | null | null | null | open | pdf size options botches up object positions
===
I have a PDF report generated with the TCPDF library. It generates barcodes and lays them out to fit EXACTLY to Staples address labels (#18057). When the PDF is printed with the Size Option set at "Actual Fit", they fit perfectly. However, the attendant at the Copy shop doesn't always get the "Actual Fit" option selected and it's left at the "Fit" setting, which distorts the width, height, and xy positions of the labels. Is there anyway to create the PDF where the "Fit" and "Actual Fit" settings produce the exact same positions? | 0 |
11,407,337 | 07/10/2012 05:50:36 | 1,059,639 | 11/22/2011 11:13:14 | 16 | 2 | smartGWT TileGrid::onKeyPress -- how to override Enter key, but keep default processing for other keys | I am loading file icons on a tile grid in a smartGWT project. When Enter key is pressed, I want to open the selected file for display.
When I override the onKeyPress handler, it does work, but the tile grid navigational behavior using left/right/up/down arrow keys is lost.
My question is.., how to retain the default processing behavior, while still override the Enter key.
tileGrid.addKeyPressHandler (new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if (EventHandler.getKey().equals("Enter")) {
//do something special here
}
else {
**//TODO: do the default processing..**.
}
}
}); | smartgwt | onkeypress | null | null | null | null | open | smartGWT TileGrid::onKeyPress -- how to override Enter key, but keep default processing for other keys
===
I am loading file icons on a tile grid in a smartGWT project. When Enter key is pressed, I want to open the selected file for display.
When I override the onKeyPress handler, it does work, but the tile grid navigational behavior using left/right/up/down arrow keys is lost.
My question is.., how to retain the default processing behavior, while still override the Enter key.
tileGrid.addKeyPressHandler (new KeyPressHandler() {
@Override
public void onKeyPress(KeyPressEvent event) {
if (EventHandler.getKey().equals("Enter")) {
//do something special here
}
else {
**//TODO: do the default processing..**.
}
}
}); | 0 |
11,410,545 | 07/10/2012 09:40:55 | 683,434 | 03/30/2011 07:00:54 | 22 | 2 | I am getting HTML response through web service | I am getting HTML response through web service and i want xml from web method,i am using TBXML xml purser, its occur occasionally.like as
<html><head><title>The resource cannot be found.</title><style>body{font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}b{font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}..............................................................
pls help me.
| iphone | null | null | null | null | null | open | I am getting HTML response through web service
===
I am getting HTML response through web service and i want xml from web method,i am using TBXML xml purser, its occur occasionally.like as
<html><head><title>The resource cannot be found.</title><style>body{font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}b{font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}..............................................................
pls help me.
| 0 |
11,628,014 | 07/24/2012 09:33:26 | 1,468,178 | 06/20/2012 05:29:44 | 1 | 0 | How to create unique cookie when path=/? | My website hosting service (which I am stuck with) insists that a home page is Abc.com/ and that other pages are Abc.com/here and Abc.com/there and Abc.com/somethingelse . In code which is common to all the pages, I have a JavaScript script using a browser cookie (e.g. myDailyValue=17) with appropriate max-age/expires. I wish to use path= to give each page its own unique instance of the cookie, but the path for the home page must be '/' and such a path will be seen by other pages. If there is no extant cookie, the other page will create its own path, eg. '/there', and so long as it is extant it will take priority over the '/' path, but when a user comes back after a week and starts at the home page, the '/' path cookie will be created and all other pages will defer to it and, not seeing an absence-of-cookie, will not create their own cookies with their own values.
At least, this is what I think is happening and must happen.
Have I got this right? Are there well-known work-arounds, or must I jigger the code to use a different cookie name on the home page?
Thank you for reading this far. Please note that my scripting options are limited. JavaScript in the browser is the only practical choice. | cookies | null | null | null | null | null | open | How to create unique cookie when path=/?
===
My website hosting service (which I am stuck with) insists that a home page is Abc.com/ and that other pages are Abc.com/here and Abc.com/there and Abc.com/somethingelse . In code which is common to all the pages, I have a JavaScript script using a browser cookie (e.g. myDailyValue=17) with appropriate max-age/expires. I wish to use path= to give each page its own unique instance of the cookie, but the path for the home page must be '/' and such a path will be seen by other pages. If there is no extant cookie, the other page will create its own path, eg. '/there', and so long as it is extant it will take priority over the '/' path, but when a user comes back after a week and starts at the home page, the '/' path cookie will be created and all other pages will defer to it and, not seeing an absence-of-cookie, will not create their own cookies with their own values.
At least, this is what I think is happening and must happen.
Have I got this right? Are there well-known work-arounds, or must I jigger the code to use a different cookie name on the home page?
Thank you for reading this far. Please note that my scripting options are limited. JavaScript in the browser is the only practical choice. | 0 |
11,628,040 | 07/24/2012 09:35:24 | 259,656 | 01/26/2010 23:34:26 | 2,453 | 122 | Getting the position for a video element | The layout
-
A HTML5 video with a `width` and `height` of `100%` within an element that is resizable.
What I want
-
I need the actual `width`, actual `height`, `top` and `left` of the video.
What I have
-
I'm using jQuery to select the `width` and `height` on the video, and **although wrong**, the values can be used to calculate the actual width and height of the video using the original width and height (`videoWidth` and `videoHeight`). I am however unable to determine the `left` and `top`, as the values returned are always `0`. I've tried both `offset` and `position`, but had no joy.
[jsFiddle demo][1]
-
The jsFiddle demonstrates the container around the video, which has a fixed height for demonstration purposes. Resizing the HTML region will move the video, and centre is accordingly.
[1]://jsfiddle.net/kTH9W/ | javascript | jquery | html5 | null | null | null | open | Getting the position for a video element
===
The layout
-
A HTML5 video with a `width` and `height` of `100%` within an element that is resizable.
What I want
-
I need the actual `width`, actual `height`, `top` and `left` of the video.
What I have
-
I'm using jQuery to select the `width` and `height` on the video, and **although wrong**, the values can be used to calculate the actual width and height of the video using the original width and height (`videoWidth` and `videoHeight`). I am however unable to determine the `left` and `top`, as the values returned are always `0`. I've tried both `offset` and `position`, but had no joy.
[jsFiddle demo][1]
-
The jsFiddle demonstrates the container around the video, which has a fixed height for demonstration purposes. Resizing the HTML region will move the video, and centre is accordingly.
[1]://jsfiddle.net/kTH9W/ | 0 |
11,628,076 | 07/24/2012 09:37:10 | 578,667 | 01/17/2011 14:58:53 | 230 | 7 | Backbone.js - getting id from collection create | I am adding a model to a collection using the `create` method and the api is responding just fine. The model seems to have been properly returned and see the `console.dir( resp );` which is what I was looking for. However, when I try to access `runningorderid`, which is the `id` as defined with `idAttribute`, the response is null. I presume this is something to do with the async nature of the response, but I don't know how to deal with it.
var resp = window.app.RunningOrderCollection.create(
{ runningorderid: null, listitemid: 1, starttime: n} ,
{ wait: true }
);
console.dir( resp );
console.dir( resp.get("strt") );
console.dir( resp.id );
![screenscape of problem][1]
[1]: http://i.stack.imgur.com/9c5KF.png | backbone.js | backbone.js-collections | null | null | null | null | open | Backbone.js - getting id from collection create
===
I am adding a model to a collection using the `create` method and the api is responding just fine. The model seems to have been properly returned and see the `console.dir( resp );` which is what I was looking for. However, when I try to access `runningorderid`, which is the `id` as defined with `idAttribute`, the response is null. I presume this is something to do with the async nature of the response, but I don't know how to deal with it.
var resp = window.app.RunningOrderCollection.create(
{ runningorderid: null, listitemid: 1, starttime: n} ,
{ wait: true }
);
console.dir( resp );
console.dir( resp.get("strt") );
console.dir( resp.id );
![screenscape of problem][1]
[1]: http://i.stack.imgur.com/9c5KF.png | 0 |
11,628,077 | 07/24/2012 09:37:13 | 1,537,419 | 07/19/2012 09:21:08 | 12 | 3 | No longer visible App killed by the System in Android Applcation Development | I am fresh to android development.I have created a android application works properly.But my issue is when i click the "home" button it goes to onPause() method and onStop() maintain activity state.Then i used some other application in my device.After 1 hour again i go to "home" click my application icon based on Activity life cycle it should goes to onRestart() method instead my app again go to "onCreate() method.I thought my application is killed by System because it's no longer visible to the user.
So can you all help me to keep the app activity state alive.
Thanks.... | android | android-intent | null | null | null | null | open | No longer visible App killed by the System in Android Applcation Development
===
I am fresh to android development.I have created a android application works properly.But my issue is when i click the "home" button it goes to onPause() method and onStop() maintain activity state.Then i used some other application in my device.After 1 hour again i go to "home" click my application icon based on Activity life cycle it should goes to onRestart() method instead my app again go to "onCreate() method.I thought my application is killed by System because it's no longer visible to the user.
So can you all help me to keep the app activity state alive.
Thanks.... | 0 |
11,628,083 | 07/24/2012 09:37:47 | 545,061 | 12/16/2010 16:48:02 | 522 | 50 | How to call a JSP tag within a POJO | I have a Java Bean used in a
<jsp:useBean id="controller" class="the.Pojo" scope="page"/>
I put in this Pojo things that I need: like the `request`, the `response` .. so I can include another jsp with `RequestDispatcher`.
What I need to do is to include a `custom tag`, I can put this custom tag in a JSP and incldue that JSP, but I was wondering if there's another way. | jsp | tags | include | custom-tag | requestdispatcher | null | open | How to call a JSP tag within a POJO
===
I have a Java Bean used in a
<jsp:useBean id="controller" class="the.Pojo" scope="page"/>
I put in this Pojo things that I need: like the `request`, the `response` .. so I can include another jsp with `RequestDispatcher`.
What I need to do is to include a `custom tag`, I can put this custom tag in a JSP and incldue that JSP, but I was wondering if there's another way. | 0 |
11,628,060 | 07/24/2012 09:36:11 | 395,028 | 07/18/2010 07:30:15 | 677 | 47 | Getting GIDs from any Android Application | Whenever we start any Activity, we get information about the uid, gid, etc, something like this:
I/ActivityManager( 1986): Start proc app.processName for activity hostingNameStr: pid=3641 uid=10109 gids={3003, 1007}
Now using PackageManager, we can get the packageName, uid and pid something like this:
List<ApplicationInfo> packages = pm
.getInstalledApplications(PackageManager.GET_META_DATA);
for (ApplicationInfo packageInfo : packages) {
Log.d("ME", "packageInfo is :" + packageInfo);
Log.d("ME", "Installed package :" + packageInfo.packageName);
Log.d("ME", "Package process for " + packageInfo.packageName+"-->" + packageInfo.processName);
Log.d("ME", "Package uid for " + packageInfo.packageName+"-->"+packageInfo.uid);
}
But here, I'm not able to get the gid and so was wondering whether getting gid like this is even possible or not.
| android | process | null | null | null | null | open | Getting GIDs from any Android Application
===
Whenever we start any Activity, we get information about the uid, gid, etc, something like this:
I/ActivityManager( 1986): Start proc app.processName for activity hostingNameStr: pid=3641 uid=10109 gids={3003, 1007}
Now using PackageManager, we can get the packageName, uid and pid something like this:
List<ApplicationInfo> packages = pm
.getInstalledApplications(PackageManager.GET_META_DATA);
for (ApplicationInfo packageInfo : packages) {
Log.d("ME", "packageInfo is :" + packageInfo);
Log.d("ME", "Installed package :" + packageInfo.packageName);
Log.d("ME", "Package process for " + packageInfo.packageName+"-->" + packageInfo.processName);
Log.d("ME", "Package uid for " + packageInfo.packageName+"-->"+packageInfo.uid);
}
But here, I'm not able to get the gid and so was wondering whether getting gid like this is even possible or not.
| 0 |
11,628,061 | 07/24/2012 09:36:19 | 617,624 | 02/15/2011 10:52:15 | 13 | 0 | Creating a Linked Server and Database Alias | I have two servers Server1 and Server2
On both servers i have a Database called QAI
is there a way that i can create a linked server with an alias from Server2 to Server1 but instead of
Server1.QAI.dbo.tbBlah
Have it aliased as
QAI.dbo.tbBlah
This is needed due to the QAI DB on server2 failing and needing to fall back to the Server1 instance while it is fixed
Thanks | sql | sql-server | linked-server | null | null | null | open | Creating a Linked Server and Database Alias
===
I have two servers Server1 and Server2
On both servers i have a Database called QAI
is there a way that i can create a linked server with an alias from Server2 to Server1 but instead of
Server1.QAI.dbo.tbBlah
Have it aliased as
QAI.dbo.tbBlah
This is needed due to the QAI DB on server2 failing and needing to fall back to the Server1 instance while it is fixed
Thanks | 0 |
11,594,336 | 07/21/2012 17:25:35 | 555,690 | 12/28/2010 06:15:35 | 1,071 | 37 | Unknown type name | My .h file:
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "GameData.h"
#import "PROBattleScene.h"
@interface PROBattleAI : NSObject {
BattleType type;
PROBattleScene *scene;
}
-(id)initWithType:(BattleType)_type andBattleInformation:(NSMutableDictionary*)_information andScene:(PROBattleScene*)_scene;
-(void)dealloc;
@end
But on the line `PROBattleScene *scene;` I get the unknown type name error from Xcode.
I tried the answer here: http://stackoverflow.com/questions/7897268/xcode-unknown-type-name but I am already doing that (and doesn't work).
Why is that happening? I am already importing my `PROBattleScene.h` file, why isn't it being recognized? | objective-c | ios | xcode | cocos2d-iphone | null | null | open | Unknown type name
===
My .h file:
#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "GameData.h"
#import "PROBattleScene.h"
@interface PROBattleAI : NSObject {
BattleType type;
PROBattleScene *scene;
}
-(id)initWithType:(BattleType)_type andBattleInformation:(NSMutableDictionary*)_information andScene:(PROBattleScene*)_scene;
-(void)dealloc;
@end
But on the line `PROBattleScene *scene;` I get the unknown type name error from Xcode.
I tried the answer here: http://stackoverflow.com/questions/7897268/xcode-unknown-type-name but I am already doing that (and doesn't work).
Why is that happening? I am already importing my `PROBattleScene.h` file, why isn't it being recognized? | 0 |
11,594,343 | 07/21/2012 17:26:14 | 135,982 | 07/10/2009 00:10:34 | 124 | 21 | how to generate a print ready format with dynamic contents? | Hello we have a non profit application built in Google App Engine for Java.
This application allows people to register as Blood Donors on our system.
As a result we want to email them their print ready e-BloodDonor cards.
What is the way to create such cards where we can define the design of the card and contents are filled dynamically based on registered data?
Please advise | google-app-engine | gwt | null | null | null | null | open | how to generate a print ready format with dynamic contents?
===
Hello we have a non profit application built in Google App Engine for Java.
This application allows people to register as Blood Donors on our system.
As a result we want to email them their print ready e-BloodDonor cards.
What is the way to create such cards where we can define the design of the card and contents are filled dynamically based on registered data?
Please advise | 0 |
11,594,061 | 07/21/2012 16:48:54 | 1,483,703 | 06/26/2012 18:50:50 | 1 | 0 | Debug Key used in a project of my pc is not working in another pc | I have generated the api key from the debugkeystore in my development windows pc and the map works fine here. But after another person updates his subversion project with my Google Map file and the key, the map doesnt works on his machine. Need an urgent answer. | android | debugging | key | null | null | null | open | Debug Key used in a project of my pc is not working in another pc
===
I have generated the api key from the debugkeystore in my development windows pc and the map works fine here. But after another person updates his subversion project with my Google Map file and the key, the map doesnt works on his machine. Need an urgent answer. | 0 |
11,594,062 | 07/21/2012 16:49:05 | 1,542,929 | 07/21/2012 16:29:01 | 1 | 0 | Apache2: Rewrite url to different port on localhost | there is a service on my local computer available on 127.0.0.1:8080, but I would prefer to use it rather like 127.0.0.1/qwerty/
I tried to add in /etc/apache2/sites-available/default:
RewriteEngine on
RewriteRule (qwerty/.*)$ http://127.0.0.1:8080/$1
Before that I symlinked rewrite.load in mods-enabled and restarted apache2 server.
Unfortunately, it doesn't work.
| regex | apache2 | rewrite | port | null | null | open | Apache2: Rewrite url to different port on localhost
===
there is a service on my local computer available on 127.0.0.1:8080, but I would prefer to use it rather like 127.0.0.1/qwerty/
I tried to add in /etc/apache2/sites-available/default:
RewriteEngine on
RewriteRule (qwerty/.*)$ http://127.0.0.1:8080/$1
Before that I symlinked rewrite.load in mods-enabled and restarted apache2 server.
Unfortunately, it doesn't work.
| 0 |
11,594,063 | 07/21/2012 16:49:09 | 1,509,590 | 07/08/2012 05:02:18 | 1 | 2 | Where to insert code for application startup? | Android newbee here, I have some code that I want to run when my android app first starts up. It checks the version of the local database and downloads a new version if the current version is out of date. I have been sticking it in the oncreate of my first activity, pretty sure there has to be a better place to put this. Any recommendations of somewhere I can put it where it will get called once on startup? | android | null | null | null | null | null | open | Where to insert code for application startup?
===
Android newbee here, I have some code that I want to run when my android app first starts up. It checks the version of the local database and downloads a new version if the current version is out of date. I have been sticking it in the oncreate of my first activity, pretty sure there has to be a better place to put this. Any recommendations of somewhere I can put it where it will get called once on startup? | 0 |
11,594,344 | 07/21/2012 17:26:14 | 1,304,444 | 03/31/2012 01:58:29 | 48 | 3 | .net mvc3 iTextSharp how to add image to pdf in memory stream and return to browser | I have a .pdf file stored in my database, and I have a signature file (.png) stored in my database. I am trying to use iTextSharp to add the signature image to the .pdf file, and display the result to the browser.
Here is my code:
byte[] file = Repo.GetDocumentBytes(applicantApplication.ApplicationID, documentID);
byte[] signatureBytes = Repo.GetSignatureBytes((Guid)applicantApplicationID, signatureID);
iTextSharp.text.Image signatureImage = iTextSharp.text.Image.GetInstance(signatureBytes);
iTextSharp.text.Document document = new iTextSharp.text.Document();
using (System.IO.MemoryStream ms = new System.IO.MemoryStream(file, 0, file.Length, true, true))
{
PdfWriter writer = PdfWriter.GetInstance(document, ms);
document.Open();
signatureImage.SetAbsolutePosition(200, 200);
signatureImage.ScaleAbsolute(200, 50);
document.Add(signatureImage);
document.Close();
return File(ms.GetBuffer(), "application/pdf");
}
The page loads, and there is a .pdf with a signature, but the original document is nowhere to be found. It looks like I'm creating a new .pdf file and putting the image in there instead of editing the old .pdf file.
I have verified that the original .pdf document is being loaded into the "file" variable. I have also verified that the length of the MemoryStream "ms" is the same as the length of the byte[] "file". | asp.net-mvc-3 | image | itextsharp | memorystream | null | null | open | .net mvc3 iTextSharp how to add image to pdf in memory stream and return to browser
===
I have a .pdf file stored in my database, and I have a signature file (.png) stored in my database. I am trying to use iTextSharp to add the signature image to the .pdf file, and display the result to the browser.
Here is my code:
byte[] file = Repo.GetDocumentBytes(applicantApplication.ApplicationID, documentID);
byte[] signatureBytes = Repo.GetSignatureBytes((Guid)applicantApplicationID, signatureID);
iTextSharp.text.Image signatureImage = iTextSharp.text.Image.GetInstance(signatureBytes);
iTextSharp.text.Document document = new iTextSharp.text.Document();
using (System.IO.MemoryStream ms = new System.IO.MemoryStream(file, 0, file.Length, true, true))
{
PdfWriter writer = PdfWriter.GetInstance(document, ms);
document.Open();
signatureImage.SetAbsolutePosition(200, 200);
signatureImage.ScaleAbsolute(200, 50);
document.Add(signatureImage);
document.Close();
return File(ms.GetBuffer(), "application/pdf");
}
The page loads, and there is a .pdf with a signature, but the original document is nowhere to be found. It looks like I'm creating a new .pdf file and putting the image in there instead of editing the old .pdf file.
I have verified that the original .pdf document is being loaded into the "file" variable. I have also verified that the length of the MemoryStream "ms" is the same as the length of the byte[] "file". | 0 |
11,588,168 | 07/20/2012 23:28:00 | 1,253,667 | 03/07/2012 02:26:45 | 46 | 1 | How to associate a property to uploadifive documents | I just implemented Ajax File Upload **Uploadifive** into my ASP.NET MVC / Jquery web application and is working great.
I would like to associate a "File Type" with every file to upload. For example:
1. "invoice.pdf" File Type: "INVOICE"
2. "bill.pdf" File Type: "BILL"
Right now Uploadifive just let you to choose a file and upload it. I want to extend the control in order to assign to a file a "document type or file type".
Any clue on how I achieve this?
Thanks a lot. | jquery | jquery-ajax | uploadify | null | null | null | open | How to associate a property to uploadifive documents
===
I just implemented Ajax File Upload **Uploadifive** into my ASP.NET MVC / Jquery web application and is working great.
I would like to associate a "File Type" with every file to upload. For example:
1. "invoice.pdf" File Type: "INVOICE"
2. "bill.pdf" File Type: "BILL"
Right now Uploadifive just let you to choose a file and upload it. I want to extend the control in order to assign to a file a "document type or file type".
Any clue on how I achieve this?
Thanks a lot. | 0 |
11,349,927 | 07/05/2012 18:00:20 | 491,739 | 10/29/2010 20:26:40 | 174 | 9 | how to : specify colors for multiple axes chart? | My chart shows up well but the two lines are of the same color. How do I specify different colors for the two lines? Here is my code (fragment) so far:
config.pointIndex = null;
config.areaPoints = new Array();
config.areaPoints[0] = pointsopens;
config.areaPoints[1] = pointsclicks;
var plotLinesopen = createPlotlines(pointsopens);
var plotLinesclick = createPlotlines(pointsclicks);
var options = {
chart : { renderTo : 'areaChart' },
colors: [
'#4572A7',
'#AA4643'
],
xAxis: {
plotLines1: plotLinesopen,
plotLines2: plotLinesclick
},
series : [ data.pointsopens, data.pointsclicks ]
};
if (length > 100) {
options.plotOptions = {
area : {
lineWidth: 1,
marker : { radius : 1 }
}
};
}
options = jQuery.extend(true, {}, areaChartDefault, options);
charts.area = new Highcharts.Chart(options);
Thank you. | colors | highcharts | lines | axes | null | null | open | how to : specify colors for multiple axes chart?
===
My chart shows up well but the two lines are of the same color. How do I specify different colors for the two lines? Here is my code (fragment) so far:
config.pointIndex = null;
config.areaPoints = new Array();
config.areaPoints[0] = pointsopens;
config.areaPoints[1] = pointsclicks;
var plotLinesopen = createPlotlines(pointsopens);
var plotLinesclick = createPlotlines(pointsclicks);
var options = {
chart : { renderTo : 'areaChart' },
colors: [
'#4572A7',
'#AA4643'
],
xAxis: {
plotLines1: plotLinesopen,
plotLines2: plotLinesclick
},
series : [ data.pointsopens, data.pointsclicks ]
};
if (length > 100) {
options.plotOptions = {
area : {
lineWidth: 1,
marker : { radius : 1 }
}
};
}
options = jQuery.extend(true, {}, areaChartDefault, options);
charts.area = new Highcharts.Chart(options);
Thank you. | 0 |
11,349,931 | 07/05/2012 18:00:31 | 300,347 | 03/23/2010 21:52:52 | 558 | 11 | Once offline_access is removed, will asking for it cause an error? | According to the developer roadmap, offline_access is schedule for removal on Oct 3: https://developers.facebook.com/roadmap/
I am currently asking for offline_access for my iOS application. Because this application is a native iOS app deployed through the app store, I can't control it's behavior retroactively unless a user updates (unlike a web app which can be modified at any time). I can release an update to the app of course which does not ask for the permission, *but will users who still have older versions that do ask for the permission see an error, or will the authentication dialog ignore the offline_access scope?*
Note: if I put a random junk permission like "foobar" into the scope list, the dialog definitely does present an error. Hence my concern - will asking for offline_access break the application after Oct 3?
AFAICS there is no clear answer to this question on the deprecation documentation page: http://developers.facebook.com/roadmap/offline-access-removal/
Thanks! | facebook | oauth | facebook-authentication | facebook-ios-sdk | null | null | open | Once offline_access is removed, will asking for it cause an error?
===
According to the developer roadmap, offline_access is schedule for removal on Oct 3: https://developers.facebook.com/roadmap/
I am currently asking for offline_access for my iOS application. Because this application is a native iOS app deployed through the app store, I can't control it's behavior retroactively unless a user updates (unlike a web app which can be modified at any time). I can release an update to the app of course which does not ask for the permission, *but will users who still have older versions that do ask for the permission see an error, or will the authentication dialog ignore the offline_access scope?*
Note: if I put a random junk permission like "foobar" into the scope list, the dialog definitely does present an error. Hence my concern - will asking for offline_access break the application after Oct 3?
AFAICS there is no clear answer to this question on the deprecation documentation page: http://developers.facebook.com/roadmap/offline-access-removal/
Thanks! | 0 |
11,349,934 | 07/05/2012 18:00:46 | 479,507 | 10/18/2010 16:13:00 | 410 | 8 | Allow checkbox to be disabled in Firefox | So I am working on cross-browser code right now. I have checkboxes, that disable after certain functions are called, in IE but not in Firefox & Chrome.
I looked into the code and I see that when rendered in Firefox, the disabled tag is placed on the `td` which is why it works in IE and not the other browsers.
Is there a way in asp.net to disable the cell or checkbox and have it render properly in Firefox, Chrome, etc?
Here is my function where enabled = false
protected void FilterCheckBox(object sender, ASPxGridViewTableCommandCellEventArgs e)
{
if (ExecContractGridView != null)
{
try
{
if (ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy") != null)
{
if (!string.IsNullOrEmpty(ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy").ToString()))
{
e.Cell.Enabled = false;
}
}
}
catch (Exception ex)
{
ApplicationLog.Exception(this, ex);
}
}
} | c# | asp.net | cross-browser | null | null | null | open | Allow checkbox to be disabled in Firefox
===
So I am working on cross-browser code right now. I have checkboxes, that disable after certain functions are called, in IE but not in Firefox & Chrome.
I looked into the code and I see that when rendered in Firefox, the disabled tag is placed on the `td` which is why it works in IE and not the other browsers.
Is there a way in asp.net to disable the cell or checkbox and have it render properly in Firefox, Chrome, etc?
Here is my function where enabled = false
protected void FilterCheckBox(object sender, ASPxGridViewTableCommandCellEventArgs e)
{
if (ExecContractGridView != null)
{
try
{
if (ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy") != null)
{
if (!string.IsNullOrEmpty(ExecContractGridView.GetRowValues(e.VisibleIndex, "UnionExecutedBy").ToString()))
{
e.Cell.Enabled = false;
}
}
}
catch (Exception ex)
{
ApplicationLog.Exception(this, ex);
}
}
} | 0 |
11,349,935 | 07/05/2012 18:00:50 | 1,504,816 | 07/05/2012 17:57:14 | 1 | 0 | Want to put text output from XSL stylesheet into BizTalk map's target message | I have a very complex input message whose node names and values I need to regurgitate (without any namespace info) to the output as though viewing the document in a browser using an XSL stylesheet. I do not need to map any of the individual source XML elements to corresponding target elements. The output will be passed to a flat-file assembler and sent as a simple text message to the consumer.
For simplicity I removed most of the namespaces and changed prefixes in this stylesheet which produces exactly the output I desire:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:abcd="http://abcd.whatever.net/abcd/1.0.1" xmlns:info="http://info.sumthin.net/1.0.0" xmlns:wxyz="http://wxyz.widgetwonks.net/wxyz/3.0.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="text" />
<xsl:template match="abcd:Message">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="info:SpecialText">
<xsl:text> </xsl:text>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="wxyz:PersonSSN">
<xsl:text> SSN: </xsl:text>
<xsl:value-of select="substring(., 0, 4)"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="substring(., 4, 2)"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="substring(., 6, 4)"/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="*">
<xsl:if test="string-length(normalize-space(text()))=0">
<xsl:text>
</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:if test="not(string-length(normalize-space(text()))=0)">
<xsl:text> </xsl:text>
<xsl:value-of select="local-name()"/>: <xsl:value-of select="normalize-space(text())"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()|@*">
<xsl:if test="string-length(normalize-space(.)) != 0">
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
In BizTalk I have referenced this stylesheet on my map grid's "Custom XSL Path" property, and when I test the map I get the right output.
But how can I map this output to a target schema? The output of the stylesheet is just a very long stream of text with many x0D x0A (cr / lf) sprinkled in. I have not been able to devise a schema that BizTalk will permit to be a receptacle for the stylesheet output.
-Mark
| biztalk | biztalk-mapper | null | null | null | null | open | Want to put text output from XSL stylesheet into BizTalk map's target message
===
I have a very complex input message whose node names and values I need to regurgitate (without any namespace info) to the output as though viewing the document in a browser using an XSL stylesheet. I do not need to map any of the individual source XML elements to corresponding target elements. The output will be passed to a flat-file assembler and sent as a simple text message to the consumer.
For simplicity I removed most of the namespaces and changed prefixes in this stylesheet which produces exactly the output I desire:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:abcd="http://abcd.whatever.net/abcd/1.0.1" xmlns:info="http://info.sumthin.net/1.0.0" xmlns:wxyz="http://wxyz.widgetwonks.net/wxyz/3.0.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:output method="text" />
<xsl:template match="abcd:Message">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="info:SpecialText">
<xsl:text> </xsl:text>
<xsl:value-of select="."/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="wxyz:PersonSSN">
<xsl:text> SSN: </xsl:text>
<xsl:value-of select="substring(., 0, 4)"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="substring(., 4, 2)"/>
<xsl:text>-</xsl:text>
<xsl:value-of select="substring(., 6, 4)"/>
<xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="*">
<xsl:if test="string-length(normalize-space(text()))=0">
<xsl:text>
</xsl:text>
<xsl:value-of select="local-name()"/>
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:if test="not(string-length(normalize-space(text()))=0)">
<xsl:text> </xsl:text>
<xsl:value-of select="local-name()"/>: <xsl:value-of select="normalize-space(text())"/>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()|@*">
<xsl:if test="string-length(normalize-space(.)) != 0">
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
In BizTalk I have referenced this stylesheet on my map grid's "Custom XSL Path" property, and when I test the map I get the right output.
But how can I map this output to a target schema? The output of the stylesheet is just a very long stream of text with many x0D x0A (cr / lf) sprinkled in. I have not been able to devise a schema that BizTalk will permit to be a receptacle for the stylesheet output.
-Mark
| 0 |
11,349,937 | 07/05/2012 18:00:51 | 596,025 | 01/30/2011 19:39:05 | 61 | 0 | Access of undefined property data flex | I'm learning flex/flash and I'm lost on this one. I have used the "data" in a bunch of views and it works fine. For some reason it isn't working here.
I set a field to a string here:
function LoginLoaded (e:Event):void {
trace(e.target.data);
var ServerReturn:String;
ServerReturn = new String(e.target.data);
data.UserCommonReturnData = ServerReturn;
navigator.pushView(CommonPlaces, data);
}
and here in the common places view I try to load it back:
var CommonPlacesData:String = new String();
var CurrentSelect:String = new String();
CommonPlacesData = new String(data.UserCommonReturnData);
This gives the error "Access of undefined property data" I don't get it because calling on something like data.PickUpTime (also a string) works fine in other views. Any help would be great!! Thanks!!! | actionscript-3 | flash | flex | flash-builder | mxml | null | open | Access of undefined property data flex
===
I'm learning flex/flash and I'm lost on this one. I have used the "data" in a bunch of views and it works fine. For some reason it isn't working here.
I set a field to a string here:
function LoginLoaded (e:Event):void {
trace(e.target.data);
var ServerReturn:String;
ServerReturn = new String(e.target.data);
data.UserCommonReturnData = ServerReturn;
navigator.pushView(CommonPlaces, data);
}
and here in the common places view I try to load it back:
var CommonPlacesData:String = new String();
var CurrentSelect:String = new String();
CommonPlacesData = new String(data.UserCommonReturnData);
This gives the error "Access of undefined property data" I don't get it because calling on something like data.PickUpTime (also a string) works fine in other views. Any help would be great!! Thanks!!! | 0 |
11,349,943 | 07/05/2012 18:01:09 | 1,370,245 | 05/02/2012 14:15:51 | 28 | 1 | JQuery Click on Div | i have the following code:
<div class="contentContainer">
<div class="bild" id="bildDiv">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<div class="menubox" id="menuboxID">
<table border="0" cellpadding="0" cellspacing="0" class="menutable">
<tr>
<td>
<asp:ImageButton ID="ImageButton1" CssClass="menuitem" ImageUrl="~/Images/Icons_Home.png"
OnClick="HomeClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton2" CssClass="menuitem" data-ftrans="slide" ImageUrl="~/Images/Icons_down.png"
OnClick="DownClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton3" CssClass="menuitem" ImageUrl="~/Images/Icons_up.png"
runat="server" OnClick="UpClick" />
</td>
<td>
<asp:ImageButton ID="ImageButton4" CssClass="menuitem" ImageUrl="~/Images/Icons_Video_alternative.png"
runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton5" CssClass="menuitem" ImageUrl="~/Images/Icons_Mail.png"
runat="server" OnClick="MailClick" />
</td>
</tr>
</table>
</div>
</div>
<script>
$("#bildDiv").click(function () {
$("#menuboxID").toggleClass("fadein");
});
$('body').removeClass('ui-loading');
</script>
So when i click on my #bildDiv, #menuboxID will be faded in! But now i have some textboxes in my #bildDiv! When i click on any textbox in order to write sth, my Menu fades in! But i dont want it to...it should only fade in if i click directly on my div! Solutions? | jquery | null | null | null | null | null | open | JQuery Click on Div
===
i have the following code:
<div class="contentContainer">
<div class="bild" id="bildDiv">
<asp:ContentPlaceHolder ID="MainContent" runat="server">
</asp:ContentPlaceHolder>
<div class="menubox" id="menuboxID">
<table border="0" cellpadding="0" cellspacing="0" class="menutable">
<tr>
<td>
<asp:ImageButton ID="ImageButton1" CssClass="menuitem" ImageUrl="~/Images/Icons_Home.png"
OnClick="HomeClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton2" CssClass="menuitem" data-ftrans="slide" ImageUrl="~/Images/Icons_down.png"
OnClick="DownClick" runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton3" CssClass="menuitem" ImageUrl="~/Images/Icons_up.png"
runat="server" OnClick="UpClick" />
</td>
<td>
<asp:ImageButton ID="ImageButton4" CssClass="menuitem" ImageUrl="~/Images/Icons_Video_alternative.png"
runat="server" />
</td>
<td>
<asp:ImageButton ID="ImageButton5" CssClass="menuitem" ImageUrl="~/Images/Icons_Mail.png"
runat="server" OnClick="MailClick" />
</td>
</tr>
</table>
</div>
</div>
<script>
$("#bildDiv").click(function () {
$("#menuboxID").toggleClass("fadein");
});
$('body').removeClass('ui-loading');
</script>
So when i click on my #bildDiv, #menuboxID will be faded in! But now i have some textboxes in my #bildDiv! When i click on any textbox in order to write sth, my Menu fades in! But i dont want it to...it should only fade in if i click directly on my div! Solutions? | 0 |
11,349,946 | 07/05/2012 18:01:13 | 1,177,153 | 01/30/2012 01:27:47 | 36 | 0 | Powershell: Running a process using New-Object hides it | I have a need to grab the stdout from an external program and bring it back into Powershell. I found and am using the answer provided by @Andy Arismendi from this question ( http://stackoverflow.com/questions/8925323/powershell-redirection-of-standard-and-error-output-appending-to-the-same-log-f).
The snippet below works great for me, however the external executable runs silently in the background. Is there a way to prevent it from hiding?
$pinfo = New-Object System.Diagnostics.ProcessStartInfo
$pinfo.FileName = "myjob.bat"
$pinfo.RedirectStandardError = $true
$pinfo.RedirectStandardOutput = $true
$pinfo.UseShellExecute = $false
$pinfo.Arguments = ""
$p = New-Object System.Diagnostics.Process
$p.StartInfo = $pinfo
$p.Start() | Out-Null
$p.WaitForExit()
$output = $p.StandardOutput.ReadToEnd()
$output += $p.StandardError.ReadToEnd()
$output | Out-File $myLog -Append | powershell | powershell-v2.0 | null | null | null | null | open | Powershell: Running a process using New-Object hides it
===
I have a need to grab the stdout from an external program and bring it back into Powershell. I found and am using the answer provided by @Andy Arismendi from this question ( http://stackoverflow.com/questions/8925323/powershell-redirection-of-standard-and-error-output-appending-to-the-same-log-f).
The snippet below works great for me, however the external executable runs silently in the background. Is there a way to prevent it from hiding?
$pinfo = New-Object System.Diagnostics.ProcessStartInfo
$pinfo.FileName = "myjob.bat"
$pinfo.RedirectStandardError = $true
$pinfo.RedirectStandardOutput = $true
$pinfo.UseShellExecute = $false
$pinfo.Arguments = ""
$p = New-Object System.Diagnostics.Process
$p.StartInfo = $pinfo
$p.Start() | Out-Null
$p.WaitForExit()
$output = $p.StandardOutput.ReadToEnd()
$output += $p.StandardError.ReadToEnd()
$output | Out-File $myLog -Append | 0 |
11,349,950 | 07/05/2012 18:01:26 | 1,504,457 | 07/05/2012 15:17:48 | 1 | 0 | Android SQLite Join Query | I'm creating an app as a learning tool and am having difficulty with join queries.
I have a database with two tables- horses and covers- declared as follows;
private static final String HORSES_CREATE = "create table horses (_id integer primary key autoincrement, "
+ "name text not null, type integer not null, birthDate text not null, vaccineDate text not null, "
+ "inFoal integer not null, notes text not null);";
The 'type' field refers to stallion, mare, gelding etc and is selected from a spinner (populated from an XML String array).
private static final String COVERS_CREATE = "create table covers (_id integer primary key autoincrement, "
+ "stallionName integer not null, mareName integer not null, firstCoverDate text not null, lastCoverDate text not null, "
+ "scan14Date text not null, scan28Date text not null, foalingDate text not null, inFoal integer not null, notes text not null);";
stallionName is actually stored as the _id field of the horse from the horse table. It is selected from a spinner that only displays horses whose type defined as 'Stallion' in the horses table. (The same applies for Mare).
I have a class 'DatabaseHelper' to create and upgrade the tables, and each table has its own adapter class 'horsesDbAdapter' and 'coversDbAdapter' that contains the methods to add, edit and delete entries, and relevant queries. (fetchAllHorses(), fetchHorse(long rowId) )
eg:
public Cursor fetchAllHorses() {
return mDb.query(DATABASE_TABLE,
new String[] { KEY_ROWID, KEY_NAME, KEY_TYPE, KEY_BIRTHDATE,
KEY_VACCINEDATE, KEY_INFOAL, KEY_NOTES }, null, null,
null, null, null);
}
(It's all adapted from the Android notepad example)
I have the contents of the covers table displayed in a listview (just showing the stallionName and mareName). But as those fields just contain the unique reference to the horses table all that is displayed is the fairly uninformative _id field.
My question is; how can I get the relevant name for the horses to display in the listView? I've read up on join queries etc but get lost when I try implement them. I assume I have to join on horses._id and covers.stallionName (then make an almost-identical one for MareName) but I can't find a concrete example of how to do this.
Please let me know if any additional information/ code is needed.
Any help would be greatly appreciated, thankyou in advance. | android | query | sqlite | join | null | null | open | Android SQLite Join Query
===
I'm creating an app as a learning tool and am having difficulty with join queries.
I have a database with two tables- horses and covers- declared as follows;
private static final String HORSES_CREATE = "create table horses (_id integer primary key autoincrement, "
+ "name text not null, type integer not null, birthDate text not null, vaccineDate text not null, "
+ "inFoal integer not null, notes text not null);";
The 'type' field refers to stallion, mare, gelding etc and is selected from a spinner (populated from an XML String array).
private static final String COVERS_CREATE = "create table covers (_id integer primary key autoincrement, "
+ "stallionName integer not null, mareName integer not null, firstCoverDate text not null, lastCoverDate text not null, "
+ "scan14Date text not null, scan28Date text not null, foalingDate text not null, inFoal integer not null, notes text not null);";
stallionName is actually stored as the _id field of the horse from the horse table. It is selected from a spinner that only displays horses whose type defined as 'Stallion' in the horses table. (The same applies for Mare).
I have a class 'DatabaseHelper' to create and upgrade the tables, and each table has its own adapter class 'horsesDbAdapter' and 'coversDbAdapter' that contains the methods to add, edit and delete entries, and relevant queries. (fetchAllHorses(), fetchHorse(long rowId) )
eg:
public Cursor fetchAllHorses() {
return mDb.query(DATABASE_TABLE,
new String[] { KEY_ROWID, KEY_NAME, KEY_TYPE, KEY_BIRTHDATE,
KEY_VACCINEDATE, KEY_INFOAL, KEY_NOTES }, null, null,
null, null, null);
}
(It's all adapted from the Android notepad example)
I have the contents of the covers table displayed in a listview (just showing the stallionName and mareName). But as those fields just contain the unique reference to the horses table all that is displayed is the fairly uninformative _id field.
My question is; how can I get the relevant name for the horses to display in the listView? I've read up on join queries etc but get lost when I try implement them. I assume I have to join on horses._id and covers.stallionName (then make an almost-identical one for MareName) but I can't find a concrete example of how to do this.
Please let me know if any additional information/ code is needed.
Any help would be greatly appreciated, thankyou in advance. | 0 |
11,373,029 | 07/07/2012 07:07:07 | 274,392 | 02/16/2010 13:34:19 | 690 | 12 | Design: Selling content on 3rd party site | Just need some advice as I'm new to this territory and not sure what the best approach is.
I have a site where we sell online courses like udemy or appsumo or lynda. People pay on the site and can access/stream videos and quizzes online.
Now I'm partnering with a 3rd party site which will sell our courses but we are custom making courses for this site and these courses will not be available on my site for my users. Similarly the courses available on my site should not visible to users who come from this 3rd party site.
The idea is - on the 3rd party site - the user is going to view the course details, register and pay online after which the user will be redirected to my site. The user should not get any indication that he has come to my site - the look and feel should be similar to the 3rd party site and the URL will be masked as well. It goes without saying that while he is on my site - he should not be able to access any of my current pages like "view courses", "about us" "contact us" etc etc
Basically the idea is the user will never know about my site. Even next time when he wants to access the course - he will login on the 3rd party site and get redirected here.
So the tech team on the other end is suggesting that I should make a new build with just the main course pages and a new layout and deploy it on a separate server but pointing to the same back end database.
The idea of maintaining two versions of the same site doesn't seem right to me.
Need some advice from experts who've been there and done that.
Thanks | design-patterns | design | null | null | null | null | open | Design: Selling content on 3rd party site
===
Just need some advice as I'm new to this territory and not sure what the best approach is.
I have a site where we sell online courses like udemy or appsumo or lynda. People pay on the site and can access/stream videos and quizzes online.
Now I'm partnering with a 3rd party site which will sell our courses but we are custom making courses for this site and these courses will not be available on my site for my users. Similarly the courses available on my site should not visible to users who come from this 3rd party site.
The idea is - on the 3rd party site - the user is going to view the course details, register and pay online after which the user will be redirected to my site. The user should not get any indication that he has come to my site - the look and feel should be similar to the 3rd party site and the URL will be masked as well. It goes without saying that while he is on my site - he should not be able to access any of my current pages like "view courses", "about us" "contact us" etc etc
Basically the idea is the user will never know about my site. Even next time when he wants to access the course - he will login on the 3rd party site and get redirected here.
So the tech team on the other end is suggesting that I should make a new build with just the main course pages and a new layout and deploy it on a separate server but pointing to the same back end database.
The idea of maintaining two versions of the same site doesn't seem right to me.
Need some advice from experts who've been there and done that.
Thanks | 0 |
11,373,032 | 07/07/2012 07:07:20 | 1,395,545 | 05/15/2012 07:42:41 | 6 | 1 | using CActiveDataProvider to display group by MYSQL record | please i need a quick help right now. Here is my question
i have a table with several columns. Am using yii framework to display my data what i want to do is to group my record in this way
column 1 column2 column3 column4
1 2 3 4
80 3 1 100
30 3 1 60
50 3 0 10
90 2 3 40
100 2 1 80
SO what i want to do is to query my table display column2 and column3, group by my column2. But where am having issues is that, my column2 returns 2,2 - 3,3 and group record from column3 under each of the duplicated column2
My result should be display in this way:
........................................................................
column2 -- 2
.1
.3
.........................................................................
column2 -- 3
.0
.1
controller::
protected function displaybyCategory()
{
//$model = new myModel;
$criteria= new CDbCriteria();
$criteria->distinct = true;
$criteria->group = 'column2,column3';
$criteria->order = 'column2';
//$dataProvider=new CActiveDataProvider('myModel' );
$dataProvider=new CActiveDataProvider('myModel', array(
'criteria'=>$criteria,
'pagination'=>false,
));
$this->renderpartial('application.views.competency.ctype',array(
'dataProvider'=>$dataProvider,
));
}
My View:
<ul id="example1" class="accordion">
<li>
<h3><?php echo CHtml::link(CHtml::encode($data->column2)); ?></h3>
<div class="panel loading">
<h4><?php echo CHtml::link(CHtml::encode($data->column3)); ?></h4>
</div>
</li>
</ul>
| yii-db | null | null | null | null | null | open | using CActiveDataProvider to display group by MYSQL record
===
please i need a quick help right now. Here is my question
i have a table with several columns. Am using yii framework to display my data what i want to do is to group my record in this way
column 1 column2 column3 column4
1 2 3 4
80 3 1 100
30 3 1 60
50 3 0 10
90 2 3 40
100 2 1 80
SO what i want to do is to query my table display column2 and column3, group by my column2. But where am having issues is that, my column2 returns 2,2 - 3,3 and group record from column3 under each of the duplicated column2
My result should be display in this way:
........................................................................
column2 -- 2
.1
.3
.........................................................................
column2 -- 3
.0
.1
controller::
protected function displaybyCategory()
{
//$model = new myModel;
$criteria= new CDbCriteria();
$criteria->distinct = true;
$criteria->group = 'column2,column3';
$criteria->order = 'column2';
//$dataProvider=new CActiveDataProvider('myModel' );
$dataProvider=new CActiveDataProvider('myModel', array(
'criteria'=>$criteria,
'pagination'=>false,
));
$this->renderpartial('application.views.competency.ctype',array(
'dataProvider'=>$dataProvider,
));
}
My View:
<ul id="example1" class="accordion">
<li>
<h3><?php echo CHtml::link(CHtml::encode($data->column2)); ?></h3>
<div class="panel loading">
<h4><?php echo CHtml::link(CHtml::encode($data->column3)); ?></h4>
</div>
</li>
</ul>
| 0 |
11,373,033 | 07/07/2012 07:08:00 | 1,508,384 | 07/07/2012 07:05:08 | 1 | 0 | How to catch C2DM notice coming to the phone? | Is it possible to android-phone software to intercept all C2DM notifications coming to the phone? If so, which way should dig. | android-intent | push-notification | android-c2dm | null | null | null | open | How to catch C2DM notice coming to the phone?
===
Is it possible to android-phone software to intercept all C2DM notifications coming to the phone? If so, which way should dig. | 0 |
11,132,763 | 06/21/2012 06:35:10 | 932,965 | 09/07/2011 14:35:55 | 11 | 0 | Linux - get text from second tab | Suppose that we have file like this:
> sometext11 sometext12 sometext13
> sometext21 sometext22 sometext23
Texts are separated by tabs and we know sometext from column 1 but want to get text from column 2.
I know I can get line by:
grep 'sometext11' file.txt
How to get text from second column?
Mayby some tool with option -t [column nr]? | linux | bash | text | null | null | null | open | Linux - get text from second tab
===
Suppose that we have file like this:
> sometext11 sometext12 sometext13
> sometext21 sometext22 sometext23
Texts are separated by tabs and we know sometext from column 1 but want to get text from column 2.
I know I can get line by:
grep 'sometext11' file.txt
How to get text from second column?
Mayby some tool with option -t [column nr]? | 0 |
11,132,764 | 06/21/2012 06:35:16 | 1,299,921 | 03/29/2012 05:45:30 | 1 | 1 | Recurring Payments paypal inserting daa in database | i have successfull integrate CreateRecurringPaymentsProfile method that will recurre payment from the client. now wat i need to do is. after every month of reccuring payment i need to insert data in my database table. Is there anything that i get resopnse from paypal aftr the payment is done.
or how can i insert data in my database aftr each time preriod.
thank you all for reading my post. i looking forward for ur post any suggestion are most welcome.
regards,
anstrangelover | database | codeigniter | paypal | null | null | null | open | Recurring Payments paypal inserting daa in database
===
i have successfull integrate CreateRecurringPaymentsProfile method that will recurre payment from the client. now wat i need to do is. after every month of reccuring payment i need to insert data in my database table. Is there anything that i get resopnse from paypal aftr the payment is done.
or how can i insert data in my database aftr each time preriod.
thank you all for reading my post. i looking forward for ur post any suggestion are most welcome.
regards,
anstrangelover | 0 |
11,373,034 | 07/07/2012 07:08:01 | 1,496,877 | 07/02/2012 18:34:02 | 2 | 0 | DbManager.h not found | Hi i am using visual studio 2008 and want to connect my database in oracle. but while running the below code iam getting following errors. Can any body please help. Iam posting my code below.
// Connection to DataBase.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include"DbManager.h"
#define WIN32COMMON
#include<iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
class DataBaseConnectionTest
{
public:
void test()
{
const string sqlstring("select * from info ");
try
{
cout<<"Hello"<<'\n';
DbManager *db=new DbManager(system);
OracleServices *os=db->getoracleServices();
Connection *conn=os->connection();
Statement *st=conn->createStatement(sqlstring);
ResultSet *rs=st->executeQuery();
string name;
while(rs->next())
{
name=rs->getString(1);
cout<<name<<" "<<'\n';
}
st->closeResultSet(rs);
conn->terminateStatement(st);
}
catch(SQLException& se)
{
cout<<"Error Occured"<<"\n";
}
}
};
void main()
{
DataBaseConnectionTest *dbc=new DataBaseConnectionTest();
dbc->test();
}
errrors are as given below.
Error 1 fatal error C1083: Cannot open include file: 'DbManager.h': No such file or directory I searched alot for this file in my disk but i could'nt got it. | c++ | null | null | null | null | null | open | DbManager.h not found
===
Hi i am using visual studio 2008 and want to connect my database in oracle. but while running the below code iam getting following errors. Can any body please help. Iam posting my code below.
// Connection to DataBase.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include"DbManager.h"
#define WIN32COMMON
#include<iostream>
#include <occi.h>
using namespace oracle::occi;
using namespace std;
class DataBaseConnectionTest
{
public:
void test()
{
const string sqlstring("select * from info ");
try
{
cout<<"Hello"<<'\n';
DbManager *db=new DbManager(system);
OracleServices *os=db->getoracleServices();
Connection *conn=os->connection();
Statement *st=conn->createStatement(sqlstring);
ResultSet *rs=st->executeQuery();
string name;
while(rs->next())
{
name=rs->getString(1);
cout<<name<<" "<<'\n';
}
st->closeResultSet(rs);
conn->terminateStatement(st);
}
catch(SQLException& se)
{
cout<<"Error Occured"<<"\n";
}
}
};
void main()
{
DataBaseConnectionTest *dbc=new DataBaseConnectionTest();
dbc->test();
}
errrors are as given below.
Error 1 fatal error C1083: Cannot open include file: 'DbManager.h': No such file or directory I searched alot for this file in my disk but i could'nt got it. | 0 |
11,373,041 | 07/07/2012 07:08:41 | 1,508,375 | 07/07/2012 06:53:12 | 1 | 0 | How to show Splash screen image after deploy? | I have a 'silverlight RIA' app with customized splash screen with an image.
Everything seems works fine on my client site before I deploy the app on the server.
The problem start here, after I deployed it on the server my image not shown anymore!
First of all I had the problem with showing the spash screen, after I change the property of 'splashscreen.xaml' to "content" it became OK! but now it doesn't show the image anymore after deploy!
any suggestion?
| silverlight | image | deployment | screen | splash | null | open | How to show Splash screen image after deploy?
===
I have a 'silverlight RIA' app with customized splash screen with an image.
Everything seems works fine on my client site before I deploy the app on the server.
The problem start here, after I deployed it on the server my image not shown anymore!
First of all I had the problem with showing the spash screen, after I change the property of 'splashscreen.xaml' to "content" it became OK! but now it doesn't show the image anymore after deploy!
any suggestion?
| 0 |
11,373,043 | 07/07/2012 07:09:05 | 1,248,809 | 03/05/2012 00:25:17 | 84 | 1 | Manage Roles for Users in MVC 3 application | I am trying to add and delete aspnet roles for any user in a MVC 3 application.
I only need to work with 3 tables which are described below.
My problems are:
1. I need to display the user's existing selected Roles, and other roles available
but not selected for the user using **"Checkboxes"**
2. I need to save the selected values to table aspnet_UsersInRoles table
**This is what I have done so far:**
3. I have created ViewModels called AssignedRolesData.cs
4. I have altered the models for aspnet_Users and aspnet_Users to hold the icollection navigation properties for aspnet_UsersInRoles
5. I have created a method for the UserController Called "PopulateAssignedRoleData" to populate the existing Roles per user
**My problems:**
6. I cannot get the selected roles into the checkboxes
7. I don't know how to save them afterwards
8. The keys are of type GUID
**Models**
**using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.Models
{
public class aspnet_Roles
{
public Guid ApplicationId { get; set; }
[Key]
public Guid RoleId { get; set; }
public string RoleName { get; set; }
public string LoweredRoleName { get; set; }
public string Description { get; set; }
public virtual ICollection<aspnet_Users> aspnet_User { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.Models
{
public class aspnet_Users
{
public Guid ApplicationId { get; set; }
[Key]
public Guid UserId { get; set; }
public string UserName { get; set; }
public string LoweredUserName { get; set; }
public string MobileAlias { get; set; }
public bool IsAnonymous { get; set; }
public DateTime LastActivityDate { get; set; }
public virtual ICollection<aspnet_Roles> aspnet_Role { get; set; }
}
}**
**ViewModels**
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.ViewModels
{
public class AssignedRolesData
{
public Guid RoleId { get; set; }
public string RoleName { get; set; }
public bool Assigned { get; set; }
}
}
**UserController**
public ActionResult Edit(Guid id)
{
aspnet_Users aspnet_User = db.aspnet_Users
.Include(i => i.UserId)
//.Include(i => i.aspnet_User)
.Where(i => i.UserId == id)
.Single();
PopulateAssignedRoleData(aspnet_User);
return View(aspnet_User);
}
private void PopulateAssignedRoleData(aspnet_Roles aspnet_Role)
{
var allaspnet_Users = db.aspnet_Users;
var UsersInRoles = new HashSet<Guid>(aspnet_Role.aspnet_User.Select(c => c.UserId));
var viewModel = new List<AssignedRolesData>();
foreach (var user in allaspnet_Users)
{
viewModel.Add(new AssignedRolesData
{
RoleId = aspnet_Role.RoleId,
RoleName = aspnet_Role.RoleName,
Assigned = UsersInRoles.Contains(aspnet_Role.RoleId)
});
}
ViewBag.Courses = viewModel;
}
**Tables**
aspnet_Users Table
ApplicationId uniqueidentifier
UserId uniqueidentifier
UserName nvarchar(256)
LoweredUserName nvarchar(256)
MobileAlias nvarchar(16)
IsAnonymous bit
LastActivityDate datetime
aspnet_Roles Table
ApplicationId uniqueidentifier
RoleId uniqueidentifier
RoleName nvarchar(256)
LoweredRoleName nvarchar(256)
Description nvarchar(256)
aspnet_UsersInRoles Table
UserId uniqueidentifier
RoleId uniqueidentifier
| asp.net-mvc-3 | null | null | null | null | null | open | Manage Roles for Users in MVC 3 application
===
I am trying to add and delete aspnet roles for any user in a MVC 3 application.
I only need to work with 3 tables which are described below.
My problems are:
1. I need to display the user's existing selected Roles, and other roles available
but not selected for the user using **"Checkboxes"**
2. I need to save the selected values to table aspnet_UsersInRoles table
**This is what I have done so far:**
3. I have created ViewModels called AssignedRolesData.cs
4. I have altered the models for aspnet_Users and aspnet_Users to hold the icollection navigation properties for aspnet_UsersInRoles
5. I have created a method for the UserController Called "PopulateAssignedRoleData" to populate the existing Roles per user
**My problems:**
6. I cannot get the selected roles into the checkboxes
7. I don't know how to save them afterwards
8. The keys are of type GUID
**Models**
**using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.Models
{
public class aspnet_Roles
{
public Guid ApplicationId { get; set; }
[Key]
public Guid RoleId { get; set; }
public string RoleName { get; set; }
public string LoweredRoleName { get; set; }
public string Description { get; set; }
public virtual ICollection<aspnet_Users> aspnet_User { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.Models
{
public class aspnet_Users
{
public Guid ApplicationId { get; set; }
[Key]
public Guid UserId { get; set; }
public string UserName { get; set; }
public string LoweredUserName { get; set; }
public string MobileAlias { get; set; }
public bool IsAnonymous { get; set; }
public DateTime LastActivityDate { get; set; }
public virtual ICollection<aspnet_Roles> aspnet_Role { get; set; }
}
}**
**ViewModels**
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace WWW.ViewModels
{
public class AssignedRolesData
{
public Guid RoleId { get; set; }
public string RoleName { get; set; }
public bool Assigned { get; set; }
}
}
**UserController**
public ActionResult Edit(Guid id)
{
aspnet_Users aspnet_User = db.aspnet_Users
.Include(i => i.UserId)
//.Include(i => i.aspnet_User)
.Where(i => i.UserId == id)
.Single();
PopulateAssignedRoleData(aspnet_User);
return View(aspnet_User);
}
private void PopulateAssignedRoleData(aspnet_Roles aspnet_Role)
{
var allaspnet_Users = db.aspnet_Users;
var UsersInRoles = new HashSet<Guid>(aspnet_Role.aspnet_User.Select(c => c.UserId));
var viewModel = new List<AssignedRolesData>();
foreach (var user in allaspnet_Users)
{
viewModel.Add(new AssignedRolesData
{
RoleId = aspnet_Role.RoleId,
RoleName = aspnet_Role.RoleName,
Assigned = UsersInRoles.Contains(aspnet_Role.RoleId)
});
}
ViewBag.Courses = viewModel;
}
**Tables**
aspnet_Users Table
ApplicationId uniqueidentifier
UserId uniqueidentifier
UserName nvarchar(256)
LoweredUserName nvarchar(256)
MobileAlias nvarchar(16)
IsAnonymous bit
LastActivityDate datetime
aspnet_Roles Table
ApplicationId uniqueidentifier
RoleId uniqueidentifier
RoleName nvarchar(256)
LoweredRoleName nvarchar(256)
Description nvarchar(256)
aspnet_UsersInRoles Table
UserId uniqueidentifier
RoleId uniqueidentifier
| 0 |
11,373,044 | 07/07/2012 07:09:06 | 1,498,604 | 07/03/2012 11:19:42 | 3 | 0 | Implementing Instruction Cache in Java | I am currently working to implement a simulator of how Instruction cache work in Java..
The argument pass in are instruction block size (is), instruction block (ib), and instruction associative (ia)
What it suppose to do is, enter is, ib, ia value .. follow by each memory address with value .. and call PI, to see the memory is in cache .. if no return miss if yes return hit.. example as follow:-
is=64, ib=8, ia=1
Input:-
m 00 = e2800000 # ADD r0, r0, #00
m 04 = e2800004 # ADD r0, r0, #04
m 08 = e2800008 # ADD r0, r0, #08
m 0c = e280000c # ADD r0, r0, #0c
m 10 = e2800010 # ADD r0, r0, #10
pi 00
pi 04
pi 08
pi 0c
pi 10
pi 14
.
pi 00
pi 04
pi 08
pi 0c
pi 10
pi 14
Expected output:-
miss set=0
miss set=0
miss set=1
miss set=1
miss set=2
miss set=2
hit set=0 entry=0: e2800000 e2800004
hit set=0 entry=0: e2800000 e2800004
miss set=1
miss set=1
miss set=2
miss set=2
The question is which structure do i need to use to print the 2 address under the set during hit? Multimap? Linkedhashmap?
Thank you. | caching | null | null | null | null | null | open | Implementing Instruction Cache in Java
===
I am currently working to implement a simulator of how Instruction cache work in Java..
The argument pass in are instruction block size (is), instruction block (ib), and instruction associative (ia)
What it suppose to do is, enter is, ib, ia value .. follow by each memory address with value .. and call PI, to see the memory is in cache .. if no return miss if yes return hit.. example as follow:-
is=64, ib=8, ia=1
Input:-
m 00 = e2800000 # ADD r0, r0, #00
m 04 = e2800004 # ADD r0, r0, #04
m 08 = e2800008 # ADD r0, r0, #08
m 0c = e280000c # ADD r0, r0, #0c
m 10 = e2800010 # ADD r0, r0, #10
pi 00
pi 04
pi 08
pi 0c
pi 10
pi 14
.
pi 00
pi 04
pi 08
pi 0c
pi 10
pi 14
Expected output:-
miss set=0
miss set=0
miss set=1
miss set=1
miss set=2
miss set=2
hit set=0 entry=0: e2800000 e2800004
hit set=0 entry=0: e2800000 e2800004
miss set=1
miss set=1
miss set=2
miss set=2
The question is which structure do i need to use to print the 2 address under the set during hit? Multimap? Linkedhashmap?
Thank you. | 0 |
11,373,048 | 07/07/2012 07:09:26 | 1,479,279 | 06/25/2012 07:15:55 | 13 | 0 | The error of can not find View in Ajax form | I ask a similar question [here][1]
So I add Some `OnComplete` Functions and Id to Ajax Forms, And there is:
This is My View:
@foreach(var item in Model) {
<tr id="TR@(item.Id)">
@{Html.RenderPartial("_PhoneRow", item);}
</tr>
}
`_PhoneRow`:
@model PhoneModel
@using(Ajax.BeginForm("EditPhone", new { id = Model.Id }, new AjaxOptions {
UpdateTargetId = "TR" + Model.Id,
OnComplete = "OnCompleteEditPhone"
}, new { id = "EditAjaxForm" + Model.Id})) {
<td>@Html.DisplayFor(modelItem => Model.PhoneNumber)</td>
<td>@Html.DisplayFor(modelItem => Model.PhoneKind)</td>
<td><input type="submit" value="Edit" class="CallEditPhone" id="edit@(Model.Id)" /></td>
}
Controller:
public ActionResult EditPhone(long Id) {
//Get model by id
return PartialView("_EditPhoneRow", model);
}
public ActionResult SavePhone(PhoneModel model) {
//Save Phone, and Get Updatet model
return PartialView("_PhoneRow", model);
}
`_EditPhoneRow`
@model PhoneModel
@using(Ajax.BeginForm("SavePhone", new { id = Model.Id }, new AjaxOptions {
UpdateTargetId = "TR" + Model.Id,
OnComplete = "OnCompleteSavePhone"
})) {
<td>@Html.EditorFor(modelItem => Model.PhoneNumber)</td>
<td>@Html.EditorFor(modelItem => Model.PhoneKind)</td>
<td><input type="submit" value="Save" class="SaveEditPhone" id="save@(Model.Id)" /></td>
}
And `Oncomplete` Scripts:
function OnCompleteEditPhone() {
$('input.SaveEditPhone').click(function () {
var id = $(this).attr("id").substring(4);
$('form#SaveAjaxForm' + id).trigger('submit');
});
}
function OnCompleteSavePhone() {
$('input.CallEditPhone').click(function () {
var id = $(this).attr("id").substring(4);
$('form#EditAjaxForm' + id).trigger('submit');
});
}
So Click Edit Worked perfect, Then Click Save Worked good also, But in second time when i click the Edit Button I have an Error in Post Action I copy the Firebug console here:
http://Mysite/members/editphone/7652 200 OK 582ms
http://Mysite/members/savephone/7652 200 OK 73ms
http://Mysite/members/editphone/7652 500 internal server error 136ms
<title>The view 'EditPhone' or its master was not found or no view engine supports the searched locations. The following locations were searched: ...
So where is the problem? If I remove `OnCompleteSavePhone` The Edit button for second time not worked, and with this function I have an error that not make any sense, How Can I fix it? I actually load partial views by Ajax, And need the buttons of this views worked correctly, at first every thing is fine but after Ajax result They don't, I think to add some `Oncomplete` functions, but there is an error also.
[1]: http://stackoverflow.com/questions/11372421/ajaxform-in-result-of-ajaxform | ajax | asp.net-mvc | asp.net-mvc-3 | asp.net-mvc-ajax | null | null | open | The error of can not find View in Ajax form
===
I ask a similar question [here][1]
So I add Some `OnComplete` Functions and Id to Ajax Forms, And there is:
This is My View:
@foreach(var item in Model) {
<tr id="TR@(item.Id)">
@{Html.RenderPartial("_PhoneRow", item);}
</tr>
}
`_PhoneRow`:
@model PhoneModel
@using(Ajax.BeginForm("EditPhone", new { id = Model.Id }, new AjaxOptions {
UpdateTargetId = "TR" + Model.Id,
OnComplete = "OnCompleteEditPhone"
}, new { id = "EditAjaxForm" + Model.Id})) {
<td>@Html.DisplayFor(modelItem => Model.PhoneNumber)</td>
<td>@Html.DisplayFor(modelItem => Model.PhoneKind)</td>
<td><input type="submit" value="Edit" class="CallEditPhone" id="edit@(Model.Id)" /></td>
}
Controller:
public ActionResult EditPhone(long Id) {
//Get model by id
return PartialView("_EditPhoneRow", model);
}
public ActionResult SavePhone(PhoneModel model) {
//Save Phone, and Get Updatet model
return PartialView("_PhoneRow", model);
}
`_EditPhoneRow`
@model PhoneModel
@using(Ajax.BeginForm("SavePhone", new { id = Model.Id }, new AjaxOptions {
UpdateTargetId = "TR" + Model.Id,
OnComplete = "OnCompleteSavePhone"
})) {
<td>@Html.EditorFor(modelItem => Model.PhoneNumber)</td>
<td>@Html.EditorFor(modelItem => Model.PhoneKind)</td>
<td><input type="submit" value="Save" class="SaveEditPhone" id="save@(Model.Id)" /></td>
}
And `Oncomplete` Scripts:
function OnCompleteEditPhone() {
$('input.SaveEditPhone').click(function () {
var id = $(this).attr("id").substring(4);
$('form#SaveAjaxForm' + id).trigger('submit');
});
}
function OnCompleteSavePhone() {
$('input.CallEditPhone').click(function () {
var id = $(this).attr("id").substring(4);
$('form#EditAjaxForm' + id).trigger('submit');
});
}
So Click Edit Worked perfect, Then Click Save Worked good also, But in second time when i click the Edit Button I have an Error in Post Action I copy the Firebug console here:
http://Mysite/members/editphone/7652 200 OK 582ms
http://Mysite/members/savephone/7652 200 OK 73ms
http://Mysite/members/editphone/7652 500 internal server error 136ms
<title>The view 'EditPhone' or its master was not found or no view engine supports the searched locations. The following locations were searched: ...
So where is the problem? If I remove `OnCompleteSavePhone` The Edit button for second time not worked, and with this function I have an error that not make any sense, How Can I fix it? I actually load partial views by Ajax, And need the buttons of this views worked correctly, at first every thing is fine but after Ajax result They don't, I think to add some `Oncomplete` functions, but there is an error also.
[1]: http://stackoverflow.com/questions/11372421/ajaxform-in-result-of-ajaxform | 0 |
11,373,049 | 07/07/2012 07:09:33 | 1,487,512 | 06/28/2012 05:08:21 | 8 | 0 | How to read a string containing xml elements without using the XML properties | Im doing an xml reading process in my project. Where i have to read the contents of an Xml file. I have achieved it.
Just out of curiosity i also tried using the same by keeping the xml content inside the a string and then read only the values inside the elemet tag. Even this i have achieved. The below is my code.
string xml = <Login-Form>
<User-Authentication>
<username> Vikneshwar </username>
<password> xxx </password>
</User-Authentication>
<User-Info>
<firstname> Vikneshwar </firstname>
<lastname> S </lastname>
<email> [email protected] </email>
</User-Info>
</Login-Form>";
XDocument document = XDocument.Parse(xml);
var block = from file in document.Descendants("client-authentication")
select new
{
Username = file.Element("username").Value,
passWord = file.Element("password").Value,
};
foreach (var file in block)
{
Console.WriteLine(file.Username);
Console.WriteLine(file.passWord);
}
similarly i obtained my other set of elements(firstname,lastname,email).
Now my curiosity draws me again. Now im thinking of the doing the same using the string functions?
The same string used in the above code is to be taken.
Im trying not to use any XMl related classes ie xdocument,xmlreader etc.
The same output should be achieved using only string functions. Im not able to do that. Is it possible.
Any guidance will be apprecaited.
Thanks and regards.
S. Vikneshwar. | c# | null | null | null | null | null | open | How to read a string containing xml elements without using the XML properties
===
Im doing an xml reading process in my project. Where i have to read the contents of an Xml file. I have achieved it.
Just out of curiosity i also tried using the same by keeping the xml content inside the a string and then read only the values inside the elemet tag. Even this i have achieved. The below is my code.
string xml = <Login-Form>
<User-Authentication>
<username> Vikneshwar </username>
<password> xxx </password>
</User-Authentication>
<User-Info>
<firstname> Vikneshwar </firstname>
<lastname> S </lastname>
<email> [email protected] </email>
</User-Info>
</Login-Form>";
XDocument document = XDocument.Parse(xml);
var block = from file in document.Descendants("client-authentication")
select new
{
Username = file.Element("username").Value,
passWord = file.Element("password").Value,
};
foreach (var file in block)
{
Console.WriteLine(file.Username);
Console.WriteLine(file.passWord);
}
similarly i obtained my other set of elements(firstname,lastname,email).
Now my curiosity draws me again. Now im thinking of the doing the same using the string functions?
The same string used in the above code is to be taken.
Im trying not to use any XMl related classes ie xdocument,xmlreader etc.
The same output should be achieved using only string functions. Im not able to do that. Is it possible.
Any guidance will be apprecaited.
Thanks and regards.
S. Vikneshwar. | 0 |
11,387,288 | 07/08/2012 22:37:51 | 1,510,648 | 07/08/2012 22:30:55 | 1 | 0 | PHP: Can Indexed Arrays be used as associative arrays? | I know that in PHP, an indexed array that looks like: <code>$array = ("hello", "world")</code> is the same as an associative array that looks like: <code>$array = (0 => "hello", 1 => "world");</code> : so my question is if code like this is valid : <code>$hello = $array[$array["hello"]];</code> my thinking is that it translates to <code>$hello = $array[0]</code>, which will equal <code>$hello = "hello"</code>. In other words, will <code>$array["hello"]</code> equal 0? Thamks | php | arrays | null | null | null | null | open | PHP: Can Indexed Arrays be used as associative arrays?
===
I know that in PHP, an indexed array that looks like: <code>$array = ("hello", "world")</code> is the same as an associative array that looks like: <code>$array = (0 => "hello", 1 => "world");</code> : so my question is if code like this is valid : <code>$hello = $array[$array["hello"]];</code> my thinking is that it translates to <code>$hello = $array[0]</code>, which will equal <code>$hello = "hello"</code>. In other words, will <code>$array["hello"]</code> equal 0? Thamks | 0 |
11,387,292 | 07/08/2012 22:39:02 | 1,478,731 | 06/24/2012 22:52:49 | 1 | 0 | How can I set up a windows build in Xcode with Cocotron? | I have cocotron set up and I have compiled the Foundation for windows and I have set up a project that uses the Foundation for windows...but I can't compile it for windows, nor have I been able to find a guide to do so. Does anybody have any ideas to do this? | objective-c | null | null | null | null | null | open | How can I set up a windows build in Xcode with Cocotron?
===
I have cocotron set up and I have compiled the Foundation for windows and I have set up a project that uses the Foundation for windows...but I can't compile it for windows, nor have I been able to find a guide to do so. Does anybody have any ideas to do this? | 0 |
11,387,284 | 07/08/2012 22:37:21 | 1,460,064 | 06/16/2012 02:28:39 | 34 | 0 | Is it possible to split HTML.EditorFor into 2 separate fields? | I currently have:
@Html.EditorFor(model => model.PurchasePrice)
I would like to split this into 2 separate fields separated by a decimal (for price input obviously). But if I do that using basic text boxes I will loose the ability to take advantage of ASP.NET's validation.
Is there a way to do this, in Razor or by using attributes, so that I am able to keep the JS and server-side validation against my Entity model?
I can easily do it somewhere else by creating my own functions within the viewmodel, but I'm new to MVC3 and not entirely sure if that would be the best route or there is a simpler method. | asp.net-mvc-3 | entity-framework | null | null | null | null | open | Is it possible to split HTML.EditorFor into 2 separate fields?
===
I currently have:
@Html.EditorFor(model => model.PurchasePrice)
I would like to split this into 2 separate fields separated by a decimal (for price input obviously). But if I do that using basic text boxes I will loose the ability to take advantage of ASP.NET's validation.
Is there a way to do this, in Razor or by using attributes, so that I am able to keep the JS and server-side validation against my Entity model?
I can easily do it somewhere else by creating my own functions within the viewmodel, but I'm new to MVC3 and not entirely sure if that would be the best route or there is a simpler method. | 0 |
11,387,286 | 07/08/2012 22:37:33 | 517,477 | 11/23/2010 13:21:22 | 584 | 29 | Magento - How to show the same images for product bundles? | I created a bundled product following the instructions on the Magento site to enable it to have several sizes. See attached image:
![enter image description here][1]
I'm supposing that when I do the Quick simple product creation, it doesn't automatically add the same images. But since the option is only for size, the image should be the same.
The problem is, when I go to the cart or checkout page or any other page, there is no image for the product. The combination of my products with the sizes, that s over 230 products, so re-uploading all the images is a nightmare.
Question is, how can I have the system use the same image for all the different sizes?
Thanks.
[1]: http://i.stack.imgur.com/g9dVT.png | magento | null | null | null | null | null | open | Magento - How to show the same images for product bundles?
===
I created a bundled product following the instructions on the Magento site to enable it to have several sizes. See attached image:
![enter image description here][1]
I'm supposing that when I do the Quick simple product creation, it doesn't automatically add the same images. But since the option is only for size, the image should be the same.
The problem is, when I go to the cart or checkout page or any other page, there is no image for the product. The combination of my products with the sizes, that s over 230 products, so re-uploading all the images is a nightmare.
Question is, how can I have the system use the same image for all the different sizes?
Thanks.
[1]: http://i.stack.imgur.com/g9dVT.png | 0 |
11,387,294 | 07/08/2012 22:39:10 | 712,640 | 04/18/2011 00:49:34 | 13 | 0 | How to rollback DB changes in @AfterClass? | I am using @BeforeClass to prepare my HSQL DB for several test cases. Then I want to rollback the changes after the end of all test cases in @AfterClass.
What is the best way to achieve this rollback?
Here is my code example:
@BeforeClass
public static void setupDB(){
ApplicationContext context = new ClassPathXmlApplicationContext(
"classpath:/spring/applicationContext-services-test.xml");
//- get beans and insert some records to the DB
...
}
@AfterClass
public static void cleanUp(){
??? what should go here?
}
Any idea on the best way to do rollback in AfterClass?
Thanks to all.. | java | junit | rollback | null | null | null | open | How to rollback DB changes in @AfterClass?
===
I am using @BeforeClass to prepare my HSQL DB for several test cases. Then I want to rollback the changes after the end of all test cases in @AfterClass.
What is the best way to achieve this rollback?
Here is my code example:
@BeforeClass
public static void setupDB(){
ApplicationContext context = new ClassPathXmlApplicationContext(
"classpath:/spring/applicationContext-services-test.xml");
//- get beans and insert some records to the DB
...
}
@AfterClass
public static void cleanUp(){
??? what should go here?
}
Any idea on the best way to do rollback in AfterClass?
Thanks to all.. | 0 |
11,387,302 | 07/08/2012 22:41:18 | 1,385,803 | 05/09/2012 23:03:59 | 24 | 5 | Migrating script from Spreadsheet to Site | I've got a few scripts in various spreadsheets I'd like to 'migrate' to a site page.
I know I'll need to do some re-work, but I'd like to know if there's method besides 'Copy/Paste'.
Anyone have any 'best practices' to share?
| google-apps-script | null | null | null | null | null | open | Migrating script from Spreadsheet to Site
===
I've got a few scripts in various spreadsheets I'd like to 'migrate' to a site page.
I know I'll need to do some re-work, but I'd like to know if there's method besides 'Copy/Paste'.
Anyone have any 'best practices' to share?
| 0 |
11,387,304 | 07/08/2012 22:41:36 | 743,469 | 05/07/2011 22:02:55 | 5 | 0 | convert unix timestamp in filename | I use MacOSX Lion but I'm also happy with solution for Windows as I have Windows XP in a virtual machine:
I have hundreds of files with a unix timestamp in the filename, like this:
1341131403_-_db123456.sql.gz
1341390599_-_db123456.sql.gz
1341563401_-_db123456.sql.gz
And I want to have the timestamps converted to readable timestamps and the files to be renamed with that readable timestamp, like this:
2012-07-01 08-30-03.sql.gz
2012-07-04 08-29-59.sql.gz
2012-07-06 08-30-01.sql.gz
I have spent several hours on an applescript solution, but with no success:
on open (the_input)
tell application "Finder"
set the_files to every item of the_input
set the_count to count of the_files
repeat with i from 1 to the_count
set current_file to item i of the_files
set old_name to (name of current_file) as string
set old_name to trim_line(old_name, "_-_db123456. sql. gz", 1)
set new_name to (result of uts_convert(old_name)) as string
set the name of current_file to (new_name & file type of current_file)
end repeat
end tell
end open
on uts_convert(input)
set shellcommand1 to "date -r "
set shellcommand2 to " \"+%Y-%m-%d %H-%M\""
set the_output to do shell script (shellcommand1 & input & shellcommand2)
return the_output
end uts_convert
Any help is appreciated! I dont care if it is done with applescript or a simple terminal command or whatever.
Thanks in advance!
| osx | terminal | applescript | unix-timestamp | null | null | open | convert unix timestamp in filename
===
I use MacOSX Lion but I'm also happy with solution for Windows as I have Windows XP in a virtual machine:
I have hundreds of files with a unix timestamp in the filename, like this:
1341131403_-_db123456.sql.gz
1341390599_-_db123456.sql.gz
1341563401_-_db123456.sql.gz
And I want to have the timestamps converted to readable timestamps and the files to be renamed with that readable timestamp, like this:
2012-07-01 08-30-03.sql.gz
2012-07-04 08-29-59.sql.gz
2012-07-06 08-30-01.sql.gz
I have spent several hours on an applescript solution, but with no success:
on open (the_input)
tell application "Finder"
set the_files to every item of the_input
set the_count to count of the_files
repeat with i from 1 to the_count
set current_file to item i of the_files
set old_name to (name of current_file) as string
set old_name to trim_line(old_name, "_-_db123456. sql. gz", 1)
set new_name to (result of uts_convert(old_name)) as string
set the name of current_file to (new_name & file type of current_file)
end repeat
end tell
end open
on uts_convert(input)
set shellcommand1 to "date -r "
set shellcommand2 to " \"+%Y-%m-%d %H-%M\""
set the_output to do shell script (shellcommand1 & input & shellcommand2)
return the_output
end uts_convert
Any help is appreciated! I dont care if it is done with applescript or a simple terminal command or whatever.
Thanks in advance!
| 0 |
11,541,803 | 07/18/2012 12:50:11 | 130,753 | 06/30/2009 00:25:14 | 579 | 51 | Best practice to handle exceptions | I have a ASP.NET (Webforms) project, using **entity framework** and **enterprise library** for the exception handling/ logging. What is the best practice to handle exceptions when **saving** to the database.
Should I just configure enterprise library with the exception handling block to handle all exceptions. Or should I surround each **save** statement with **try/catch** and handle the exception within each catch statement. I hope this makes sense.
| asp.net | entity-framework | enterprise-library | null | null | null | open | Best practice to handle exceptions
===
I have a ASP.NET (Webforms) project, using **entity framework** and **enterprise library** for the exception handling/ logging. What is the best practice to handle exceptions when **saving** to the database.
Should I just configure enterprise library with the exception handling block to handle all exceptions. Or should I surround each **save** statement with **try/catch** and handle the exception within each catch statement. I hope this makes sense.
| 0 |
11,541,804 | 07/18/2012 12:50:11 | 897,224 | 08/16/2011 17:49:39 | 193 | 3 | Accessing authenticated php page from html and javascript | I am trying to write a simple html page to create a mashup of two data feeds. One of the data feed sources is a PHP page that produces a Google Earth KMZ file each time it is requested. My goal is to display this feed on a map on my page in 'real-time'.
The particular PHP page requires authentication and I have the username and password. When I plug the URL into a web browser it asks for my credentials, I provide them and it downloads a KMZ file.
I would like to have my html page use javascript to make the HTTP Request to the PHP page, retrieve the returned KMZ and load it on the map.
I am completely new to this sort of thing, so please let me know if I'm headed in the right direction and is this possible? | php | javascript | html | http | authentication | null | open | Accessing authenticated php page from html and javascript
===
I am trying to write a simple html page to create a mashup of two data feeds. One of the data feed sources is a PHP page that produces a Google Earth KMZ file each time it is requested. My goal is to display this feed on a map on my page in 'real-time'.
The particular PHP page requires authentication and I have the username and password. When I plug the URL into a web browser it asks for my credentials, I provide them and it downloads a KMZ file.
I would like to have my html page use javascript to make the HTTP Request to the PHP page, retrieve the returned KMZ and load it on the map.
I am completely new to this sort of thing, so please let me know if I'm headed in the right direction and is this possible? | 0 |
11,541,805 | 07/18/2012 12:50:16 | 1,375,578 | 05/04/2012 17:39:29 | 43 | 6 | Eclipse: strange syntax errors | Eclipse is driving me crazy today and comes up with nonsense errors like this one here:
Multiple markers at this line
- Syntax error on token ";", delete this
token
- Syntax error, insert ";" to complete
Statement
This is my code:
View dialogView = (View) findViewById(R.layout.dialog);
imgMan = new NovelImageManager();
this.viewMan = new ViewManager(dialogView, this.imgMan);<--- Error happens here.
I have weird problems in other Projects like this one:
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
loadData();
if (adView != null) {
adView.loadAd(new AdRequest());
} else {
setupAds();
}
}
causes the following error:
Multiple markers at this line
- Syntax error on token "void", @
expected
- overrides
android.app.Activity.onResume
The codes worked in the past, so I have no idea why eclipse is acting like that.
I know eclipse can be a pain sometimes, but this doesn't make sense.
Any Idea what this could cause? | android | eclipse | syntax | null | null | null | open | Eclipse: strange syntax errors
===
Eclipse is driving me crazy today and comes up with nonsense errors like this one here:
Multiple markers at this line
- Syntax error on token ";", delete this
token
- Syntax error, insert ";" to complete
Statement
This is my code:
View dialogView = (View) findViewById(R.layout.dialog);
imgMan = new NovelImageManager();
this.viewMan = new ViewManager(dialogView, this.imgMan);<--- Error happens here.
I have weird problems in other Projects like this one:
@Override
protected void onResume() {
// TODO Auto-generated method stub
super.onResume();
loadData();
if (adView != null) {
adView.loadAd(new AdRequest());
} else {
setupAds();
}
}
causes the following error:
Multiple markers at this line
- Syntax error on token "void", @
expected
- overrides
android.app.Activity.onResume
The codes worked in the past, so I have no idea why eclipse is acting like that.
I know eclipse can be a pain sometimes, but this doesn't make sense.
Any Idea what this could cause? | 0 |
11,541,807 | 07/18/2012 12:50:20 | 1,492,504 | 06/30/2012 03:24:30 | 8 | 0 | DOC TO XPS FILE DOCUMENT | I just wanted to know how can I convert my document .doc path to xps file document.
If anyone can help I would be glad to know the code in VB.NET since I googled it already but unfortunately I can't find best answer to my question.
Thank you | vb.net | document | xps | null | null | null | open | DOC TO XPS FILE DOCUMENT
===
I just wanted to know how can I convert my document .doc path to xps file document.
If anyone can help I would be glad to know the code in VB.NET since I googled it already but unfortunately I can't find best answer to my question.
Thank you | 0 |
11,541,812 | 07/18/2012 12:50:48 | 1,077,457 | 12/02/2011 13:19:40 | 2,452 | 175 | Please explain what is resin for following iPa CrashReport | I have developed app. It's iPa working fine with `iPhon4S(iOs-V 4.3.2)`, `iPhone 3GS (iOS-V 3.1.3)` and `iPad (iOS-V 4.3.5)` but It's Crashing in `iOS-V 4.2.1` when i am trying to upload image using webapi(Web service). It's also not showing me captured image in my application's UIImageview (it's only with Device with iOS-V 4.2.1 except that all device working fine). Please find crash report as per the following and help to figure out this issue.
**Crash Report**
Incident Identifier: 675A8D7E-811A-415C-A2CB-CD7CE2928882
CrashReporter Key: ef3919be126e1321892bea996ea1e61cef119516
Hardware Model: iPhone3,1
Process: TaskTrak [538]
Path: /var/mobile/Applications/2729CC14-45DE-40E1-9104-028BCF80ED7E/TaskTrak.app/TaskTrak
Identifier: TaskTrak
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-24 15:20:19.003 -0500
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000009
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x33479464 0x33476000 + 13412
1 UIKit 0x320c9556 0x32062000 + 423254
2 UIKit 0x320c8fda 0x32062000 + 421850
3 UIKit 0x320c8e78 0x32062000 + 421496
4 UIKit 0x320750c8 0x32062000 + 78024
5 CoreFoundation 0x33a5ebb8 0x33a20000 + 256952
6 QuartzCore 0x3410867e 0x340f9000 + 63102
7 QuartzCore 0x34108436 0x340f9000 + 62518
8 QuartzCore 0x34102566 0x340f9000 + 38246
9 QuartzCore 0x3410237c 0x340f9000 + 37756
10 QuartzCore 0x34125f96 0x340f9000 + 184214
11 CoreFoundation 0x33a50c52 0x33a20000 + 199762
12 CoreFoundation 0x33a50ac6 0x33a20000 + 199366
13 CoreFoundation 0x33a480c4 0x33a20000 + 164036
14 CoreFoundation 0x33a47c80 0x33a20000 + 162944
15 CoreFoundation 0x33a47b88 0x33a20000 + 162696
16 GraphicsServices 0x33b0e4a4 0x33b0a000 + 17572
17 GraphicsServices 0x33b0e550 0x33b0a000 + 17744
18 UIKit 0x32099322 0x32062000 + 226082
19 UIKit 0x32096e8c 0x32062000 + 216716
20 TaskTrak 0x00002eaa 0x1000 + 7850
21 TaskTrak 0x00002e74 0x1000 + 7796
Thread 1:
0 libSystem.B.dylib 0x33b89974 0x33b5c000 + 186740
1 libSystem.B.dylib 0x33c33704 0x33b5c000 + 882436
2 libSystem.B.dylib 0x33c33174 0x33b5c000 + 881012
3 libSystem.B.dylib 0x33c32b98 0x33b5c000 + 879512
4 libSystem.B.dylib 0x33bd724a 0x33b5c000 + 504394
5 libSystem.B.dylib 0x33bcf970 0x33b5c000 + 473456
Thread 2:
0 libSystem.B.dylib 0x33b5d268 0x33b5c000 + 4712
1 libSystem.B.dylib 0x33b5f354 0x33b5c000 + 13140
2 CoreFoundation 0x33a48648 0x33a20000 + 165448
3 CoreFoundation 0x33a47ed2 0x33a20000 + 163538
4 CoreFoundation 0x33a47c80 0x33a20000 + 162944
5 CoreFoundation 0x33a47b88 0x33a20000 + 162696
6 WebCore 0x304df124 0x30428000 + 749860
7 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
8 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 3:
0 libSystem.B.dylib 0x33b5d268 0x33b5c000 + 4712
1 libSystem.B.dylib 0x33b5f354 0x33b5c000 + 13140
2 CoreFoundation 0x33a48648 0x33a20000 + 165448
3 CoreFoundation 0x33a47ed2 0x33a20000 + 163538
4 CoreFoundation 0x33a47c80 0x33a20000 + 162944
5 CoreFoundation 0x33a47b88 0x33a20000 + 162696
6 Foundation 0x336465f6 0x33619000 + 185846
7 Foundation 0x33624192 0x33619000 + 45458
8 Foundation 0x3361d242 0x33619000 + 16962
9 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
10 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 4:
0 libSystem.B.dylib 0x33b8168c 0x33b5c000 + 153228
1 CoreFoundation 0x33a7f662 0x33a20000 + 390754
2 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
3 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 5:
0 libSystem.B.dylib 0x33bd59f0 0x33b5c000 + 498160
1 libSystem.B.dylib 0x33b8a7ec 0x33b5c000 + 190444
2 libSystem.B.dylib 0x33b8a3d2 0x33b5c000 + 189394
3 CoreMedia 0x31a41b14 0x31a3f000 + 11028
4 CoreMedia 0x31a41a5a 0x31a3f000 + 10842
5 MediaToolbox 0x300c0c9c 0x300bd000 + 15516
6 CoreMedia 0x31a5df76 0x31a3f000 + 126838
7 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
8 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 6:
0 libSystem.B.dylib 0x33bd79e0 0x33b5c000 + 506336
1 libSystem.B.dylib 0x33bd7364 0x33b5c000 + 504676
2 libSystem.B.dylib 0x33bcf970 0x33b5c000 + 473456
Thread 0 crashed with ARM Thread State:
r0: 0x06842e70 r1: 0x323738ef r2: 0x32383be0 r3: 0x00000044
r4: 0x00000001 r5: 0x00c25400 r6: 0x323729ab r7: 0x2fdfda30
r8: 0x00000000 r9: 0x2fdfdac0 r10: 0x2fdfda9c r11: 0x2fdfda8c
ip: 0x3e59ec58 sp: 0x2fdfda00 lr: 0x320c955d pc: 0x33479464
cpsr: 0x200f0030
Binary Images:
0x1000 - 0x54fff +TaskTrak armv7 <9894837818c6365b95d2714eacfe7e71> /var/mobile/Applications/2729CC14-45DE-40E1-9104-028BCF80ED7E/TaskTrak.app/TaskTrak
0xe1000 - 0xe2fff dns.so armv7 <fcefecb2d5e095ba88127eec3af57ec0> /usr/lib/info/dns.so
0x2fe00000 - 0x2fe27fff dyld armv7 <06e6959cebb4a72e66c833e26ae64d26> /usr/lib/dyld
0x30005000 - 0x30006fff CoreSurface armv7 <f7caaf43609cfe0e475dfe83790edb4d> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x300bd000 - 0x301fafff MediaToolbox armv7 <a18bbcc41a38917fe0ae5e183d3f6b07> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x301fc000 - 0x302e4fff libGLProgrammability.dylib armv7 <1f478a71783cd7eb4ae9ef6f2dcea803> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x302e5000 - 0x303d0fff PhotoLibrary armv7 <ae1e7ac429fc2c53c203132ba5e8e922> /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
0x303d1000 - 0x30426fff libvDSP.dylib armv7 <9365fc6cae1bff737257e74faf3b1f26> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x30428000 - 0x30a10fff WebCore armv7 <d6bd9cf88ee82ab6b0e33e0ae1190772> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x30a28000 - 0x30ad5fff JavaScriptCore armv7 <3f2df600942dc72aad312b3cc98ec479> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x30ad8000 - 0x30bf8fff libmecabra.dylib armv7 <b2293b8acb00a14bace7520a63f39439> /usr/lib/libmecabra.dylib
0x30bf9000 - 0x30c09fff DataAccessExpress armv7 <6767a1e2afbc86a1ec63dd784f5d3677> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x30c16000 - 0x30c42fff DataAccess armv7 <6b9b5235b449335ce5c66d53f32004cd> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x30c98000 - 0x30d57fff CFNetwork armv7 <02fe0e30e54fffdcbbbd02e8cb812c3a> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x30d58000 - 0x30d60fff libkxld.dylib armv7 <854e82fe66feef01e54c7c8a209851ac> /usr/lib/system/libkxld.dylib
0x30e58000 - 0x30e5bfff MobileIcons armv7 <551f8c24b1469bf40a8f6010d787ad32> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
0x30f53000 - 0x31263fff GeoServices armv7 <f6d9eba833e82b1a9a84b38ab7672012> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x31266000 - 0x3129cfff CoreText armv7 <b9b5c21b2d2a28abc47842c78c026ddf> /System/Library/Frameworks/CoreText.framework/CoreText
0x3129d000 - 0x312bffff Preferences armv7 <9acd00335afda6f4e42ef5dfee5a7cdb> /System/Library/PrivateFrameworks/Preferences.framework/Preferences
0x313bb000 - 0x313e6fff IMFoundation armv7 <385c563cfad8946df5523fe3635db3bc> /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMFoundation.framework/IMFoundation
0x313e7000 - 0x313e9fff MobileInstallation armv7 <8e6b0d9f642be06729ffdaaee97053b0> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x31451000 - 0x31464fff libmis.dylib armv7 <855aefc263c6c20e6cf8723ea36125a2> /usr/lib/libmis.dylib
0x314ad000 - 0x314b8fff libz.1.dylib armv7 <fabaddbcbc8c02bab0261df9d78e0e25> /usr/lib/libz.1.dylib
0x3156c000 - 0x3156efff SpringBoardUI armv7 <42a6b76dddc6c6aa515f27dd11f5957a> /System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI
0x3156f000 - 0x31630fff RawCamera armv7 <b7f53a8a4a1188746c9c3d818f28795b> /System/Library/CoreServices/RawCamera.bundle/RawCamera
0x31633000 - 0x31634fff DataMigration armv7 <babbc72d4d48325de147d5103d7bc00d> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x3164b000 - 0x3164efff CertUI armv7 <5f37446c6b65a8c38ab6233c2e33da66> /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x3164f000 - 0x31788fff AudioToolbox armv7 <657b327f2ceee9f22f9474f2f9bddbe6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x317ce000 - 0x317d3fff libMobileGestalt.dylib armv7 <5f73c7138ee1cb7103a98aec99f9ed88> /usr/lib/libMobileGestalt.dylib
0x317d6000 - 0x318c8fff MusicLibrary armv7 <34edbee423aa7e2ea32ad4eed0620b85> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x31947000 - 0x3194ffff MobileWiFi armv7 <b29d4c5e300ef81060e38f72bb583c02> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x31950000 - 0x31966fff EAP8021X armv7 <36659ec2b9def7b5798a05327e369247> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x31967000 - 0x319b1fff IMCore armv7 <2c24a8461437a8f7eeb0b94a431a2dec> /System/Library/PrivateFrameworks/IMCore.framework/IMCore
0x319b5000 - 0x319bbfff liblockdown.dylib armv7 <5bbd9b3f5cfece328f80c403a8805ce9> /usr/lib/liblockdown.dylib
0x319bc000 - 0x319d6fff FTServices armv7 <b47d9e3154680d2ab339c05a36578601> /System/Library/PrivateFrameworks/FTServices.framework/FTServices
0x319d7000 - 0x319dafff ApplePushService armv7 <9d1eb7b11f0f146c941efbab2c055606> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x31a3f000 - 0x31a7cfff CoreMedia armv7 <4ea4d349e886206d1ecf5bae870f3f04> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x31a97000 - 0x31b2afff ImageIO armv7 <5b5a294d4250eff866fdbf891b1e8b34> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x31b2c000 - 0x31b2ffff ArtworkCache armv7 <1e65b5000a2234b69164e7904fcf826b> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x31b40000 - 0x31b80fff CoreAudio armv7 <f32e03ee4c68f0db23f05afc9a3cc94c> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x31b81000 - 0x31b96fff libresolv.9.dylib armv7 <ea156820997ae9a2baf664d0f79f18d7> /usr/lib/libresolv.9.dylib
0x31b97000 - 0x31be1fff libstdc++.6.dylib armv7 <53a6e7239c3908fa8c2915b65ff3b056> /usr/lib/libstdc++.6.dylib
0x31be4000 - 0x31c9afff MapKit armv7 <69921a6353270a6f77e0816d636812e8> /System/Library/Frameworks/MapKit.framework/MapKit
0x31c9b000 - 0x31ca7fff SpringBoardServices armv7 <137b75e19b2450c234dec88d538798ff> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x31cb8000 - 0x31ceafff AppSupport armv7 <47c8055ac99f187174ca373b702ffa68> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x31ceb000 - 0x31cf4fff CoreVideo armv7 <2092d5deb6b234e04678b7c1878ccd81> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x31cfc000 - 0x31d2ffff QuickLook armv7 <8c54395accc7ffc84766ff3e9b24beb1> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x31d30000 - 0x31d37fff AggregateDictionary armv7 <71372c95d4af7af787d0682a939e40ac> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x31d4b000 - 0x31e3efff GameKitServices armv7 <b3ab6a3a241b8de774ecbc7b158d137d> /System/Library/PrivateFrameworks/GameKitServices.framework/GameKitServices
0x31e58000 - 0x31f67fff MediaPlayer armv7 <9337abd4fdd749473efaefe64ee649a0> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x31f68000 - 0x31f88fff PrintKit armv7 <02a9c6f4173a0673c4637a3b570345cd> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x31f89000 - 0x31f8ffff BluetoothManager armv7 <e60e6028224e28c6c3521e4e1498b351> /System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager
0x32011000 - 0x32058fff MessageUI armv7 <bb7d161bb6c699afb2e1744ece115ae8> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x32059000 - 0x32061fff MobileBluetooth armv7 <6d6c62f52219d27be50f1d7c39a68dc6> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x32062000 - 0x323e3fff UIKit armv7 <de1cbd3219a74e4d41b30428f428e223> /System/Library/Frameworks/UIKit.framework/UIKit
0x3244f000 - 0x32458fff WebBookmarks armv7 <9f1760206eaef20c605c5d98e45c823e> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x32481000 - 0x32483fff libAccessibility.dylib armv7 <3f0b58ea13d30f0cdb73f6ffe6d4e75c> /usr/lib/libAccessibility.dylib
0x3252a000 - 0x3255ffff ImageCapture armv7 <11cb11dea0b6910987518cfb7dfa7ba1> /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture
0x3256d000 - 0x3261cfff WebKit armv7 <644a1c6120578f896bed7121307aa2af> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x3261e000 - 0x3262bfff libbsm.0.dylib armv7 <0f4e595e6eb2170aceb729f32b5de8c2> /usr/lib/libbsm.0.dylib
0x3262e000 - 0x32671fff ManagedConfiguration armv7 <27ac7f05482a8aa9977150f34f9be6eb> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x326e1000 - 0x3270bfff libtidy.A.dylib armv7 <b3e117f47033d05761d3633fbf764324> /usr/lib/libtidy.A.dylib
0x32711000 - 0x32732fff MobileSync armv7 <cff20dfe818febca9f3232426d59a42d> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x32ac8000 - 0x32acafff libgcc_s.1.dylib armv7 <e66758bcda6da5d7f9b54fa5c4de6da2> /usr/lib/libgcc_s.1.dylib
0x32ad8000 - 0x32adffff libbz2.1.0.dylib armv7 <2989ea7a5cad2cfe91bd632b041d0ff4> /usr/lib/libbz2.1.0.dylib
0x32ae0000 - 0x32b09fff ContentIndex armv7 <247576cb4f1ff8e92650ae3cb4973760> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x32b0a000 - 0x32b44fff IOKit armv7 <eb932cc42d60e55d9a4d0691bcc3d9ad> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x32b45000 - 0x32b7cfff Security armv7 <cd28e102950634ae7167ddee9c686d36> /System/Library/Frameworks/Security.framework/Security
0x32b82000 - 0x32baafff StoreServices armv7 <f409aaf487bd7e7a08c77ba5a2a83a1a> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x32bab000 - 0x32badfff IOMobileFramebuffer armv7 <1040629f37795146c9dcac8ab1a868fc> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x32bae000 - 0x32e48fff libLAPACK.dylib armv7 <2e77d87e96af938aacf0a6008e6fb89d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x32e8a000 - 0x32e8dfff CaptiveNetwork armv7 <a2af7147f5538d7669b14fa7b19b5a7c> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x32eac000 - 0x32f05fff EventKit armv7 <037c4bb5e2529e6004d0e1f3d95a84cc> /System/Library/Frameworks/EventKit.framework/EventKit
0x32f06000 - 0x32f23fff AppleAccount armv7 <e3833276f8877499c8dd76b3b3d88501> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x32f24000 - 0x32f55fff VideoToolbox armv7 <bb7ff9014b1dabec2acce95d41f05b59> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x32f56000 - 0x32f66fff TelephonyUI armv7 <4d181ff2cf0373cf56db350e0fbc1717> /System/Library/PrivateFrameworks/TelephonyUI.framework/TelephonyUI
0x32f67000 - 0x32f71fff AccountSettings armv7 <19c79f81d5d55fe2e6b618fcdc28258e> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x32f72000 - 0x32f7ffff OpenGLES armv7 <a12565ffb5bb42e3019f1957cd4951d0> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x32fc8000 - 0x32ffbfff AddressBook armv7 <7c87e0175c8649d6832419da8a1cfac1> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x32ffc000 - 0x32ffffff libGFXShared.dylib armv7 <3a385ed495379116abbe50bc8cd5a612> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x3301a000 - 0x330a3fff Message armv7 <69cb7cb1d1d7865fc04dc341544174b6> /System/Library/PrivateFrameworks/Message.framework/Message
0x330fd000 - 0x3314dfff GMM armv7 <2b63c1e1ce647e031a8a491e156f04d3> /System/Library/PrivateFrameworks/GMM.framework/GMM
0x3316c000 - 0x331affff IMAVCore armv7 <bea1734446844d18fdb269b82ee05d9b> /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore
0x331c6000 - 0x331cffff ITSync armv7 <87d409553f90e41a01afce047dc2e8fe> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x331d0000 - 0x3323ffff ProofReader armv7 <d2e62a8ab7e1460c7f6de8913c703e6d> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x33240000 - 0x33347fff CoreData armv7 <29b1ab7d339e42a6ff6923e54cf43e7b> /System/Library/Frameworks/CoreData.framework/CoreData
0x33393000 - 0x333defff libBLAS.dylib armv7 <251c5ac7380802a16e30d827c027c637> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x333df000 - 0x333e2fff IOSurface armv7 <deff02882166bf16d0765d68f0542cc8> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x33476000 - 0x33537fff libobjc.A.dylib armv7 <aaf5671a35f9ac20d5846703dafaf4c6> /usr/lib/libobjc.A.dylib
0x335dc000 - 0x335dffff ActorKit armv7 <f5d038591e564646e9237a59c6c14293> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x335e0000 - 0x335e2fff Camera armv7 <72ac72d4c09246d0774cda087069fb26> /System/Library/PrivateFrameworks/Camera.framework/Camera
0x335e8000 - 0x335e8fff Accelerate armv7 <29dd5f17440bbb6e8e42e11b6fceda9a> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x335e9000 - 0x335f8fff Notes armv7 <7d7a3d10a349471cd2757a479d131b31> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x33619000 - 0x33738fff Foundation armv7 <81d36041f04318cb51db5aafed9ce504> /System/Library/Frameworks/Foundation.framework/Foundation
0x33748000 - 0x33795fff libsqlite3.dylib armv7 <55038e5c1d4d0dbdd94295e8cad7a9a4> /usr/lib/libsqlite3.dylib
0x33797000 - 0x337b0fff libRIP.A.dylib armv7 <ee16b5cee12a8947c8e511ed51ae7fef> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x337e8000 - 0x337fbfff MediaControl armv7 <874e83896424ebb3afe59a3a59ba4dfe> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x337ff000 - 0x33837fff libCGFreetype.A.dylib armv7 <374bd566263e8929c10d50d6a6a48a46> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x33899000 - 0x338a8fff MobileDeviceLink armv7 <8f2fc7e811bc57f7a09d7df81c329e1a> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x338e1000 - 0x33977fff AddressBookUI armv7 <45665471fd70b0733b206d8166df74ef> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x33980000 - 0x33980fff vecLib armv7 <e53d234e808c77d286161095f92c58cf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x33a20000 - 0x33b06fff CoreFoundation armv7 <01441e01f5141a50ee723362e59ca400> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x33b0a000 - 0x33b16fff GraphicsServices armv7 <0099670dccd99466653956bf918d667a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x33b43000 - 0x33b48fff MobileKeyBag armv7 <cec3f3271fc267c32c169ed03e312d63> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x33b5c000 - 0x33c6dfff libSystem.B.dylib armv7 <138a43ab528bb428651e6aa7a2a7293c> /usr/lib/libSystem.B.dylib
0x33c95000 - 0x33d36fff Celestial armv7 <b411f4662383ec24dbfbcde8f4c23d67> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x33d6b000 - 0x33d94fff MobileCoreServices armv7 <54484a513761868149405df7fc29b5c0> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x33d95000 - 0x33d99fff AssetsLibraryServices armv7 <e861a330d14702f148ca5133dcbe954c> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x33f4e000 - 0x33f54fff ProtocolBuffer armv7 <7e279d3b6d1e1fd7dc8c8a883255fa17> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x33f55000 - 0x33f91fff Conference armv7 <3423ba341eb80fced949e243a88379af> /System/Library/PrivateFrameworks/Conference.framework/Conference
0x340bb000 - 0x340c8fff DataDetectorsUI armv7 <a7e33ab2817110626fa1c5c731419101> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI
0x340c9000 - 0x340f8fff SystemConfiguration armv7 <3f982c11b5526fc39a92d585c60d8a90> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x340f9000 - 0x341a7fff QuartzCore armv7 <83a8e5f0033369e437069c1e758fed83> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x341c1000 - 0x342e1fff CoreGraphics armv7 <2d7b40a7baca915ce78b1dd9a0d6433b> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x34335000 - 0x34368fff iCalendar armv7 <6eb50e720d642f5ac510a36989b276b2> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x34369000 - 0x3439ffff CoreLocation armv7 <e19b7aa132318fc90618a663bd576461> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x343c3000 - 0x3446cfff libxml2.2.dylib armv7 <b3d82f80a777cb1434052ea2d232e3df> /usr/lib/libxml2.2.dylib
0x344a0000 - 0x344cefff MIME armv7 <1989502ce4da514314647c6a0098d8e7> /System/Library/PrivateFrameworks/MIME.framework/MIME
0x344cf000 - 0x344d1fff Marco armv7 <6b5200647dcbc7a54d3fda57c98469bb> /System/Library/PrivateFrameworks/Marco.framework/Marco
0x3451f000 - 0x3460cfff libiconv.2.dylib armv7 <c72b45f471df092dbd849081f7a3ef53> /usr/lib/libiconv.2.dylib
0x34613000 - 0x34625fff PersistentConnection armv7 <cd2a699aa5036bdad0517603ba4db839> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x3464e000 - 0x34764fff libicucore.A.dylib armv7 <e7fbb2ac586567e574dc33d7bb5c4dc9> /usr/lib/libicucore.A.dylib
0x34765000 - 0x34773fff DataDetectorsCore armv7 <31929ee8505b90fb51d269cd4763f2e8> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/DataDetectorsCore
0x34774000 - 0x347b3fff libGLImage.dylib armv7 <a7c117c92607a512823d307b8fdd0151> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x347d9000 - 0x34855fff AVFoundation armv7 <4c7356c795e01bd5c21b00a409a07476> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x34860000 - 0x34866fff IAP armv7 <134f59ad5bb91bab6a5fe21b6f36dc8b> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x34867000 - 0x34886fff Bom armv7 <0f5fd6057bad5e1677869500d636821f> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x34887000 - 0x348c9fff CoreTelephony armv7 <96d3af505b9f2887e62c7e99c157733e> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x348ca000 - 0x348ccfff CrashReporterSupport armv7 <30a5f1edcdb9ffe868a620199a4cbe12> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x348e6000 - 0x3625ffff TextInput armv7 <557601a7d93124fd5860606f294e900a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput
Thanks In Advance. | iphone | ios | image-processing | crash | ipa | null | open | Please explain what is resin for following iPa CrashReport
===
I have developed app. It's iPa working fine with `iPhon4S(iOs-V 4.3.2)`, `iPhone 3GS (iOS-V 3.1.3)` and `iPad (iOS-V 4.3.5)` but It's Crashing in `iOS-V 4.2.1` when i am trying to upload image using webapi(Web service). It's also not showing me captured image in my application's UIImageview (it's only with Device with iOS-V 4.2.1 except that all device working fine). Please find crash report as per the following and help to figure out this issue.
**Crash Report**
Incident Identifier: 675A8D7E-811A-415C-A2CB-CD7CE2928882
CrashReporter Key: ef3919be126e1321892bea996ea1e61cef119516
Hardware Model: iPhone3,1
Process: TaskTrak [538]
Path: /var/mobile/Applications/2729CC14-45DE-40E1-9104-028BCF80ED7E/TaskTrak.app/TaskTrak
Identifier: TaskTrak
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-24 15:20:19.003 -0500
OS Version: iPhone OS 4.2.1 (8C148)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000009
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x33479464 0x33476000 + 13412
1 UIKit 0x320c9556 0x32062000 + 423254
2 UIKit 0x320c8fda 0x32062000 + 421850
3 UIKit 0x320c8e78 0x32062000 + 421496
4 UIKit 0x320750c8 0x32062000 + 78024
5 CoreFoundation 0x33a5ebb8 0x33a20000 + 256952
6 QuartzCore 0x3410867e 0x340f9000 + 63102
7 QuartzCore 0x34108436 0x340f9000 + 62518
8 QuartzCore 0x34102566 0x340f9000 + 38246
9 QuartzCore 0x3410237c 0x340f9000 + 37756
10 QuartzCore 0x34125f96 0x340f9000 + 184214
11 CoreFoundation 0x33a50c52 0x33a20000 + 199762
12 CoreFoundation 0x33a50ac6 0x33a20000 + 199366
13 CoreFoundation 0x33a480c4 0x33a20000 + 164036
14 CoreFoundation 0x33a47c80 0x33a20000 + 162944
15 CoreFoundation 0x33a47b88 0x33a20000 + 162696
16 GraphicsServices 0x33b0e4a4 0x33b0a000 + 17572
17 GraphicsServices 0x33b0e550 0x33b0a000 + 17744
18 UIKit 0x32099322 0x32062000 + 226082
19 UIKit 0x32096e8c 0x32062000 + 216716
20 TaskTrak 0x00002eaa 0x1000 + 7850
21 TaskTrak 0x00002e74 0x1000 + 7796
Thread 1:
0 libSystem.B.dylib 0x33b89974 0x33b5c000 + 186740
1 libSystem.B.dylib 0x33c33704 0x33b5c000 + 882436
2 libSystem.B.dylib 0x33c33174 0x33b5c000 + 881012
3 libSystem.B.dylib 0x33c32b98 0x33b5c000 + 879512
4 libSystem.B.dylib 0x33bd724a 0x33b5c000 + 504394
5 libSystem.B.dylib 0x33bcf970 0x33b5c000 + 473456
Thread 2:
0 libSystem.B.dylib 0x33b5d268 0x33b5c000 + 4712
1 libSystem.B.dylib 0x33b5f354 0x33b5c000 + 13140
2 CoreFoundation 0x33a48648 0x33a20000 + 165448
3 CoreFoundation 0x33a47ed2 0x33a20000 + 163538
4 CoreFoundation 0x33a47c80 0x33a20000 + 162944
5 CoreFoundation 0x33a47b88 0x33a20000 + 162696
6 WebCore 0x304df124 0x30428000 + 749860
7 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
8 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 3:
0 libSystem.B.dylib 0x33b5d268 0x33b5c000 + 4712
1 libSystem.B.dylib 0x33b5f354 0x33b5c000 + 13140
2 CoreFoundation 0x33a48648 0x33a20000 + 165448
3 CoreFoundation 0x33a47ed2 0x33a20000 + 163538
4 CoreFoundation 0x33a47c80 0x33a20000 + 162944
5 CoreFoundation 0x33a47b88 0x33a20000 + 162696
6 Foundation 0x336465f6 0x33619000 + 185846
7 Foundation 0x33624192 0x33619000 + 45458
8 Foundation 0x3361d242 0x33619000 + 16962
9 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
10 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 4:
0 libSystem.B.dylib 0x33b8168c 0x33b5c000 + 153228
1 CoreFoundation 0x33a7f662 0x33a20000 + 390754
2 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
3 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 5:
0 libSystem.B.dylib 0x33bd59f0 0x33b5c000 + 498160
1 libSystem.B.dylib 0x33b8a7ec 0x33b5c000 + 190444
2 libSystem.B.dylib 0x33b8a3d2 0x33b5c000 + 189394
3 CoreMedia 0x31a41b14 0x31a3f000 + 11028
4 CoreMedia 0x31a41a5a 0x31a3f000 + 10842
5 MediaToolbox 0x300c0c9c 0x300bd000 + 15516
6 CoreMedia 0x31a5df76 0x31a3f000 + 126838
7 libSystem.B.dylib 0x33bd6886 0x33b5c000 + 501894
8 libSystem.B.dylib 0x33bcba88 0x33b5c000 + 457352
Thread 6:
0 libSystem.B.dylib 0x33bd79e0 0x33b5c000 + 506336
1 libSystem.B.dylib 0x33bd7364 0x33b5c000 + 504676
2 libSystem.B.dylib 0x33bcf970 0x33b5c000 + 473456
Thread 0 crashed with ARM Thread State:
r0: 0x06842e70 r1: 0x323738ef r2: 0x32383be0 r3: 0x00000044
r4: 0x00000001 r5: 0x00c25400 r6: 0x323729ab r7: 0x2fdfda30
r8: 0x00000000 r9: 0x2fdfdac0 r10: 0x2fdfda9c r11: 0x2fdfda8c
ip: 0x3e59ec58 sp: 0x2fdfda00 lr: 0x320c955d pc: 0x33479464
cpsr: 0x200f0030
Binary Images:
0x1000 - 0x54fff +TaskTrak armv7 <9894837818c6365b95d2714eacfe7e71> /var/mobile/Applications/2729CC14-45DE-40E1-9104-028BCF80ED7E/TaskTrak.app/TaskTrak
0xe1000 - 0xe2fff dns.so armv7 <fcefecb2d5e095ba88127eec3af57ec0> /usr/lib/info/dns.so
0x2fe00000 - 0x2fe27fff dyld armv7 <06e6959cebb4a72e66c833e26ae64d26> /usr/lib/dyld
0x30005000 - 0x30006fff CoreSurface armv7 <f7caaf43609cfe0e475dfe83790edb4d> /System/Library/PrivateFrameworks/CoreSurface.framework/CoreSurface
0x300bd000 - 0x301fafff MediaToolbox armv7 <a18bbcc41a38917fe0ae5e183d3f6b07> /System/Library/PrivateFrameworks/MediaToolbox.framework/MediaToolbox
0x301fc000 - 0x302e4fff libGLProgrammability.dylib armv7 <1f478a71783cd7eb4ae9ef6f2dcea803> /System/Library/Frameworks/OpenGLES.framework/libGLProgrammability.dylib
0x302e5000 - 0x303d0fff PhotoLibrary armv7 <ae1e7ac429fc2c53c203132ba5e8e922> /System/Library/PrivateFrameworks/PhotoLibrary.framework/PhotoLibrary
0x303d1000 - 0x30426fff libvDSP.dylib armv7 <9365fc6cae1bff737257e74faf3b1f26> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libvDSP.dylib
0x30428000 - 0x30a10fff WebCore armv7 <d6bd9cf88ee82ab6b0e33e0ae1190772> /System/Library/PrivateFrameworks/WebCore.framework/WebCore
0x30a28000 - 0x30ad5fff JavaScriptCore armv7 <3f2df600942dc72aad312b3cc98ec479> /System/Library/PrivateFrameworks/JavaScriptCore.framework/JavaScriptCore
0x30ad8000 - 0x30bf8fff libmecabra.dylib armv7 <b2293b8acb00a14bace7520a63f39439> /usr/lib/libmecabra.dylib
0x30bf9000 - 0x30c09fff DataAccessExpress armv7 <6767a1e2afbc86a1ec63dd784f5d3677> /System/Library/PrivateFrameworks/DataAccessExpress.framework/DataAccessExpress
0x30c16000 - 0x30c42fff DataAccess armv7 <6b9b5235b449335ce5c66d53f32004cd> /System/Library/PrivateFrameworks/DataAccess.framework/DataAccess
0x30c98000 - 0x30d57fff CFNetwork armv7 <02fe0e30e54fffdcbbbd02e8cb812c3a> /System/Library/Frameworks/CFNetwork.framework/CFNetwork
0x30d58000 - 0x30d60fff libkxld.dylib armv7 <854e82fe66feef01e54c7c8a209851ac> /usr/lib/system/libkxld.dylib
0x30e58000 - 0x30e5bfff MobileIcons armv7 <551f8c24b1469bf40a8f6010d787ad32> /System/Library/PrivateFrameworks/MobileIcons.framework/MobileIcons
0x30f53000 - 0x31263fff GeoServices armv7 <f6d9eba833e82b1a9a84b38ab7672012> /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
0x31266000 - 0x3129cfff CoreText armv7 <b9b5c21b2d2a28abc47842c78c026ddf> /System/Library/Frameworks/CoreText.framework/CoreText
0x3129d000 - 0x312bffff Preferences armv7 <9acd00335afda6f4e42ef5dfee5a7cdb> /System/Library/PrivateFrameworks/Preferences.framework/Preferences
0x313bb000 - 0x313e6fff IMFoundation armv7 <385c563cfad8946df5523fe3635db3bc> /System/Library/PrivateFrameworks/IMCore.framework/Frameworks/IMFoundation.framework/IMFoundation
0x313e7000 - 0x313e9fff MobileInstallation armv7 <8e6b0d9f642be06729ffdaaee97053b0> /System/Library/PrivateFrameworks/MobileInstallation.framework/MobileInstallation
0x31451000 - 0x31464fff libmis.dylib armv7 <855aefc263c6c20e6cf8723ea36125a2> /usr/lib/libmis.dylib
0x314ad000 - 0x314b8fff libz.1.dylib armv7 <fabaddbcbc8c02bab0261df9d78e0e25> /usr/lib/libz.1.dylib
0x3156c000 - 0x3156efff SpringBoardUI armv7 <42a6b76dddc6c6aa515f27dd11f5957a> /System/Library/PrivateFrameworks/SpringBoardUI.framework/SpringBoardUI
0x3156f000 - 0x31630fff RawCamera armv7 <b7f53a8a4a1188746c9c3d818f28795b> /System/Library/CoreServices/RawCamera.bundle/RawCamera
0x31633000 - 0x31634fff DataMigration armv7 <babbc72d4d48325de147d5103d7bc00d> /System/Library/PrivateFrameworks/DataMigration.framework/DataMigration
0x3164b000 - 0x3164efff CertUI armv7 <5f37446c6b65a8c38ab6233c2e33da66> /System/Library/PrivateFrameworks/CertUI.framework/CertUI
0x3164f000 - 0x31788fff AudioToolbox armv7 <657b327f2ceee9f22f9474f2f9bddbe6> /System/Library/Frameworks/AudioToolbox.framework/AudioToolbox
0x317ce000 - 0x317d3fff libMobileGestalt.dylib armv7 <5f73c7138ee1cb7103a98aec99f9ed88> /usr/lib/libMobileGestalt.dylib
0x317d6000 - 0x318c8fff MusicLibrary armv7 <34edbee423aa7e2ea32ad4eed0620b85> /System/Library/PrivateFrameworks/MusicLibrary.framework/MusicLibrary
0x31947000 - 0x3194ffff MobileWiFi armv7 <b29d4c5e300ef81060e38f72bb583c02> /System/Library/PrivateFrameworks/MobileWiFi.framework/MobileWiFi
0x31950000 - 0x31966fff EAP8021X armv7 <36659ec2b9def7b5798a05327e369247> /System/Library/PrivateFrameworks/EAP8021X.framework/EAP8021X
0x31967000 - 0x319b1fff IMCore armv7 <2c24a8461437a8f7eeb0b94a431a2dec> /System/Library/PrivateFrameworks/IMCore.framework/IMCore
0x319b5000 - 0x319bbfff liblockdown.dylib armv7 <5bbd9b3f5cfece328f80c403a8805ce9> /usr/lib/liblockdown.dylib
0x319bc000 - 0x319d6fff FTServices armv7 <b47d9e3154680d2ab339c05a36578601> /System/Library/PrivateFrameworks/FTServices.framework/FTServices
0x319d7000 - 0x319dafff ApplePushService armv7 <9d1eb7b11f0f146c941efbab2c055606> /System/Library/PrivateFrameworks/ApplePushService.framework/ApplePushService
0x31a3f000 - 0x31a7cfff CoreMedia armv7 <4ea4d349e886206d1ecf5bae870f3f04> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x31a97000 - 0x31b2afff ImageIO armv7 <5b5a294d4250eff866fdbf891b1e8b34> /System/Library/Frameworks/ImageIO.framework/ImageIO
0x31b2c000 - 0x31b2ffff ArtworkCache armv7 <1e65b5000a2234b69164e7904fcf826b> /System/Library/PrivateFrameworks/ArtworkCache.framework/ArtworkCache
0x31b40000 - 0x31b80fff CoreAudio armv7 <f32e03ee4c68f0db23f05afc9a3cc94c> /System/Library/Frameworks/CoreAudio.framework/CoreAudio
0x31b81000 - 0x31b96fff libresolv.9.dylib armv7 <ea156820997ae9a2baf664d0f79f18d7> /usr/lib/libresolv.9.dylib
0x31b97000 - 0x31be1fff libstdc++.6.dylib armv7 <53a6e7239c3908fa8c2915b65ff3b056> /usr/lib/libstdc++.6.dylib
0x31be4000 - 0x31c9afff MapKit armv7 <69921a6353270a6f77e0816d636812e8> /System/Library/Frameworks/MapKit.framework/MapKit
0x31c9b000 - 0x31ca7fff SpringBoardServices armv7 <137b75e19b2450c234dec88d538798ff> /System/Library/PrivateFrameworks/SpringBoardServices.framework/SpringBoardServices
0x31cb8000 - 0x31ceafff AppSupport armv7 <47c8055ac99f187174ca373b702ffa68> /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport
0x31ceb000 - 0x31cf4fff CoreVideo armv7 <2092d5deb6b234e04678b7c1878ccd81> /System/Library/Frameworks/CoreVideo.framework/CoreVideo
0x31cfc000 - 0x31d2ffff QuickLook armv7 <8c54395accc7ffc84766ff3e9b24beb1> /System/Library/Frameworks/QuickLook.framework/QuickLook
0x31d30000 - 0x31d37fff AggregateDictionary armv7 <71372c95d4af7af787d0682a939e40ac> /System/Library/PrivateFrameworks/AggregateDictionary.framework/AggregateDictionary
0x31d4b000 - 0x31e3efff GameKitServices armv7 <b3ab6a3a241b8de774ecbc7b158d137d> /System/Library/PrivateFrameworks/GameKitServices.framework/GameKitServices
0x31e58000 - 0x31f67fff MediaPlayer armv7 <9337abd4fdd749473efaefe64ee649a0> /System/Library/Frameworks/MediaPlayer.framework/MediaPlayer
0x31f68000 - 0x31f88fff PrintKit armv7 <02a9c6f4173a0673c4637a3b570345cd> /System/Library/PrivateFrameworks/PrintKit.framework/PrintKit
0x31f89000 - 0x31f8ffff BluetoothManager armv7 <e60e6028224e28c6c3521e4e1498b351> /System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager
0x32011000 - 0x32058fff MessageUI armv7 <bb7d161bb6c699afb2e1744ece115ae8> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x32059000 - 0x32061fff MobileBluetooth armv7 <6d6c62f52219d27be50f1d7c39a68dc6> /System/Library/PrivateFrameworks/MobileBluetooth.framework/MobileBluetooth
0x32062000 - 0x323e3fff UIKit armv7 <de1cbd3219a74e4d41b30428f428e223> /System/Library/Frameworks/UIKit.framework/UIKit
0x3244f000 - 0x32458fff WebBookmarks armv7 <9f1760206eaef20c605c5d98e45c823e> /System/Library/PrivateFrameworks/WebBookmarks.framework/WebBookmarks
0x32481000 - 0x32483fff libAccessibility.dylib armv7 <3f0b58ea13d30f0cdb73f6ffe6d4e75c> /usr/lib/libAccessibility.dylib
0x3252a000 - 0x3255ffff ImageCapture armv7 <11cb11dea0b6910987518cfb7dfa7ba1> /System/Library/PrivateFrameworks/ImageCapture.framework/ImageCapture
0x3256d000 - 0x3261cfff WebKit armv7 <644a1c6120578f896bed7121307aa2af> /System/Library/PrivateFrameworks/WebKit.framework/WebKit
0x3261e000 - 0x3262bfff libbsm.0.dylib armv7 <0f4e595e6eb2170aceb729f32b5de8c2> /usr/lib/libbsm.0.dylib
0x3262e000 - 0x32671fff ManagedConfiguration armv7 <27ac7f05482a8aa9977150f34f9be6eb> /System/Library/PrivateFrameworks/ManagedConfiguration.framework/ManagedConfiguration
0x326e1000 - 0x3270bfff libtidy.A.dylib armv7 <b3e117f47033d05761d3633fbf764324> /usr/lib/libtidy.A.dylib
0x32711000 - 0x32732fff MobileSync armv7 <cff20dfe818febca9f3232426d59a42d> /System/Library/PrivateFrameworks/MobileSync.framework/MobileSync
0x32ac8000 - 0x32acafff libgcc_s.1.dylib armv7 <e66758bcda6da5d7f9b54fa5c4de6da2> /usr/lib/libgcc_s.1.dylib
0x32ad8000 - 0x32adffff libbz2.1.0.dylib armv7 <2989ea7a5cad2cfe91bd632b041d0ff4> /usr/lib/libbz2.1.0.dylib
0x32ae0000 - 0x32b09fff ContentIndex armv7 <247576cb4f1ff8e92650ae3cb4973760> /System/Library/PrivateFrameworks/ContentIndex.framework/ContentIndex
0x32b0a000 - 0x32b44fff IOKit armv7 <eb932cc42d60e55d9a4d0691bcc3d9ad> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x32b45000 - 0x32b7cfff Security armv7 <cd28e102950634ae7167ddee9c686d36> /System/Library/Frameworks/Security.framework/Security
0x32b82000 - 0x32baafff StoreServices armv7 <f409aaf487bd7e7a08c77ba5a2a83a1a> /System/Library/PrivateFrameworks/StoreServices.framework/StoreServices
0x32bab000 - 0x32badfff IOMobileFramebuffer armv7 <1040629f37795146c9dcac8ab1a868fc> /System/Library/PrivateFrameworks/IOMobileFramebuffer.framework/IOMobileFramebuffer
0x32bae000 - 0x32e48fff libLAPACK.dylib armv7 <2e77d87e96af938aacf0a6008e6fb89d> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libLAPACK.dylib
0x32e8a000 - 0x32e8dfff CaptiveNetwork armv7 <a2af7147f5538d7669b14fa7b19b5a7c> /System/Library/PrivateFrameworks/CaptiveNetwork.framework/CaptiveNetwork
0x32eac000 - 0x32f05fff EventKit armv7 <037c4bb5e2529e6004d0e1f3d95a84cc> /System/Library/Frameworks/EventKit.framework/EventKit
0x32f06000 - 0x32f23fff AppleAccount armv7 <e3833276f8877499c8dd76b3b3d88501> /System/Library/PrivateFrameworks/AppleAccount.framework/AppleAccount
0x32f24000 - 0x32f55fff VideoToolbox armv7 <bb7ff9014b1dabec2acce95d41f05b59> /System/Library/PrivateFrameworks/VideoToolbox.framework/VideoToolbox
0x32f56000 - 0x32f66fff TelephonyUI armv7 <4d181ff2cf0373cf56db350e0fbc1717> /System/Library/PrivateFrameworks/TelephonyUI.framework/TelephonyUI
0x32f67000 - 0x32f71fff AccountSettings armv7 <19c79f81d5d55fe2e6b618fcdc28258e> /System/Library/PrivateFrameworks/AccountSettings.framework/AccountSettings
0x32f72000 - 0x32f7ffff OpenGLES armv7 <a12565ffb5bb42e3019f1957cd4951d0> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x32fc8000 - 0x32ffbfff AddressBook armv7 <7c87e0175c8649d6832419da8a1cfac1> /System/Library/Frameworks/AddressBook.framework/AddressBook
0x32ffc000 - 0x32ffffff libGFXShared.dylib armv7 <3a385ed495379116abbe50bc8cd5a612> /System/Library/Frameworks/OpenGLES.framework/libGFXShared.dylib
0x3301a000 - 0x330a3fff Message armv7 <69cb7cb1d1d7865fc04dc341544174b6> /System/Library/PrivateFrameworks/Message.framework/Message
0x330fd000 - 0x3314dfff GMM armv7 <2b63c1e1ce647e031a8a491e156f04d3> /System/Library/PrivateFrameworks/GMM.framework/GMM
0x3316c000 - 0x331affff IMAVCore armv7 <bea1734446844d18fdb269b82ee05d9b> /System/Library/PrivateFrameworks/IMAVCore.framework/IMAVCore
0x331c6000 - 0x331cffff ITSync armv7 <87d409553f90e41a01afce047dc2e8fe> /System/Library/PrivateFrameworks/ITSync.framework/ITSync
0x331d0000 - 0x3323ffff ProofReader armv7 <d2e62a8ab7e1460c7f6de8913c703e6d> /System/Library/PrivateFrameworks/ProofReader.framework/ProofReader
0x33240000 - 0x33347fff CoreData armv7 <29b1ab7d339e42a6ff6923e54cf43e7b> /System/Library/Frameworks/CoreData.framework/CoreData
0x33393000 - 0x333defff libBLAS.dylib armv7 <251c5ac7380802a16e30d827c027c637> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/libBLAS.dylib
0x333df000 - 0x333e2fff IOSurface armv7 <deff02882166bf16d0765d68f0542cc8> /System/Library/PrivateFrameworks/IOSurface.framework/IOSurface
0x33476000 - 0x33537fff libobjc.A.dylib armv7 <aaf5671a35f9ac20d5846703dafaf4c6> /usr/lib/libobjc.A.dylib
0x335dc000 - 0x335dffff ActorKit armv7 <f5d038591e564646e9237a59c6c14293> /System/Library/PrivateFrameworks/ActorKit.framework/ActorKit
0x335e0000 - 0x335e2fff Camera armv7 <72ac72d4c09246d0774cda087069fb26> /System/Library/PrivateFrameworks/Camera.framework/Camera
0x335e8000 - 0x335e8fff Accelerate armv7 <29dd5f17440bbb6e8e42e11b6fceda9a> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x335e9000 - 0x335f8fff Notes armv7 <7d7a3d10a349471cd2757a479d131b31> /System/Library/PrivateFrameworks/Notes.framework/Notes
0x33619000 - 0x33738fff Foundation armv7 <81d36041f04318cb51db5aafed9ce504> /System/Library/Frameworks/Foundation.framework/Foundation
0x33748000 - 0x33795fff libsqlite3.dylib armv7 <55038e5c1d4d0dbdd94295e8cad7a9a4> /usr/lib/libsqlite3.dylib
0x33797000 - 0x337b0fff libRIP.A.dylib armv7 <ee16b5cee12a8947c8e511ed51ae7fef> /System/Library/Frameworks/CoreGraphics.framework/Resources/libRIP.A.dylib
0x337e8000 - 0x337fbfff MediaControl armv7 <874e83896424ebb3afe59a3a59ba4dfe> /System/Library/PrivateFrameworks/MediaControl.framework/MediaControl
0x337ff000 - 0x33837fff libCGFreetype.A.dylib armv7 <374bd566263e8929c10d50d6a6a48a46> /System/Library/Frameworks/CoreGraphics.framework/Resources/libCGFreetype.A.dylib
0x33899000 - 0x338a8fff MobileDeviceLink armv7 <8f2fc7e811bc57f7a09d7df81c329e1a> /System/Library/PrivateFrameworks/MobileDeviceLink.framework/MobileDeviceLink
0x338e1000 - 0x33977fff AddressBookUI armv7 <45665471fd70b0733b206d8166df74ef> /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI
0x33980000 - 0x33980fff vecLib armv7 <e53d234e808c77d286161095f92c58cf> /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/vecLib
0x33a20000 - 0x33b06fff CoreFoundation armv7 <01441e01f5141a50ee723362e59ca400> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x33b0a000 - 0x33b16fff GraphicsServices armv7 <0099670dccd99466653956bf918d667a> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x33b43000 - 0x33b48fff MobileKeyBag armv7 <cec3f3271fc267c32c169ed03e312d63> /System/Library/PrivateFrameworks/MobileKeyBag.framework/MobileKeyBag
0x33b5c000 - 0x33c6dfff libSystem.B.dylib armv7 <138a43ab528bb428651e6aa7a2a7293c> /usr/lib/libSystem.B.dylib
0x33c95000 - 0x33d36fff Celestial armv7 <b411f4662383ec24dbfbcde8f4c23d67> /System/Library/PrivateFrameworks/Celestial.framework/Celestial
0x33d6b000 - 0x33d94fff MobileCoreServices armv7 <54484a513761868149405df7fc29b5c0> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x33d95000 - 0x33d99fff AssetsLibraryServices armv7 <e861a330d14702f148ca5133dcbe954c> /System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices
0x33f4e000 - 0x33f54fff ProtocolBuffer armv7 <7e279d3b6d1e1fd7dc8c8a883255fa17> /System/Library/PrivateFrameworks/ProtocolBuffer.framework/ProtocolBuffer
0x33f55000 - 0x33f91fff Conference armv7 <3423ba341eb80fced949e243a88379af> /System/Library/PrivateFrameworks/Conference.framework/Conference
0x340bb000 - 0x340c8fff DataDetectorsUI armv7 <a7e33ab2817110626fa1c5c731419101> /System/Library/PrivateFrameworks/DataDetectorsUI.framework/DataDetectorsUI
0x340c9000 - 0x340f8fff SystemConfiguration armv7 <3f982c11b5526fc39a92d585c60d8a90> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x340f9000 - 0x341a7fff QuartzCore armv7 <83a8e5f0033369e437069c1e758fed83> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x341c1000 - 0x342e1fff CoreGraphics armv7 <2d7b40a7baca915ce78b1dd9a0d6433b> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x34335000 - 0x34368fff iCalendar armv7 <6eb50e720d642f5ac510a36989b276b2> /System/Library/PrivateFrameworks/iCalendar.framework/iCalendar
0x34369000 - 0x3439ffff CoreLocation armv7 <e19b7aa132318fc90618a663bd576461> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x343c3000 - 0x3446cfff libxml2.2.dylib armv7 <b3d82f80a777cb1434052ea2d232e3df> /usr/lib/libxml2.2.dylib
0x344a0000 - 0x344cefff MIME armv7 <1989502ce4da514314647c6a0098d8e7> /System/Library/PrivateFrameworks/MIME.framework/MIME
0x344cf000 - 0x344d1fff Marco armv7 <6b5200647dcbc7a54d3fda57c98469bb> /System/Library/PrivateFrameworks/Marco.framework/Marco
0x3451f000 - 0x3460cfff libiconv.2.dylib armv7 <c72b45f471df092dbd849081f7a3ef53> /usr/lib/libiconv.2.dylib
0x34613000 - 0x34625fff PersistentConnection armv7 <cd2a699aa5036bdad0517603ba4db839> /System/Library/PrivateFrameworks/PersistentConnection.framework/PersistentConnection
0x3464e000 - 0x34764fff libicucore.A.dylib armv7 <e7fbb2ac586567e574dc33d7bb5c4dc9> /usr/lib/libicucore.A.dylib
0x34765000 - 0x34773fff DataDetectorsCore armv7 <31929ee8505b90fb51d269cd4763f2e8> /System/Library/PrivateFrameworks/DataDetectorsCore.framework/DataDetectorsCore
0x34774000 - 0x347b3fff libGLImage.dylib armv7 <a7c117c92607a512823d307b8fdd0151> /System/Library/Frameworks/OpenGLES.framework/libGLImage.dylib
0x347d9000 - 0x34855fff AVFoundation armv7 <4c7356c795e01bd5c21b00a409a07476> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x34860000 - 0x34866fff IAP armv7 <134f59ad5bb91bab6a5fe21b6f36dc8b> /System/Library/PrivateFrameworks/IAP.framework/IAP
0x34867000 - 0x34886fff Bom armv7 <0f5fd6057bad5e1677869500d636821f> /System/Library/PrivateFrameworks/Bom.framework/Bom
0x34887000 - 0x348c9fff CoreTelephony armv7 <96d3af505b9f2887e62c7e99c157733e> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x348ca000 - 0x348ccfff CrashReporterSupport armv7 <30a5f1edcdb9ffe868a620199a4cbe12> /System/Library/PrivateFrameworks/CrashReporterSupport.framework/CrashReporterSupport
0x348e6000 - 0x3625ffff TextInput armv7 <557601a7d93124fd5860606f294e900a> /System/Library/PrivateFrameworks/TextInput.framework/TextInput
Thanks In Advance. | 0 |
11,541,815 | 07/18/2012 12:50:52 | 540,981 | 12/13/2010 19:37:47 | 696 | 54 | How To Declaratively Right Align a Column in a Dojo Datagrid | I have a Dojo data grid created declaratively using html. I need to right align a column. I've tried the following two ways, I can't get it to work
**Try 1**
In the following example, he `align="right"` is ignored, but `width="100px"` is added to the style of each `<td>` element
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" align="right">Col 2</th>
<th field="col3" width="100px" align="right">Col 3</th>
</tr>
</thead>
</table>
**Try 2**
In the following example `style="text-align:right;"` seems to be completely ignored by dojo
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" style="text-align:right;">Col 2</th>
<th field="col3" width="100px" style="text-align:right;">Col 3</th>
</tr>
</thead>
</table> | dojo | dojox | dojox.grid.datagrid | null | null | null | open | How To Declaratively Right Align a Column in a Dojo Datagrid
===
I have a Dojo data grid created declaratively using html. I need to right align a column. I've tried the following two ways, I can't get it to work
**Try 1**
In the following example, he `align="right"` is ignored, but `width="100px"` is added to the style of each `<td>` element
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" align="right">Col 2</th>
<th field="col3" width="100px" align="right">Col 3</th>
</tr>
</thead>
</table>
**Try 2**
In the following example `style="text-align:right;"` seems to be completely ignored by dojo
<table data-dojo-type="dojox.grid.DataGrid" style="height:100px;">
<thead>
<tr>
<th field="col1" width="auto">Col 1</th>
<th field="col2" width="100px" style="text-align:right;">Col 2</th>
<th field="col3" width="100px" style="text-align:right;">Col 3</th>
</tr>
</thead>
</table> | 0 |
11,541,633 | 07/18/2012 12:40:50 | 938,350 | 09/10/2011 16:03:36 | 1,353 | 92 | How to take some column from three table in mysql | i have three table like:
table 1:
|A|B|C|D|
table 2:
|A|E|F|G|
table 3:
|G|H|
what i need in result is:
|A|B|C|D|H|
initially i check only the first two table taking, from `table1` all the rows and from `table2` the column `G` in that rows that satisfy the condition `table1.A = table2.A`
something like:
SELECT `table1`.*,`table2`.`G` FROM `table1` INNER JOIN `table2` WHERE `table1`.`A`=`table2`.`A`
My problem now is to take column `H` from `table3` using like key value `G` that satisfy old condition. i hope my question is a little bit clear.. can someone help me? thanks! | mysql | multiple-tables | null | null | null | null | open | How to take some column from three table in mysql
===
i have three table like:
table 1:
|A|B|C|D|
table 2:
|A|E|F|G|
table 3:
|G|H|
what i need in result is:
|A|B|C|D|H|
initially i check only the first two table taking, from `table1` all the rows and from `table2` the column `G` in that rows that satisfy the condition `table1.A = table2.A`
something like:
SELECT `table1`.*,`table2`.`G` FROM `table1` INNER JOIN `table2` WHERE `table1`.`A`=`table2`.`A`
My problem now is to take column `H` from `table3` using like key value `G` that satisfy old condition. i hope my question is a little bit clear.. can someone help me? thanks! | 0 |
11,541,820 | 07/18/2012 12:51:08 | 504,612 | 11/11/2010 14:22:11 | 623 | 14 | drupal database join query | I am trying to retrieve information from two database tables in the same DB query using the following code:
$query = db_select('webform_questionnaire_fieldset', 'wqf');
$query->join('webform_component', 'wc');
$query->fields('wqf')
->fields('wc')
->condition('wqf.cid', $cid, '=')
->condition('wqf.nid', $nid, '=')
->execute();
The output I get does not resemble the database data but looks more like the database meta data, as follows:
SelectQuery::__set_state(array(
'fields' =>
array (
),
'expressions' =>
array (
),
'tables' =>
array (
'wqf' =>
array (
'join type' => NULL,
'table' => 'webform_questionnaire_fieldset',
'alias' => 'wqf',
'condition' => NULL,
'arguments' =>
array (
),
'all_fields' => true,
),
'wc' =>
array (
'join type' => 'INNER',
'table' => 'webform_component',
'alias' => 'wc',
'condition' => NULL,
'arguments' =>
array (
),
'all_fields' => true,
),
),
'order' =>
array (
), ......
Can anyone please tell me what I'm doing wrong? | database | query | join | drupal-7 | null | null | open | drupal database join query
===
I am trying to retrieve information from two database tables in the same DB query using the following code:
$query = db_select('webform_questionnaire_fieldset', 'wqf');
$query->join('webform_component', 'wc');
$query->fields('wqf')
->fields('wc')
->condition('wqf.cid', $cid, '=')
->condition('wqf.nid', $nid, '=')
->execute();
The output I get does not resemble the database data but looks more like the database meta data, as follows:
SelectQuery::__set_state(array(
'fields' =>
array (
),
'expressions' =>
array (
),
'tables' =>
array (
'wqf' =>
array (
'join type' => NULL,
'table' => 'webform_questionnaire_fieldset',
'alias' => 'wqf',
'condition' => NULL,
'arguments' =>
array (
),
'all_fields' => true,
),
'wc' =>
array (
'join type' => 'INNER',
'table' => 'webform_component',
'alias' => 'wc',
'condition' => NULL,
'arguments' =>
array (
),
'all_fields' => true,
),
),
'order' =>
array (
), ......
Can anyone please tell me what I'm doing wrong? | 0 |
11,541,822 | 07/18/2012 12:51:13 | 1,524,385 | 07/13/2012 18:43:53 | 1 | 0 | PHP-Script doesn't work for others - Blank canvas | quite funny error I get: my script works fine under my account. But on all (!) other account I just see a blank canvas. Here's my script:
<?php
require_once 'src/facebook.php';
$app_id = "xx";
$app_secret = "xx";
$facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true ));
$signed_request = $facebook -> getSignedRequest();
$locale = $signed_request["user"]["locale"];
if($locale =="de_DE") {
echo "<img src='deutsch.jpg'>";}
else {
echo "<img src='englisch.jpg'>";}
?>
Actually I can't find a failure in it. Do I have to change any permissions, or my canvas-url?
| php | facebook | null | null | null | null | open | PHP-Script doesn't work for others - Blank canvas
===
quite funny error I get: my script works fine under my account. But on all (!) other account I just see a blank canvas. Here's my script:
<?php
require_once 'src/facebook.php';
$app_id = "xx";
$app_secret = "xx";
$facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true ));
$signed_request = $facebook -> getSignedRequest();
$locale = $signed_request["user"]["locale"];
if($locale =="de_DE") {
echo "<img src='deutsch.jpg'>";}
else {
echo "<img src='englisch.jpg'>";}
?>
Actually I can't find a failure in it. Do I have to change any permissions, or my canvas-url?
| 0 |
11,541,823 | 07/18/2012 12:51:14 | 1,083,757 | 12/06/2011 15:08:46 | 38 | 0 | move files from multiple folder to one destination folder | Dear Unix users I have for example 6 folders and in each folder I have a file called file.txt. The name of the file is exactly the same in all the folders I have. I would like to move all the files called file.txt from each of the 6 folders into a general folder that will contain all the files because I would like to concatenate the files finally. How this can be done?
Input:
folder1: file.txt, folder2: file.txt, folder3: file.txt
Output:
final_folder: file.txt, file.txt, file.txt
Thanks
Eleonora | unix | null | null | null | null | null | open | move files from multiple folder to one destination folder
===
Dear Unix users I have for example 6 folders and in each folder I have a file called file.txt. The name of the file is exactly the same in all the folders I have. I would like to move all the files called file.txt from each of the 6 folders into a general folder that will contain all the files because I would like to concatenate the files finally. How this can be done?
Input:
folder1: file.txt, folder2: file.txt, folder3: file.txt
Output:
final_folder: file.txt, file.txt, file.txt
Thanks
Eleonora | 0 |
11,541,824 | 07/18/2012 12:51:16 | 497,180 | 11/04/2010 13:04:42 | 371 | 2 | converting a Python list to an R numeric vector | I need to fit my data into a Beta distribution and retrieve the *alpha* parameter.
I've been coding in Python, but there doesn't seem to be any beta fitting function in SciPy. Either I do everything in Matlab, which I'm not too familiar with, or in Python with R and its `fitdistr` function. So I went for the latter.
from rpy2.robjects.packages import importr
MASS = importr('MASS')
Then I take my numpy vector of floats in the range [0,1) and I pass it to `fitdistr`:
myVector = myVector.tolist()
MASS.fitdistr(a1,"beta")
Too bad that it wants some kind of other vector. Weren't rpy and rpy2 supposed to do all the conversions for me?
Error in function (x, densfun, start, ...) :
'x' must be a non-empty numeric vector
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 82, in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 34, in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
rpy2.rinterface.RRuntimeError: Error in function (x, densfun, start, ...) :
'x' must be a non-empty numeric vector
What do I need to do here?
| python | r | vector | rpy2 | null | null | open | converting a Python list to an R numeric vector
===
I need to fit my data into a Beta distribution and retrieve the *alpha* parameter.
I've been coding in Python, but there doesn't seem to be any beta fitting function in SciPy. Either I do everything in Matlab, which I'm not too familiar with, or in Python with R and its `fitdistr` function. So I went for the latter.
from rpy2.robjects.packages import importr
MASS = importr('MASS')
Then I take my numpy vector of floats in the range [0,1) and I pass it to `fitdistr`:
myVector = myVector.tolist()
MASS.fitdistr(a1,"beta")
Too bad that it wants some kind of other vector. Weren't rpy and rpy2 supposed to do all the conversions for me?
Error in function (x, densfun, start, ...) :
'x' must be a non-empty numeric vector
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 82, in __call__
return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/rpy2/robjects/functions.py", line 34, in __call__
res = super(Function, self).__call__(*new_args, **new_kwargs)
rpy2.rinterface.RRuntimeError: Error in function (x, densfun, start, ...) :
'x' must be a non-empty numeric vector
What do I need to do here?
| 0 |
11,538,911 | 07/18/2012 10:03:29 | 976,050 | 10/03/2011 04:13:20 | 174 | 0 | Deletion of rows from populated table | I'm currently facing a strange issue whereby I did not get any errors from my debugging page. My table consists of several rows and only the first row of the table can't be deleted.
Sample form:
$DB = new PDO('sqlite:database/Sample.db');
$result = $DB->query("select * from staff");
foreach ($result as $row)
{
$StaffNo= $row['StaffNo'];
$Name= $row['Name'];
$TelNo= $row ['TelNo'];
}
<tr>
//Go to remove.php to remove
echo "<form action=\"Remove.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"StaffNo\" value=\"$StaffNo\">";
echo "<input type=\"submit\" onclick=\"return confirm('Yes/No')\"/>";
echo "</form>";
echo "</td>";
echo '<td data-column-name="Name" char="data" class="'.$rowcolor.'">'.$Name.'</td>';
echo '<td data-column-name="TelNo" char="data" class="'.$rowcolor.'">'.$TelNo.'</td>';
</tr>
Remove.php:
$StaffNo= $_POST["StaffNo"];
$DB = new PDO('sqlite:database/Sample.db');
$DB->query("DELETE FROM Staff WHERE StaffNo=".$StaffNo);
@header("location:view.php");
From my code above, I can delete all my sample records except for the first row. It doesn't get deleted... Kindly advise if i did wrong somewhere....
| php | html | null | null | null | null | open | Deletion of rows from populated table
===
I'm currently facing a strange issue whereby I did not get any errors from my debugging page. My table consists of several rows and only the first row of the table can't be deleted.
Sample form:
$DB = new PDO('sqlite:database/Sample.db');
$result = $DB->query("select * from staff");
foreach ($result as $row)
{
$StaffNo= $row['StaffNo'];
$Name= $row['Name'];
$TelNo= $row ['TelNo'];
}
<tr>
//Go to remove.php to remove
echo "<form action=\"Remove.php\" method=\"post\">";
echo "<input type=\"hidden\" name=\"StaffNo\" value=\"$StaffNo\">";
echo "<input type=\"submit\" onclick=\"return confirm('Yes/No')\"/>";
echo "</form>";
echo "</td>";
echo '<td data-column-name="Name" char="data" class="'.$rowcolor.'">'.$Name.'</td>';
echo '<td data-column-name="TelNo" char="data" class="'.$rowcolor.'">'.$TelNo.'</td>';
</tr>
Remove.php:
$StaffNo= $_POST["StaffNo"];
$DB = new PDO('sqlite:database/Sample.db');
$DB->query("DELETE FROM Staff WHERE StaffNo=".$StaffNo);
@header("location:view.php");
From my code above, I can delete all my sample records except for the first row. It doesn't get deleted... Kindly advise if i did wrong somewhere....
| 0 |
11,349,952 | 07/05/2012 18:01:29 | 630,973 | 02/23/2011 19:40:35 | 422 | 13 | CSS layout with both fixed and liquid columns | Mixing both liquid and fixed elements in my CSS layout seems troubling. I've tried various settings, but I can't get it just right.
I am trying to create a template where the main content is surrounded by a content on each side (top, left, right, bottom).
<div id="container">
<div id="header">k</div>
<div id="left-column"></div>
<div id="center-column"><h1>Main Page</h1> Liquid layout trial</div>
<div id="right-column"></div>
<div id="footer"></div>
</div>
Top bar (header) should have fixed height.
Left column should have fixed height/width
center column should float in both height/width depending on viewport and content
right column should have fixed height/width.
footer should have fixed height
Here's my CSS:
#header{
background-color: blue;
height 50px;
color: white;
clear:both;
}
#left-column{
background-color: green;
width:100px;
height:400px;
float: left;
}
#center-column{
background-color: yellow;
float:left;
}
#right-column{
background-color: red;
float:right;
height: 400px;
width: 100px;
}
#footer{
clear: both;
height: 50px;
background-color: pink;
}
The center-column does not seem to use it's whole width/height as I would expect the whole area between the four "sides" to be yellow.
![enter image description here][1]
Another issue is with limiting the viewport, the right column drops below the center column
![enter image description here][2]
I also do not understand why my header needs content to be displayed. If I remove the character "K" it's not visible.
![enter image description here][3]
I've got an fiddle of this example found here: http://jsfiddle.net/jasonBr81/vZDND/2/
[1]: http://i.stack.imgur.com/C6uYv.jpg
[2]: http://i.stack.imgur.com/3U2mM.jpg
[3]: http://i.stack.imgur.com/akErm.jpg | css | css3 | css-float | null | null | null | open | CSS layout with both fixed and liquid columns
===
Mixing both liquid and fixed elements in my CSS layout seems troubling. I've tried various settings, but I can't get it just right.
I am trying to create a template where the main content is surrounded by a content on each side (top, left, right, bottom).
<div id="container">
<div id="header">k</div>
<div id="left-column"></div>
<div id="center-column"><h1>Main Page</h1> Liquid layout trial</div>
<div id="right-column"></div>
<div id="footer"></div>
</div>
Top bar (header) should have fixed height.
Left column should have fixed height/width
center column should float in both height/width depending on viewport and content
right column should have fixed height/width.
footer should have fixed height
Here's my CSS:
#header{
background-color: blue;
height 50px;
color: white;
clear:both;
}
#left-column{
background-color: green;
width:100px;
height:400px;
float: left;
}
#center-column{
background-color: yellow;
float:left;
}
#right-column{
background-color: red;
float:right;
height: 400px;
width: 100px;
}
#footer{
clear: both;
height: 50px;
background-color: pink;
}
The center-column does not seem to use it's whole width/height as I would expect the whole area between the four "sides" to be yellow.
![enter image description here][1]
Another issue is with limiting the viewport, the right column drops below the center column
![enter image description here][2]
I also do not understand why my header needs content to be displayed. If I remove the character "K" it's not visible.
![enter image description here][3]
I've got an fiddle of this example found here: http://jsfiddle.net/jasonBr81/vZDND/2/
[1]: http://i.stack.imgur.com/C6uYv.jpg
[2]: http://i.stack.imgur.com/3U2mM.jpg
[3]: http://i.stack.imgur.com/akErm.jpg | 0 |
11,349,954 | 07/05/2012 18:01:38 | 635,600 | 02/26/2011 14:47:22 | 7 | 0 | Please explain me this SQL statement | I have this select statement but I don't know what it is doing please help me understand
I know tell u follow
1. OBZXQ is Database
2. OBS_EVENT_FACT is table
3. EVENTNAME is column in OBS_EVENT_FACT
4. I don't see absent_count as a column in OBS_EVENT_FACT
Thanks<br>
select absent_count from (select count(e.EVENTNAME) as ABSENT_COUNT
from OBZXQ.OBS_EVENT_FACT e
where To_Date(to_char(e.STARTDATETIME, 'DD-MON-YYYY')) = To_Date('3/17/2011','MM/DD/YYYY')) | sql | sql-select | null | null | null | 07/07/2012 07:14:01 | too localized | Please explain me this SQL statement
===
I have this select statement but I don't know what it is doing please help me understand
I know tell u follow
1. OBZXQ is Database
2. OBS_EVENT_FACT is table
3. EVENTNAME is column in OBS_EVENT_FACT
4. I don't see absent_count as a column in OBS_EVENT_FACT
Thanks<br>
select absent_count from (select count(e.EVENTNAME) as ABSENT_COUNT
from OBZXQ.OBS_EVENT_FACT e
where To_Date(to_char(e.STARTDATETIME, 'DD-MON-YYYY')) = To_Date('3/17/2011','MM/DD/YYYY')) | 3 |
11,349,955 | 07/05/2012 18:01:38 | 1,451,479 | 06/12/2012 14:27:20 | 6 | 0 | PHP, SPL, AccessArray Interface with Iterator Interface | I was thinking about AccessArray interface and the Iterator interface and i was thinking can we combine them?, I mean Setting up array with AccessArray and use a foreach loop with the Iterator, If can some one please help me with example if it possible to combine those two. | php | iterator | spl | arrayaccess | null | null | open | PHP, SPL, AccessArray Interface with Iterator Interface
===
I was thinking about AccessArray interface and the Iterator interface and i was thinking can we combine them?, I mean Setting up array with AccessArray and use a foreach loop with the Iterator, If can some one please help me with example if it possible to combine those two. | 0 |
11,349,901 | 07/05/2012 17:59:14 | 616,349 | 02/14/2011 14:23:13 | 184 | 7 | What is coldfusion.scheduling.Scheduler.createRunnable()? | While debugging performance issues on a ColdFusion 8 server, I attached VisualVM to the Jrun instance running ColdFusion.
I started the CPU profiler and noticed that the method coldfusion.scheduling.Scheduler.createRunnable() is one of the most consuming method (about 35% of Self time):
![enter image description here][1]
Is the "Self time" a reliable measure?
Does anyone know what the coldfusion.scheduling.Scheduler.createRunnable() is?
[1]: http://i.stack.imgur.com/43MDX.png | java | profiling | coldfusion-8 | visualvm | null | null | open | What is coldfusion.scheduling.Scheduler.createRunnable()?
===
While debugging performance issues on a ColdFusion 8 server, I attached VisualVM to the Jrun instance running ColdFusion.
I started the CPU profiler and noticed that the method coldfusion.scheduling.Scheduler.createRunnable() is one of the most consuming method (about 35% of Self time):
![enter image description here][1]
Is the "Self time" a reliable measure?
Does anyone know what the coldfusion.scheduling.Scheduler.createRunnable() is?
[1]: http://i.stack.imgur.com/43MDX.png | 0 |
11,349,960 | 07/05/2012 18:01:50 | 650,148 | 03/08/2011 16:31:32 | 66 | 5 | How to check connection string in SSMS2012? | I'm connected to database. I use db by Management Studio 2012 Express. Can I check connection string by click something in Management Studio? | sql | ssms | null | null | null | 07/08/2012 01:09:24 | off topic | How to check connection string in SSMS2012?
===
I'm connected to database. I use db by Management Studio 2012 Express. Can I check connection string by click something in Management Studio? | 2 |
11,349,788 | 07/05/2012 17:51:48 | 1,026,459 | 11/02/2011 20:26:41 | 4,281 | 401 | How can I convert a dynamic proxy into a POCO? | I was trying trying to serialize a domain model and ran into an issue where I need to convert a dynamic proxy into a POCO. The issue I ran into was that circular references exist by way of virtual properties in the model. Although I attempted to use `[ScriptIgnore]` in order to have the serializer not parse those properties, it still does. I believe that this is because the objects are dynamic proxies and there is still some remnants in the properties which cause the parser to enter (which in turn causes a recursion error "circular reference" - I tried limiting the recursion to 3 steps but I got an error of "Recursive steps exceeded").
How can I convert an object from a dynamic proxy to a POCO so that it can be serialized? | c# | asp.net-mvc-3 | entity-framework-4.1 | dynamic-proxy | serializeation | null | open | How can I convert a dynamic proxy into a POCO?
===
I was trying trying to serialize a domain model and ran into an issue where I need to convert a dynamic proxy into a POCO. The issue I ran into was that circular references exist by way of virtual properties in the model. Although I attempted to use `[ScriptIgnore]` in order to have the serializer not parse those properties, it still does. I believe that this is because the objects are dynamic proxies and there is still some remnants in the properties which cause the parser to enter (which in turn causes a recursion error "circular reference" - I tried limiting the recursion to 3 steps but I got an error of "Recursive steps exceeded").
How can I convert an object from a dynamic proxy to a POCO so that it can be serialized? | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.