PostId int64 13 11.8M | PostCreationDate stringlengths 19 19 | OwnerUserId int64 3 1.57M | OwnerCreationDate stringlengths 10 19 | ReputationAtPostCreation int64 -33 210k | OwnerUndeletedAnswerCountAtPostTime int64 0 5.77k | Title stringlengths 10 250 | BodyMarkdown stringlengths 12 30k | Tag1 stringlengths 1 25 ⌀ | Tag2 stringlengths 1 25 ⌀ | Tag3 stringlengths 1 25 ⌀ | Tag4 stringlengths 1 25 ⌀ | Tag5 stringlengths 1 25 ⌀ | PostClosedDate stringlengths 19 19 ⌀ | OpenStatus stringclasses 5 values | unified_texts stringlengths 47 30.1k | OpenStatus_id int64 0 4 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5,465,729 | 03/28/2011 22:20:10 | 254,455 | 10/15/2008 00:17:24 | 319 | 22 | How do you send e-mail via PHP on a GoDaddy shared host using CodeIgniter? | I am using CodeIgniter on a GoDaddy shared host and I need to send e-mails from a contact form. Following information from CodeIgniter, GoDaddy, and serveral web forums I came up with the following non-working code:
This is in config/email.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// the mail protocol specifies sendmail
$config['mailpath'] = "/usr/sbin/sendmail";
$config['protocol'] = "sendmail";
$config['smtp_host'] = "relay-hosting.secureserver.net";
$config['smtp_user'] = "emailaccount";
$config['smtp_pass'] = "password";
$config['smtp_port'] = "25";
$config['mailtype'] = "text/plain";
$config['validate'] = "TRUE";
/* End of file email.php */
/* Location: ./application/config/email.php */
The e-mail account and password are from a e-mail account set up on GoDaddy. I have tried every variation of these attributes to no avail. Each time I either get no e-mail at all, or the recipient gets the following message:
> The original message was received at
> Mon, 28 Mar 2011 14:09:06 -0700 from
> localhost.localdomain [127.0.0.1]
>
> ----- The following addresses had
> permanent fatal errors -----
> <admin@gmail.com> (reason: 553
> sorry, your mail was administratively
> denied. (#5.7.1))
>
> ----- Transcript of session follows
> ----- ... while talking to relay-hosting.secureserver.net.:
> >>> MAIL From:<recipient@gmail.com> SIZE=1054 <<< 553 sorry, your mail was
> administratively denied. (#5.7.1) 501
> 5.6.0 Data format error
>
> Final-Recipient: RFC822;
> admin@gmail.com Action: failed Status:
> 5.1.3 Diagnostic-Code: SMTP; 553 sorry, your mail was administratively
> denied. (#5.7.1) Last-Attempt-Date:
> Mon, 28 Mar 2011 14:09:07 -0700
>
>
> ---------- Forwarded message ---------- From: "John Doe" <recipient@gmail.com> To:
> admin@gmail.com Date: Mon, 28 Mar 2011
> 14:09:06 -0700 Subject: Information
> Request Name: John Doe E-mail:
> recipient@gmail.com Phone:
> 202-664-7488 Time: Anytime Service:
> Comments:
I have changed the mailtype to html, text, text/plain, I have changed the protocol to stmp but then it sent nothing, I've left out the user and password and got the same error, nothing I change works.
Also, my e-mail function calls look like this:
$name = $this->input->post('name');
$email = $this->input->post('email');
$phone = $this->input->post('phone');
$time = $this->input->post('time');
$service = $this->input->post('service');
$aditional_comments = $this->input->post('aditional_comments');
$content="Name: $name\n"
."E-mail: $email\n"
."Phone: $phone\n"
."Time: $time\n"
."Service: $service\n"
."Comments: $aditional_comments";
$this->email->from($email, $name);
$this->email->to($data['general_config']['email']);
$this->email->subject('Information Request');
$this->email->message($content);
$this->email->send();
Why do I get this error? How do I fix it? | php | email | codeigniter | godaddy | null | null | open | How do you send e-mail via PHP on a GoDaddy shared host using CodeIgniter?
===
I am using CodeIgniter on a GoDaddy shared host and I need to send e-mails from a contact form. Following information from CodeIgniter, GoDaddy, and serveral web forums I came up with the following non-working code:
This is in config/email.php
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// the mail protocol specifies sendmail
$config['mailpath'] = "/usr/sbin/sendmail";
$config['protocol'] = "sendmail";
$config['smtp_host'] = "relay-hosting.secureserver.net";
$config['smtp_user'] = "emailaccount";
$config['smtp_pass'] = "password";
$config['smtp_port'] = "25";
$config['mailtype'] = "text/plain";
$config['validate'] = "TRUE";
/* End of file email.php */
/* Location: ./application/config/email.php */
The e-mail account and password are from a e-mail account set up on GoDaddy. I have tried every variation of these attributes to no avail. Each time I either get no e-mail at all, or the recipient gets the following message:
> The original message was received at
> Mon, 28 Mar 2011 14:09:06 -0700 from
> localhost.localdomain [127.0.0.1]
>
> ----- The following addresses had
> permanent fatal errors -----
> <admin@gmail.com> (reason: 553
> sorry, your mail was administratively
> denied. (#5.7.1))
>
> ----- Transcript of session follows
> ----- ... while talking to relay-hosting.secureserver.net.:
> >>> MAIL From:<recipient@gmail.com> SIZE=1054 <<< 553 sorry, your mail was
> administratively denied. (#5.7.1) 501
> 5.6.0 Data format error
>
> Final-Recipient: RFC822;
> admin@gmail.com Action: failed Status:
> 5.1.3 Diagnostic-Code: SMTP; 553 sorry, your mail was administratively
> denied. (#5.7.1) Last-Attempt-Date:
> Mon, 28 Mar 2011 14:09:07 -0700
>
>
> ---------- Forwarded message ---------- From: "John Doe" <recipient@gmail.com> To:
> admin@gmail.com Date: Mon, 28 Mar 2011
> 14:09:06 -0700 Subject: Information
> Request Name: John Doe E-mail:
> recipient@gmail.com Phone:
> 202-664-7488 Time: Anytime Service:
> Comments:
I have changed the mailtype to html, text, text/plain, I have changed the protocol to stmp but then it sent nothing, I've left out the user and password and got the same error, nothing I change works.
Also, my e-mail function calls look like this:
$name = $this->input->post('name');
$email = $this->input->post('email');
$phone = $this->input->post('phone');
$time = $this->input->post('time');
$service = $this->input->post('service');
$aditional_comments = $this->input->post('aditional_comments');
$content="Name: $name\n"
."E-mail: $email\n"
."Phone: $phone\n"
."Time: $time\n"
."Service: $service\n"
."Comments: $aditional_comments";
$this->email->from($email, $name);
$this->email->to($data['general_config']['email']);
$this->email->subject('Information Request');
$this->email->message($content);
$this->email->send();
Why do I get this error? How do I fix it? | 0 |
10,896,442 | 06/05/2012 11:25:54 | 1,437,190 | 06/05/2012 11:07:01 | 1 | 0 | how to make a password protected screen lock android application | i want to develop an android application like any other password protecting screen lock app. i just need to know there basic coding for it or any tutorial that can help me through it. i want to develop it in eclipse.
my aim is to develop app like one shown in sherlock tv series.
I M
_ _ _ _
LOCKED
AND IN THE BLANK SPACES THE PASSWORD WILL BE WRITTEN.
thanxx in advance | android-application | null | null | null | null | 06/06/2012 20:59:53 | not a real question | how to make a password protected screen lock android application
===
i want to develop an android application like any other password protecting screen lock app. i just need to know there basic coding for it or any tutorial that can help me through it. i want to develop it in eclipse.
my aim is to develop app like one shown in sherlock tv series.
I M
_ _ _ _
LOCKED
AND IN THE BLANK SPACES THE PASSWORD WILL BE WRITTEN.
thanxx in advance | 1 |
2,241,603 | 02/11/2010 01:19:44 | 5,019 | 09/07/2008 11:51:36 | 785 | 30 | What is the best way for a WinForms application to determine exactly which Windows operating system it is running on? | I have a WinForms application that needs to behave in specific ways (specifically shell to a certain installer) based on the operating system on which it is running.
I am using the System.OperatingSystem class, and combining the PlatFormID, Major, Minor and Build numbers which gets you most of the way there.
Unfortunately, the properites of an OperatinSystem object, do not allow you to distinguish precisely between some platforms. E.g. Vista and Windows Server 2008, or Vista 32 bit and Vista 64 bit. Likewise, XP 64 bit Professional seems to have the same versioning info as Server 2003.
So is it possible to determine exactly which Windows operating system you are running on, from a WinForms App (using c#)?
| c# | winforms | windows | operating-system | null | null | open | What is the best way for a WinForms application to determine exactly which Windows operating system it is running on?
===
I have a WinForms application that needs to behave in specific ways (specifically shell to a certain installer) based on the operating system on which it is running.
I am using the System.OperatingSystem class, and combining the PlatFormID, Major, Minor and Build numbers which gets you most of the way there.
Unfortunately, the properites of an OperatinSystem object, do not allow you to distinguish precisely between some platforms. E.g. Vista and Windows Server 2008, or Vista 32 bit and Vista 64 bit. Likewise, XP 64 bit Professional seems to have the same versioning info as Server 2003.
So is it possible to determine exactly which Windows operating system you are running on, from a WinForms App (using c#)?
| 0 |
6,950,946 | 08/05/2011 03:03:31 | 807,516 | 06/20/2011 23:02:41 | 103 | 5 | Spring MVC and Ajax requests in the same controller | I have the following controller setup in Spring 3.0.5
@Controller
@RequestMapping (value="myForm")
public class SubmitClassController {
//Status object with getters and setters
Status myStatus= newStatus();
@RequestMapping (method=RequestMethod.GET)
public String getMyForm (Model getModel){
//setup form
}
@RequestMapping (value="/myFormStatus",method=RequestMethod.POST)
public @ResponseBody Status getStatus(){
//Ajax responder handles a null (empty) request and responds with results of status obj
//Has System.out.println prior to return that shows variables when processed correctly
}
@RequestMapping (method=RequestMethod.POST)
public String create (@Valid MyFormText submitText ...){
// processes the form submitted and sets status object variables while doing so .
}
}
I perform the ajax request as follows
Ext.Ajax.request({
url: './account/getStatus',
method: 'POST',
success: function(result, request) {
var json = Ext.decode(result.responseText);
pbar.updateProgress(json.step / json.steps, 'Working on ' + json.status + ' Step ' + json.step + ' of ' + json.steps + '...');
},
failure: function(result, request) {
Ext.MessageBox.alert('Failed runner', result.responseText);
}
});
The Ajax responder works correctly except when called during the "create" POST section . While that code is running Ajax responses are intermittent and Ajax requests are often not responded to.
Clearly something is wrong here . I tried attaching the @Async annotation to both the Ajax controller and to the POST handler but this did not seem to make any changes. I also tried putting timeouts and auto aborts on the request.
Out of 100 Ajax requests I get one response...the rest appear to be blocked. Either before the create block is called or after, responses are instant.
Anyone know whats going on here ? Its seems something is getting locked and preventing a response? | java | ajax | spring-mvc | extjs | null | null | open | Spring MVC and Ajax requests in the same controller
===
I have the following controller setup in Spring 3.0.5
@Controller
@RequestMapping (value="myForm")
public class SubmitClassController {
//Status object with getters and setters
Status myStatus= newStatus();
@RequestMapping (method=RequestMethod.GET)
public String getMyForm (Model getModel){
//setup form
}
@RequestMapping (value="/myFormStatus",method=RequestMethod.POST)
public @ResponseBody Status getStatus(){
//Ajax responder handles a null (empty) request and responds with results of status obj
//Has System.out.println prior to return that shows variables when processed correctly
}
@RequestMapping (method=RequestMethod.POST)
public String create (@Valid MyFormText submitText ...){
// processes the form submitted and sets status object variables while doing so .
}
}
I perform the ajax request as follows
Ext.Ajax.request({
url: './account/getStatus',
method: 'POST',
success: function(result, request) {
var json = Ext.decode(result.responseText);
pbar.updateProgress(json.step / json.steps, 'Working on ' + json.status + ' Step ' + json.step + ' of ' + json.steps + '...');
},
failure: function(result, request) {
Ext.MessageBox.alert('Failed runner', result.responseText);
}
});
The Ajax responder works correctly except when called during the "create" POST section . While that code is running Ajax responses are intermittent and Ajax requests are often not responded to.
Clearly something is wrong here . I tried attaching the @Async annotation to both the Ajax controller and to the POST handler but this did not seem to make any changes. I also tried putting timeouts and auto aborts on the request.
Out of 100 Ajax requests I get one response...the rest appear to be blocked. Either before the create block is called or after, responses are instant.
Anyone know whats going on here ? Its seems something is getting locked and preventing a response? | 0 |
9,075,892 | 01/31/2012 07:25:40 | 1,179,414 | 01/31/2012 03:12:23 | 7 | 3 | Java voice processing | I now have a demand is, for a given speech file, like TOEFL listening or celebrities such as speech English speech, how to realize the automatic conversion, text, and automatic segmentation, intercept point in time? There is no readily available API calls? | java | null | null | null | null | 01/31/2012 08:26:32 | not a real question | Java voice processing
===
I now have a demand is, for a given speech file, like TOEFL listening or celebrities such as speech English speech, how to realize the automatic conversion, text, and automatic segmentation, intercept point in time? There is no readily available API calls? | 1 |
5,801,911 | 04/27/2011 09:24:37 | 726,899 | 04/27/2011 09:17:29 | 1 | 0 | New bee to Zend framework. | I have a directory(Base) inside my models (models) directory,it holds a class that is extended by a class inside the models(one-level up).When it tries to execute the class inside the models, it cannot find the class it is extending. It throws a fatal error class not found. | include | models | null | null | null | 12/24/2011 05:20:50 | not a real question | New bee to Zend framework.
===
I have a directory(Base) inside my models (models) directory,it holds a class that is extended by a class inside the models(one-level up).When it tries to execute the class inside the models, it cannot find the class it is extending. It throws a fatal error class not found. | 1 |
6,843,893 | 07/27/2011 11:57:29 | 831,669 | 07/06/2011 13:27:44 | 15 | 1 | Birt - OutOfMemoryError: PermGen space | I'm currently developing a tool allowing me to get statistics from anyware simply by going on a website I also created.
For those who don't know, Birt is a reporting tool, and an eclipse plugin.
My problem is the following :
I installed tomcat on the server hosting my website, and installed the Birt ReportEngine on it, and on my website, I call the online viewer to get my reports.
The problem is that since yesterday, when I launch a report, I have this error :
javax.servlet.ServletException: L'exécution de la servlet a lancé une exception
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
Caused by :
java.lang.OutOfMemoryError: PermGen space
I don't really know which config file to modify to avoid this error. I found some examples online that tell to modify the eclipse.ini file, but as for mty website, I don't use eclipse, I didn't found any usefull post.
Can someone help me please ?
Thanks | java | memory | birt | birt-report | null | null | open | Birt - OutOfMemoryError: PermGen space
===
I'm currently developing a tool allowing me to get statistics from anyware simply by going on a website I also created.
For those who don't know, Birt is a reporting tool, and an eclipse plugin.
My problem is the following :
I installed tomcat on the server hosting my website, and installed the Birt ReportEngine on it, and on my website, I call the online viewer to get my reports.
The problem is that since yesterday, when I launch a report, I have this error :
javax.servlet.ServletException: L'exécution de la servlet a lancé une exception
org.eclipse.birt.report.filter.ViewerFilter.doFilter(ViewerFilter.java:68)
Caused by :
java.lang.OutOfMemoryError: PermGen space
I don't really know which config file to modify to avoid this error. I found some examples online that tell to modify the eclipse.ini file, but as for mty website, I don't use eclipse, I didn't found any usefull post.
Can someone help me please ?
Thanks | 0 |
10,862,994 | 06/02/2012 14:16:19 | 1,432,471 | 06/02/2012 13:40:21 | 1 | 0 | Subsquare with most different numbers algorithm | I was trying to invent an efficient algorithm for the problem below, but I think I failed.
I'm given a board **n** * **n** with different numbers in it and an integer **k** (k <= n) as well. I have to find a square **k** * **k** contained within the board, where the amount of different numbers is the biggest. For those examples:
n=4 k=3
<br>
10 9 8 1
<br>
7 6 5 7
<br>
5 3 0 2
<br>
3 4 1 3
n=4 k=2
<br>
1 2 1 2
<br>
2 1 2 1
<br>
1 2 1 2
<br>
2 1 3 4
the answers are following:
9 8 1
<br>
6 5 7
<br>
3 0 2
<br>
1 2
<br>
3 4
My solution to this problem (in C++) is based on choosing the first square k*k in the left upper corner, creating a map linking the number (key) to its frequency of appearance (value). Then I move the square one column further by deleting the first column of the square in the map and adding the next column. When I the right side, I move down that way (by modifying rows) and left towards the left border. Then down and right. And so on until I reach the end. The answer is based on the maximum size of the map at a particular moment.
I assume that this solution is quite poorly invented (but probably still better than brute force), I appreciate any suggestions. Can this problem be somehow simplified to a modified max rectangle problem? ( http://www.drdobbs.com/database/184410529 )
| algorithm | rectangle | square | null | null | null | open | Subsquare with most different numbers algorithm
===
I was trying to invent an efficient algorithm for the problem below, but I think I failed.
I'm given a board **n** * **n** with different numbers in it and an integer **k** (k <= n) as well. I have to find a square **k** * **k** contained within the board, where the amount of different numbers is the biggest. For those examples:
n=4 k=3
<br>
10 9 8 1
<br>
7 6 5 7
<br>
5 3 0 2
<br>
3 4 1 3
n=4 k=2
<br>
1 2 1 2
<br>
2 1 2 1
<br>
1 2 1 2
<br>
2 1 3 4
the answers are following:
9 8 1
<br>
6 5 7
<br>
3 0 2
<br>
1 2
<br>
3 4
My solution to this problem (in C++) is based on choosing the first square k*k in the left upper corner, creating a map linking the number (key) to its frequency of appearance (value). Then I move the square one column further by deleting the first column of the square in the map and adding the next column. When I the right side, I move down that way (by modifying rows) and left towards the left border. Then down and right. And so on until I reach the end. The answer is based on the maximum size of the map at a particular moment.
I assume that this solution is quite poorly invented (but probably still better than brute force), I appreciate any suggestions. Can this problem be somehow simplified to a modified max rectangle problem? ( http://www.drdobbs.com/database/184410529 )
| 0 |
7,679,818 | 10/06/2011 20:01:46 | 711,514 | 04/16/2011 20:08:37 | 8 | 0 | Regex to extract function-name, & it's parameters | I am building an application where the user can specify an expression for some fields. The expression shall contain functions too. I need to evaluate these expressions and display final value in report.
I had an expression to extract function-name & it's paramters. Previously, the function parameters were decimal values. But now, the parameters can also be expression.
For ex,
Round( 1 * (1+ 1 /100) % (2 -1), 0)
Function-name: Round
Parameter1: 1 * (1+ 1 /100) % (2 -1)
Parameter2: 0
Previous Regex:
string pattern2 = @"([a-zA-Z]{1,})[[:blank:]]{0,}\(([^\(\)]{0,})\)";
This regex does not help me anymore to find expression-parameters.
Can someone help me with the right regex to extract function-name & parameters? I am implement all or most of the functions supported by Math class.
The program is built in c#
Thanks in advance for the help.
| c# | regex | null | null | null | null | open | Regex to extract function-name, & it's parameters
===
I am building an application where the user can specify an expression for some fields. The expression shall contain functions too. I need to evaluate these expressions and display final value in report.
I had an expression to extract function-name & it's paramters. Previously, the function parameters were decimal values. But now, the parameters can also be expression.
For ex,
Round( 1 * (1+ 1 /100) % (2 -1), 0)
Function-name: Round
Parameter1: 1 * (1+ 1 /100) % (2 -1)
Parameter2: 0
Previous Regex:
string pattern2 = @"([a-zA-Z]{1,})[[:blank:]]{0,}\(([^\(\)]{0,})\)";
This regex does not help me anymore to find expression-parameters.
Can someone help me with the right regex to extract function-name & parameters? I am implement all or most of the functions supported by Math class.
The program is built in c#
Thanks in advance for the help.
| 0 |
8,144,650 | 11/15/2011 23:32:26 | 1,048,606 | 11/15/2011 23:00:12 | 1 | 0 | Good idea to start game development using open source java game engines? | Hello I am new to game development and I have followed tutorials where they show you how to make your own animation class and sound class as well as the basics but I was wondering if it would be beneficial if I were to just use an open source java game engine like jMonkey or the Lightweight Java Game Library, instead of coding my own game engine from scratch? What are you thoughts on this? | java | open | engine | development | null | 11/16/2011 03:07:08 | not constructive | Good idea to start game development using open source java game engines?
===
Hello I am new to game development and I have followed tutorials where they show you how to make your own animation class and sound class as well as the basics but I was wondering if it would be beneficial if I were to just use an open source java game engine like jMonkey or the Lightweight Java Game Library, instead of coding my own game engine from scratch? What are you thoughts on this? | 4 |
11,351,590 | 07/05/2012 19:53:20 | 261,217 | 01/28/2010 17:58:13 | 244 | 17 | Round unsigned int up to the multiple of 4 in C++ | How would you implement the function `unsigned round_up_to_multiple_of_4(unsigned x)`? Let's assume performance is not an issue, so the shortest code is welcome. My solution is:
return x+(4-x%4)%4;
11 bytes between `return` and `;`. I believe one can do better :) | c++ | integer | null | null | null | 07/05/2012 20:03:47 | not constructive | Round unsigned int up to the multiple of 4 in C++
===
How would you implement the function `unsigned round_up_to_multiple_of_4(unsigned x)`? Let's assume performance is not an issue, so the shortest code is welcome. My solution is:
return x+(4-x%4)%4;
11 bytes between `return` and `;`. I believe one can do better :) | 4 |
7,217,061 | 08/27/2011 20:10:40 | 796,184 | 06/13/2011 15:30:53 | 96 | 1 | Android developers fee without credit card? | I've created an application for android, wich took me several months to complete. I've always been thinking that when it'd be done, I could publish it on Android market.
Now I went to the website, and found I had to pay €25, wich I was prepared to do. But then I found out that **I Cannot pay it without a credit card!**
Does anyone have a solution for this? I worked really too hard on my program to find it will never see daylight. | android | android-market | publishing | credit-card | market | 08/27/2011 20:24:39 | off topic | Android developers fee without credit card?
===
I've created an application for android, wich took me several months to complete. I've always been thinking that when it'd be done, I could publish it on Android market.
Now I went to the website, and found I had to pay €25, wich I was prepared to do. But then I found out that **I Cannot pay it without a credit card!**
Does anyone have a solution for this? I worked really too hard on my program to find it will never see daylight. | 2 |
10,589,768 | 05/14/2012 19:23:30 | 401,147 | 04/16/2010 00:27:33 | 1,183 | 5 | How to pass method argument to class property? | I am trying to create properties based on the method arguments. For example:
class Test{
public function newProperty($prop1,$prop2){
//I want to create $this->argu1 and $this->argu2 after calling newProperty method.
}
}
$test=new Test();
$test->newProperty('argu1','argu2')
Is this possible? Thanks for any helps.
| php | oop | function | null | null | null | open | How to pass method argument to class property?
===
I am trying to create properties based on the method arguments. For example:
class Test{
public function newProperty($prop1,$prop2){
//I want to create $this->argu1 and $this->argu2 after calling newProperty method.
}
}
$test=new Test();
$test->newProperty('argu1','argu2')
Is this possible? Thanks for any helps.
| 0 |
2,062,760 | 01/14/2010 07:34:39 | 177,990 | 09/23/2009 18:11:57 | 61 | 0 | Calculating displacement moved in Matlab | I need to compare 2 or more images to calculate how much a point shifted in the x and y direction. May I know how do I go about doing this in Matlab?
Thanks! | matlab | shift | compare | images | direction | null | open | Calculating displacement moved in Matlab
===
I need to compare 2 or more images to calculate how much a point shifted in the x and y direction. May I know how do I go about doing this in Matlab?
Thanks! | 0 |
5,229,226 | 03/08/2011 06:43:19 | 820,710 | 05/27/2010 05:51:37 | 1 | 1 | [android]problem in Gson | Hi I want pars like dis data
> * next
* previous
* total
* buy_on_site
* resource_uri
* resource
**then in resource**
o publisher
**then in publisher**
+ name
+ resource_uri
o book_images
+ image_url
+ file_type
+ name
o author
+ name
+ resource_uri
| json | gson | null | null | null | 06/08/2011 19:36:20 | not a real question | [android]problem in Gson
===
Hi I want pars like dis data
> * next
* previous
* total
* buy_on_site
* resource_uri
* resource
**then in resource**
o publisher
**then in publisher**
+ name
+ resource_uri
o book_images
+ image_url
+ file_type
+ name
o author
+ name
+ resource_uri
| 1 |
1,123,274 | 07/14/2009 03:11:46 | 71,607 | 02/26/2009 21:48:53 | 70 | 13 | How to kill a selector that is set to fire after a delay (on the iPhone)? | If I have a view with a performSelector set to fire after a delay:
[self performSelector:@selector(generateBall) withObject:NULL afterDelay:1.5];
...but I removeFromSuperview that view before the selector fires (for example, due to user interaction), then my app crashes.
Is there a way to kill the delayed selector in the dealloc method for that view? | iphone | selectors | null | null | null | null | open | How to kill a selector that is set to fire after a delay (on the iPhone)?
===
If I have a view with a performSelector set to fire after a delay:
[self performSelector:@selector(generateBall) withObject:NULL afterDelay:1.5];
...but I removeFromSuperview that view before the selector fires (for example, due to user interaction), then my app crashes.
Is there a way to kill the delayed selector in the dealloc method for that view? | 0 |
3,670,586 | 09/08/2010 17:56:13 | 414,585 | 08/08/2010 22:25:45 | 23 | 0 | Java HashMap vs JSONObject | I am wondering about the performance of Java HashMap vs JSONObject.
It seems JSONObject stores data internally using HashMap. But JSONObject might have additional overhead compared to HashMap.
Does any one know about the performance of Java JSONObject compared to HashMap?
Thanks! | java | json | hashmap | null | null | null | open | Java HashMap vs JSONObject
===
I am wondering about the performance of Java HashMap vs JSONObject.
It seems JSONObject stores data internally using HashMap. But JSONObject might have additional overhead compared to HashMap.
Does any one know about the performance of Java JSONObject compared to HashMap?
Thanks! | 0 |
8,846,536 | 01/13/2012 05:54:38 | 626,265 | 02/21/2011 09:09:06 | 115 | 5 | iAds in iOS app | Here's something odd that I found with my app.
My friend, in the same area as I am, downloaded the app and we've been comoaring notes. We spot check to see if the iAds show up for both of us. What I find interesting is that while he get receives multiple ads in 10-15 minutes, I don't get any. I am curious about this. Also, I have been monitoring on my device, and have found that starting some time in the day, I get about 4 to 5 impressing right on the hour - 2PM, 3PM, 4PM... - for about 5 minutes and then poof! Nothing. This happens for about 4-5 hours and again nothing. This is very puzzling. | iad | null | null | null | null | 01/13/2012 07:19:04 | not a real question | iAds in iOS app
===
Here's something odd that I found with my app.
My friend, in the same area as I am, downloaded the app and we've been comoaring notes. We spot check to see if the iAds show up for both of us. What I find interesting is that while he get receives multiple ads in 10-15 minutes, I don't get any. I am curious about this. Also, I have been monitoring on my device, and have found that starting some time in the day, I get about 4 to 5 impressing right on the hour - 2PM, 3PM, 4PM... - for about 5 minutes and then poof! Nothing. This happens for about 4-5 hours and again nothing. This is very puzzling. | 1 |
9,620,967 | 03/08/2012 16:16:49 | 1,008,103 | 10/22/2011 03:08:14 | 161 | 7 | jquery function scope | I'm not understanding function scope here. I have a button when clicked shows a dialog with a textarea. Inside that textarea I populate it with a url that someone can then copy for their camera setup.
<button id="axis-details" onclick="apikey('<?php echo $result_cameras[$i]["camera_hash"]; ?>');">API Key</button>
function apikey(camerahash)
{
var $key = "http://myhost.com/notify.php/" +camerahash;
return $key;
}
$(document).ready(function() {
var $dialog = $('<div></div>');
$dialog.append('Please copy this key for camera setup: ')
.append('<p><textarea id=\"textbox\">'+apikey(camerahash)+'</textarea></p>') //ERROR here that camerahash is not defined
.append('<p>For more information see: <a href=\"http://www.myhost.com/forum/2-quickstart-docs\">setup</a></p>');
$dialog.dialog({
autoOpen: false,
title: 'API Key'
});
$('#axis-details').click(function(e) {
e.preventDefault();
$dialog.dialog('open');
});
});
Function apikey(camerahash) does return the value I expect. I get an error indicated above that camerahash is not defined. What am I doing wrong? | jquery | html | jquery-ui | null | null | null | open | jquery function scope
===
I'm not understanding function scope here. I have a button when clicked shows a dialog with a textarea. Inside that textarea I populate it with a url that someone can then copy for their camera setup.
<button id="axis-details" onclick="apikey('<?php echo $result_cameras[$i]["camera_hash"]; ?>');">API Key</button>
function apikey(camerahash)
{
var $key = "http://myhost.com/notify.php/" +camerahash;
return $key;
}
$(document).ready(function() {
var $dialog = $('<div></div>');
$dialog.append('Please copy this key for camera setup: ')
.append('<p><textarea id=\"textbox\">'+apikey(camerahash)+'</textarea></p>') //ERROR here that camerahash is not defined
.append('<p>For more information see: <a href=\"http://www.myhost.com/forum/2-quickstart-docs\">setup</a></p>');
$dialog.dialog({
autoOpen: false,
title: 'API Key'
});
$('#axis-details').click(function(e) {
e.preventDefault();
$dialog.dialog('open');
});
});
Function apikey(camerahash) does return the value I expect. I get an error indicated above that camerahash is not defined. What am I doing wrong? | 0 |
9,735,688 | 03/16/2012 10:34:13 | 1,273,715 | 03/16/2012 10:00:35 | 1 | 0 | sqlite see more fields that only the title and detail ... (Many tutorials do not address this) | Hi and thanks in advance for possible answer.
i can't find the way out to retrieve more field from db, example **Titolo_corso** and **codices_corso** in **first row** and **all the other in detail windows**.
this my statement:
**AppDelegate.m**
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// Setup some globals
databaseName = @"corsisds.sqlite";
// Get the path to the documents directory and append the databaseName
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0];
databasePath = [documentsDir stringByAppendingPathComponent:databaseName];
// Execute the "checkAndCreateDatabase" function
[self checkAndCreateDatabase];
// Query the database for all animal records and construct the "animals" array
[self readcorsisdsFromDatabase];
return YES;
}
// ceck and create db direttive
-(void) checkAndCreateDatabase{
// Check if the SQL database has already been saved to the users phone, if not then copy it over
BOOL success;
// Create a FileManager object, we will use this to check the status
// of the database and to copy it over if required
NSFileManager *fileManager = [NSFileManager defaultManager];
// Check if the database has already been created in the users filesystem
success = [fileManager fileExistsAtPath:databasePath];
// If the database already exists then return without doing anything
if(success) return;
// If not then proceed to copy the database from the application to the users filesystem
// Get the path to the database in the application package
NSString *databasePathFromApp = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:databaseName];
// Copy the database from the package to the users filesystem
[fileManager copyItemAtPath:databasePathFromApp toPath:databasePath error:nil];
// [fileManager release];
}
-(void) readcorsisdsFromDatabase {
// Setup the database object
sqlite3 *database;
// Init the animals Array
book = [[NSMutableArray alloc] init];
// Open the database from the users filessytem
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) {
// Setup the SQL Statement and compile it for faster access
const char *sqlStatement = "select * from corsisds";
sqlite3_stmt *compiledStatement;
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
// Loop through the results and add them to the feeds array
while(sqlite3_step(compiledStatement) == SQLITE_ROW) {
// Read the data from the result row
NSString *id_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)];
NSString *codice_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 1)];
NSString *titolo_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)];
NSString *dal = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 3)];
NSString *al = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 4)];
NSString *area_tematica = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 5)];
NSString *colore = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 6)];
NSString *referente = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 7)];
NSString *partner = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 8)];
NSString *n_giorni = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 9)];
NSString *moduli = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 10)];
NSString *sede = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 11)];
NSString *organizzazione = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 12)];
NSUInteger blobLength = sqlite3_column_bytes(compiledStatement, 13);
NSData *data = [NSData dataWithBytes:sqlite3_column_blob(compiledStatement, 13) length:blobLength];
UIImage *banner = [[UIImage alloc] initWithData:data];
// log
NSLog(@"id_corso: %@, codice_corso: %@, titolo_corso: %@", id_corso, codice_corso, titolo_corso );
// Create a new animal object with the data from the database
CorsiList *corsilist = [[CorsiList alloc] initWithName:id_corso
codice_corso:codice_corso
titolo_corso:titolo_corso
dal:dal
al:al
area_tematica:area_tematica
colore:colore
referente:referente
partner:partner
n_giorni:n_giorni
moduli:moduli
sede:sede
organizzazione:organizzazione
banner:banner];
// Add the animal object to the animals Array
[book addObject:corsilist];
// NSLog(@"il contenuto is%@",corsilist);
}
}
// Release the compiled statement from memory
sqlite3_finalize(compiledStatement);
}
sqlite3_close(database);
}
@end
**MasterViewController.m**
----------------------------------------------------------------------------
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
ABCAppDelegate *appDelegate = (ABCAppDelegate *)[[UIApplication sharedApplication] delegate];
CorsiList *book = (CorsiList *)[appDelegate.book objectAtIndex:indexPath.row];
cell.textLabel.text = book.titolo_corso;
cell.textLabel.font = [UIFont fontWithName:@"Verdana" size:14];
cell.textLabel.textColor = [UIColor redColor];
return cell;
} | ios | sqlite | null | null | null | 04/18/2012 15:38:51 | too localized | sqlite see more fields that only the title and detail ... (Many tutorials do not address this)
===
Hi and thanks in advance for possible answer.
i can't find the way out to retrieve more field from db, example **Titolo_corso** and **codices_corso** in **first row** and **all the other in detail windows**.
this my statement:
**AppDelegate.m**
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// Setup some globals
databaseName = @"corsisds.sqlite";
// Get the path to the documents directory and append the databaseName
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDir = [documentPaths objectAtIndex:0];
databasePath = [documentsDir stringByAppendingPathComponent:databaseName];
// Execute the "checkAndCreateDatabase" function
[self checkAndCreateDatabase];
// Query the database for all animal records and construct the "animals" array
[self readcorsisdsFromDatabase];
return YES;
}
// ceck and create db direttive
-(void) checkAndCreateDatabase{
// Check if the SQL database has already been saved to the users phone, if not then copy it over
BOOL success;
// Create a FileManager object, we will use this to check the status
// of the database and to copy it over if required
NSFileManager *fileManager = [NSFileManager defaultManager];
// Check if the database has already been created in the users filesystem
success = [fileManager fileExistsAtPath:databasePath];
// If the database already exists then return without doing anything
if(success) return;
// If not then proceed to copy the database from the application to the users filesystem
// Get the path to the database in the application package
NSString *databasePathFromApp = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:databaseName];
// Copy the database from the package to the users filesystem
[fileManager copyItemAtPath:databasePathFromApp toPath:databasePath error:nil];
// [fileManager release];
}
-(void) readcorsisdsFromDatabase {
// Setup the database object
sqlite3 *database;
// Init the animals Array
book = [[NSMutableArray alloc] init];
// Open the database from the users filessytem
if(sqlite3_open([databasePath UTF8String], &database) == SQLITE_OK) {
// Setup the SQL Statement and compile it for faster access
const char *sqlStatement = "select * from corsisds";
sqlite3_stmt *compiledStatement;
if(sqlite3_prepare_v2(database, sqlStatement, -1, &compiledStatement, NULL) == SQLITE_OK) {
// Loop through the results and add them to the feeds array
while(sqlite3_step(compiledStatement) == SQLITE_ROW) {
// Read the data from the result row
NSString *id_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)];
NSString *codice_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 1)];
NSString *titolo_corso = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)];
NSString *dal = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 3)];
NSString *al = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 4)];
NSString *area_tematica = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 5)];
NSString *colore = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 6)];
NSString *referente = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 7)];
NSString *partner = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 8)];
NSString *n_giorni = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 9)];
NSString *moduli = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 10)];
NSString *sede = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 11)];
NSString *organizzazione = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 12)];
NSUInteger blobLength = sqlite3_column_bytes(compiledStatement, 13);
NSData *data = [NSData dataWithBytes:sqlite3_column_blob(compiledStatement, 13) length:blobLength];
UIImage *banner = [[UIImage alloc] initWithData:data];
// log
NSLog(@"id_corso: %@, codice_corso: %@, titolo_corso: %@", id_corso, codice_corso, titolo_corso );
// Create a new animal object with the data from the database
CorsiList *corsilist = [[CorsiList alloc] initWithName:id_corso
codice_corso:codice_corso
titolo_corso:titolo_corso
dal:dal
al:al
area_tematica:area_tematica
colore:colore
referente:referente
partner:partner
n_giorni:n_giorni
moduli:moduli
sede:sede
organizzazione:organizzazione
banner:banner];
// Add the animal object to the animals Array
[book addObject:corsilist];
// NSLog(@"il contenuto is%@",corsilist);
}
}
// Release the compiled statement from memory
sqlite3_finalize(compiledStatement);
}
sqlite3_close(database);
}
@end
**MasterViewController.m**
----------------------------------------------------------------------------
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell"];
ABCAppDelegate *appDelegate = (ABCAppDelegate *)[[UIApplication sharedApplication] delegate];
CorsiList *book = (CorsiList *)[appDelegate.book objectAtIndex:indexPath.row];
cell.textLabel.text = book.titolo_corso;
cell.textLabel.font = [UIFont fontWithName:@"Verdana" size:14];
cell.textLabel.textColor = [UIColor redColor];
return cell;
} | 3 |
8,917,111 | 01/18/2012 20:44:00 | 845,579 | 07/14/2011 23:37:37 | 5 | 2 | How can i convert date in grails? | My Grail application' list view has following date format from database: 2012-01-18 14:29:19 EST
I am using <g:datePicker name="myDate" value="${new Date().format("dd MM,yyyy")}"/>
and in controller:
| grails | null | null | null | null | null | open | How can i convert date in grails?
===
My Grail application' list view has following date format from database: 2012-01-18 14:29:19 EST
I am using <g:datePicker name="myDate" value="${new Date().format("dd MM,yyyy")}"/>
and in controller:
| 0 |
9,180,653 | 02/07/2012 17:13:07 | 109,458 | 05/19/2009 16:08:42 | 788 | 43 | IsolatedStorageFile.GetLastWriteTime for .NET 3.5 | I am trying to see if I can port a .NET 4 project (specifically, [Cassette](http://getcassette.net)) to 3.5.
I finished the entire main project but now I'm on the last error and I can't seem to figure out a workaround.
Cassette uses Isolated Storage to store asset files and in .NET 4 the related classes have been overhauled to be much more useful. In .NET 3.5, however, there are a lot of things missing.
I am stuck on getting the last write time of an isolated file. Is there a way to do this in 3.5 or is it a lost cause?
[MSDN for .NET 4](http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile.getlastwritetime%28v=vs.100%29.aspx) | .net-3.5 | isolatedstorage | null | null | null | null | open | IsolatedStorageFile.GetLastWriteTime for .NET 3.5
===
I am trying to see if I can port a .NET 4 project (specifically, [Cassette](http://getcassette.net)) to 3.5.
I finished the entire main project but now I'm on the last error and I can't seem to figure out a workaround.
Cassette uses Isolated Storage to store asset files and in .NET 4 the related classes have been overhauled to be much more useful. In .NET 3.5, however, there are a lot of things missing.
I am stuck on getting the last write time of an isolated file. Is there a way to do this in 3.5 or is it a lost cause?
[MSDN for .NET 4](http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragefile.getlastwritetime%28v=vs.100%29.aspx) | 0 |
7,078,629 | 08/16/2011 13:05:02 | 895,603 | 08/15/2011 20:41:45 | 1 | 0 | Set default Language Enviroment in Emacs | I am writing a Perl program in GNU emacs without the file extension .pl or .pm. Is there a way I can set the language environment to Perl without having to change the file extension? | perl | emacs | null | null | null | null | open | Set default Language Enviroment in Emacs
===
I am writing a Perl program in GNU emacs without the file extension .pl or .pm. Is there a way I can set the language environment to Perl without having to change the file extension? | 0 |
11,195,642 | 06/25/2012 19:03:41 | 875,317 | 08/02/2011 19:11:50 | 1,448 | 16 | What are the gotchas to ClickOnce deployment? | Due to deployment issues (http://stackoverflow.com/questions/11194459/is-windows-afraid-of-its-own-shadow-and-how-can-i-determine-which-ancillary-fil), I'm considering trying a Click Once deployment of my C# app. This is for deploying to a drive/folder on the network to which all users here where I work have access. Are there any caveats or gotchas regarding this? | c# | windows | winforms | deployment | clickonce | 06/27/2012 19:14:33 | not constructive | What are the gotchas to ClickOnce deployment?
===
Due to deployment issues (http://stackoverflow.com/questions/11194459/is-windows-afraid-of-its-own-shadow-and-how-can-i-determine-which-ancillary-fil), I'm considering trying a Click Once deployment of my C# app. This is for deploying to a drive/folder on the network to which all users here where I work have access. Are there any caveats or gotchas regarding this? | 4 |
683,489 | 03/25/2009 21:16:37 | 50,305 | 12/30/2008 20:58:06 | 280 | 5 | Best way to add a string XML snippet into an XML document in c#? | this may have been asked before, but I could not find it.
Suppose I have an XML element
XMLElement nd = xmlDoc.CreateElement("Node");
Now, I would like to add a child to nd with a full XML snippet I get from some other function, like this:
nd.AppendChild("<a1><a2></2></a1>");
What is the best way to do this?
Thanks. | c# | xml | null | null | null | null | open | Best way to add a string XML snippet into an XML document in c#?
===
this may have been asked before, but I could not find it.
Suppose I have an XML element
XMLElement nd = xmlDoc.CreateElement("Node");
Now, I would like to add a child to nd with a full XML snippet I get from some other function, like this:
nd.AppendChild("<a1><a2></2></a1>");
What is the best way to do this?
Thanks. | 0 |
11,180,184 | 06/24/2012 18:39:50 | 1,446,713 | 06/09/2012 21:44:27 | 8 | 0 | Strange Eclipse error: Java.lang.object not found? | I recently opened an Android project back up to find this strange pair of errors:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
What is going on here, and how can I fix it? If it helps I accidentally removed the flash drive with this project while Eclipse was open, although I wasn't doing anything with it. | java | android | eclipse | null | null | 06/26/2012 11:50:52 | not a real question | Strange Eclipse error: Java.lang.object not found?
===
I recently opened an Android project back up to find this strange pair of errors:
The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files
What is going on here, and how can I fix it? If it helps I accidentally removed the flash drive with this project while Eclipse was open, although I wasn't doing anything with it. | 1 |
4,465,799 | 12/16/2010 22:02:15 | 316,041 | 04/14/2010 00:40:06 | 1,509 | 146 | What is Java equivalent for PHP array with non-numeric keys? | What would be Java equivalent for php array like this:
$user = array("name" => "John", "email" => "john@mail.com"); | java | php | arrays | null | null | null | open | What is Java equivalent for PHP array with non-numeric keys?
===
What would be Java equivalent for php array like this:
$user = array("name" => "John", "email" => "john@mail.com"); | 0 |
11,292,402 | 07/02/2012 11:05:29 | 661,866 | 03/16/2011 05:08:40 | 6 | 4 | What are the open source scala-based DSL projects out there? | I am currently looking for open source scala projects to work on. Can anyone provide a list of open source scala-based DSL projects out there? | scala | dsl | null | null | null | 07/02/2012 12:43:56 | off topic | What are the open source scala-based DSL projects out there?
===
I am currently looking for open source scala projects to work on. Can anyone provide a list of open source scala-based DSL projects out there? | 2 |
2,095,966 | 01/19/2010 18:27:24 | 184,920 | 10/06/2009 11:32:06 | 8 | 3 | document.getElementsByTagName("*") Or document.all | document.getElementsByTagName("*") It works for IE/FF/Opera, But doesn't work for Chrom and Safari
document.all works for IE/Chrom/Safari, But doesn't work for FF.
How can I deal with it?
Many thanks | cross-browser | firefox | google-chrome | null | null | null | open | document.getElementsByTagName("*") Or document.all
===
document.getElementsByTagName("*") It works for IE/FF/Opera, But doesn't work for Chrom and Safari
document.all works for IE/Chrom/Safari, But doesn't work for FF.
How can I deal with it?
Many thanks | 0 |
6,281,422 | 06/08/2011 15:36:13 | 632,689 | 02/24/2011 16:25:13 | 18 | 0 | Clean up Maven dependency management | In a big Maven 2 project it is nice to have the dependency management to make sure that only one version of a dependency is used in the whole system. That makes the system consistent.
But when I generate effective POMs I have no chance to see where the dependency versions came from. Likewise in a POM at the top of the hierarchy I have no idea where in the child POMs the defined versions of the dependency management section are really used.
So how do I keep the dependency management cleaned up? When I remove a dependency in one project, I always check in all other projects if it is still needed at all, so that I can also remove in from the dependency management at the top?
Also, how do I build up the dependency management, making sure it is not duplicated somewhere in the child POMs? When I add dependencies I always check all other projects to see if it possibly could be aggregated on top in the dependency management? Or would you just always move all dependency versions to the top from the beginning so they are always in only one place?
Thanks for any thoughts. | java | maven | dependencies | pom | null | null | open | Clean up Maven dependency management
===
In a big Maven 2 project it is nice to have the dependency management to make sure that only one version of a dependency is used in the whole system. That makes the system consistent.
But when I generate effective POMs I have no chance to see where the dependency versions came from. Likewise in a POM at the top of the hierarchy I have no idea where in the child POMs the defined versions of the dependency management section are really used.
So how do I keep the dependency management cleaned up? When I remove a dependency in one project, I always check in all other projects if it is still needed at all, so that I can also remove in from the dependency management at the top?
Also, how do I build up the dependency management, making sure it is not duplicated somewhere in the child POMs? When I add dependencies I always check all other projects to see if it possibly could be aggregated on top in the dependency management? Or would you just always move all dependency versions to the top from the beginning so they are always in only one place?
Thanks for any thoughts. | 0 |
9,051,787 | 01/29/2012 08:01:04 | 1,129,318 | 01/04/2012 06:26:11 | 21 | 0 | The type or namespace name 'KasraDll' could not be found (are you missing a using directive or an assembly reference?) | I have a project that is built in my computer. but when I want create a team build with TFS i am getting this error:
> The type or namespace name 'KasraDll' could not be found (are you
> missing a using directive or an assembly reference?)
sincerely you M.Bagheri | visual-studio-2010 | tfs | tfs2010 | tfsbuild | null | null | open | The type or namespace name 'KasraDll' could not be found (are you missing a using directive or an assembly reference?)
===
I have a project that is built in my computer. but when I want create a team build with TFS i am getting this error:
> The type or namespace name 'KasraDll' could not be found (are you
> missing a using directive or an assembly reference?)
sincerely you M.Bagheri | 0 |
941,445 | 06/02/2009 19:26:57 | 6,244 | 09/13/2008 07:26:29 | 1,072 | 124 | Where is the documentation for writing Magento Extensions? | I have looked and looked on their website, I have tried many google searches, but I can't find a link to documentation on how to write extensions for the Magneto ECommerce software. I want to write a simple payment gateway which I'm more than capable of doing if I could find basic documentation.
Any ideas? | php | magento | e-commerce | documentation | null | 03/06/2012 23:23:22 | too localized | Where is the documentation for writing Magento Extensions?
===
I have looked and looked on their website, I have tried many google searches, but I can't find a link to documentation on how to write extensions for the Magneto ECommerce software. I want to write a simple payment gateway which I'm more than capable of doing if I could find basic documentation.
Any ideas? | 3 |
5,265,779 | 03/10/2011 20:52:19 | 654,294 | 03/10/2011 20:52:19 | 1 | 0 | Thesis and theory | Is a thesis the same thing as a theory and if not what is the difference? | theory | thesis | null | null | null | 03/10/2011 20:55:11 | off topic | Thesis and theory
===
Is a thesis the same thing as a theory and if not what is the difference? | 2 |
6,571,997 | 07/04/2011 13:11:51 | 827,940 | 07/04/2011 10:29:43 | 1 | 0 | Does anyone know what are the benefits of using properties in ECMAScript 5 ? |
Does anyone know what are the benefits of using properties in ECMAScript 5 ?
| javascript | null | null | null | null | 07/04/2011 13:21:57 | not constructive | Does anyone know what are the benefits of using properties in ECMAScript 5 ?
===
Does anyone know what are the benefits of using properties in ECMAScript 5 ?
| 4 |
7,728,276 | 10/11/2011 15:11:31 | 84,201 | 03/29/2009 07:46:24 | 9,140 | 166 | How to set our settings as a default in JSfiddle? | I have an account in jsfiddle.com and I always want to save these setting for default until I change them, for every new fiddle. **And I also want to keep some code in HTML and CSS section**
![enter image description here][1]
But new fiddle always use Mootools.
![enter image description here][2]
[1]: http://i.stack.imgur.com/BSIMM.jpg
[2]: http://i.stack.imgur.com/yCzMG.jpg | javascript | jquery | mootools | null | null | 10/11/2011 23:45:07 | off topic | How to set our settings as a default in JSfiddle?
===
I have an account in jsfiddle.com and I always want to save these setting for default until I change them, for every new fiddle. **And I also want to keep some code in HTML and CSS section**
![enter image description here][1]
But new fiddle always use Mootools.
![enter image description here][2]
[1]: http://i.stack.imgur.com/BSIMM.jpg
[2]: http://i.stack.imgur.com/yCzMG.jpg | 2 |
5,787,652 | 04/26/2011 08:16:31 | 723,485 | 04/25/2011 08:57:54 | 1 | 0 | how to modify this line ?? | i want to add this code
<body onload="start();">
<div id="ticker-container" onmouseover="sspeed=0;" onmouseout="sspeed=resumesspeed">
<div id="ticker"></div>
</div>
want to add to this code
<body expr:class='"loading" + data:blog.mobileClass'>
<div class='body-fauxcolumns'>
<div class='fauxcolumn-outer body-fauxcolumn-outer'>
<div class='cap-top'>
<div class='cap-left'/>
<div class='cap-right'/>
</div>
| html | div | null | null | null | 04/26/2011 11:23:06 | not a real question | how to modify this line ??
===
i want to add this code
<body onload="start();">
<div id="ticker-container" onmouseover="sspeed=0;" onmouseout="sspeed=resumesspeed">
<div id="ticker"></div>
</div>
want to add to this code
<body expr:class='"loading" + data:blog.mobileClass'>
<div class='body-fauxcolumns'>
<div class='fauxcolumn-outer body-fauxcolumn-outer'>
<div class='cap-top'>
<div class='cap-left'/>
<div class='cap-right'/>
</div>
| 1 |
9,488,841 | 02/28/2012 20:01:45 | 1,179,620 | 01/31/2012 05:53:38 | 1 | 0 | Javascript To Paste First X Lines From Clipboard and Copy The Rest Back To Clipboard | I'm using a program called "ClipMenu" that allows you to keep a history of clipboard items and (mess with them) with Javascript.
So in my clipboard I have a bunch of lines of text:
"Line 1
Line 2
Line 3
Line 4
Line 5
...
Line 1000"
My coding skills are super low, and so I'm not close enough to be able to do it myself.
I want to paste the first 20 lines, and copy the remaining x-20 lines back into the clipboard (so I can keep using this until empty).
Thanks in advance for any help! =D | javascript | null | null | null | null | 02/29/2012 20:18:59 | not a real question | Javascript To Paste First X Lines From Clipboard and Copy The Rest Back To Clipboard
===
I'm using a program called "ClipMenu" that allows you to keep a history of clipboard items and (mess with them) with Javascript.
So in my clipboard I have a bunch of lines of text:
"Line 1
Line 2
Line 3
Line 4
Line 5
...
Line 1000"
My coding skills are super low, and so I'm not close enough to be able to do it myself.
I want to paste the first 20 lines, and copy the remaining x-20 lines back into the clipboard (so I can keep using this until empty).
Thanks in advance for any help! =D | 1 |
6,402,331 | 06/19/2011 12:24:14 | 459,943 | 09/27/2010 21:00:17 | 54 | 1 | What is the best codes less with many queries or a few queries with many codes | I have two options in PHP programming .
What is the best in programming
Codes less with many database queries or a few database queries with many codes ? | php | mysql | null | null | null | 06/19/2011 12:59:13 | not a real question | What is the best codes less with many queries or a few queries with many codes
===
I have two options in PHP programming .
What is the best in programming
Codes less with many database queries or a few database queries with many codes ? | 1 |
5,012,136 | 02/16/2011 03:11:48 | 618,959 | 02/16/2011 03:11:48 | 1 | 0 | euclidean geometry | what are the flaws of the proofs of this example: every point inside a circle,other than the center,lies on its circumference.
| failover | null | null | null | null | 02/17/2011 08:13:42 | off topic | euclidean geometry
===
what are the flaws of the proofs of this example: every point inside a circle,other than the center,lies on its circumference.
| 2 |
2,851,924 | 05/17/2010 19:01:40 | 548,862 | 02/18/2010 19:31:02 | 13 | 1 | How do I phrase this query in NHibernate with Lambda Extensions? | I'm using NHibernate with Lambda Extensions and I can't figure out how to phrase a specific kind of query.
My application lets users tag other users in pictures. So there are Picture objects, and each Picture has one or more Tag objects, and each Tag object has one User object.
I'm implementing a search feature. Given a search string, I want to return all Pictures whose Name contains the string *or* which have any Tags with a User whose Name contains the string.
I don't know how to assemble this query, or whether I need to do it with subqueries or aliases. What would be the proper way to do this?
| nhibernate | criteria | alias | subquery | null | null | open | How do I phrase this query in NHibernate with Lambda Extensions?
===
I'm using NHibernate with Lambda Extensions and I can't figure out how to phrase a specific kind of query.
My application lets users tag other users in pictures. So there are Picture objects, and each Picture has one or more Tag objects, and each Tag object has one User object.
I'm implementing a search feature. Given a search string, I want to return all Pictures whose Name contains the string *or* which have any Tags with a User whose Name contains the string.
I don't know how to assemble this query, or whether I need to do it with subqueries or aliases. What would be the proper way to do this?
| 0 |
7,658,372 | 10/05/2011 08:05:31 | 700,530 | 04/10/2011 03:10:32 | 1 | 0 | Playing aroung SEO | As a web developer does studying.playing around with SEO improves learning experience and also improves quality of effective design? | design | seo | professional-experience | null | null | 10/05/2011 08:43:47 | not constructive | Playing aroung SEO
===
As a web developer does studying.playing around with SEO improves learning experience and also improves quality of effective design? | 4 |
4,588,163 | 01/03/2011 20:39:40 | 561,734 | 01/03/2011 20:39:40 | 1 | 0 | RDP or VNC in browser | Is anyone aware of good, usable and FREE (for commercial use) in-browser solutions to connect to a Windows server? I can't seem to find any inbrowser RDP. There seems to be some VNC based solutions (Guacamole?, terms unclear) and I can't tell if they're worth a shot. | windows | rdp | vnc | null | null | 02/28/2012 22:02:57 | not constructive | RDP or VNC in browser
===
Is anyone aware of good, usable and FREE (for commercial use) in-browser solutions to connect to a Windows server? I can't seem to find any inbrowser RDP. There seems to be some VNC based solutions (Guacamole?, terms unclear) and I can't tell if they're worth a shot. | 4 |
11,098,848 | 06/19/2012 10:11:14 | 1,289,999 | 03/24/2012 13:26:33 | 6 | 0 | Authenticate user through google login in android app | I want authenticate user in my android app through google login and then dispaly his name and email if he login(authenticate) successfully. | android | google-api | null | null | null | 06/20/2012 12:04:00 | not a real question | Authenticate user through google login in android app
===
I want authenticate user in my android app through google login and then dispaly his name and email if he login(authenticate) successfully. | 1 |
4,587,789 | 01/03/2011 19:52:37 | 425,275 | 08/19/2010 13:22:42 | 4,232 | 221 | Hovering over a drop-down list ends all :hover states in IE | Take a look at this little demo: http://jsfiddle.net/TnzS4/
Open up the SELECT box, and hover its the drop-down list.
In Chrome, FF, Safari and Opera, the box is red, which means that the `:hover` state is still active.
In IE, the box is gray, which means that the `:hover` state is inactive.
Is this an IE bug? | html | internet-explorer | null | null | null | null | open | Hovering over a drop-down list ends all :hover states in IE
===
Take a look at this little demo: http://jsfiddle.net/TnzS4/
Open up the SELECT box, and hover its the drop-down list.
In Chrome, FF, Safari and Opera, the box is red, which means that the `:hover` state is still active.
In IE, the box is gray, which means that the `:hover` state is inactive.
Is this an IE bug? | 0 |
9,788,359 | 03/20/2012 14:03:43 | 1,281,071 | 03/20/2012 13:49:56 | 1 | 0 | can i use same pointer to call data from different exe file? | I am trying to make two .exe files in c where first one store some data in memory and save data´s pointer to .txt. and second one read pointer from .txt and display them.
first one:
`fw = fopen("pointer.txt", "w");`
`fprintf(fw, "%p", &data);`
`fclose(fw);`
second one:
`fr = fopen("pointer.txt", "r");`
`fscanf(fr, "%p", &pointer);`
but when I run the second one it display a random numbers.
what is wrong? | c | null | null | null | null | null | open | can i use same pointer to call data from different exe file?
===
I am trying to make two .exe files in c where first one store some data in memory and save data´s pointer to .txt. and second one read pointer from .txt and display them.
first one:
`fw = fopen("pointer.txt", "w");`
`fprintf(fw, "%p", &data);`
`fclose(fw);`
second one:
`fr = fopen("pointer.txt", "r");`
`fscanf(fr, "%p", &pointer);`
but when I run the second one it display a random numbers.
what is wrong? | 0 |
10,528,781 | 05/10/2012 06:47:59 | 1,285,628 | 03/22/2012 10:19:44 | 40 | 1 | Display image inbetween the views | I want to display an image between the two views.(i.e)In my app i want to show an image after i logged in to it and before it loads the main page of my app. Is it possible if so were can load the image . | iphone | ios | uiimage | transition | xcode3.2.3 | 05/10/2012 10:38:09 | not a real question | Display image inbetween the views
===
I want to display an image between the two views.(i.e)In my app i want to show an image after i logged in to it and before it loads the main page of my app. Is it possible if so were can load the image . | 1 |
8,895,340 | 01/17/2012 13:22:55 | 593,835 | 01/28/2011 12:43:34 | 47 | 0 | comparison of various ML libraries/tools | From last couple of days I am looking for some good ML library and to my surprise I found quite a lot.Initially ,I was interested in only libraries which have the C/C++ support but then not I am expanding my wishlist to include any good library which can have good feature set and and can provide good data mining in longer run(It may be a bit difficult to learn initially but should have things which can make it worth of learning ).
For this I want to evaluate all of the available good ML libraries on these parameters:
1)Various data mining algorithms and features it support
2)Community support(if there are more users of this, definitely we will get more help while working)
3)how stable it is
4)Efficiency with large data set
5)Ease of learning/Ease of use/Ease of operation
6)languages it supports(C,C++,Java,Python)
7)open source/closed source
I request all of you to please come up with your suggestions(who has worked or have experience working with any of the library) so that we can have a good comprehensive discussion for any such sort of questions. | matlab | statistics | machine-learning | data-mining | null | 01/18/2012 19:39:55 | not constructive | comparison of various ML libraries/tools
===
From last couple of days I am looking for some good ML library and to my surprise I found quite a lot.Initially ,I was interested in only libraries which have the C/C++ support but then not I am expanding my wishlist to include any good library which can have good feature set and and can provide good data mining in longer run(It may be a bit difficult to learn initially but should have things which can make it worth of learning ).
For this I want to evaluate all of the available good ML libraries on these parameters:
1)Various data mining algorithms and features it support
2)Community support(if there are more users of this, definitely we will get more help while working)
3)how stable it is
4)Efficiency with large data set
5)Ease of learning/Ease of use/Ease of operation
6)languages it supports(C,C++,Java,Python)
7)open source/closed source
I request all of you to please come up with your suggestions(who has worked or have experience working with any of the library) so that we can have a good comprehensive discussion for any such sort of questions. | 4 |
8,554,235 | 12/18/2011 19:35:04 | 399,546 | 07/22/2010 19:45:15 | 298 | 10 | Rendering to a Texture vs Rendering to CAEAGLLayer-backed view? | I have a very loose grasp of the OpenGL environment, so this is something I'm trying to understand. Could someone explain in lay terms what is the difference between these two styles of rendering? Primarily I would like to understand what it means to render to a texture and when would it be appropriate to choose to do that? | ios | opengl-es | render-to-texture | null | null | null | open | Rendering to a Texture vs Rendering to CAEAGLLayer-backed view?
===
I have a very loose grasp of the OpenGL environment, so this is something I'm trying to understand. Could someone explain in lay terms what is the difference between these two styles of rendering? Primarily I would like to understand what it means to render to a texture and when would it be appropriate to choose to do that? | 0 |
11,686,786 | 07/27/2012 11:23:34 | 846,401 | 07/15/2011 11:58:02 | 6 | 0 | Pagination issue after delete or update entry CodeIgniter | I ask a question can some one please answer
http://codeigniter.com/forums/viewthread/194182/ | codeigniter | pagination | paging | null | null | 07/27/2012 12:09:46 | not a real question | Pagination issue after delete or update entry CodeIgniter
===
I ask a question can some one please answer
http://codeigniter.com/forums/viewthread/194182/ | 1 |
5,905,187 | 05/05/2011 23:24:53 | 641,246 | 03/02/2011 13:22:15 | 8 | 0 | setting array session value inside jquery | I am trying to set session array in jquery which I call inside of javascript function that is called onClick event for link.
But it keeps setting me my last choice that I click.
This is code I used for setting session array(I wanted to add new element to session array everytime when someone clicks on the link):
$_SESSION['Ticket'][]=$IDGame; | php | jquery | session | null | null | null | open | setting array session value inside jquery
===
I am trying to set session array in jquery which I call inside of javascript function that is called onClick event for link.
But it keeps setting me my last choice that I click.
This is code I used for setting session array(I wanted to add new element to session array everytime when someone clicks on the link):
$_SESSION['Ticket'][]=$IDGame; | 0 |
8,390,435 | 12/05/2011 19:02:52 | 949,704 | 09/16/2011 23:16:31 | 17 | 1 | Template Toolkit foreach to Smarty | I have a foreach loop in Template Toolkit that I am converting to Smarty, but I am unsure as to what to change it to.
[% FOREACH ps IN pack_stats %]
<tr>
[% FOREACH key IN [ id, domain, username, password, plan, price, renew, status ] %]
<td>[% ps.$key %]</td>
[% END %]
</tr>
[% END %]
I know that in smarty the foreach loop changes to {foreach from=$pack_stats item=ps}{/foreach} but the text in the center I am unsure as to what to change it to to loop through each of the keys passed to the ps variable. | php | smarty | template-toolkit | null | null | null | open | Template Toolkit foreach to Smarty
===
I have a foreach loop in Template Toolkit that I am converting to Smarty, but I am unsure as to what to change it to.
[% FOREACH ps IN pack_stats %]
<tr>
[% FOREACH key IN [ id, domain, username, password, plan, price, renew, status ] %]
<td>[% ps.$key %]</td>
[% END %]
</tr>
[% END %]
I know that in smarty the foreach loop changes to {foreach from=$pack_stats item=ps}{/foreach} but the text in the center I am unsure as to what to change it to to loop through each of the keys passed to the ps variable. | 0 |
9,805,875 | 03/21/2012 13:43:59 | 1,278,850 | 03/19/2012 14:59:52 | 4 | 0 | Session menager problems | Looking for some good tutorial that will help me build my SessionMenager for web application with will allow me to use Load/Evict options on my session instance can anyone help me to find one cuz i was looking in web for 5h atlast and no good tutorials... | nhibernate | null | null | null | null | 03/21/2012 21:23:28 | not a real question | Session menager problems
===
Looking for some good tutorial that will help me build my SessionMenager for web application with will allow me to use Load/Evict options on my session instance can anyone help me to find one cuz i was looking in web for 5h atlast and no good tutorials... | 1 |
6,517,978 | 06/29/2011 08:50:30 | 75,947 | 03/10/2009 03:17:23 | 38 | 2 | text editor with the best UI (icons, windows layout)? | For the programmers who write code daily, do you care about the UI of your text editors?
I personally dislike the ui of source insight (its UI is very out dated), but it's still a preferred editor.
I came to another editor named 010editor some day ago, I found that I like its UI. But unfortunatedly I need some functions which it doesnot provide.
I spend some time (yesterday and today, maybe my boss should give me more work to do?) on the net just try to find a editor whose UI can give me some interest to try it, but I'm not satisfied by my result.
Do you guys are same serious about the UI of a editor as I do, if so, do you have any recommandations?
(Here UI mainly refers to the icons, windows layout, color schemas. I'm not asking for the best functions) | user-interface | editor | null | null | null | 06/29/2011 09:03:51 | not constructive | text editor with the best UI (icons, windows layout)?
===
For the programmers who write code daily, do you care about the UI of your text editors?
I personally dislike the ui of source insight (its UI is very out dated), but it's still a preferred editor.
I came to another editor named 010editor some day ago, I found that I like its UI. But unfortunatedly I need some functions which it doesnot provide.
I spend some time (yesterday and today, maybe my boss should give me more work to do?) on the net just try to find a editor whose UI can give me some interest to try it, but I'm not satisfied by my result.
Do you guys are same serious about the UI of a editor as I do, if so, do you have any recommandations?
(Here UI mainly refers to the icons, windows layout, color schemas. I'm not asking for the best functions) | 4 |
4,213,618 | 11/18/2010 10:07:21 | 414,221 | 01/05/2010 18:34:32 | 71 | 31 | Configure Jabber external component to send stanza on behalf of any user | I read somewhere a while ago that one can configure external jabber components (XEP-0114) to send XMPP stanza's on behalf on any user. For instance say i have a component bind to (component.localhost) and i want it to send a message stanza with "from" attribute set to "user@localhost".
I am trying to achieve this with ejabberd. Won't be surprised if I will have to hack down ejabberd src to get this working (if at all possible). | xmpp | ejabberd | null | null | null | null | open | Configure Jabber external component to send stanza on behalf of any user
===
I read somewhere a while ago that one can configure external jabber components (XEP-0114) to send XMPP stanza's on behalf on any user. For instance say i have a component bind to (component.localhost) and i want it to send a message stanza with "from" attribute set to "user@localhost".
I am trying to achieve this with ejabberd. Won't be surprised if I will have to hack down ejabberd src to get this working (if at all possible). | 0 |
9,007,878 | 01/25/2012 18:12:26 | 574,700 | 01/13/2011 18:27:28 | 327 | 20 | Is there any advantages storing cURL cookies? And relating questions | I've got a `cURL PHP` script which works. It gets my schedule from my school site. Though there is one strange thing: On my webhost it creates the cookie.txt and on my localhost it doesn't.
- Why doesn't it create a cookie on my localhost? Any suggestions?
And the questions that follows the latter:
- Is there any (speed) advantage of already being logged in on the school site (storing the cookie)?
I could for example check after the first cURL request if there is evidence in the response that I am already logged in. E.g. a `str_pos()` on my name which will return a result if I am logged in. So: Is a `str_pos()` faster than a `cURL` request?
If the answer to the above question is: *'no, this doesn't make the script faster'* I've got another question:
- Is it than best to specify only the `CURLOPT_COOKIEFILE` option? With an empty value?
- One extra question: My cookie is in the 'cookie' folder on a server, is the correct path `cookie/cookie.txt` or `/cookie/cookie.txt`?
Situation:
index.php
code.php
cookie/cookie.txt
I can't give you my login information, though here is the script:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,
'http://www.groenewoud.nl/infoweb/infoweb/index.php');
curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($curl, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$tokenSource = curl_exec($curl);
print_r (curl_getinfo($curl));
if (!$tokenSource) echo 'token problem';
// Get the token from within the source codes of infoweb.
preg_match('/name="csrf" value="(.*?)"/', $tokenSource, $token);
$postFields = array(
'user' => $userNum,
'paswoord' => $userPass,
'login' => 'loginform',
'csrf' => $token[1]);
$postData = http_build_query($postFields);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, false);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
$tableSource = curl_exec($curl);
print_r( curl_getinfo($curl));
if (!$tableSource) echo 'post problem';
curl_close($curl);
| php | curl | null | null | null | null | open | Is there any advantages storing cURL cookies? And relating questions
===
I've got a `cURL PHP` script which works. It gets my schedule from my school site. Though there is one strange thing: On my webhost it creates the cookie.txt and on my localhost it doesn't.
- Why doesn't it create a cookie on my localhost? Any suggestions?
And the questions that follows the latter:
- Is there any (speed) advantage of already being logged in on the school site (storing the cookie)?
I could for example check after the first cURL request if there is evidence in the response that I am already logged in. E.g. a `str_pos()` on my name which will return a result if I am logged in. So: Is a `str_pos()` faster than a `cURL` request?
If the answer to the above question is: *'no, this doesn't make the script faster'* I've got another question:
- Is it than best to specify only the `CURLOPT_COOKIEFILE` option? With an empty value?
- One extra question: My cookie is in the 'cookie' folder on a server, is the correct path `cookie/cookie.txt` or `/cookie/cookie.txt`?
Situation:
index.php
code.php
cookie/cookie.txt
I can't give you my login information, though here is the script:
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL,
'http://www.groenewoud.nl/infoweb/infoweb/index.php');
curl_setopt($curl, CURLOPT_COOKIEFILE, 'cookie.txt');
curl_setopt($curl, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt($curl, CURLOPT_ENCODING, 'gzip');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
$tokenSource = curl_exec($curl);
print_r (curl_getinfo($curl));
if (!$tokenSource) echo 'token problem';
// Get the token from within the source codes of infoweb.
preg_match('/name="csrf" value="(.*?)"/', $tokenSource, $token);
$postFields = array(
'user' => $userNum,
'paswoord' => $userPass,
'login' => 'loginform',
'csrf' => $token[1]);
$postData = http_build_query($postFields);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, false);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
$tableSource = curl_exec($curl);
print_r( curl_getinfo($curl));
if (!$tableSource) echo 'post problem';
curl_close($curl);
| 0 |
10,420,095 | 05/02/2012 19:07:52 | 1,370,849 | 05/02/2012 19:02:47 | 1 | 0 | Simple JSON parse example wanted in VB.Net | I'm doing my first steps with Newtonsoft Json parser, but there are very fex examples on VB.net apperently. I just want to parse a string, and then I want to be able to loop throught the different list
This is my code :
Dim JSON As String
Dim values As Newtonsoft.Json.Linq.JObject
JSON = "{'mailadresses': { 'List1':{'Stefaan Somers': 'JoskeVermeulen@gmail.com', 'Markske': 'mdtre@gmail.com' }, 'List2':{'Stefaan XSomers': 'Test@gmail.com', 'xMarkske': 'mdrmdtre@gmail.com' }}"
values = JObject.Parse(JSON)
It directly gives me the error when running :
Unexpected end of content while loading JObject. Path 'mailadresses', line 1, position 221.
Any idea also on how to loop through the different elements. I don't want to cast to a custom class, as described in many samples | json.net | null | null | null | null | null | open | Simple JSON parse example wanted in VB.Net
===
I'm doing my first steps with Newtonsoft Json parser, but there are very fex examples on VB.net apperently. I just want to parse a string, and then I want to be able to loop throught the different list
This is my code :
Dim JSON As String
Dim values As Newtonsoft.Json.Linq.JObject
JSON = "{'mailadresses': { 'List1':{'Stefaan Somers': 'JoskeVermeulen@gmail.com', 'Markske': 'mdtre@gmail.com' }, 'List2':{'Stefaan XSomers': 'Test@gmail.com', 'xMarkske': 'mdrmdtre@gmail.com' }}"
values = JObject.Parse(JSON)
It directly gives me the error when running :
Unexpected end of content while loading JObject. Path 'mailadresses', line 1, position 221.
Any idea also on how to loop through the different elements. I don't want to cast to a custom class, as described in many samples | 0 |
1,301,406 | 08/19/2009 17:21:11 | 2,715 | 08/24/2008 16:57:35 | 146 | 19 | Books for bringing up a new programmer | I will soon be taking on the role of mentoring a fairly new programmer. I have so far been the lone programmer at a quickly-growing small company. Are there any good resources I can check out that could help me transition into this role? | teaching | books | online-resources | null | null | 09/24/2011 14:57:49 | not constructive | Books for bringing up a new programmer
===
I will soon be taking on the role of mentoring a fairly new programmer. I have so far been the lone programmer at a quickly-growing small company. Are there any good resources I can check out that could help me transition into this role? | 4 |
6,909,567 | 08/02/2011 08:59:59 | 543,062 | 12/15/2010 08:07:36 | 15 | 0 | Does github provide host and blog service? | I often see some blogs or applications has github in its domain name. For example:http://bonsaiden.github.com/JavaScript-Garden/ But I can't find these service on github's homepage. Could you tell me how to set a blog on github? And how to create a Fork Me label on the top-right corner of the page. | github | null | null | null | null | 08/02/2011 18:01:38 | off topic | Does github provide host and blog service?
===
I often see some blogs or applications has github in its domain name. For example:http://bonsaiden.github.com/JavaScript-Garden/ But I can't find these service on github's homepage. Could you tell me how to set a blog on github? And how to create a Fork Me label on the top-right corner of the page. | 2 |
9,406,920 | 02/23/2012 03:53:11 | 567,796 | 01/08/2011 05:51:30 | 123 | 7 | Android spinner with date picker, like Google Calendar app | I'm trying to get a text box that looks like a spinner to activate a date picker dialog. This is done in both the Google Calendar app and the Contacts app (for birthdate) on ICS. Do I need to use a spinner, and if so how do I change it's input view to be a date picker? Or if not, how do I get a text view to have the little triangle that usually indicates a spinner? | android | ice-cream-sandwich | android-spinner | android-datepicker | null | null | open | Android spinner with date picker, like Google Calendar app
===
I'm trying to get a text box that looks like a spinner to activate a date picker dialog. This is done in both the Google Calendar app and the Contacts app (for birthdate) on ICS. Do I need to use a spinner, and if so how do I change it's input view to be a date picker? Or if not, how do I get a text view to have the little triangle that usually indicates a spinner? | 0 |
6,090,393 | 05/22/2011 19:58:44 | 756,695 | 05/17/2011 04:05:29 | 1 | 0 | Can't Access My Service Methods | i'm at my wits end, following the examples on the android devguide to creating a bound service here: [http://developer.android.com/guide/topics/fundamentals/bound-services.html][1]
[1]: http://developer.android.com/guide/topics/fundamentals/bound-services.html
i created a bound service to play media files however, every time i try to access any of it's public methods from my activity, i get the force close error with a NullPointerException on logcat.
MediaService.java
public class MediaService extends Service {
private MediaPlayer mediaPlayer;
private SeekBar seeker;
private Boolean curRdy;
private Boolean paused;
private Cursor cursor;
private int columIndex;
private int position;
public class LocalBinder extends Binder {
MediaService getService() {
return MediaService.this;
}
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
return START_STICKY;
}
@Override
public void onCreate() {
super.onCreate();
mediaPlayer = new MediaPlayer();
curRdy = false;
paused = false;
}
@Override
public IBinder onBind(Intent intent) {
return (IBinder) new LocalBinder();
}
PlayerTab.java
public class PlayerTab extends Activity {
private Intent intent;
private SeekBar seeker;
private MediaService serv;
private ServiceConnection servCon = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
serv = ((MediaService.LocalBinder) service).getService();
}
@Override
public void onServiceDisconnected(ComponentName arg0) {
//-----
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.player);
intent = new Intent(PlayerTab.this, MediaService.class);
seeker = (SeekBar) findViewById(R.id.seeker);
}
@Override
protected void onStart() {
super.onStart();
startService(intent);
bindService(intent, servCon, Context.BIND_AUTO_CREATE);
serv.loadPlayerSeeker(seeker);
}
serv.loadPlayerSeeker() is one of the public methods in MediaService, when ever i try to access it or any of the other methods, it just fails. the service will create and start just fine, it just doesn't seem bounded to the PayerTab activity properly. | android | null | null | null | null | null | open | Can't Access My Service Methods
===
i'm at my wits end, following the examples on the android devguide to creating a bound service here: [http://developer.android.com/guide/topics/fundamentals/bound-services.html][1]
[1]: http://developer.android.com/guide/topics/fundamentals/bound-services.html
i created a bound service to play media files however, every time i try to access any of it's public methods from my activity, i get the force close error with a NullPointerException on logcat.
MediaService.java
public class MediaService extends Service {
private MediaPlayer mediaPlayer;
private SeekBar seeker;
private Boolean curRdy;
private Boolean paused;
private Cursor cursor;
private int columIndex;
private int position;
public class LocalBinder extends Binder {
MediaService getService() {
return MediaService.this;
}
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
return START_STICKY;
}
@Override
public void onCreate() {
super.onCreate();
mediaPlayer = new MediaPlayer();
curRdy = false;
paused = false;
}
@Override
public IBinder onBind(Intent intent) {
return (IBinder) new LocalBinder();
}
PlayerTab.java
public class PlayerTab extends Activity {
private Intent intent;
private SeekBar seeker;
private MediaService serv;
private ServiceConnection servCon = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName className, IBinder service) {
serv = ((MediaService.LocalBinder) service).getService();
}
@Override
public void onServiceDisconnected(ComponentName arg0) {
//-----
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.player);
intent = new Intent(PlayerTab.this, MediaService.class);
seeker = (SeekBar) findViewById(R.id.seeker);
}
@Override
protected void onStart() {
super.onStart();
startService(intent);
bindService(intent, servCon, Context.BIND_AUTO_CREATE);
serv.loadPlayerSeeker(seeker);
}
serv.loadPlayerSeeker() is one of the public methods in MediaService, when ever i try to access it or any of the other methods, it just fails. the service will create and start just fine, it just doesn't seem bounded to the PayerTab activity properly. | 0 |
1,801,579 | 11/26/2009 04:46:50 | 218,997 | 11/25/2009 22:43:28 | 9 | 0 | Should I start my new shareware project in C# or Delphi? | I want my code to be as secure as possible. | c# | delphi | security | null | null | 11/27/2009 00:35:13 | not constructive | Should I start my new shareware project in C# or Delphi?
===
I want my code to be as secure as possible. | 4 |
8,164,902 | 11/17/2011 09:34:34 | 1,047,646 | 11/15/2011 13:31:54 | 3 | 0 | Cssparser 0.9.5 is not loading by adding richfaces 4 into Maven project | I added richfaces4 into maven project and deployed it. I got the error message. Loading the cssparser 0.9.5 into jboss is not working.
JBoss 6.0.0
JavaEE6
Eclipse Helios
Maven3
richfaces 4.0.0
Any idea? Thanks
09:42:55,165 WARN [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:com.steadystate.css.dom.CSS2PropertiesImpl: java.lang.RuntimeException: Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:177) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:621) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]
...
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]
at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]
at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154) [:0.2.2]
at org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233) [:6.0.0.Final]
at org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83) [:6.0.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
at org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) [:1.6.0_22]
at sun.rmi.transport.Transport$1.run(Transport.java:177) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at sun.rmi.transport.Transport.serviceCall(Transport.java:173) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method) [:1.6.0_22]
at java.util.zip.ZipFile.access$1200(ZipFile.java:46) [:1.6.0_22]
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:464) [:1.6.0_22]
at java.util.zip.ZipFile$1.fill(ZipFile.java:247) [:1.6.0_22]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [:1.6.0_22]
at java.io.FilterInputStream.read(FilterInputStream.java:107) [:1.6.0_22]
at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:235) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:173) [jboss-classloader.jar:2.2.0.GA]
... 116 more
09:42:55,203 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154) [:0.2.2]
at org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233) [:6.0.0.Final]
at org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83) [:6.0.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
at org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) [:1.6.0_22]
at sun.rmi.transport.Transport$1.run(Transport.java:177) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at sun.rmi.transport.Transport.serviceCall(Transport.java:173) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.lang.Error: Error visiting "/home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war/WEB-INF/lib/cssparser-0.9.5.jar/com/steadystate/css/dom/CSS2PropertiesImpl.class"
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]
at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]
at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
... 69 more
Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ com/steadystate/css/dom/CSS2PropertiesImpl.class / BaseClassLoader@830911c{vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@7d3292d2
at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.GA]
at org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112) [:1.0.0.GA]
at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101) [jboss-classloading.jar:2.2.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.GA]
... 81 more
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: com.steadystate.css.dom.CSS2PropertiesImpl, msg=Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:176) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [:1.6.0_22]
at java.lang.Class.forName0(Native Method) [:1.6.0_22]
at java.lang.Class.forName(Class.java:264) [:1.6.0_22]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.resolveComplexTypeInfo(IntrospectionTypeInfoFactoryImpl.java:458) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:414) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:54) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.config.plugins.AbstractConfiguration.getTypeInfo(AbstractConfiguration.java:121) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getTypeInfo(AbstractKernelConfig.java:95) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getTypeInfo(AbstractKernelConfigurator.java:102) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.scanning.plugins.visitor.ConfiguratorReflectProvider.getTypeInfo(ConfiguratorReflectProvider.java:47) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.CachingReflectProvider.getTypeInfo(CachingReflectProvider.java:52) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getTypeInfo(ReflectResourceVisitor.java:60) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getClassInfo(ReflectResourceVisitor.java:72) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:107) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86) [:1.0.0.GA]
... 85 more
Caused by: java.lang.RuntimeException: Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:177) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:621) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161) [jboss-classloader.jar:2.2.0.GA]
... 105 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method) [:1.6.0_22]
at java.util.zip.ZipFile.access$1200(ZipFile.java:46) [:1.6.0_22]
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:464) [:1.6.0_22]
at java.util.zip.ZipFile$1.fill(ZipFile.java:247) [:1.6.0_22]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [:1.6.0_22]
at java.io.FilterInputStream.read(FilterInputStream.java:107) [:1.6.0_22]
at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:235) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:173) [jboss-classloader.jar:2.2.0.GA]
... 116 more
| java | maven | richfaces | null | null | 11/17/2011 10:19:11 | too localized | Cssparser 0.9.5 is not loading by adding richfaces 4 into Maven project
===
I added richfaces4 into maven project and deployed it. I got the error message. Loading the cssparser 0.9.5 into jboss is not working.
JBoss 6.0.0
JavaEE6
Eclipse Helios
Maven3
richfaces 4.0.0
Any idea? Thanks
09:42:55,165 WARN [org.jboss.detailed.classloader.ClassLoaderManager] Unexpected error during load of:com.steadystate.css.dom.CSS2PropertiesImpl: java.lang.RuntimeException: Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:177) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:621) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]
...
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]
at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]
at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154) [:0.2.2]
at org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233) [:6.0.0.Final]
at org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83) [:6.0.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
at org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) [:1.6.0_22]
at sun.rmi.transport.Transport$1.run(Transport.java:177) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at sun.rmi.transport.Transport.serviceCall(Transport.java:173) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method) [:1.6.0_22]
at java.util.zip.ZipFile.access$1200(ZipFile.java:46) [:1.6.0_22]
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:464) [:1.6.0_22]
at java.util.zip.ZipFile$1.fill(ZipFile.java:247) [:1.6.0_22]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [:1.6.0_22]
at java.io.FilterInputStream.read(FilterInputStream.java:107) [:1.6.0_22]
at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:235) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:173) [jboss-classloader.jar:2.2.0.GA]
... 116 more
09:42:55,203 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to PostClassLoader: name=vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war state=ClassLoader mode=Manual requiredState=PostClassLoader: org.jboss.deployers.spi.DeploymentException: Error during deploy: vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war
at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
at org.jboss.profileservice.AbstractProfileService.activateProfile(AbstractProfileService.java:154) [:0.2.2]
at org.jboss.system.tools.ProfileServiceToolsFacade.addURI(ProfileServiceToolsFacade.java:233) [:6.0.0.Final]
at org.jboss.system.tools.LegacyDeploymentScannerAdapter.addURL(LegacyDeploymentScannerAdapter.java:140) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:91) [:6.0.0.Final]
at org.jboss.system.tools.DeploymentScanner.addURL(DeploymentScanner.java:83) [:6.0.0.Final]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]
at org.jboss.system.server.jmx.MBeanServerWrapper.invoke(MBeanServerWrapper.java:138) [:6.0.0.Final (Build SVNTag:JBoss_6.0.0.Final date: 20101228)]
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1450) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:90) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1285) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1383) [:1.6.0_22]
at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:807) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) [:1.6.0_22]
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) [:1.6.0_22]
at sun.rmi.transport.Transport$1.run(Transport.java:177) [:1.6.0_22]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at sun.rmi.transport.Transport.serviceCall(Transport.java:173) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808) [:1.6.0_22]
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [:1.6.0_22]
Caused by: java.lang.Error: Error visiting "/home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war/WEB-INF/lib/cssparser-0.9.5.jar/com/steadystate/css/dom/CSS2PropertiesImpl.class"
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:408) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:410) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.vfs.VirtualFile.visit(VirtualFile.java:396) [jboss-vfs.jar:3.0.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:102) [jboss-classloading-vfs.jar:2.2.0.GA]
at org.jboss.deployers.vfs.plugins.classloader.VFSDeploymentClassLoaderPolicyModule.visit(VFSDeploymentClassLoaderPolicyModule.java:181) [:2.2.0.GA]
at org.jboss.scanning.plugins.DeploymentUnitScanner.scan(DeploymentUnitScanner.java:111) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.UrlScanner.scan(UrlScanner.java:96) [:1.0.0.GA]
at org.jboss.scanning.deployers.ScanningDeployer.deploy(ScanningDeployer.java:95) [:1.0.0.GA]
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
... 69 more
Caused by: java.lang.RuntimeException: Error visiting resource: VFSResourceContext @ com/steadystate/css/dom/CSS2PropertiesImpl.class / BaseClassLoader@830911c{vfs:///home/argonist/OpenMind/workspace/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1310225979344/deploy/OpenMind.war}, visitor: org.jboss.scanning.annotations.plugins.GenericAnnotationVisitor@7d3292d2
at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91) [:1.0.0.GA]
at org.jboss.scanning.annotations.plugins.AnnotationsScanningPlugin.visit(AnnotationsScanningPlugin.java:89) [:1.0.0.GA]
at org.jboss.scanning.spi.helpers.ScanningPluginWrapper.visit(ScanningPluginWrapper.java:112) [:1.0.0.GA]
at org.jboss.classloading.plugins.visitor.FederatedResourceVisitor.visit(FederatedResourceVisitor.java:101) [jboss-classloading.jar:2.2.0.GA]
at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:264) [jboss-classloading-vfs.jar:2.2.0.GA]
... 81 more
Caused by: java.lang.ClassNotFoundException: Unexpected error during load of: com.steadystate.css.dom.CSS2PropertiesImpl, msg=Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:176) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:260) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]
at java.lang.ClassLoader.loadClass(ClassLoader.java:266) [:1.6.0_22]
at java.lang.Class.forName0(Native Method) [:1.6.0_22]
at java.lang.Class.forName(Class.java:264) [:1.6.0_22]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.resolveComplexTypeInfo(IntrospectionTypeInfoFactoryImpl.java:458) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getTypeInfo(IntrospectionTypeInfoFactoryImpl.java:414) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactory.getTypeInfo(IntrospectionTypeInfoFactory.java:54) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.config.plugins.AbstractConfiguration.getTypeInfo(AbstractConfiguration.java:121) [jboss-reflect.jar:2.2.0.GA]
at org.jboss.kernel.plugins.config.AbstractKernelConfig.getTypeInfo(AbstractKernelConfig.java:95) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.kernel.plugins.config.AbstractKernelConfigurator.getTypeInfo(AbstractKernelConfigurator.java:102) [jboss-kernel.jar:2.2.0.GA]
at org.jboss.scanning.plugins.visitor.ConfiguratorReflectProvider.getTypeInfo(ConfiguratorReflectProvider.java:47) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.CachingReflectProvider.getTypeInfo(CachingReflectProvider.java:52) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getTypeInfo(ReflectResourceVisitor.java:60) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.getClassInfo(ReflectResourceVisitor.java:72) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.doVisit(ReflectResourceVisitor.java:107) [:1.0.0.GA]
at org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:86) [:1.0.0.GA]
... 85 more
Caused by: java.lang.RuntimeException: Unable to load class byte code com.steadystate.css.dom.CSS2PropertiesImpl
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:177) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:621) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader$2.run(BaseClassLoader.java:609) [jboss-classloader.jar:2.2.0.GA]
at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_22]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:608) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseClassLoader.loadClassLocally(BaseClassLoader.java:585) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.BaseDelegateLoader.loadClass(BaseDelegateLoader.java:156) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.doLoadClass(FilteredDelegateLoader.java:141) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.filter.FilteredDelegateLoader.loadClass(FilteredDelegateLoader.java:132) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:461) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoaderManager.nextTask(ClassLoaderManager.java:262) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.spi.base.ClassLoaderManager.process(ClassLoaderManager.java:161) [jboss-classloader.jar:2.2.0.GA]
... 105 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method) [:1.6.0_22]
at java.util.zip.ZipFile.access$1200(ZipFile.java:46) [:1.6.0_22]
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:464) [:1.6.0_22]
at java.util.zip.ZipFile$1.fill(ZipFile.java:247) [:1.6.0_22]
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) [:1.6.0_22]
at java.io.FilterInputStream.read(FilterInputStream.java:107) [:1.6.0_22]
at org.jboss.classloader.plugins.ClassLoaderUtils.readBytes(ClassLoaderUtils.java:235) [jboss-classloader.jar:2.2.0.GA]
at org.jboss.classloader.plugins.ClassLoaderUtils.loadByteCode(ClassLoaderUtils.java:173) [jboss-classloader.jar:2.2.0.GA]
... 116 more
| 3 |
9,980,578 | 04/02/2012 17:00:28 | 805,365 | 06/19/2011 13:22:02 | 29 | 1 | What kind of Web Browser I can use in my program? | I want to use analog of WebBrowser in my program on Windows (it's write on C#). It's must have simple DOM interface and work fast. Additional, It's must have proxy support.
Now I am using GeckoFX. It's normal working with my C# application. But, maybe exist better analog of WebBrowser?
| c# | .net | webbrowser | geckofx | null | 04/02/2012 18:25:23 | not a real question | What kind of Web Browser I can use in my program?
===
I want to use analog of WebBrowser in my program on Windows (it's write on C#). It's must have simple DOM interface and work fast. Additional, It's must have proxy support.
Now I am using GeckoFX. It's normal working with my C# application. But, maybe exist better analog of WebBrowser?
| 1 |
11,252,910 | 06/28/2012 21:08:28 | 542,377 | 10/31/2009 00:24:28 | 476 | 27 | Rails redirect_to https while keeping all parameters | I'm redirecting to https like so:
redirect_to :protocol => 'https://', :status => :moved_permanently
However, the parameters don't go through like this. I can pass specific parameters through like this:
redirect_to :protocol => 'https://', :status => :moved_permanently, :param1 => params[:param1], :param2 => params[:param2]
How would I make it so that it just passes through every parameter on the url instead of having to explicitly declare each parameter? | ruby-on-rails | parameters | null | null | null | null | open | Rails redirect_to https while keeping all parameters
===
I'm redirecting to https like so:
redirect_to :protocol => 'https://', :status => :moved_permanently
However, the parameters don't go through like this. I can pass specific parameters through like this:
redirect_to :protocol => 'https://', :status => :moved_permanently, :param1 => params[:param1], :param2 => params[:param2]
How would I make it so that it just passes through every parameter on the url instead of having to explicitly declare each parameter? | 0 |
1,913,682 | 12/16/2009 10:18:14 | 185,593 | 10/07/2009 12:17:02 | 322 | 33 | Control PointToClient() vs PointToScreen() | The MSDN does not provide, IMHO, a clear difference between **Control.PointToScreen**([link][1]) and **Control.PointToClient**([link][2]) methods.
Is there somebody who could explain in a few simple words what is the difference between these methods. Especially is unclear for me the notion of "Client".
Thanks.
[1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoscreen.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoclient.aspx | .net | winforms | null | null | null | null | open | Control PointToClient() vs PointToScreen()
===
The MSDN does not provide, IMHO, a clear difference between **Control.PointToScreen**([link][1]) and **Control.PointToClient**([link][2]) methods.
Is there somebody who could explain in a few simple words what is the difference between these methods. Especially is unclear for me the notion of "Client".
Thanks.
[1]: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoscreen.aspx
[2]: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.pointtoclient.aspx | 0 |
903,739 | 05/24/2009 13:14:04 | 58,615 | 01/24/2009 16:21:13 | 385 | 12 | What are good Linux tool(s) for MySQL administration and profiling? | While Windows releases of MySQL administration and profiling tools seem to be a dime a dozen, I'm having a very hard time finding very many designed for Linux.
Note that I'm not looking for monitoring software ala Nagios/Munin here. This would be something more along the lines of a SQLYog.
While I could write some basic scripts to handle most of the things I need from the CLI and do things through the mysql client console, are there any particularly good examples of good releases that do some or all of the following?
- Basic query profiling using EXPLAIN.
- Copy/diff of databases (some type of sync tool)
- Slightly more intuitive creation/editing/testing of triggers and stored procs
Knowing that many linux releases thrive on the "divide and conquer mentality", examples of tools that do ONE of the above very well would be of great help, too. | mysql | linux | software-tools | explain-plan | triggers | null | open | What are good Linux tool(s) for MySQL administration and profiling?
===
While Windows releases of MySQL administration and profiling tools seem to be a dime a dozen, I'm having a very hard time finding very many designed for Linux.
Note that I'm not looking for monitoring software ala Nagios/Munin here. This would be something more along the lines of a SQLYog.
While I could write some basic scripts to handle most of the things I need from the CLI and do things through the mysql client console, are there any particularly good examples of good releases that do some or all of the following?
- Basic query profiling using EXPLAIN.
- Copy/diff of databases (some type of sync tool)
- Slightly more intuitive creation/editing/testing of triggers and stored procs
Knowing that many linux releases thrive on the "divide and conquer mentality", examples of tools that do ONE of the above very well would be of great help, too. | 0 |
292,348 | 11/15/2008 09:33:50 | 15,453 | 09/17/2008 09:28:01 | 98 | 9 | VBA tutorial | At work I need to do lot of stuff with MS-Office and I managed to 'write' some scripts that do stuff instead of me. I copy-pasted it, changed some strings maybe.<br>
It is very frustrating to just copy paste and not understand how to do it your self, for every simple thing google for something.
I am not completly new to programming, just to VBA:)
Could someone throw me a link to VBA tutorial?<br>
Something with basic syntax: 'hello world' program, loops, flow control, declare variables, variable type conversions, Objects (can I do that?), file/user input/output, when 'with' block can be used, etc.
<br><br><br>
Thanks in advance. | vba | tutorials | msword | msexcel | null | 06/23/2012 19:48:57 | not a real question | VBA tutorial
===
At work I need to do lot of stuff with MS-Office and I managed to 'write' some scripts that do stuff instead of me. I copy-pasted it, changed some strings maybe.<br>
It is very frustrating to just copy paste and not understand how to do it your self, for every simple thing google for something.
I am not completly new to programming, just to VBA:)
Could someone throw me a link to VBA tutorial?<br>
Something with basic syntax: 'hello world' program, loops, flow control, declare variables, variable type conversions, Objects (can I do that?), file/user input/output, when 'with' block can be used, etc.
<br><br><br>
Thanks in advance. | 1 |
741,242 | 04/12/2009 03:50:58 | 27,620 | 10/13/2008 21:04:31 | 174 | 5 | How does the CGI cookie work in Ruby? | This is the example I keep seeing online as how to set cookies.
require "cgi"
cookie = CGI::Cookie.new("rubyweb", "CustID=123", "Part=ABC");
cgi = CGI.new("html3")
cgi.out( "cookie" => [cookie] ){
cgi.html{
"\nHTML content here"
}
}
I tried doing it this way and it sets the cookie and then comes up with a blank page.
#!/usr/local/bin/ruby
require 'cgi'
load 'inc_game.cgi'
cgi = CGI.new
cookie = CGI::Cookie.new("rubyweb", "CustID=123", "Part=ABC");
cgi.out( "cookie" => [cookie] ){""}
#see if game submit buttons pressed
doIt = cgi['play']
puts "Content-type: text/html\n\n"
play = Game.new
#welcome
if doIt == ''
puts play.displayGreeting
end
#choose weapon
play.playGame
if doIt == 'Play'
move = cgi['weapon']
human = play.humanMove(move)
computer = play.ComputerMove
print human
print computer
result = play.results(human,computer)
play.displayResults(result)
end
So my question first would be, what am I missing/doing wrong? Secondly I am wondering if anyone would want to explain what .out does as opposed to .header or if there is a difference?
Thanks,
Levi | ruby | cgi | cookies | null | null | null | open | How does the CGI cookie work in Ruby?
===
This is the example I keep seeing online as how to set cookies.
require "cgi"
cookie = CGI::Cookie.new("rubyweb", "CustID=123", "Part=ABC");
cgi = CGI.new("html3")
cgi.out( "cookie" => [cookie] ){
cgi.html{
"\nHTML content here"
}
}
I tried doing it this way and it sets the cookie and then comes up with a blank page.
#!/usr/local/bin/ruby
require 'cgi'
load 'inc_game.cgi'
cgi = CGI.new
cookie = CGI::Cookie.new("rubyweb", "CustID=123", "Part=ABC");
cgi.out( "cookie" => [cookie] ){""}
#see if game submit buttons pressed
doIt = cgi['play']
puts "Content-type: text/html\n\n"
play = Game.new
#welcome
if doIt == ''
puts play.displayGreeting
end
#choose weapon
play.playGame
if doIt == 'Play'
move = cgi['weapon']
human = play.humanMove(move)
computer = play.ComputerMove
print human
print computer
result = play.results(human,computer)
play.displayResults(result)
end
So my question first would be, what am I missing/doing wrong? Secondly I am wondering if anyone would want to explain what .out does as opposed to .header or if there is a difference?
Thanks,
Levi | 0 |
2,918,921 | 05/27/2010 06:21:32 | 336,413 | 05/08/2010 22:08:24 | 48 | 20 | How to handle error on other thread? | I'm trying to handle errors that have occurred on other threads the program is like below:
static void Main()
{
Thread t = new Thread(Start);
t.Start();
...
}
void Start()
{
... Exception here
}
In my situation, putting try catch in the Start method is impossible. How can I handle it in the global code? | .net | multithreading | null | null | null | null | open | How to handle error on other thread?
===
I'm trying to handle errors that have occurred on other threads the program is like below:
static void Main()
{
Thread t = new Thread(Start);
t.Start();
...
}
void Start()
{
... Exception here
}
In my situation, putting try catch in the Start method is impossible. How can I handle it in the global code? | 0 |
10,278,568 | 04/23/2012 10:11:01 | 1,133,747 | 01/06/2012 06:18:20 | 13 | 1 | Converting NSData to BigInt or NSNumber in Iphone | How can I convert the NSData to BigInt in objective-C
Is it possible???
| objective-c | ios | nsdata | biginteger | null | 04/24/2012 07:51:31 | not a real question | Converting NSData to BigInt or NSNumber in Iphone
===
How can I convert the NSData to BigInt in objective-C
Is it possible???
| 1 |
10,835,982 | 05/31/2012 14:50:58 | 1,428,637 | 05/31/2012 14:23:11 | 1 | 0 | How do import Chinese characters? | I can import a .txt unicode file, but the chinese characters are not showing up. Instead of question marks it shows a blank field. Anyone know how to handle this? | import | null | null | null | null | 05/31/2012 17:20:15 | not a real question | How do import Chinese characters?
===
I can import a .txt unicode file, but the chinese characters are not showing up. Instead of question marks it shows a blank field. Anyone know how to handle this? | 1 |
5,521,076 | 04/02/2011 04:09:30 | 650,693 | 03/09/2011 00:10:49 | 1 | 1 | Best way to catch up on HTML/CSS after 9 years not developing | I used to be a great frontend developer, back when HomeSite was the IDE of choice and SHTML files were considered ahead of the curve. When tables were used for everything, and people weren't really concerned with functionality on Macs. I want to bring my HTML/CSS skills to date. What do you think is the best way to do so? | html | css | null | null | null | 04/02/2011 04:28:55 | not constructive | Best way to catch up on HTML/CSS after 9 years not developing
===
I used to be a great frontend developer, back when HomeSite was the IDE of choice and SHTML files were considered ahead of the curve. When tables were used for everything, and people weren't really concerned with functionality on Macs. I want to bring my HTML/CSS skills to date. What do you think is the best way to do so? | 4 |
10,439,331 | 05/03/2012 21:06:19 | 1,191,635 | 02/06/2012 05:57:46 | 327 | 5 | why does changing font size with <input type=submit button error out? | I started studying jQuery yesterday by doing [tutorials][1]
well I'm on tutorial [28][2]/200 now. This seems like an error so I made a jsFiddles for this.
Sample code: [jsFiddles][3]
**problem:** why do input buttons not share similar functionality to anchors i.e shrink or increase paragraph size? I mean I probably would never do this but why does it occur? Is it even an error?
[1]: http://www.youtube.com/playlist?list=PL6B08BAA57B5C7810&feature=plcp
[2]: http://www.youtube.com/watch?v=jPF0h6AryfY&feature=autoplay&list=PL6B08BAA57B5C7810&playnext=1
[3]: http://jsfiddle.net/zLvAr/10/ | jquery | null | null | null | null | 05/04/2012 16:05:57 | not a real question | why does changing font size with <input type=submit button error out?
===
I started studying jQuery yesterday by doing [tutorials][1]
well I'm on tutorial [28][2]/200 now. This seems like an error so I made a jsFiddles for this.
Sample code: [jsFiddles][3]
**problem:** why do input buttons not share similar functionality to anchors i.e shrink or increase paragraph size? I mean I probably would never do this but why does it occur? Is it even an error?
[1]: http://www.youtube.com/playlist?list=PL6B08BAA57B5C7810&feature=plcp
[2]: http://www.youtube.com/watch?v=jPF0h6AryfY&feature=autoplay&list=PL6B08BAA57B5C7810&playnext=1
[3]: http://jsfiddle.net/zLvAr/10/ | 1 |
9,942,725 | 03/30/2012 12:15:13 | 350,294 | 05/25/2010 05:26:42 | 4,888 | 393 | Best way to avoid javascript's executing | I'm using PHP and Zend Framework in my application. User can enter some HTML and admin can see this HTML. I want to avoid XSS injection. All HTML should me shown as is except any javascript. I tried to remove `script` tags but it is unsafe. User can add javascript to `onclick` or other events.
Thanks. | php | javascript | security | null | null | null | open | Best way to avoid javascript's executing
===
I'm using PHP and Zend Framework in my application. User can enter some HTML and admin can see this HTML. I want to avoid XSS injection. All HTML should me shown as is except any javascript. I tried to remove `script` tags but it is unsafe. User can add javascript to `onclick` or other events.
Thanks. | 0 |
7,384,476 | 09/12/2011 07:16:09 | 933,833 | 09/08/2011 00:35:22 | 21 | 1 | Youtube clones video player | May I know if there are any free youtube clones-like video player that have the following features: <br>
[1] Look & Feel like youtube <br>
[2] Can perform search on the video <br>
[3] Allow tagging of useful words <br>
[4] Can category them like a folder structure <br>
[5] Provide information about the video uploader (or the author of the video)
[6] Support multi-cast
The player can be a SharePoint web-part, a mini system, a JQuery Plugins and etc - All are welcome. | jquery-ui | video | youtube | video-streaming | webparts | 09/14/2011 11:24:07 | off topic | Youtube clones video player
===
May I know if there are any free youtube clones-like video player that have the following features: <br>
[1] Look & Feel like youtube <br>
[2] Can perform search on the video <br>
[3] Allow tagging of useful words <br>
[4] Can category them like a folder structure <br>
[5] Provide information about the video uploader (or the author of the video)
[6] Support multi-cast
The player can be a SharePoint web-part, a mini system, a JQuery Plugins and etc - All are welcome. | 2 |
1,628,676 | 10/27/2009 03:50:49 | 186,202 | 10/08/2009 08:01:14 | 232 | 23 | How to check if a FileField as been modified in the Admin of Django ? | I am trying to do a model with a file that shouldn't be modified. But the comment of the file can be.
Here is what I did, but we cannot modify the comment.
How can I test if a new file (using the browse button) as been sent and in this case, only, create a new instance of the model ?
**admin.py**
class CGUAdminForm(forms.ModelForm):
class Meta:
model = ConditionsUtilisation
def clean_file(self):
if self.instance and self.instance.pk is not None:
raise forms.ValidationError(_(u'You cannot modify the file. Thank you to create a new instance.'))
# do something that validates your data
return self.cleaned_data["file"]
class CGUAdmin(admin.ModelAdmin):
form = CGUAdminForm
admin.site.register(ConditionsUtilisation, CGUAdmin)
**models.py**
class ConditionsUtilisation(models.Model):
date = models.DateField(_(u'Date d\'upload'), editable=False, auto_now_add=True)
comment = models.TextField(_(u'Commentaire de modification'))
file = models.FileField(_(u'CGU'), upload_to='subscription/cgu/', storage=CGUFileSystemStorage()) | python | django-file-upload | django-admin | django | django-forms | null | open | How to check if a FileField as been modified in the Admin of Django ?
===
I am trying to do a model with a file that shouldn't be modified. But the comment of the file can be.
Here is what I did, but we cannot modify the comment.
How can I test if a new file (using the browse button) as been sent and in this case, only, create a new instance of the model ?
**admin.py**
class CGUAdminForm(forms.ModelForm):
class Meta:
model = ConditionsUtilisation
def clean_file(self):
if self.instance and self.instance.pk is not None:
raise forms.ValidationError(_(u'You cannot modify the file. Thank you to create a new instance.'))
# do something that validates your data
return self.cleaned_data["file"]
class CGUAdmin(admin.ModelAdmin):
form = CGUAdminForm
admin.site.register(ConditionsUtilisation, CGUAdmin)
**models.py**
class ConditionsUtilisation(models.Model):
date = models.DateField(_(u'Date d\'upload'), editable=False, auto_now_add=True)
comment = models.TextField(_(u'Commentaire de modification'))
file = models.FileField(_(u'CGU'), upload_to='subscription/cgu/', storage=CGUFileSystemStorage()) | 0 |
6,969,985 | 08/07/2011 00:49:31 | 681,904 | 03/29/2011 10:59:45 | 26 | 0 | Handling multiple ssh session in python? | i'm wondering how i can handle multiple ssh session then i can give command on each session,,, like this
`Enter Command:S1 -c ./x.py`
`Command sent successfully`
`Enter Command:S2 -c ./x.py`
`Command sent successfully`
...etc
give me the subjects thats help me ... also if you have simple code for Handling multiple ssh session put it please
-- at the end i think i can do that via multithreading ..
Good Bye ^_^ | python | session | ssh | handling | null | 08/07/2011 08:52:09 | not a real question | Handling multiple ssh session in python?
===
i'm wondering how i can handle multiple ssh session then i can give command on each session,,, like this
`Enter Command:S1 -c ./x.py`
`Command sent successfully`
`Enter Command:S2 -c ./x.py`
`Command sent successfully`
...etc
give me the subjects thats help me ... also if you have simple code for Handling multiple ssh session put it please
-- at the end i think i can do that via multithreading ..
Good Bye ^_^ | 1 |
11,310,849 | 07/03/2012 12:23:42 | 1,498,735 | 07/03/2012 12:13:54 | 1 | 0 | Slow network performance | We are using class-C IP addresses in our network setup.
The first scope of IP addresses are in 192.168.0.xxx. Since all the IPs are exhausted in this scope we created another scope of Class-C IP in the same Domain Controller. This scope has IP addresses in 192.168.3.xxx.
The issue we are facing is, whenever a client with IP address in the 192.168.0.xxx scope, tries to copy a file to a client with IP address in scope 192.168.3.xxx the copy is dead slow.
For eg., transfer rate of a 1 GB file between clients in same IP scope will be around 35 MBPS or more whereas copy of the same file between clients in different IP scope will be around 5MBPS or sometimes even lesser (sometimes drops to 0).
What is happening here? Is there a solution to make copy faster. The type of work we do requires huge data transfer between clients and changing the IP scope to a class A scope may be a out of question since we are a little short on resources to do the transition.
Am I missing some setting or something on the Domain controller or the Router which is causing the copy to go so slow.
This issue is not fixed to any specific kind of OS, it happens across all types of OS we have - Windows or Mac. | windows | networking | domain | server | null | 07/03/2012 12:54:20 | off topic | Slow network performance
===
We are using class-C IP addresses in our network setup.
The first scope of IP addresses are in 192.168.0.xxx. Since all the IPs are exhausted in this scope we created another scope of Class-C IP in the same Domain Controller. This scope has IP addresses in 192.168.3.xxx.
The issue we are facing is, whenever a client with IP address in the 192.168.0.xxx scope, tries to copy a file to a client with IP address in scope 192.168.3.xxx the copy is dead slow.
For eg., transfer rate of a 1 GB file between clients in same IP scope will be around 35 MBPS or more whereas copy of the same file between clients in different IP scope will be around 5MBPS or sometimes even lesser (sometimes drops to 0).
What is happening here? Is there a solution to make copy faster. The type of work we do requires huge data transfer between clients and changing the IP scope to a class A scope may be a out of question since we are a little short on resources to do the transition.
Am I missing some setting or something on the Domain controller or the Router which is causing the copy to go so slow.
This issue is not fixed to any specific kind of OS, it happens across all types of OS we have - Windows or Mac. | 2 |
7,930,838 | 10/28/2011 14:47:05 | 1,018,518 | 10/28/2011 14:27:37 | 1 | 0 | Sql Server database filled the hard drive and freeing up space isn't possible, need help | I have a database in SQL Server 2008 on a 1Tb hard drive and it filled the drive, there is only 4Kb free. The MDF file is 323Gb and the LDF is 653Gb. The hard disk this DB is on has no other files on it other than the MDF and LDF so it's impossible to free up any space on the drive. The main hard disk is smaller so nothing can be moved to it. This server is overseas at a customer site and it's not possible at the moment to add more disk space to the server. It's also not possible to delete any records because the DB is in a failed mode and it doesn't respond to most commands. The Db is currently in full recovery mode which is why the LDF file is so large. This DB really doesn't need to be in full recovery so going forward we plan on switching it to simple mode which will save us a lot of space. I also don't care about losing the LDF file, but I need all of the data. I've spent a lot of time looking for a way out of this problem but everything I've found first involves either freeing up disk space or adding more disk space, neither of which is an option at this time. I'm stuck and any help would be greatly appreciated.
I get the following log when trying to switch the DB to online mode.
Msg 2, Level 20, State 0, Line 0
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Thanks. | sql | server | offline | space | disk | 10/28/2011 15:55:11 | off topic | Sql Server database filled the hard drive and freeing up space isn't possible, need help
===
I have a database in SQL Server 2008 on a 1Tb hard drive and it filled the drive, there is only 4Kb free. The MDF file is 323Gb and the LDF is 653Gb. The hard disk this DB is on has no other files on it other than the MDF and LDF so it's impossible to free up any space on the drive. The main hard disk is smaller so nothing can be moved to it. This server is overseas at a customer site and it's not possible at the moment to add more disk space to the server. It's also not possible to delete any records because the DB is in a failed mode and it doesn't respond to most commands. The Db is currently in full recovery mode which is why the LDF file is so large. This DB really doesn't need to be in full recovery so going forward we plan on switching it to simple mode which will save us a lot of space. I also don't care about losing the LDF file, but I need all of the data. I've spent a lot of time looking for a way out of this problem but everything I've found first involves either freeing up disk space or adding more disk space, neither of which is an option at this time. I'm stuck and any help would be greatly appreciated.
I get the following log when trying to switch the DB to online mode.
Msg 2, Level 20, State 0, Line 0
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Thanks. | 2 |
7,638,524 | 10/03/2011 17:29:57 | 880,709 | 08/05/2011 14:00:46 | 6 | 1 | how i need develop large gwt application | So... after some trying to write some applications before my course project, i have some questions about this technology.
1 If i need good design on my web site better to use UiBinder write?
not such like this
MenuBar subMenu = new MenuBar(true);
subMenu.addItem("<code>Code</code>", true, this);
subMenu.addItem("<strike>Strikethrough</strike>", true, this);
subMenu.addItem("<u>Underlined</u>", true, this);
I want easily change design of my site
2 I need client server side application with connect to database
can i use hibernate, how?
3 How to implement mvp pattern, i use Eclipse
4 How better works with multipages their views, models, presenters and historytokens
if (event.getValue().equals("page1")){
RootPanel.get().clear();
RootPanel.get().add(Page1.getInstance());
}
5 How i will validate users data, show him others pages from one entrypoint?
Or from each page model, when i implement mvp
Sorry for my english and bad questions | java | web-applications | gwt | null | null | 10/03/2011 21:54:53 | not a real question | how i need develop large gwt application
===
So... after some trying to write some applications before my course project, i have some questions about this technology.
1 If i need good design on my web site better to use UiBinder write?
not such like this
MenuBar subMenu = new MenuBar(true);
subMenu.addItem("<code>Code</code>", true, this);
subMenu.addItem("<strike>Strikethrough</strike>", true, this);
subMenu.addItem("<u>Underlined</u>", true, this);
I want easily change design of my site
2 I need client server side application with connect to database
can i use hibernate, how?
3 How to implement mvp pattern, i use Eclipse
4 How better works with multipages their views, models, presenters and historytokens
if (event.getValue().equals("page1")){
RootPanel.get().clear();
RootPanel.get().add(Page1.getInstance());
}
5 How i will validate users data, show him others pages from one entrypoint?
Or from each page model, when i implement mvp
Sorry for my english and bad questions | 1 |
7,112,277 | 08/18/2011 18:28:05 | 413,570 | 08/07/2010 00:08:37 | 195 | 5 | What's Rubinius? | how can I get all available urls of my application, I don't mean rake routes I mean some code that returns literally all the urls (or paths)
for example
let's say it's a blog application, with this code I should be able to see:
/
/about
/contact
/posts
/posts/2011-08-18
/posts/2011-08-18/blah-blah
/posts/2011-08-15/lalala
/posts/2011-08-18/foo
/posts/2011-08-18/bar
/posts/2011-08-18/baz
Well, this is the point.. do you have any idea on how to do it?
A appreciate any reply!
Thanks in advance. | ruby-on-rails | ruby | null | null | null | 08/19/2011 07:53:55 | not a real question | What's Rubinius?
===
how can I get all available urls of my application, I don't mean rake routes I mean some code that returns literally all the urls (or paths)
for example
let's say it's a blog application, with this code I should be able to see:
/
/about
/contact
/posts
/posts/2011-08-18
/posts/2011-08-18/blah-blah
/posts/2011-08-15/lalala
/posts/2011-08-18/foo
/posts/2011-08-18/bar
/posts/2011-08-18/baz
Well, this is the point.. do you have any idea on how to do it?
A appreciate any reply!
Thanks in advance. | 1 |
4,086,922 | 11/03/2010 12:14:11 | 292,174 | 03/12/2010 07:57:15 | 37 | 2 | SQL error when generated SQL command with Doctrine PHP | I use Doctrine on my PHP web application with a MySQL database. I have a little problem with my request :
$q = Doctrine_Query::create()
->select('event.EventDate, event.EventId, player.PlayerId, player.FirstName,
player.LastName, player.Login, player.Email,
event_period.EventPeriodId, event.Type, event.Description,
period.StartHour, period.EndHour, player_event_period.Participate,
event_period.CourtNumber')
->from('Event event, Player player, Period period')
->leftJoin('player.PlayerEventPeriod player_event_period')
->leftJoin('player_event_period.EventPeriod event_period')
->where('period.PeriodId = event_period.PeriodId')
->andWhere('event.EventId = event_period.EventId');
if I show what is the generated MySQL command, I can see
SELECT e.eventid AS e__eventid, e.eventdate AS e__eventdate, e.type AS e__type, e.description AS e__description, p.playerid AS p__playerid, p.firstname AS p__firstname, p.lastname AS p__lastname, p.login AS p__login, p.email AS p__email, p2.periodid AS p2__periodid, p2.starthour AS p2__starthour, p2.endhour AS p2__endhour, p3.playereventperiodid AS p3__playereventperiodid, p3.participate AS p3__participate, e2.eventperiodid AS e2__eventperiodid, e2.courtnumber AS e2__courtnumber
FROM event e, player p, period p2
LEFT JOIN player_event_period p3 ON p.playerid = p3.playerid
LEFT JOIN event_period e2 ON p3.eventperiodid = e2.eventperiodid
WHERE (
p2.periodid = e2.periodid
AND e.eventid = e2.eventid
);
I get error :
#1054 - Unknown column 'p.playerid' in 'on clause'
What's wrong with my request ?
Thank you in advance | php | mysql | doctrine | null | null | null | open | SQL error when generated SQL command with Doctrine PHP
===
I use Doctrine on my PHP web application with a MySQL database. I have a little problem with my request :
$q = Doctrine_Query::create()
->select('event.EventDate, event.EventId, player.PlayerId, player.FirstName,
player.LastName, player.Login, player.Email,
event_period.EventPeriodId, event.Type, event.Description,
period.StartHour, period.EndHour, player_event_period.Participate,
event_period.CourtNumber')
->from('Event event, Player player, Period period')
->leftJoin('player.PlayerEventPeriod player_event_period')
->leftJoin('player_event_period.EventPeriod event_period')
->where('period.PeriodId = event_period.PeriodId')
->andWhere('event.EventId = event_period.EventId');
if I show what is the generated MySQL command, I can see
SELECT e.eventid AS e__eventid, e.eventdate AS e__eventdate, e.type AS e__type, e.description AS e__description, p.playerid AS p__playerid, p.firstname AS p__firstname, p.lastname AS p__lastname, p.login AS p__login, p.email AS p__email, p2.periodid AS p2__periodid, p2.starthour AS p2__starthour, p2.endhour AS p2__endhour, p3.playereventperiodid AS p3__playereventperiodid, p3.participate AS p3__participate, e2.eventperiodid AS e2__eventperiodid, e2.courtnumber AS e2__courtnumber
FROM event e, player p, period p2
LEFT JOIN player_event_period p3 ON p.playerid = p3.playerid
LEFT JOIN event_period e2 ON p3.eventperiodid = e2.eventperiodid
WHERE (
p2.periodid = e2.periodid
AND e.eventid = e2.eventid
);
I get error :
#1054 - Unknown column 'p.playerid' in 'on clause'
What's wrong with my request ?
Thank you in advance | 0 |
6,549,811 | 07/01/2011 15:12:24 | 478,489 | 10/17/2010 11:41:56 | 10 | 0 | Convert Image to Text in Ubuntu | I need a software or application which can able to convert image into text for ubuntu 11.04 | ubuntu | ocr | ubuntu-11.04 | null | null | 07/01/2011 15:29:52 | off topic | Convert Image to Text in Ubuntu
===
I need a software or application which can able to convert image into text for ubuntu 11.04 | 2 |
2,972,221 | 06/04/2010 07:28:18 | 292,084 | 03/12/2010 03:42:06 | 59 | 0 | Give me a JSF 2.0 tutorial | I am a novice of web developping (And my English is poor,too =_=). Now, I want to study JSF 2.0, hoping to find a step by step tutorial, who can help me? Thanks! | java | jsf | null | null | null | 06/17/2012 23:44:02 | not constructive | Give me a JSF 2.0 tutorial
===
I am a novice of web developping (And my English is poor,too =_=). Now, I want to study JSF 2.0, hoping to find a step by step tutorial, who can help me? Thanks! | 4 |
3,134,530 | 06/28/2010 17:12:29 | 378,251 | 06/28/2010 17:07:44 | 1 | 0 | Any reliable way to stop Internet Explorer (v7, 8) to stop caching PDF files? | An application I work on generates PDF documents and renders them in a browser window. Some of the data in the documents can be considered sensitive so we're exploring how to prevent the browser from caching the document contents. We're using the following Java code which prevents caching in Firefox but doesn't work in IE 8:
response.setHeader("Expires", "0");
response.setHeader("Pragma", "private");
response.setHeader("Cache-Control", "max-age=0, no-store");
response.setHeader("Content-disposition", "inline; filename= \"" + filename + "\"");
response.setContentLength(fbytes.length);
I'm wondering if anyone has had any luck manipulating headers to prevent IE from caching? Thanks in advance. | pdf | caching | internet-explorer | null | null | null | open | Any reliable way to stop Internet Explorer (v7, 8) to stop caching PDF files?
===
An application I work on generates PDF documents and renders them in a browser window. Some of the data in the documents can be considered sensitive so we're exploring how to prevent the browser from caching the document contents. We're using the following Java code which prevents caching in Firefox but doesn't work in IE 8:
response.setHeader("Expires", "0");
response.setHeader("Pragma", "private");
response.setHeader("Cache-Control", "max-age=0, no-store");
response.setHeader("Content-disposition", "inline; filename= \"" + filename + "\"");
response.setContentLength(fbytes.length);
I'm wondering if anyone has had any luck manipulating headers to prevent IE from caching? Thanks in advance. | 0 |
7,065,580 | 08/15/2011 13:38:18 | 698,668 | 04/08/2011 12:51:35 | 125 | 1 | having problem to get accurate post image | having trouble with popular post...
<?php /* Start popular Post */ ?>
<li>
<h3>Popular Posts</h3>
<ul class="bullets">
<?php
$popular_posts = $wpdb->get_results("SELECT id,post_title FROM {$wpdb->prefix}posts ORDER BY comment_count DESC LIMIT 0,3");
foreach($popular_posts as $pop) {
if ( has_post_thumbnail($pop->ID) ) {
?>
<li>
<?php the_post_thumbnail(array(100,100)); ?>
</li>
<?php
}
}
?>
</ul>
</li>
<?php /* End popular Post */ ?>
i am trying to grab 3 popular posts but when i am using the above code they are just showing me image of my recent post ...
help me to figure out this | php | wordpress | null | null | null | null | open | having problem to get accurate post image
===
having trouble with popular post...
<?php /* Start popular Post */ ?>
<li>
<h3>Popular Posts</h3>
<ul class="bullets">
<?php
$popular_posts = $wpdb->get_results("SELECT id,post_title FROM {$wpdb->prefix}posts ORDER BY comment_count DESC LIMIT 0,3");
foreach($popular_posts as $pop) {
if ( has_post_thumbnail($pop->ID) ) {
?>
<li>
<?php the_post_thumbnail(array(100,100)); ?>
</li>
<?php
}
}
?>
</ul>
</li>
<?php /* End popular Post */ ?>
i am trying to grab 3 popular posts but when i am using the above code they are just showing me image of my recent post ...
help me to figure out this | 0 |
11,604,004 | 07/22/2012 21:09:22 | 1,510,359 | 07/08/2012 17:41:38 | 38 | 1 | Kind of stuck about where to go from here with a multiple choice quiz JAVA | Basically I'm trying to build a quiz for JAVA homework and I need it to check for two correct answers in a multiple choice question. Mostly I just need help with getting user input and getting it to turn out the results. Here's the class code:
package pj811pkg;
import java.util.ArrayList;
public class MultiChoiceQuestion extends Question {
private ArrayList<String> choices;
public MultiChoiceQuestion(String questionText)
{
super(questionText);
choices = new ArrayList<String>();
}
public void addChoice(String choice, boolean correct)
{
choices.add(choice);
if (correct)
{
// Convert choices.size() to string
String choiceString = "" + choices.size();
setAnswer(choiceString);
}
}
@Override
public void display()
{
// Display the question text
super.display();
// Display the answer choices
for (int i = 0; i < choices.size(); i++)
{
int choiceNumber = i + 1;
System.out.println(choiceNumber + ": " + choices.get(i));
}
}
public boolean correctAnswer()
{
return choiceString;
}
}
And the code out of my main class:
MultiChoiceQuestion multiChoice = new MultiChoiceQuestion("Select two"
+ "improvements introduced with Java version 7?");
multiChoice.addChoice("Improved array handling", false);
multiChoice.addChoice("Improved exception handling", true);
multiChoice.addChoice("Improved file system API", true);
multiChoice.addChoice("Improved loop options", false);
multiChoice.display();
System.out.print("Your First Answer: ");
int multiAnswerOne = in.nextInt();
System.out.print("Your Second Answer: ");
int multiAnswerTwo = in.nextInt();
System.out.println();
Thanks... | java | quiz | multiple-choice | null | null | 07/23/2012 12:29:55 | not a real question | Kind of stuck about where to go from here with a multiple choice quiz JAVA
===
Basically I'm trying to build a quiz for JAVA homework and I need it to check for two correct answers in a multiple choice question. Mostly I just need help with getting user input and getting it to turn out the results. Here's the class code:
package pj811pkg;
import java.util.ArrayList;
public class MultiChoiceQuestion extends Question {
private ArrayList<String> choices;
public MultiChoiceQuestion(String questionText)
{
super(questionText);
choices = new ArrayList<String>();
}
public void addChoice(String choice, boolean correct)
{
choices.add(choice);
if (correct)
{
// Convert choices.size() to string
String choiceString = "" + choices.size();
setAnswer(choiceString);
}
}
@Override
public void display()
{
// Display the question text
super.display();
// Display the answer choices
for (int i = 0; i < choices.size(); i++)
{
int choiceNumber = i + 1;
System.out.println(choiceNumber + ": " + choices.get(i));
}
}
public boolean correctAnswer()
{
return choiceString;
}
}
And the code out of my main class:
MultiChoiceQuestion multiChoice = new MultiChoiceQuestion("Select two"
+ "improvements introduced with Java version 7?");
multiChoice.addChoice("Improved array handling", false);
multiChoice.addChoice("Improved exception handling", true);
multiChoice.addChoice("Improved file system API", true);
multiChoice.addChoice("Improved loop options", false);
multiChoice.display();
System.out.print("Your First Answer: ");
int multiAnswerOne = in.nextInt();
System.out.print("Your Second Answer: ");
int multiAnswerTwo = in.nextInt();
System.out.println();
Thanks... | 1 |
7,407,563 | 09/13/2011 19:45:41 | 71,910 | 02/27/2009 15:22:22 | 933 | 43 | Make this C program crash | could you show me more ways how I could make this C program crash.
Rules are simple:
1. You could not modify declaration and printf
2. You could add whatever you like in crash lines
#include <stdio.h>
int main()
{
// declaration lines
char name[] = "Jhon";
int age = 10;
int height = 190;
int* p = &height;
// crash lines (my examples)
//name[strlen(name) + 1] = ' ';
//p += 0xEFF;
// printf lines
printf("Hello, my name is %s.\n", name);
printf("My age is %d.\n", age);
printf("I am %d cm tall.\n", *p);
return 0;
}
Thanks in advance!
| c | null | null | null | null | 09/13/2011 19:51:32 | not a real question | Make this C program crash
===
could you show me more ways how I could make this C program crash.
Rules are simple:
1. You could not modify declaration and printf
2. You could add whatever you like in crash lines
#include <stdio.h>
int main()
{
// declaration lines
char name[] = "Jhon";
int age = 10;
int height = 190;
int* p = &height;
// crash lines (my examples)
//name[strlen(name) + 1] = ' ';
//p += 0xEFF;
// printf lines
printf("Hello, my name is %s.\n", name);
printf("My age is %d.\n", age);
printf("I am %d cm tall.\n", *p);
return 0;
}
Thanks in advance!
| 1 |
1,295,520 | 08/18/2009 17:59:46 | 66,851 | 02/16/2009 08:21:34 | 1,142 | 47 | Good resources for learning PL/pgSQL? | I've been looking around the net trying to find good resources for learning PostgreSQL's procedural programming language, PL/pgSQL.
So far the only thing I've managed to dig up is the [tutorial in the PostgreSQL documentation](http://www.postgresql.org/docs/8.4/interactive/plpgsql.html). While that is good, I've been looking for something more in-depth. Can you recommend anything? | postgresql | plpgsql | sql | null | null | 12/02/2011 22:02:37 | not constructive | Good resources for learning PL/pgSQL?
===
I've been looking around the net trying to find good resources for learning PostgreSQL's procedural programming language, PL/pgSQL.
So far the only thing I've managed to dig up is the [tutorial in the PostgreSQL documentation](http://www.postgresql.org/docs/8.4/interactive/plpgsql.html). While that is good, I've been looking for something more in-depth. Can you recommend anything? | 4 |
6,300,528 | 06/09/2011 23:44:05 | 767,942 | 05/24/2011 14:43:50 | 91 | 8 | Flex restrict TextInput to accept only decimal numbers ? | - Is there some easy way to restrict TextInput to accept decimal numbers in range -99.999999 to +99.999999 ? | flex | textinput | null | null | null | null | open | Flex restrict TextInput to accept only decimal numbers ?
===
- Is there some easy way to restrict TextInput to accept decimal numbers in range -99.999999 to +99.999999 ? | 0 |
4,602,960 | 01/05/2011 10:21:11 | 509,779 | 11/16/2010 16:39:00 | 26 | 1 | Reset jquery after click | Can someone help me.
http://beibl.users32.interdns.co.uk/second.php
Their is the website i am working on if you click the computer screen link in the middle nav, it will alert a popup and load content from a div using prettyphoto which is great exactly what i want.
Heres the code.
$("ul.second-menu a.first[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
$("ul.second-menu a.first").click(function() {
var text = $(".inner-content").html();
var h2 = $("h2.sec-main").html();
$(".inner-content-op").append(text);
$(".header-ow h2").append(h2);
return false;
});
My issue is if you close the lightbox and re-open it, it will load the content back in again so its their twice ho do i reset the jquery back to its intial state after the lightbox is closed.
Any help please. | jquery | reset | false | null | null | null | open | Reset jquery after click
===
Can someone help me.
http://beibl.users32.interdns.co.uk/second.php
Their is the website i am working on if you click the computer screen link in the middle nav, it will alert a popup and load content from a div using prettyphoto which is great exactly what i want.
Heres the code.
$("ul.second-menu a.first[rel^='prettyPhoto']").prettyPhoto({theme:'facebook'});
$("ul.second-menu a.first").click(function() {
var text = $(".inner-content").html();
var h2 = $("h2.sec-main").html();
$(".inner-content-op").append(text);
$(".header-ow h2").append(h2);
return false;
});
My issue is if you close the lightbox and re-open it, it will load the content back in again so its their twice ho do i reset the jquery back to its intial state after the lightbox is closed.
Any help please. | 0 |
8,602,005 | 12/22/2011 09:42:55 | 664,328 | 03/17/2011 12:39:24 | 190 | 23 | Animating view does not update Gestures | I followed [this][1] answer to animate a UIView that has a UITextView on it. Visually everything is fine, but I have a gesture recognizer on the view. After moving the view, the gestures are only recognized in the old location. Am I only animating the image layer and not the view itself? Can I use paths to animate the actual view location? I've done this fine using simple animations, but I want to use animation groups and paths.
[1]: http://stackoverflow.com/questions/1142727/how-can-i-animate-the-movement-of-a-view-or-image-along-a-curved-path/1143095#1143095 | ios | core-animation | core-graphics | null | null | null | open | Animating view does not update Gestures
===
I followed [this][1] answer to animate a UIView that has a UITextView on it. Visually everything is fine, but I have a gesture recognizer on the view. After moving the view, the gestures are only recognized in the old location. Am I only animating the image layer and not the view itself? Can I use paths to animate the actual view location? I've done this fine using simple animations, but I want to use animation groups and paths.
[1]: http://stackoverflow.com/questions/1142727/how-can-i-animate-the-movement-of-a-view-or-image-along-a-curved-path/1143095#1143095 | 0 |
11,578,949 | 07/20/2012 12:00:46 | 656,552 | 03/12/2011 12:07:09 | 341 | 10 | Matrix Inversion Cholesky Factorization -> results not exact | I am calculating the inverse of a square matrix using different libraries via Cholesky factorization. However my results are not as I was expecting. I am not an expert in maths, but I was expecting to get a closer result.
I am using MLK, magma and CULA libraries to calculate the inverse of a matrix in CPU and GPUs.
After doing the calculation with different libraries I've noticed the results always differ in one element. Say I want to calculate the inverse of A= [0.237306,0.000458;0.000458,0.238497]:
A[0] = 0.237306
A[1] = 0.000458
A[2] = 0.000458
A[3] = 0.238497
The result I obtain is:
inv(A)[0] = 4.213983
inv(A)[1] = -0.008092
inv(A)[2] = 0.000458
inv(A)[3] = 4.192946
However, the correct result should be
4.2139841 -0.0080924
-0.0080924 4.1929404
As you can see, inv(A)[3] is different, although the rest of them are fine. Is that how Cholesky Inversion should work? Is this a correct/approximate result or am I doing something wrong here?
| math | matrix | statistics | linear-algebra | null | 07/22/2012 03:11:24 | off topic | Matrix Inversion Cholesky Factorization -> results not exact
===
I am calculating the inverse of a square matrix using different libraries via Cholesky factorization. However my results are not as I was expecting. I am not an expert in maths, but I was expecting to get a closer result.
I am using MLK, magma and CULA libraries to calculate the inverse of a matrix in CPU and GPUs.
After doing the calculation with different libraries I've noticed the results always differ in one element. Say I want to calculate the inverse of A= [0.237306,0.000458;0.000458,0.238497]:
A[0] = 0.237306
A[1] = 0.000458
A[2] = 0.000458
A[3] = 0.238497
The result I obtain is:
inv(A)[0] = 4.213983
inv(A)[1] = -0.008092
inv(A)[2] = 0.000458
inv(A)[3] = 4.192946
However, the correct result should be
4.2139841 -0.0080924
-0.0080924 4.1929404
As you can see, inv(A)[3] is different, although the rest of them are fine. Is that how Cholesky Inversion should work? Is this a correct/approximate result or am I doing something wrong here?
| 2 |
8,839,430 | 01/12/2012 17:25:57 | 333,842 | 05/05/2010 20:19:46 | 354 | 9 | Persisting a list of an interface type with JPA2 | I suspect there's no perfect solution to this problem so least worst solution are more than welcome.
I'm implementing a dashboard using PrimeFaces and I would like to persist the model backing it (using JPA2). I've written my own implementation of DashboardModel and DashboardColumn with the necessary annotations and other fields I need. The model is shown below:
@Entity
public class DashboardSettings implements DashboardModel, Serializable{
@Id
private long id;
@OrderColumn( name="COLUMN_ORDER" )
private List<DashboardColumn> columns;
...a few other fields...
public DashboardSettings() {}
@Override
public void addColumn(DashboardColumn column) {
this.columns.add(column);
}
@Override
public List<DashboardColumn> getColumns() {
return columns;
}
...snip...
}
The problem is the columns field. I would like this field to be persisted into it's own table but because DashboardColumn is an interface (and from a third party so can't be changed) the field currently gets stored in a blob. If I change the type of the columns field to my own implementation (DashboardColumnSettings) which is marked with @Entity the addColumn method would cease to work correctly - it would have to do a type check and cast.
The type check and cast is not the end of the world as this code will only be consumed by our development team but it is a trip hazard. Is there any way to have the columns field persisted while at the same time leaving it as a DashboardColumn? | jpa | null | null | null | null | null | open | Persisting a list of an interface type with JPA2
===
I suspect there's no perfect solution to this problem so least worst solution are more than welcome.
I'm implementing a dashboard using PrimeFaces and I would like to persist the model backing it (using JPA2). I've written my own implementation of DashboardModel and DashboardColumn with the necessary annotations and other fields I need. The model is shown below:
@Entity
public class DashboardSettings implements DashboardModel, Serializable{
@Id
private long id;
@OrderColumn( name="COLUMN_ORDER" )
private List<DashboardColumn> columns;
...a few other fields...
public DashboardSettings() {}
@Override
public void addColumn(DashboardColumn column) {
this.columns.add(column);
}
@Override
public List<DashboardColumn> getColumns() {
return columns;
}
...snip...
}
The problem is the columns field. I would like this field to be persisted into it's own table but because DashboardColumn is an interface (and from a third party so can't be changed) the field currently gets stored in a blob. If I change the type of the columns field to my own implementation (DashboardColumnSettings) which is marked with @Entity the addColumn method would cease to work correctly - it would have to do a type check and cast.
The type check and cast is not the end of the world as this code will only be consumed by our development team but it is a trip hazard. Is there any way to have the columns field persisted while at the same time leaving it as a DashboardColumn? | 0 |
4,986,344 | 02/13/2011 19:30:29 | 570,782 | 01/11/2011 04:36:28 | 1 | 0 | cannot run javascript in php | i have the following javascript code
echo ' <a href = "javascript:void(0)" onclick = "document.getElementById("items").style.display="block";document.getElementById("fade").style.display="block""><span style="padding-left:0px"><input type="submit" name="r" style="width: 138px; font-weight:bold; " value="Add item"/></span></a>
';
i am trying to execute the script from within a php script. when i click on the button to execute the java part of it, nothing happens. i then try it this way
echo ' <a href = "javascript:void(0)" onclick = "document.getElementById('items').style.display='block';document.getElementById('fade').style.display='block'"><span style="padding-left:0px"><input type="submit" name="r" style="width: 138px; font-weight:bold; " value="Add item"/></span></a>
';
and got this parse error: parse error, expecting `'," or `';". Please help where am going wrong | php | javascript | php5 | null | null | null | open | cannot run javascript in php
===
i have the following javascript code
echo ' <a href = "javascript:void(0)" onclick = "document.getElementById("items").style.display="block";document.getElementById("fade").style.display="block""><span style="padding-left:0px"><input type="submit" name="r" style="width: 138px; font-weight:bold; " value="Add item"/></span></a>
';
i am trying to execute the script from within a php script. when i click on the button to execute the java part of it, nothing happens. i then try it this way
echo ' <a href = "javascript:void(0)" onclick = "document.getElementById('items').style.display='block';document.getElementById('fade').style.display='block'"><span style="padding-left:0px"><input type="submit" name="r" style="width: 138px; font-weight:bold; " value="Add item"/></span></a>
';
and got this parse error: parse error, expecting `'," or `';". Please help where am going wrong | 0 |
8,273,343 | 11/25/2011 19:13:52 | 231,002 | 12/14/2009 04:42:27 | 3,597 | 86 | What aspects of Java development do IDE's hide but developers should know? | I am primarily a C# developer, and I am writing a project in Java to try and learn the language (and so I can point to concrete examples of code I have written in Java, to help employability).
I was wondering what aspects of the Java development workflow that I should know about that are traditionally hidden (or taken care of) by the IDE.
For example, I know I need to figure out how libraries are referenced in Java. In C# libraries are referenced in the standard `.csproj` file, but at first glance it seems like each IDE has their own method of referencing projects, and I should probably learn how Java finds .jar packages during execution.
Another thing I know I need to figure out is exactly how Java determines the program entry point (since swing components seem to have a `public static main` function as well).
What are other things that I should know about the Java "compilation" and execution processes that the IDE seems to hide? | java | null | null | null | null | 11/25/2011 19:30:42 | not constructive | What aspects of Java development do IDE's hide but developers should know?
===
I am primarily a C# developer, and I am writing a project in Java to try and learn the language (and so I can point to concrete examples of code I have written in Java, to help employability).
I was wondering what aspects of the Java development workflow that I should know about that are traditionally hidden (or taken care of) by the IDE.
For example, I know I need to figure out how libraries are referenced in Java. In C# libraries are referenced in the standard `.csproj` file, but at first glance it seems like each IDE has their own method of referencing projects, and I should probably learn how Java finds .jar packages during execution.
Another thing I know I need to figure out is exactly how Java determines the program entry point (since swing components seem to have a `public static main` function as well).
What are other things that I should know about the Java "compilation" and execution processes that the IDE seems to hide? | 4 |
5,208,257 | 03/06/2011 02:31:44 | 554,266 | 12/26/2010 11:56:26 | 1 | 0 | ecover generation program using php | Not sure how these guys do it. The outcome is a a 3D Ecover, something like this.
http://i.stack.imgur.com/E44Zr.jpg
Normally people generate these is by using photoshop, you can open up a image and run a phptoshop action script, it'll generate a cover like this.
So there are website out there which does this job from the server side, user just upload an image and server sends an ecover.
I've seen a solution its php, but may its not php because they might be using a php api wrapper.
The question is how they do it? After user submit the image does the server do the same thing like normally we do? open up photoshop, run that image through a action script and save it. At the end send it to the user ?
I just need a clue of how it gets done :D
Thank You.
| php | windows | null | null | null | 03/06/2011 05:34:24 | too localized | ecover generation program using php
===
Not sure how these guys do it. The outcome is a a 3D Ecover, something like this.
http://i.stack.imgur.com/E44Zr.jpg
Normally people generate these is by using photoshop, you can open up a image and run a phptoshop action script, it'll generate a cover like this.
So there are website out there which does this job from the server side, user just upload an image and server sends an ecover.
I've seen a solution its php, but may its not php because they might be using a php api wrapper.
The question is how they do it? After user submit the image does the server do the same thing like normally we do? open up photoshop, run that image through a action script and save it. At the end send it to the user ?
I just need a clue of how it gets done :D
Thank You.
| 3 |
1,058,737 | 06/29/2009 14:46:21 | 64,824 | 02/10/2009 23:02:14 | 8 | 2 | Looking for way to automate testing kshell app | I inherited a shell-script application that is a combination of kshell scripts, awk, and java programs. I have written JUnit tests for the java pieces.
Is there a good way to do something similar for the kshell scripts and awk programs?
I have considered using JUnit and System.exec() to call the scripts, but it seems like there should be a better way. | automated-tests | shell | awk | null | null | null | open | Looking for way to automate testing kshell app
===
I inherited a shell-script application that is a combination of kshell scripts, awk, and java programs. I have written JUnit tests for the java pieces.
Is there a good way to do something similar for the kshell scripts and awk programs?
I have considered using JUnit and System.exec() to call the scripts, but it seems like there should be a better way. | 0 |
11,166,542 | 06/23/2012 03:18:54 | 1,470,938 | 06/21/2012 03:29:53 | 8 | 0 | Java Core or J2EE | I know this question might be little silly but i cant seem to find the right answer. I studied Java in school and the java i know is object oriented and used Eclipse/Netbeans and also Notepad++ for coding. Used java API and i also know java swing library. When i went to interviews they asked me if i had any experience with Java spring, hibernate or J2EE since my resume implied that i am proficient with Java.
Can anyone tell me what is the name of the Java that i know?
Thanks | java | java-ee | core | null | null | 06/23/2012 10:23:59 | off topic | Java Core or J2EE
===
I know this question might be little silly but i cant seem to find the right answer. I studied Java in school and the java i know is object oriented and used Eclipse/Netbeans and also Notepad++ for coding. Used java API and i also know java swing library. When i went to interviews they asked me if i had any experience with Java spring, hibernate or J2EE since my resume implied that i am proficient with Java.
Can anyone tell me what is the name of the Java that i know?
Thanks | 2 |
7,504,192 | 09/21/2011 17:42:51 | 957,540 | 09/21/2011 17:42:51 | 1 | 0 | EC-Council Certified Secure Programmer - Certification | http://www.eccouncil.org/certification/ec-council_certified_secure_programmer.aspx
Any thoughts on this EC-Council Certified Secure Programmer cert? If any body has obtained this certification pls let me know good reference articles, books etc. for preparation.
| security | application | null | null | null | 09/21/2011 20:50:28 | off topic | EC-Council Certified Secure Programmer - Certification
===
http://www.eccouncil.org/certification/ec-council_certified_secure_programmer.aspx
Any thoughts on this EC-Council Certified Secure Programmer cert? If any body has obtained this certification pls let me know good reference articles, books etc. for preparation.
| 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.