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
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,733,964 |
01/19/2011 10:08:42
| 206,637 |
11/09/2009 05:56:57
| 44 | 1 |
Passing a function as a parameter but getting unexpected results
|
I'm using Racket with the "Advanced Student" language setting and I'm having difficulty trying to write a function that takes a function, executes it n times and reports the time elapsed for each run. This is what I've got so far.
(define (many n fn)
(cond
[(= n 0) true]
[else (many (sub1 n) (local ((define k (time fn))) k))]))
I have a function called `fact` that computes the factorial of a number.
(define (fact n)
(cond
[(= 0 n) 1]
[else (* n (fact (- n 1)))]))
If I evaluate `(time (fact (expt 10 4)))`, I get reasonable results for cpu, real and gc time, as well as a large number. All well and good.
However, when I try to evaluate `(many 3 (fact (expt 10 4)))` I get:
cpu time: 0 real time: 0 gc time: 0
cpu time: 0 real time: 0 gc time: 0
cpu time: 0 real time: 0 gc time: 0
true
Why is the function not evaluating `fact` despite being passed as a parameter?
|
scheme
|
racket
|
plt-scheme
| null | null | null |
open
|
Passing a function as a parameter but getting unexpected results
===
I'm using Racket with the "Advanced Student" language setting and I'm having difficulty trying to write a function that takes a function, executes it n times and reports the time elapsed for each run. This is what I've got so far.
(define (many n fn)
(cond
[(= n 0) true]
[else (many (sub1 n) (local ((define k (time fn))) k))]))
I have a function called `fact` that computes the factorial of a number.
(define (fact n)
(cond
[(= 0 n) 1]
[else (* n (fact (- n 1)))]))
If I evaluate `(time (fact (expt 10 4)))`, I get reasonable results for cpu, real and gc time, as well as a large number. All well and good.
However, when I try to evaluate `(many 3 (fact (expt 10 4)))` I get:
cpu time: 0 real time: 0 gc time: 0
cpu time: 0 real time: 0 gc time: 0
cpu time: 0 real time: 0 gc time: 0
true
Why is the function not evaluating `fact` despite being passed as a parameter?
| 0 |
4,691,630 |
01/14/2011 13:43:39
| 478,144 |
10/16/2010 20:24:18
| 2,030 | 131 |
Open Source equivalent of VBScript?
|
Where would you use VBScript and whats the open source equivalent of it? In terms of PHP, Javascript etc...
|
php
|
open-source
|
vbscript
| null | null | null |
open
|
Open Source equivalent of VBScript?
===
Where would you use VBScript and whats the open source equivalent of it? In terms of PHP, Javascript etc...
| 0 |
2,376,186 |
03/04/2010 00:58:22
| 130,015 |
06/14/2009 01:36:13
| 1,479 | 33 |
How to program edit button for gridveiw through codebehind?
|
I am trying to generate a gridview dynamically through codebehind. So I am making all the columns through code using BoundField and other controls.
Now I am trying to to put a edit button in the gridview sand program that(I made a RowEditing handler). Right now all my code is in the page_load but when I hit the edit button in the gridview I get 2 gridviews back on post back.
So I tried to put a isPostback if statement to stop this but then I just get a error back saying it can't find the handler.
So I am not sure what to do.
Thanks
|
gridview
|
asp.net
|
c#
| null | null | null |
open
|
How to program edit button for gridveiw through codebehind?
===
I am trying to generate a gridview dynamically through codebehind. So I am making all the columns through code using BoundField and other controls.
Now I am trying to to put a edit button in the gridview sand program that(I made a RowEditing handler). Right now all my code is in the page_load but when I hit the edit button in the gridview I get 2 gridviews back on post back.
So I tried to put a isPostback if statement to stop this but then I just get a error back saying it can't find the handler.
So I am not sure what to do.
Thanks
| 0 |
3,100,544 |
06/23/2010 09:49:21
| 17,194 |
09/18/2008 04:14:43
| 506 | 25 |
Asp.net long running process using asynch page
|
I have a report that takes about 2 or 3 minutes to pull all the data
So I am trying to use ASP.net Asynch pages to prevent a timeout. But can't get it to work
Here's what I am doing :
private delegate List<PublishedPagesDataItem> AsyncReportDataDelegate();
private AsyncReportDataDelegate longRunningMethod;
private List<PublishedPagesDataItem> reportData;
public PublishedPagesReport() // this is the constructor
{
reportData = new List<PublishedPagesDataItem>();
longRunningMethod = GetReportData;
}
protected void Page_Load(object sender, EventArgs e)
{
this.PreRenderComplete +=
new EventHandler(Page_PreRenderComplete);
AddOnPreRenderCompleteAsync(
new BeginEventHandler(BeginAsynchOperation),
new EndEventHandler(EndAsynchOperation)
);
}
private List<PublishedPagesDataItem> GetReportData()
{
// this is a long running method
}
private IAsyncResult BeginAsynchOperation(object sender, EventArgs e, AsyncCallback cb, object extradata)
{
return longRunningMethod.BeginInvoke(null, null);
}
private void EndAsynchOperation(IAsyncResult ar)
{
reportData = longRunningMethod.EndInvoke(ar);
}
private void Page_PreRenderComplete(object sender, EventArgs e)
{
reportGridView.DataSource = reportData;
reportGridView.DataBind();
}
So I have a delegate representing the Long running method (GetReportData).
And I am trying to call it as per this article :
http://msdn.microsoft.com/en-us/magazine/cc163725.aspx
The long running method does complete in the debugger but breakpoints on the EndAsynchOperation and Page_PreRenderComplete methods never get hit
any idea what I am doing wrong?
|
asp.net
|
asynchronous
|
delegates
|
multithreading
|
long-running-processes
| null |
open
|
Asp.net long running process using asynch page
===
I have a report that takes about 2 or 3 minutes to pull all the data
So I am trying to use ASP.net Asynch pages to prevent a timeout. But can't get it to work
Here's what I am doing :
private delegate List<PublishedPagesDataItem> AsyncReportDataDelegate();
private AsyncReportDataDelegate longRunningMethod;
private List<PublishedPagesDataItem> reportData;
public PublishedPagesReport() // this is the constructor
{
reportData = new List<PublishedPagesDataItem>();
longRunningMethod = GetReportData;
}
protected void Page_Load(object sender, EventArgs e)
{
this.PreRenderComplete +=
new EventHandler(Page_PreRenderComplete);
AddOnPreRenderCompleteAsync(
new BeginEventHandler(BeginAsynchOperation),
new EndEventHandler(EndAsynchOperation)
);
}
private List<PublishedPagesDataItem> GetReportData()
{
// this is a long running method
}
private IAsyncResult BeginAsynchOperation(object sender, EventArgs e, AsyncCallback cb, object extradata)
{
return longRunningMethod.BeginInvoke(null, null);
}
private void EndAsynchOperation(IAsyncResult ar)
{
reportData = longRunningMethod.EndInvoke(ar);
}
private void Page_PreRenderComplete(object sender, EventArgs e)
{
reportGridView.DataSource = reportData;
reportGridView.DataBind();
}
So I have a delegate representing the Long running method (GetReportData).
And I am trying to call it as per this article :
http://msdn.microsoft.com/en-us/magazine/cc163725.aspx
The long running method does complete in the debugger but breakpoints on the EndAsynchOperation and Page_PreRenderComplete methods never get hit
any idea what I am doing wrong?
| 0 |
7,554,398 |
09/26/2011 11:30:42
| 178,878 |
09/25/2009 05:33:15
| 453 | 4 |
How to get SCCM Distribution Point from a VB Script?
|
In my company we have more SCCM distribution points.
Is there a way to query to which distribuiton point is a host assigned from a VB Script ( or a batch )?
Thanks!
|
windows
|
vbscript
|
batch
|
sccm
| null | null |
open
|
How to get SCCM Distribution Point from a VB Script?
===
In my company we have more SCCM distribution points.
Is there a way to query to which distribuiton point is a host assigned from a VB Script ( or a batch )?
Thanks!
| 0 |
4,912,064 |
02/06/2011 06:51:31
| 603,935 |
02/04/2011 23:22:50
| 31 | 0 |
update list<className> with linq
|
list<ClassName> lst = new list<ClassName>();
(key in calss is _Number)
code update items in lst with linq...?????
|
c#
|
linq
|
listt
| null | null |
02/06/2011 09:57:24
|
not a real question
|
update list<className> with linq
===
list<ClassName> lst = new list<ClassName>();
(key in calss is _Number)
code update items in lst with linq...?????
| 1 |
6,145,907 |
05/26/2011 22:35:58
| 330,740 |
05/02/2010 09:38:50
| 49 | 1 |
js doesn't work
|
I have an rails application, yesterday I tested all my js and it worked fine, now I make some changes on it and js doesn't work correctly (the code from application.js doesn't execute correctly, the thickbox plugin still works fine), the funny thing is that I get my yesterday version from backup and now the same js problem appears, I check it in chrome and firefox4, anyone has some guesses?
|
javascript
|
ruby-on-rails
| null | null | null |
05/28/2011 03:38:02
|
not a real question
|
js doesn't work
===
I have an rails application, yesterday I tested all my js and it worked fine, now I make some changes on it and js doesn't work correctly (the code from application.js doesn't execute correctly, the thickbox plugin still works fine), the funny thing is that I get my yesterday version from backup and now the same js problem appears, I check it in chrome and firefox4, anyone has some guesses?
| 1 |
4,278,668 |
11/25/2010 15:36:12
| 519,097 |
11/24/2010 16:28:06
| 1 | 0 |
Zooming an image in canvas
|
I have drawn an image using canvas and want to zoom it within canvas.. How can i do that??.. I DONT WANT TO SCALE.. I WANT TO ZOOM IN AND ZOOM OUT...
|
html5
|
canvas
| null | null | null | null |
open
|
Zooming an image in canvas
===
I have drawn an image using canvas and want to zoom it within canvas.. How can i do that??.. I DONT WANT TO SCALE.. I WANT TO ZOOM IN AND ZOOM OUT...
| 0 |
2,794,907 |
05/08/2010 17:04:42
| 252,348 |
01/16/2010 20:54:41
| 17 | 0 |
fastest way to upload an xls file into a database
|
I have an xls file with ~60 sheets of data. I would like to move them into a database (postgres) such that each sheet's data is stored in a different table.
What is the fastest way of creating these tables? I don't care about naming or proper typing of columns. The columns could all be strings for that matter. I don't want to run 60 different csv uploads.
|
database
|
postgresql
|
xls
| null | null | null |
open
|
fastest way to upload an xls file into a database
===
I have an xls file with ~60 sheets of data. I would like to move them into a database (postgres) such that each sheet's data is stored in a different table.
What is the fastest way of creating these tables? I don't care about naming or proper typing of columns. The columns could all be strings for that matter. I don't want to run 60 different csv uploads.
| 0 |
4,153,778 |
11/11/2010 11:11:44
| 504,406 |
11/11/2010 11:11:44
| 1 | 0 |
Brain picking during job interview
|
Recently, I had a job interview at a big Silicon Valley company for a senior software developer position. I had several technical phone screens, an all day on-site interview and more technical phone screens for another position later.
The interviews went really well, I have a PhD and working experience in the area I was applying for yet no offer was made.
Some of the interviewers asked really detailed questions about projects I have been working on. This, in addition to not receiving an offer, made me think later that the company just wanted to extract ideas from me.
Has anybody encountered this situation so far? And how did you deal with it? I am considering refusing technical interviews in the future and instead proposing a trial period in which the company can easily get rid of me for whatever reason.
|
interview-questions
|
software-engineering
| null | null | null |
11/11/2010 11:33:31
|
off topic
|
Brain picking during job interview
===
Recently, I had a job interview at a big Silicon Valley company for a senior software developer position. I had several technical phone screens, an all day on-site interview and more technical phone screens for another position later.
The interviews went really well, I have a PhD and working experience in the area I was applying for yet no offer was made.
Some of the interviewers asked really detailed questions about projects I have been working on. This, in addition to not receiving an offer, made me think later that the company just wanted to extract ideas from me.
Has anybody encountered this situation so far? And how did you deal with it? I am considering refusing technical interviews in the future and instead proposing a trial period in which the company can easily get rid of me for whatever reason.
| 2 |
4,794,145 |
01/25/2011 13:38:06
| 385,907 |
07/07/2010 19:38:53
| 195 | 6 |
perl one-liner like grep?
|
i'd like perl to do a one-liner like grep
a bit like this, but i'm not sure what to add to make it work
$ (echo a ; echo b ; echo c) | perl -e 'a'
|
linux
|
perl
|
grep
| null | null | null |
open
|
perl one-liner like grep?
===
i'd like perl to do a one-liner like grep
a bit like this, but i'm not sure what to add to make it work
$ (echo a ; echo b ; echo c) | perl -e 'a'
| 0 |
11,670,576 |
07/26/2012 13:39:26
| 839,639 |
07/11/2011 20:48:17
| 1 | 0 |
"The connection was reset" in Firefox only on postbacks
|
I'm getting an error message of "The connection was reset" in Firefox on my ASP.NET site. Here are the details:
- doesn't work in Firefox 11 and 12, though appears to 3.6
- happens everywhere on site where there's a postback
- the message comes up in under a second after doing the POST
- works in Chrome and IE
- works locally
- view state is relatively small
- the pages are not performing long operations (e.g., file upload)
I've tried clearing the cache and running Firefox in safe mode, but it makes no difference.
Any help would be greatly appreciated!
|
asp.net
|
firefox
|
postback
| null | null | null |
open
|
"The connection was reset" in Firefox only on postbacks
===
I'm getting an error message of "The connection was reset" in Firefox on my ASP.NET site. Here are the details:
- doesn't work in Firefox 11 and 12, though appears to 3.6
- happens everywhere on site where there's a postback
- the message comes up in under a second after doing the POST
- works in Chrome and IE
- works locally
- view state is relatively small
- the pages are not performing long operations (e.g., file upload)
I've tried clearing the cache and running Firefox in safe mode, but it makes no difference.
Any help would be greatly appreciated!
| 0 |
10,340,469 |
04/26/2012 19:53:45
| 1,079,110 |
12/03/2011 15:20:38
| 287 | 17 |
robots.txt file is probably invalid
|
this is my `robots.txt`. I want to only allow the base url `domain.com` for indexing and disallow all sub urls like `domain.com/foo` and `domain.com/bar.html`.
User-agent: *
Disallow: /*/
Because I am not sure whether this is a valid syntax I tested it using Google Webmaster Tools. It shows me this message.
robots.txt file is probably invalid.
**Is my file valid? Is there a better way of only allowing the base url for indexing?**
|
indexing
|
web-crawler
|
robots.txt
| null | null |
04/30/2012 13:44:32
|
off topic
|
robots.txt file is probably invalid
===
this is my `robots.txt`. I want to only allow the base url `domain.com` for indexing and disallow all sub urls like `domain.com/foo` and `domain.com/bar.html`.
User-agent: *
Disallow: /*/
Because I am not sure whether this is a valid syntax I tested it using Google Webmaster Tools. It shows me this message.
robots.txt file is probably invalid.
**Is my file valid? Is there a better way of only allowing the base url for indexing?**
| 2 |
5,912,691 |
05/06/2011 14:14:36
| 738,462 |
05/04/2011 16:50:31
| 1 | 0 |
MFC is overflowing my hard drive? help
|
Once in a sentence, inside a book a read, that debugging mode can be a cause of fill up your hard drive, is what's happening to me now, I try to find again that sentence in the book, and can't find it, is anyone out there with a solution Thanks
|
mfc
| null | null | null | null |
05/06/2011 19:29:25
|
not a real question
|
MFC is overflowing my hard drive? help
===
Once in a sentence, inside a book a read, that debugging mode can be a cause of fill up your hard drive, is what's happening to me now, I try to find again that sentence in the book, and can't find it, is anyone out there with a solution Thanks
| 1 |
8,059,102 |
11/09/2011 00:48:48
| 996,249 |
10/14/2011 22:19:17
| 338 | 9 |
C/Assembly Material
|
I am going to be doing a report on C and Assembly, but I am having trouble finding some good material for the project, especially Assembly.
Right now, I have great sources that are very similar to listing of C compilers and how they work, explanations of the include libraries and overall input/output procedures. (This is heavily based on how C usually produces very heavy programs compared to Assembly)
I am not able to find very good sources for Assembly; it seems like I get to a poor list of syntax or other little speck of info here and there.
Any sites you have been to that seem trustworthy and full of information on this topic?
Thank you.
|
c
|
assembly
|
research
| null | null |
11/10/2011 13:42:52
|
not constructive
|
C/Assembly Material
===
I am going to be doing a report on C and Assembly, but I am having trouble finding some good material for the project, especially Assembly.
Right now, I have great sources that are very similar to listing of C compilers and how they work, explanations of the include libraries and overall input/output procedures. (This is heavily based on how C usually produces very heavy programs compared to Assembly)
I am not able to find very good sources for Assembly; it seems like I get to a poor list of syntax or other little speck of info here and there.
Any sites you have been to that seem trustworthy and full of information on this topic?
Thank you.
| 4 |
1,847,402 |
12/04/2009 14:47:54
| 99,971 |
05/02/2009 20:42:00
| 220 | 11 |
How to verify email sender address is not spoofed?
|
As per [this question][1] I asked previously on Google App Engine, if I have access to all the information in a standard email, not just the `From`, `To`, `Subject`, `Body` fields, but also all the headers and MIME information, how can I verify that two incoming emails with the same `From` address are actually from the same sender.
What I've considered thus far:
- Check the IP address of the email's sending server
- Check the DNS records of the email's sending server
- Verify the sending agent of the email (i.e. web interface, Outlook, Thunderbird, etc)
- Check the reply-to field
- Etc.
I realize this is a complicated question (I'm sure companies like Posterous have spent tons of time on this problem). I'm just looking for a few criteria to get started preliminarily. Thanks!
[1]: http://stackoverflow.com/questions/1840858/how-to-verify-sender-of-incoming-email-address-in-google-app-engine
|
email
|
email-validation
|
verification
|
email-verification
|
dns
|
02/28/2012 19:09:56
|
off topic
|
How to verify email sender address is not spoofed?
===
As per [this question][1] I asked previously on Google App Engine, if I have access to all the information in a standard email, not just the `From`, `To`, `Subject`, `Body` fields, but also all the headers and MIME information, how can I verify that two incoming emails with the same `From` address are actually from the same sender.
What I've considered thus far:
- Check the IP address of the email's sending server
- Check the DNS records of the email's sending server
- Verify the sending agent of the email (i.e. web interface, Outlook, Thunderbird, etc)
- Check the reply-to field
- Etc.
I realize this is a complicated question (I'm sure companies like Posterous have spent tons of time on this problem). I'm just looking for a few criteria to get started preliminarily. Thanks!
[1]: http://stackoverflow.com/questions/1840858/how-to-verify-sender-of-incoming-email-address-in-google-app-engine
| 2 |
8,210,063 |
11/21/2011 10:04:04
| 676,355 |
03/25/2011 08:37:55
| 41 | 3 |
AS3 moving/scrolling text up/down
|
I am trying to move up and down in AS3 with the code below:
It's not working because its moving the entire container up and down not just the text.
Up.addEventListener(MouseEvent.MOUSE_DOWN, upPressed);
Down.addEventListener(MouseEvent.MOUSE_DOWN, downPressed);
function upPressed(event:MouseEvent):void
{
Rules.y += 50;
}
function downPressed(event:MouseEvent):void
{
Rules.y -= 50;
}
Does anyone know how to move the text only?
Best Regards,
Luben
|
actionscript-3
|
text
|
moving
| null | null | null |
open
|
AS3 moving/scrolling text up/down
===
I am trying to move up and down in AS3 with the code below:
It's not working because its moving the entire container up and down not just the text.
Up.addEventListener(MouseEvent.MOUSE_DOWN, upPressed);
Down.addEventListener(MouseEvent.MOUSE_DOWN, downPressed);
function upPressed(event:MouseEvent):void
{
Rules.y += 50;
}
function downPressed(event:MouseEvent):void
{
Rules.y -= 50;
}
Does anyone know how to move the text only?
Best Regards,
Luben
| 0 |
7,160,760 |
08/23/2011 12:05:36
| 880,381 |
08/05/2011 10:42:26
| 3 | 0 |
C# Object Instantiation Question
|
I would appreciate some help refactoring my code. If I pass an instance of an object to another object instance is there any way to reinstantiate that instance without loosing the reference?
Here is a simplified version of the problem I have:
public class Program
{
static void Main(string[] args)
{
Animal myPet = new Cat();
House myHouse = new House(myPet);
House petDayCare = new House(myPet);
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
myHouse.AddFlea();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
petDayCare.AddFlea();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
myHouse.GetNewPet();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
Console.ReadLine();
}
}
public class House
{
Animal _currentPet;
public House(Animal currentPet) {
_currentPet = currentPet;
}
public Animal CurrentPet {
get { return _currentPet; }
set { _currentPet = value; }
}
public void AddFlea() {
_currentPet.Fleas += 1;
}
public void GetNewPet() {
Animal rover = new Dog();
rover.Fleas = 100;
_currentPet = rover;
}
}
public abstract class Animal {
int _fleas;
public int Fleas {
get { return _fleas; }
set { _fleas = value; }
}
public abstract string GetSound();
}
public class Cat : Animal
{
public override string GetSound() {
return "Meow";
}
}
public class Dog : Animal
{
public override string GetSound()
{
return "Woof";
}
}
Can myPet.Fleas = 100 in Program after calling GetNewPet()?
If I want to change the underlying type of object instance can I do that? If not do you have any refactoring suggestions?
I will try and describe the details of the actual program structure.
I am creating a WPF Wizard.
That Wizard has steps.
When I start the Wizard an instance of the WizardViewModel class is created.
WizardViewModel class has an instance of ObjectX (an object whoes properties I want to modify and then return the object when the wizard is complete).
Each step in the wizard is an instance of the WizardPageViewModelBase class which is passed an instance of ObjectX in the constructor.
WizardViewModel has a list of WizardPageViewModelBase objects (one object instance for each wizard step).
So as long as I am only changing the properties of the ObjectX instance in each wizard step (WizardPageViewModelBase object instance) then the object that is returned by WizardViewModel works fine.
However in step 1 of the wizard I want to change the underlying type of ObjectX depending on what the user selects from a listbox. If I change the instance (as I do in GetNewPet() above) the reference to the ObjectX instance in WizardViewModel is lost.
Apologies if this makes no sense, I tried my best to structure the question in a way that can be answered...
|
c#
| null | null | null | null | null |
open
|
C# Object Instantiation Question
===
I would appreciate some help refactoring my code. If I pass an instance of an object to another object instance is there any way to reinstantiate that instance without loosing the reference?
Here is a simplified version of the problem I have:
public class Program
{
static void Main(string[] args)
{
Animal myPet = new Cat();
House myHouse = new House(myPet);
House petDayCare = new House(myPet);
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
myHouse.AddFlea();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
petDayCare.AddFlea();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
myHouse.GetNewPet();
Console.WriteLine(String.Format("My pet has {0} flea(s)", myPet.Fleas.ToString()));
Console.ReadLine();
}
}
public class House
{
Animal _currentPet;
public House(Animal currentPet) {
_currentPet = currentPet;
}
public Animal CurrentPet {
get { return _currentPet; }
set { _currentPet = value; }
}
public void AddFlea() {
_currentPet.Fleas += 1;
}
public void GetNewPet() {
Animal rover = new Dog();
rover.Fleas = 100;
_currentPet = rover;
}
}
public abstract class Animal {
int _fleas;
public int Fleas {
get { return _fleas; }
set { _fleas = value; }
}
public abstract string GetSound();
}
public class Cat : Animal
{
public override string GetSound() {
return "Meow";
}
}
public class Dog : Animal
{
public override string GetSound()
{
return "Woof";
}
}
Can myPet.Fleas = 100 in Program after calling GetNewPet()?
If I want to change the underlying type of object instance can I do that? If not do you have any refactoring suggestions?
I will try and describe the details of the actual program structure.
I am creating a WPF Wizard.
That Wizard has steps.
When I start the Wizard an instance of the WizardViewModel class is created.
WizardViewModel class has an instance of ObjectX (an object whoes properties I want to modify and then return the object when the wizard is complete).
Each step in the wizard is an instance of the WizardPageViewModelBase class which is passed an instance of ObjectX in the constructor.
WizardViewModel has a list of WizardPageViewModelBase objects (one object instance for each wizard step).
So as long as I am only changing the properties of the ObjectX instance in each wizard step (WizardPageViewModelBase object instance) then the object that is returned by WizardViewModel works fine.
However in step 1 of the wizard I want to change the underlying type of ObjectX depending on what the user selects from a listbox. If I change the instance (as I do in GetNewPet() above) the reference to the ObjectX instance in WizardViewModel is lost.
Apologies if this makes no sense, I tried my best to structure the question in a way that can be answered...
| 0 |
575,854 |
02/22/2009 21:36:57
| 42,595 |
12/02/2008 19:47:03
| 797 | 14 |
Which CSS selector should set background-image property?
|
In order to have an overall background image for a whole page, should I set the background image for the `html`, `body`, or both?
|
css
|
css-selectors
| null | null | null | null |
open
|
Which CSS selector should set background-image property?
===
In order to have an overall background image for a whole page, should I set the background image for the `html`, `body`, or both?
| 0 |
9,491,145 |
02/28/2012 23:00:33
| 733,731 |
05/01/2011 22:44:50
| 27 | 0 |
Can someone explain the bytecode modification performed to prevent this bytecode from being directly decompiled?
|
Can anyone explain to me what bytecode modification was performed on the following bytecode to prevent it from being decompiled into valid java source code?
0: aload_0
1: invokevirtual 102 java/lang/String:toCharArray ()[C
4: dup
5: arraylength
6: iconst_2
7: if_icmpge +12 -> 19
10: dup
11: iconst_0
12: dup2
13: caload
14: bipush 33
16: ixor
17: i2c
18: castore
19: areturn
|
java
|
obfuscation
|
bytecode
| null | null |
02/29/2012 01:05:31
|
too localized
|
Can someone explain the bytecode modification performed to prevent this bytecode from being directly decompiled?
===
Can anyone explain to me what bytecode modification was performed on the following bytecode to prevent it from being decompiled into valid java source code?
0: aload_0
1: invokevirtual 102 java/lang/String:toCharArray ()[C
4: dup
5: arraylength
6: iconst_2
7: if_icmpge +12 -> 19
10: dup
11: iconst_0
12: dup2
13: caload
14: bipush 33
16: ixor
17: i2c
18: castore
19: areturn
| 3 |
10,166,297 |
04/15/2012 21:32:28
| 1,335,102 |
04/15/2012 21:22:06
| 1 | 0 |
Obfuscated code. Its is dangerous?
|
I download free WP plugin, but found something strange in source. Plugin was present before on WordPress plugin directory, now is removed - may by due this obfuscated code.
Could some one find what this does?
Code is uploaded to:
http://pastebin.ca/2136405
and
http://pastebin.pl/f0ecc958a20afd60af18deb8944acacd
Thanks for help. I don't want to be a part of botnet :)
|
php
| null | null | null | null |
04/15/2012 21:49:38
|
off topic
|
Obfuscated code. Its is dangerous?
===
I download free WP plugin, but found something strange in source. Plugin was present before on WordPress plugin directory, now is removed - may by due this obfuscated code.
Could some one find what this does?
Code is uploaded to:
http://pastebin.ca/2136405
and
http://pastebin.pl/f0ecc958a20afd60af18deb8944acacd
Thanks for help. I don't want to be a part of botnet :)
| 2 |
8,605,200 |
12/22/2011 14:22:22
| 911,738 |
08/25/2011 09:48:26
| 30 | 1 |
Settings DNS records with Hosting company or Registrar
|
This has always got me.
I change the nameservers with the registrar and then have the option to set up the other DNS records (a ,cname, mx) with EITHER the registrar or hosting company.
Which is best? Why do you have the choice? I normally use just the hosting company and set them there.
|
hosting
|
dns
|
registrar
| null | null |
12/22/2011 20:04:52
|
off topic
|
Settings DNS records with Hosting company or Registrar
===
This has always got me.
I change the nameservers with the registrar and then have the option to set up the other DNS records (a ,cname, mx) with EITHER the registrar or hosting company.
Which is best? Why do you have the choice? I normally use just the hosting company and set them there.
| 2 |
11,578,719 |
07/20/2012 11:46:55
| 499,351 |
11/06/2010 17:36:46
| 21 | 2 |
Web-twchnologies for iOS developer
|
For iOS developer, which language is good to learn in web-technologies? Basically, if require to create web-services and Media server integrations.
|
ios
|
web-services
|
web-technologies
| null | null |
07/21/2012 04:45:40
|
not constructive
|
Web-twchnologies for iOS developer
===
For iOS developer, which language is good to learn in web-technologies? Basically, if require to create web-services and Media server integrations.
| 4 |
8,785,862 |
01/09/2012 08:57:38
| 1,075,021 |
12/01/2011 08:49:49
| 31 | 0 |
Gallery scroll when click on button?
|
I have a view , my view contains gallery and two button.Here i want to scroll gallery when we click on buttons (just one position),for that i used following code,
this code for next position,
mBtnGalleryNext.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
mGallery.scrollTo(180, 0);
return false;
}
});
this code for previous position,
mBtnGalleryPrevious.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
mGallery.scrollTo(0, 180);
return false;
}
});
it is not working properly . please help me.
|
android
|
android-ui
| null | null | null | null |
open
|
Gallery scroll when click on button?
===
I have a view , my view contains gallery and two button.Here i want to scroll gallery when we click on buttons (just one position),for that i used following code,
this code for next position,
mBtnGalleryNext.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
mGallery.scrollTo(180, 0);
return false;
}
});
this code for previous position,
mBtnGalleryPrevious.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
// TODO Auto-generated method stub
mGallery.scrollTo(0, 180);
return false;
}
});
it is not working properly . please help me.
| 0 |
4,549,809 |
12/28/2010 21:52:24
| 498,189 |
11/05/2010 10:04:14
| 56 | 2 |
Scraping Google Adsense web page using Indy
|
Using: Delphi 2010, latest version of Indy
I am trying to scrape the data off Googles Adsense web page, with an aim to get the reports. However I have been unsuccessful so far. It stops after the first request and does not proceed.
Using Fiddler to debug the traffic/requests to Google Adsense website, and a web browser to load the Adsense page, I can see that the request (from the webbrowser) generates a number of redirects until the page is loaded.
However, my Delphi application is only generating a couple of requests before it stops.
Here are the steps I have followed:
1. Drop a IdHTTP and a IdSSLIOHandlerSocketOpenSSL1 component on the form.
2. Set the IdHTTP component properties AllowCookies and HandleRedirects to True, and IOHandler property to the IdSSLIOHandlerSocketOpenSSL1.
3. Set the IdSSLIOHandlerSocketOpenSSL1 component property Method := 'sslvSSLv23'
4. Finally I have this code:
procedure TfmMain.GetUrlToFile(AURL, AFile : String);
var
Output : TMemoryStream;
begin
Output := TMemoryStream.Create;
try
IdHTTP1.Get(FURL, Output);
Output.SaveToFile(AFile);
finally
Output.Free;
end;
end;
However, it does not get to the login page as expected. I would expect it to behave as if it was a webbrowser and proceed through the redirects until it finds the final page.
This is the output of the headers from Fiddler:
> HTTP/1.1 302 Found Location:
> https://encrypted.google.com/
> Cache-Control: private Content-Type:
> text/html; charset=UTF-8 Set-Cookie:
> PREF=ID=5166063f01b64b03:FF=0:TM=1293571783:LM=1293571783:S=a5OtsOqxu_GiV3d6;
> expires=Thu, 27-Dec-2012 21:29:43 GMT;
> path=/; domain=.google.com Set-Cookie:
> NID=42=XFUwZdkyF0TJKmoJjqoGgYNtGyOz-Irvz7ivao2z0--pCBKPpAvCGUeaa5GXLneP41wlpse-yU5UuC57pBfMkv434t7XB1H68ET0ZgVDNEPNmIVEQRVj7AA1Lnvv2Aez;
> expires=Wed, 29-Jun-2011 21:29:43 GMT;
> path=/; domain=.google.com; HttpOnly
> Date: Tue, 28 Dec 2010 21:29:43 GMT
> Server: gws Content-Length: 226
> X-XSS-Protection: 1; mode=block
Firstly, is there anything wrong with this output?
Is there something more that I should do to get the IdHTTP component to keep pursuing the redirects until the final page?
TIA,
Steve F
|
delphi
|
indy
|
web-scraping
| null | null | null |
open
|
Scraping Google Adsense web page using Indy
===
Using: Delphi 2010, latest version of Indy
I am trying to scrape the data off Googles Adsense web page, with an aim to get the reports. However I have been unsuccessful so far. It stops after the first request and does not proceed.
Using Fiddler to debug the traffic/requests to Google Adsense website, and a web browser to load the Adsense page, I can see that the request (from the webbrowser) generates a number of redirects until the page is loaded.
However, my Delphi application is only generating a couple of requests before it stops.
Here are the steps I have followed:
1. Drop a IdHTTP and a IdSSLIOHandlerSocketOpenSSL1 component on the form.
2. Set the IdHTTP component properties AllowCookies and HandleRedirects to True, and IOHandler property to the IdSSLIOHandlerSocketOpenSSL1.
3. Set the IdSSLIOHandlerSocketOpenSSL1 component property Method := 'sslvSSLv23'
4. Finally I have this code:
procedure TfmMain.GetUrlToFile(AURL, AFile : String);
var
Output : TMemoryStream;
begin
Output := TMemoryStream.Create;
try
IdHTTP1.Get(FURL, Output);
Output.SaveToFile(AFile);
finally
Output.Free;
end;
end;
However, it does not get to the login page as expected. I would expect it to behave as if it was a webbrowser and proceed through the redirects until it finds the final page.
This is the output of the headers from Fiddler:
> HTTP/1.1 302 Found Location:
> https://encrypted.google.com/
> Cache-Control: private Content-Type:
> text/html; charset=UTF-8 Set-Cookie:
> PREF=ID=5166063f01b64b03:FF=0:TM=1293571783:LM=1293571783:S=a5OtsOqxu_GiV3d6;
> expires=Thu, 27-Dec-2012 21:29:43 GMT;
> path=/; domain=.google.com Set-Cookie:
> NID=42=XFUwZdkyF0TJKmoJjqoGgYNtGyOz-Irvz7ivao2z0--pCBKPpAvCGUeaa5GXLneP41wlpse-yU5UuC57pBfMkv434t7XB1H68ET0ZgVDNEPNmIVEQRVj7AA1Lnvv2Aez;
> expires=Wed, 29-Jun-2011 21:29:43 GMT;
> path=/; domain=.google.com; HttpOnly
> Date: Tue, 28 Dec 2010 21:29:43 GMT
> Server: gws Content-Length: 226
> X-XSS-Protection: 1; mode=block
Firstly, is there anything wrong with this output?
Is there something more that I should do to get the IdHTTP component to keep pursuing the redirects until the final page?
TIA,
Steve F
| 0 |
6,931,260 |
08/03/2011 18:21:01
| 859,475 |
07/23/2011 16:10:25
| 8 | 0 |
Admob With Android Java Code
|
I Want to Use Admob but I want to write it in purely java using no xml. How can i display adds with the View Class here is where i want to present it. Because I am using framework code here is where i draw my pixmaps. and this is where the admob with be presented....
public void present(float deltaTime) {
Graphics g = game.getGraphics();
g.drawPixmap(Assets.background, 0, 0);
g.drawPixmap(Assets.logo, 35, 30);
g.drawPixmap(Assets.play, 74, 220);
// Create the adView
Please Help.
|
java
|
android
|
application
|
admob
| null | null |
open
|
Admob With Android Java Code
===
I Want to Use Admob but I want to write it in purely java using no xml. How can i display adds with the View Class here is where i want to present it. Because I am using framework code here is where i draw my pixmaps. and this is where the admob with be presented....
public void present(float deltaTime) {
Graphics g = game.getGraphics();
g.drawPixmap(Assets.background, 0, 0);
g.drawPixmap(Assets.logo, 35, 30);
g.drawPixmap(Assets.play, 74, 220);
// Create the adView
Please Help.
| 0 |
8,174,537 |
11/17/2011 21:26:13
| 825,137 |
07/01/2011 15:31:54
| 34 | 7 |
Centos vs Ubuntu (pros and cons) as webserver
|
Im wondering witch are the pros and cons of ubuntu and centos (isnt a flameware topic) just want to know.
Cause almost all the webservers that i've seen have centos, but in the core the two are linux with small tweaks i guest. Reading forums seems to be that the repos of centos hold much older versions of the apps (apache, mysql, etc) and ubuntu are more fresh.
|
ubuntu
|
webserver
|
centos
| null | null |
11/17/2011 21:35:19
|
off topic
|
Centos vs Ubuntu (pros and cons) as webserver
===
Im wondering witch are the pros and cons of ubuntu and centos (isnt a flameware topic) just want to know.
Cause almost all the webservers that i've seen have centos, but in the core the two are linux with small tweaks i guest. Reading forums seems to be that the repos of centos hold much older versions of the apps (apache, mysql, etc) and ubuntu are more fresh.
| 2 |
7,365,678 |
09/09/2011 18:06:36
| 862,010 |
07/25/2011 16:45:39
| 9 | 0 |
separate fields, values for an sql formatting
|
look, I need a little help with regex here, need not necessarily be done with regex, but I think is the best way, then I see the following SQL statement 'SELECT * FROM clients WHERE clients.name = xxx ', how can I do to separate' clients, name, =, xxx 'for formatting, for example, has no backtick in the fields, in some DBMSs this is a problem, becomes an error of sql so I need to format all values / fields, but another thing, the the sql will not always be the same, sometimes does not come in the name of the table where, as 'clients.name' time is only the 'name = xxx' .. and also pick up these values in the clause and, or, on, someone help me?
|
php
|
sql
|
regex
|
preg-match
|
preg-match-all
|
09/12/2011 03:51:30
|
not a real question
|
separate fields, values for an sql formatting
===
look, I need a little help with regex here, need not necessarily be done with regex, but I think is the best way, then I see the following SQL statement 'SELECT * FROM clients WHERE clients.name = xxx ', how can I do to separate' clients, name, =, xxx 'for formatting, for example, has no backtick in the fields, in some DBMSs this is a problem, becomes an error of sql so I need to format all values / fields, but another thing, the the sql will not always be the same, sometimes does not come in the name of the table where, as 'clients.name' time is only the 'name = xxx' .. and also pick up these values in the clause and, or, on, someone help me?
| 1 |
8,444,697 |
12/09/2011 11:18:39
| 712,903 |
04/18/2011 06:27:18
| 179 | 22 |
unable to parse json response from google
|
I am trying to parse Json response from [This URL][1]. I have used SBJsonParser, MTJSON and another parser but i am getting NULL in all three case. Plz suggest me something
[1]: http://maps.google.com/maps?output=dragdir&saddr=Delhi&daddr=Mumbai%20to:hyderabad
|
iphone
|
ios
|
json
| null | null | null |
open
|
unable to parse json response from google
===
I am trying to parse Json response from [This URL][1]. I have used SBJsonParser, MTJSON and another parser but i am getting NULL in all three case. Plz suggest me something
[1]: http://maps.google.com/maps?output=dragdir&saddr=Delhi&daddr=Mumbai%20to:hyderabad
| 0 |
11,584,723 |
07/20/2012 18:08:29
| 1,505,297 |
07/05/2012 22:05:49
| 1 | 0 |
SSLEngine On causing
|
I'm currently trying to run an apache server with a certain webapp(Shibboleth/SAML service provider) on it and I have to enable SSL for the provider to run correctly. However, whenever I uncomment the "SSLEngine on" directive in httpd.conf(in Apache2.2\conf\ directory), the apache server fails. I have a .crt and a .key file generated and in my \conf\ directory so I don't think that this is the problem. Below is my httpd.conf file; any help would be appreciated!
Thank you,
Ken
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
# server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
#Listen 443
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon
</IfModule>
</IfModule>
# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. [email protected]
#
ServerAdmin [email protected]
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.sp.machine
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "logs/access.log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog "logs/access.log" combined
</IfModule>
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://sp.example.org/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://sp.example.org/subscription_info.html
#
#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off
# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.
# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf
# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf
# Language settings
#Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf
# Virtual hosts
#------!!!!!!!!!!!!!!!------------------------
#Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf
# Various default settings
#Include conf/extra/httpd-default.conf
#------!!!!!!!!!!!!!!!------------------------
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
#------!!!!!!!!!!!!!!!------------------------
Include C:/opt/shibboleth-sp/etc/shibboleth/apache22.config
UseCanonicalName On
#<VirtualHost 169.254.127.121>
#DocumentRoot /var/www/html2
#ServerName www.sp.machine
#SSLEngine on
#SSLCertificateFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.crt'
#SSLCertificateKeyFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key'
#SSLCertificateChainFile /path/to/DigiCertCA.crt
#</VirtualHost>
<IfModule ssl_module>
#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
#------!!!!!!!!!!!!!!!------------------------
#SSLEngine on
#SSLCertificateFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.crt'
#SSLCertificateKeyFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key'
</IfModule>
|
apache
|
ssl
|
configuration
|
https
|
httpd.conf
|
07/21/2012 06:00:57
|
off topic
|
SSLEngine On causing
===
I'm currently trying to run an apache server with a certain webapp(Shibboleth/SAML service provider) on it and I have to enable SSL for the provider to run correctly. However, whenever I uncomment the "SSLEngine on" directive in httpd.conf(in Apache2.2\conf\ directory), the apache server fails. I have a .crt and a .key file generated and in my \conf\ directory so I don't think that this is the problem. Below is my httpd.conf file; any help would be appreciated!
Thank you,
Ken
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Program Files/Apache Software Foundation/Apache2.2" will be interpreted by the
# server as "C:/Program Files/Apache Software Foundation/Apache2.2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.
#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# Do not add a slash at the end of the directory path. If you point
# ServerRoot at a non-local disk, be sure to point the LockFile directive
# at a local disk. If you wish to share the same ServerRoot for multiple
# httpd daemons, you will need to change at least LockFile and PidFile.
#
ServerRoot "C:/Program Files/Apache Software Foundation/Apache2.2"
#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 80
#Listen 443
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbd_module modules/mod_authn_dbd.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cache_module modules/mod_cache.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule charset_lite_module modules/mod_charset_lite.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule dav_lock_module modules/mod_dav_lock.so
#LoadModule dbd_module modules/mod_dbd.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
#LoadModule disk_cache_module modules/mod_disk_cache.so
#LoadModule dumpio_module modules/mod_dumpio.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule ext_filter_module modules/mod_ext_filter.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule filter_module modules/mod_filter.so
#LoadModule headers_module modules/mod_headers.so
#LoadModule ident_module modules/mod_ident.so
#LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
#LoadModule ldap_module modules/mod_ldap.so
#LoadModule logio_module modules/mod_logio.so
LoadModule log_config_module modules/mod_log_config.so
#LoadModule log_forensic_module modules/mod_log_forensic.so
#LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
#LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
#LoadModule reqtimeout_module modules/mod_reqtimeout.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule ssl_module modules/mod_ssl.so
#LoadModule status_module modules/mod_status.so
#LoadModule substitute_module modules/mod_substitute.so
#LoadModule unique_id_module modules/mod_unique_id.so
#LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule version_module modules/mod_version.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
<IfModule !mpm_netware_module>
<IfModule !mpm_winnt_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User daemon
Group daemon
</IfModule>
</IfModule>
# 'Main' server configuration
#
# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition. These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
#
# All of these directives may appear inside <VirtualHost> containers,
# in which case these default settings will be overridden for the
# virtual host being defined.
#
#
# ServerAdmin: Your address, where problems with the server should be
# e-mailed. This address appears on some server-generated pages, such
# as error documents. e.g. [email protected]
#
ServerAdmin [email protected]
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName www.sp.machine
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
#
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error.log"
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn
<IfModule log_config_module>
#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
CustomLog "logs/access.log" common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog "logs/access.log" combined
</IfModule>
<IfModule alias_module>
#
# Redirect: Allows you to tell clients about documents that used to
# exist in your server's namespace, but do not anymore. The client
# will make a new request for the document at its new location.
# Example:
# Redirect permanent /foo http://sp.example.org/bar
#
# Alias: Maps web paths into filesystem paths and is used to
# access content that does not live under the DocumentRoot.
# Example:
# Alias /webpath /full/filesystem/path
#
# If you include a trailing / on /webpath then the server will
# require it to be present in the URL. You will also likely
# need to provide a <Directory> section to allow access to
# the filesystem path.
#
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the target directory are treated as applications and
# run by the server when requested rather than as documents sent to the
# client. The same rules about trailing "/" apply to ScriptAlias
# directives as to Alias.
#
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
#
# DefaultType: the default MIME type the server will use for a document
# if it cannot otherwise determine one, such as from filename extensions.
# If your server contains mostly text or HTML documents, "text/plain" is
# a good value. If most of your content is binary, such as applications
# or images, you may want to use "application/octet-stream" instead to
# keep browsers from trying to display binary files as though they are
# text.
#
DefaultType text/plain
<IfModule mime_module>
#
# TypesConfig points to the file containing the list of mappings from
# filename extension to MIME-type.
#
TypesConfig conf/mime.types
#
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz
#
# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
# For type maps (negotiated resources):
#AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml
</IfModule>
#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
#MIMEMagicFile conf/magic
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://sp.example.org/subscription_info.html
#
#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited
#
# EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall is used to deliver
# files. This usually improves server performance, but must
# be turned off when serving from networked-mounted
# filesystems or if support for these functions is otherwise
# broken on your system.
#
#EnableMMAP off
#EnableSendfile off
# Supplemental configuration
#
# The configuration files in the conf/extra/ directory can be
# included to add extra features or to modify the default configuration of
# the server, or you may simply copy their contents here and change as
# necessary.
# Server-pool management (MPM specific)
#Include conf/extra/httpd-mpm.conf
# Multi-language error messages
#Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
#Include conf/extra/httpd-autoindex.conf
# Language settings
#Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf
# Virtual hosts
#------!!!!!!!!!!!!!!!------------------------
#Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf
# Various default settings
#Include conf/extra/httpd-default.conf
#------!!!!!!!!!!!!!!!------------------------
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
#------!!!!!!!!!!!!!!!------------------------
Include C:/opt/shibboleth-sp/etc/shibboleth/apache22.config
UseCanonicalName On
#<VirtualHost 169.254.127.121>
#DocumentRoot /var/www/html2
#ServerName www.sp.machine
#SSLEngine on
#SSLCertificateFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.crt'
#SSLCertificateKeyFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key'
#SSLCertificateChainFile /path/to/DigiCertCA.crt
#</VirtualHost>
<IfModule ssl_module>
#SSLRandomSeed startup builtin
#SSLRandomSeed connect builtin
#------!!!!!!!!!!!!!!!------------------------
#SSLEngine on
#SSLCertificateFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.crt'
#SSLCertificateKeyFile 'C:/Program Files/Apache Software Foundation/Apache2.2/conf/server.key'
</IfModule>
| 2 |
10,859,962 |
06/02/2012 05:11:27
| 1,404,790 |
05/19/2012 07:40:07
| 1 | 0 |
how to download all files from one directory
|
I have to download all files from one directory.
For eg. http://www.demo.com/product/
I have done it in case of images and other directories but in main directory the directory could not opened because it contains a index.php named file.
How can i download this directory files can anyone help me.
|
php
|
file
|
directory
| null | null |
06/02/2012 05:55:57
|
not a real question
|
how to download all files from one directory
===
I have to download all files from one directory.
For eg. http://www.demo.com/product/
I have done it in case of images and other directories but in main directory the directory could not opened because it contains a index.php named file.
How can i download this directory files can anyone help me.
| 1 |
267,215 |
11/06/2008 00:00:20
| 30,576 |
10/22/2008 23:42:27
| 35 | 6 |
To Azure or Not to Azure?
|
I don't know about you, but i'm rather excited by the newly developing 'Cloud' computing platform. In the past I have been rather hoo hum about it all, thinking it is going to be a passing fad.
I'm developing a webservice at the moment, and I have had in the back of my mind the future scaling issues I will be facing. Being a small company (developers numbering 1 - me!) all hats need to fit my head; DBA, IT Support, Developer, Graphic Designer, Web designer, Tester, Customer Support, etc.
If Azure can take on my scaling issues I will be VERY Happy!
So... To Azure or Not to Azure? Is it too early to trust these new technologies? How easy is it to port code? Can Azure provide scheduled tasks? What about Backup? How safe is it to trust Azure with sensitive data?
Sorry, Lots of questions!
|
azure
| null | null | null | null |
06/10/2012 16:15:32
|
not constructive
|
To Azure or Not to Azure?
===
I don't know about you, but i'm rather excited by the newly developing 'Cloud' computing platform. In the past I have been rather hoo hum about it all, thinking it is going to be a passing fad.
I'm developing a webservice at the moment, and I have had in the back of my mind the future scaling issues I will be facing. Being a small company (developers numbering 1 - me!) all hats need to fit my head; DBA, IT Support, Developer, Graphic Designer, Web designer, Tester, Customer Support, etc.
If Azure can take on my scaling issues I will be VERY Happy!
So... To Azure or Not to Azure? Is it too early to trust these new technologies? How easy is it to port code? Can Azure provide scheduled tasks? What about Backup? How safe is it to trust Azure with sensitive data?
Sorry, Lots of questions!
| 4 |
1,409,414 |
09/11/2009 07:08:55
| 28,843 |
10/17/2008 08:30:33
| 452 | 33 |
Exception Notifier stop working after upgrade rails 2.3.4
|
The exception notifier working fine till yesterday my production server upgrade to rails 2.3.4. please help.
**Error are**
wrong number of arguments (3 for 2)
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `check_auth_args'
-------------------------------
Backtrace:
-------------------------------
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `check_auth_args'
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `do_start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:682:in `perform_delivery_smtp'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `__send__'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `deliver!'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:395:in `method_missing'
|
ruby-on-rails-plugins
|
ruby-on-rails
| null | null | null | null |
open
|
Exception Notifier stop working after upgrade rails 2.3.4
===
The exception notifier working fine till yesterday my production server upgrade to rails 2.3.4. please help.
**Error are**
wrong number of arguments (3 for 2)
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `check_auth_args'
-------------------------------
Backtrace:
-------------------------------
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `check_auth_args'
[RAILS_ROOT]/lib/smtp_tls.rb:8:in `do_start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/smtp.rb:525:in `start'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:682:in `perform_delivery_smtp'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `__send__'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `deliver!'
/Library/Ruby/Gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:395:in `method_missing'
| 0 |
6,740,053 |
07/18/2011 22:11:44
| 747,706 |
05/10/2011 22:18:05
| 389 | 21 |
PHP returning very odd $_POST results when using form arrays...
|
Right, when users submit a form to update their contact information... odd things happen that make very little sense to me, and make it impossible for me to properly parse the resulting data.
The `$_POST` data sent to my script (found via `print_r`) is as follows:
Array
(
[name_first] => Charles
[name_last] => Broughton
[company] =>
[address1] =>
[address2] =>
[city] => Bristol
[region] => England
[postal] =>
[country] => 1
[email] => *******************
[phones_types] => Array
(
[0] => Cell
)
[phones_numbers] => Array
(
[0] => ************
)
[phone_types] => Array
(
[1] => Home
)
[phone_numbers] => Array
(
[1] => ************
)
[pass] => **********
[id] =>
)
The form creating this odd output is as follows:
<form action="URL" method="POST">
<table class="data" align="center" border="0" cellpadding="10" cellspacing="0" width="100%"><tbody>
<tr>
<th colspan="3">Edit Contact</th>
</tr>
<tr>
<td>First Name:</td>
<td><input type="text" name="name_first" value="Charles"/> (required)</td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="name_last" value="Broughton"/></td>
</tr>
<tr>
<td>Company:</td>
<td><input type="text" name="company" value=""/></td>
</tr>
<tr>
<td>Address Line 1:</td>
<td><input type="text" name="address1" value=""/></td>
</tr>
<tr>
<td>Address Line 2:</td>
<td><input type="text" name="address2" value=""/></td>
</tr>
<tr>
<td>City:</td>
<td><input type="text" name="city" value="Bristol"/> (required)</td>
</tr>
<tr>
<td>Region:</td>
<td><input type="text" name="region" value="England"/> (required)</td>
</tr>
<tr>
<td>Postal:</td>
<td><input type="text" name="postal" value=""/></td>
</tr>
<tr>
<td>Country:</td>
<td><select name="country">
<option value="1" selected="selected">United Kingdom</option>
<option value="2">United States</option>
</select> (required)</td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="email" value="*******************"/> (required)</td>
</tr>
<tr>
<td>Phones(s):</td>
<td><input type="text" name="phones_types[0]" value="Cell"/>: <input type="text" name="phones_numbers[0]" value="************"/><br/><input type="text" name="phone_types[1]"/>: <input type="text" name="phone_numbers[1]"/></td>
</tr>
<tr>
<td>Current Password:</td>
<td><input type="password" name="pass"/> (required)</td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" value="Save Changed"/></td>
</tr>
<input type="hidden" name="id" value=""/>
</tbody></table>
</form>
Does anybody know how I can remedy this, or parse it properly using PHP? I tried a `for` loop to parse both arrays as one, but neither of them are arrays due to the separation... the example of which is in the above `print_r` output.
|
php
|
html
|
forms
|
for-loop
| null | null |
open
|
PHP returning very odd $_POST results when using form arrays...
===
Right, when users submit a form to update their contact information... odd things happen that make very little sense to me, and make it impossible for me to properly parse the resulting data.
The `$_POST` data sent to my script (found via `print_r`) is as follows:
Array
(
[name_first] => Charles
[name_last] => Broughton
[company] =>
[address1] =>
[address2] =>
[city] => Bristol
[region] => England
[postal] =>
[country] => 1
[email] => *******************
[phones_types] => Array
(
[0] => Cell
)
[phones_numbers] => Array
(
[0] => ************
)
[phone_types] => Array
(
[1] => Home
)
[phone_numbers] => Array
(
[1] => ************
)
[pass] => **********
[id] =>
)
The form creating this odd output is as follows:
<form action="URL" method="POST">
<table class="data" align="center" border="0" cellpadding="10" cellspacing="0" width="100%"><tbody>
<tr>
<th colspan="3">Edit Contact</th>
</tr>
<tr>
<td>First Name:</td>
<td><input type="text" name="name_first" value="Charles"/> (required)</td>
</tr>
<tr>
<td>Last Name:</td>
<td><input type="text" name="name_last" value="Broughton"/></td>
</tr>
<tr>
<td>Company:</td>
<td><input type="text" name="company" value=""/></td>
</tr>
<tr>
<td>Address Line 1:</td>
<td><input type="text" name="address1" value=""/></td>
</tr>
<tr>
<td>Address Line 2:</td>
<td><input type="text" name="address2" value=""/></td>
</tr>
<tr>
<td>City:</td>
<td><input type="text" name="city" value="Bristol"/> (required)</td>
</tr>
<tr>
<td>Region:</td>
<td><input type="text" name="region" value="England"/> (required)</td>
</tr>
<tr>
<td>Postal:</td>
<td><input type="text" name="postal" value=""/></td>
</tr>
<tr>
<td>Country:</td>
<td><select name="country">
<option value="1" selected="selected">United Kingdom</option>
<option value="2">United States</option>
</select> (required)</td>
</tr>
<tr>
<td>Email:</td>
<td><input type="text" name="email" value="*******************"/> (required)</td>
</tr>
<tr>
<td>Phones(s):</td>
<td><input type="text" name="phones_types[0]" value="Cell"/>: <input type="text" name="phones_numbers[0]" value="************"/><br/><input type="text" name="phone_types[1]"/>: <input type="text" name="phone_numbers[1]"/></td>
</tr>
<tr>
<td>Current Password:</td>
<td><input type="password" name="pass"/> (required)</td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" value="Save Changed"/></td>
</tr>
<input type="hidden" name="id" value=""/>
</tbody></table>
</form>
Does anybody know how I can remedy this, or parse it properly using PHP? I tried a `for` loop to parse both arrays as one, but neither of them are arrays due to the separation... the example of which is in the above `print_r` output.
| 0 |
6,398,328 |
06/18/2011 19:19:47
| 511,886 |
04/15/2010 09:40:42
| 657 | 2 |
Architecture for large scale websites
|
I have coded for websites where the traffic has always been small to medium load.
I now want to understand more about how to write code for largest scale websites.
Using PHP and MySQL, what are the differences between small and large scale coding and does anyone have any information or structures to suggest?
Thanks.
|
php
|
mysql
| null | null | null |
06/18/2011 23:17:29
|
off topic
|
Architecture for large scale websites
===
I have coded for websites where the traffic has always been small to medium load.
I now want to understand more about how to write code for largest scale websites.
Using PHP and MySQL, what are the differences between small and large scale coding and does anyone have any information or structures to suggest?
Thanks.
| 2 |
11,065,948 |
06/16/2012 18:20:18
| 392,271 |
07/15/2010 03:45:41
| 510 | 24 |
Eclipse won't update or install software
|
I recently installed subversion on my machine. So I decided to get Subversive for eclipse so that I could check my Android projects in. The problem is, it will get to a certain percentage, say 49%, and just sit there. I give it hours and hours of time and it doesn't move. I figured I'd try to update Eclipse to see if that would help, but I can't even update it. The exact same thing happens. I've tried running it as administrator, changing network settings, but no luck. Any help is greatly appreciated on this.
|
eclipse
|
eclipse-plugin
|
subversive
| null | null | null |
open
|
Eclipse won't update or install software
===
I recently installed subversion on my machine. So I decided to get Subversive for eclipse so that I could check my Android projects in. The problem is, it will get to a certain percentage, say 49%, and just sit there. I give it hours and hours of time and it doesn't move. I figured I'd try to update Eclipse to see if that would help, but I can't even update it. The exact same thing happens. I've tried running it as administrator, changing network settings, but no luck. Any help is greatly appreciated on this.
| 0 |
2,613,732 |
04/10/2010 14:33:16
| 126,965 |
06/22/2009 14:20:19
| 35 | 1 |
Random blank pages on Safari when developing webapp
|
I've been experiencing a safari problem while building a web application. The screen goes completely blank (white) and refreshing won't help. Going to another page on the site gives the same problem. Then magically, after a little while, everything goes back to normal and pages are rendered correctly!
This started happening around the same time that I *SUSPECT* my hosting automatically upgraded from PHP 5.2.x to 5.3 (all of a sudden, we got 'deprecated function' errors and the error settings and handling were unchanged)
I also have to mention that this doesn't happen in our dev environment (PHP 5.2.9, Apache 2)
Settings
---------
Safari 4.0.2 and the latest one (don't know the version)
Server side: PHP 5.3, MySQL 5.0.90, Apache is cPanel Easy Apache v3.2.0
Does anyone know why this is happening at all, or how to fix it? I appreciate any help or pointers you might have.
Thanks!
|
safari
|
php
|
apache
|
blank-page
| null | null |
open
|
Random blank pages on Safari when developing webapp
===
I've been experiencing a safari problem while building a web application. The screen goes completely blank (white) and refreshing won't help. Going to another page on the site gives the same problem. Then magically, after a little while, everything goes back to normal and pages are rendered correctly!
This started happening around the same time that I *SUSPECT* my hosting automatically upgraded from PHP 5.2.x to 5.3 (all of a sudden, we got 'deprecated function' errors and the error settings and handling were unchanged)
I also have to mention that this doesn't happen in our dev environment (PHP 5.2.9, Apache 2)
Settings
---------
Safari 4.0.2 and the latest one (don't know the version)
Server side: PHP 5.3, MySQL 5.0.90, Apache is cPanel Easy Apache v3.2.0
Does anyone know why this is happening at all, or how to fix it? I appreciate any help or pointers you might have.
Thanks!
| 0 |
9,739,238 |
03/16/2012 14:36:28
| 1,274,244 |
03/16/2012 14:29:25
| 1 | 0 |
c# and checkboxes in asp.net
|
Hy all,
I want an idea from you.I have 2 tables.From table1 I want to populate a checkboxlist and from table2 I want to also populate a checkboxlist but depending on the first checkboxlist.So if I have 5 rows in table1 then 5 checkbox. I want if I check the first checkbox some others checkbox appear with data from table2.So check a checkbox from table1 let's say for exemple 3 other checkboxes appear.So if I have a checkbox with country America when i check it 3 other checkboxes with California,Hawaii and Chicago to appear.Can you give me a point from where I can start? the tables are hooked up with ids that depend one another but I don't know how to make the checkboxes.
|
c#
|
asp.net
| null | null | null |
03/19/2012 14:50:39
|
not a real question
|
c# and checkboxes in asp.net
===
Hy all,
I want an idea from you.I have 2 tables.From table1 I want to populate a checkboxlist and from table2 I want to also populate a checkboxlist but depending on the first checkboxlist.So if I have 5 rows in table1 then 5 checkbox. I want if I check the first checkbox some others checkbox appear with data from table2.So check a checkbox from table1 let's say for exemple 3 other checkboxes appear.So if I have a checkbox with country America when i check it 3 other checkboxes with California,Hawaii and Chicago to appear.Can you give me a point from where I can start? the tables are hooked up with ids that depend one another but I don't know how to make the checkboxes.
| 1 |
10,460,637 |
05/05/2012 09:43:52
| 835,890 |
07/08/2011 18:28:12
| 43 | 1 |
Best way to start of with Dynamic Web Development?
|
Well, I am a Application Developer but have been wanting to get into web development since quite a while now. First Query that I came across was how to get started?
Second, what platform should I use for web development? As in what is the general trend that people follow while designing dynamic web content? Is Text Editor the most prominent or software's like Dreamweaver VS etc ?
I want to concentrate on HTML5, CSS3, JavaScript with PHP / MYSQL etc as Back-ends.
Thanks For helping me out!
|
javascript
|
css
|
html5
|
web
| null |
05/05/2012 09:46:45
|
not constructive
|
Best way to start of with Dynamic Web Development?
===
Well, I am a Application Developer but have been wanting to get into web development since quite a while now. First Query that I came across was how to get started?
Second, what platform should I use for web development? As in what is the general trend that people follow while designing dynamic web content? Is Text Editor the most prominent or software's like Dreamweaver VS etc ?
I want to concentrate on HTML5, CSS3, JavaScript with PHP / MYSQL etc as Back-ends.
Thanks For helping me out!
| 4 |
10,676,114 |
05/20/2012 18:41:40
| 724,307 |
04/25/2011 20:10:59
| 1 | 0 |
Unable to invoke the methods of a WCF service hosted in Azure with https
|
I have a WCF service hosted in Azure, I am able to get the wsdl properly but when trying to call a method it gives me
> There was no endpoint listening at
> https://pactwp7.cloudapp.net/Service1.svc that could accept the
> message. This is often caused by an incorrect address or SOAP action.
> See InnerException, if present, for more details.
error.
I have used a self signed certificate while making it https so I have added the following before accessing the service from the client side:
ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, error) => true;
Below is the service config that I have used:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="httpsAzureBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<useRequestHeadersForMetadataAddress>
<defaultPorts>
<add scheme="http" port="80" />
<add scheme="https" port="443" />
</defaultPorts>
</useRequestHeadersForMetadataAddress>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="httpsBinding">
<binaryMessageEncoding />
<httpsTransport allowCookies="true" />
</binding>
</customBinding>
</bindings>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
<services>
<service behaviorConfiguration="httpsAzureBehavior" name="PactServices.ServiceImplementation.PactService">
<endpoint address="" binding="customBinding" bindingConfiguration="httpsBinding"
contract="PactServices.ServiceContracts.IPactServices" listenUri="Service1.svc" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
any reasons why?
|
wcf
|
https
|
azure
| null | null | null |
open
|
Unable to invoke the methods of a WCF service hosted in Azure with https
===
I have a WCF service hosted in Azure, I am able to get the wsdl properly but when trying to call a method it gives me
> There was no endpoint listening at
> https://pactwp7.cloudapp.net/Service1.svc that could accept the
> message. This is often caused by an incorrect address or SOAP action.
> See InnerException, if present, for more details.
error.
I have used a self signed certificate while making it https so I have added the following before accessing the service from the client side:
ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, error) => true;
Below is the service config that I have used:
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="httpsAzureBehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
<useRequestHeadersForMetadataAddress>
<defaultPorts>
<add scheme="http" port="80" />
<add scheme="https" port="443" />
</defaultPorts>
</useRequestHeadersForMetadataAddress>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<customBinding>
<binding name="httpsBinding">
<binaryMessageEncoding />
<httpsTransport allowCookies="true" />
</binding>
</customBinding>
</bindings>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
<services>
<service behaviorConfiguration="httpsAzureBehavior" name="PactServices.ServiceImplementation.PactService">
<endpoint address="" binding="customBinding" bindingConfiguration="httpsBinding"
contract="PactServices.ServiceContracts.IPactServices" listenUri="Service1.svc" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
any reasons why?
| 0 |
5,817,511 |
04/28/2011 10:59:28
| 729,106 |
04/28/2011 10:31:30
| 1 | 1 |
Anybody had a problem like this? It's making me crazy...
|
I need to build a transparent bridge between two NICs in a development board(ARM9 with LINUX OS(2.6.32 kernel)):
Firstly,cause there is only one NIC on the board,so I transplanted a driver of USBtoRJ45(with NIC) to the board,and it works well.
Secondly,to build a bridge between two NICs,I built in the "802.1d Ethernet Bridging" module and rebuilt the kernel, and then the command "brctl" can work.
However,when i want to config the new NIC by "ifconfig eth1 192.168.1.231..." and Enter,all things crashed,Oops error jumped out:
<pre style="color:#222222;background-color:#ebf1f5;line-height:1.1em;background-image:initial;background-attachment:initial;background-position:initial initial;background-repeat:initial initial;border:1px solid #bbccdd;padding:1em;">
[root@FriendlyARM plg]# ifconfig eth1 192.168.1.231 netmask 255.255.255.0
eth1: rxqlen 0 --> 4
Unable to handle kernel NULL pointer dereference at virtual address 000000f2
pgd = c3ab4000
[000000f2] *pgd=33afd031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
last sysfs file: /sys/devices/platform/s3c2410-ohci/usb1/1-1/dev
Modules linked in: asix
CPU: 0 Not tainted (2.6.32.2-FriendlyARM #14)
PC is at eth_type_trans+0x2c/0x11c
LR is at 0xf2
pc : [<c03085a8>] lr : [<000000f2>] psr: 20000013
sp : c3af9bb8 ip : c3afe9c0 fp : c3af9bd4
r10: 00000052 r9 : c3ace2c0 r8 : c3afe300
r7 : c3ae5006 r6 : c3afe9c0 r5 : c3ace2c0 r4 : c3ace000
r3 : 000000f2 r2 : 00000000 r1 : 0000000e r0 : 00000100
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 33ab4000 DAC: 00000015
Process ifconfig (pid: 745, stack limit = 0xc3af8270)
Stack: (0xc3af9bb8 to 0xc3afa000)
9ba0: c3afe9c0 c3ace2c0
9bc0: 00000052 c3ae5006 c3af9bec c3af9bd8 bf000398 c030858c c3ae5006 c3afe9c0
9be0: c3af9c24 c3af9bf0 bf0006a4 bf000380 c3af9cd8 ffad0052 c3af9c24 c3afe300
9c00: c3ace2c0 c3ace3c0 00000005 c3af8000 0000000a c0535220 c3af9c4c c3af9c28
9c20: bf007688 bf000648 00000000 c04d96a8 c0535220 00000000 c3af8000 0000000a
9c40: c3af9c6c c3af9c50 c004efa0 bf0075c8 00000018 00000001 00000100 00000006
9c60: c3af9ca4 c3af9c70 c004f634 c004ef38 c04dbe9c c3911240 0000002a 0000002a
9c80: c04e832c 00000000 c3ac8080 00000162 c3af9d88 c34084d8 c3af9cb4 c3af9ca8
9ca0: c004f70c c004f5b4 c3af9cd4 c3af9cb8 c0030048 c004f6d4 ffffffff f4000000
9cc0: 04000000 c3ac8080 c3af9d34 c3af9cd8 c0030b04 c0030010 c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
9d20: 00000000 c3aafe70 c3af9d74 c3af9d38 c007679c c0075c4c c3af9d6c c3af9d48
9d40: c3408440 c01e3744 c3ac7e80 00000000 c3aa1d80 c3ab4000 c3aafe70 c3af9d88
9d60: 00000000 0016a000 c3af9dc4 c3af9d78 c0089484 c0076740 c3ab4000 c3ace000
9d80: 00000001 00000000 00000000 00000162 0016a000 00000000 c3af9dd4 00000000
9da0: c3ab4000 c3ab4000 c3af8000 0000016a 00000000 00000000 c3af9e2c c3af9dc8
9dc0: c0089f08 c008943c 00000162 00000000 00000000 c03a4694 c3af9e1c 0016a000
9de0: c3aafe70 c3aa1d80 000005a8 c3af9de8 c02f6dc8 00000000 00000000 bef4ac68
9e00: c0542270 c3aafe70 c3aa1d80 0016a97c c3aca300 c3aa1db4 80000005 c3af9fb0
9e20: c3af9edc c3af9e30 c0037ae8 c0089e14 c3af9e70 bef4ac68 00000020 c3af9e68
9e40: 00008913 c02fb86c c394f400 c394f40c c3ace000 00000000 31687465 00000000
9e60: 00000000 00000000 00001043 0100000a 00000001 001c6e20 00001043 0100000a
9e80: 00000001 001c6e20 00000001 00008914 bef4ac68 bef4ac68 bef4ac68 c00310c8
9ea0: c3af8000 00000000 c3af9ec4 c3af9eb8 c0341e94 c04d6818 001e762c 00000005
9ec0: c04d6868 c3af9fb0 00000003 0016a97c c3af9efc c3af9ee0 c0037c64 c0037954
9ee0: c04d6818 001e762c 00000005 c04d6868 c3af9fac c3af9f00 c00301e8 c0037bfc
9f00: c00aa78c c00aa17c c3af9f5c c3af9f18 c02e8cc4 c009eaa4 c03fec88 c3af9f28
9f20: c009ebf8 00000000 00000000 c0478064 c348a780 00000000 00000003 c348a780
9f40: 00000119 c00310c8 c3af8000 00000000 c3af9f84 00000003 bef4ac68 00008914
9f60: c3ac8100 c00310c8 c3af8000 00000000 c3af9fa4 c3af9f80 c00aaa48 c00aa464
9f80: c02e9b20 00000000 ffffffff 001e762c 000e8198 00000000 00000000 00000000
9fa0: 00000000 c3af9fb0 c0030ea4 c00301b8 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff 00000028 00000000
Backtrace:
[<c030857c>] (eth_type_trans+0x0/0x11c) from [<bf000398>] (axusbnet_skb_return+0x28/0xb4 [asix])
r7:c3ae5006 r6:00000052 r5:c3ace2c0 r4:c3afe9c0
[<bf000370>] (axusbnet_skb_return+0x0/0xb4 [asix]) from [<bf0006a4>] (ax88772_rx_fixup+0x6c/0x1cc [asix])
r5:c3afe9c0 r4:c3ae5006
[<bf000638>] (ax88772_rx_fixup+0x0/0x1cc [asix]) from [<bf007688>] (axusbnet_bh+0xd0/0x2c0 [asix])
[<bf0075b8>] (axusbnet_bh+0x0/0x2c0 [asix]) from [<c004efa0>] (tasklet_action+0x78/0xf0)
r9:0000000a r8:c3af8000 r7:00000000 r6:c0535220 r5:c04d96a8
r4:00000000
[<c004ef28>] (tasklet_action+0x0/0xf0) from [<c004f634>] (__do_softirq+0x90/0x120)
r7:00000006 r6:00000100 r5:00000001 r4:00000018
[<c004f5a4>] (__do_softirq+0x0/0x120) from [<c004f70c>] (irq_exit+0x48/0x50)
[<c004f6c4>] (irq_exit+0x0/0x50) from [<c0030048>] (asm_do_IRQ+0x48/0x8c)
[<c0030000>] (asm_do_IRQ+0x0/0x8c) from [<c0030b04>] (__irq_svc+0x24/0xa0)
Exception stack(0xc3af9cd8 to 0xc3af9d20)
9cc0: c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
r7:c3ac8080 r6:04000000 r5:f4000000 r4:ffffffff
[<c0075c3c>] (find_get_page+0x0/0x84) from [<c007679c>] (filemap_fault+0x6c/0x3bc)
r5:c3aafe70 r4:00000000
[<c0076730>] (filemap_fault+0x0/0x3bc) from [<c0089484>] (__do_fault+0x58/0x3e0)
[<c008942c>] (__do_fault+0x0/0x3e0) from [<c0089f08>] (handle_mm_fault+0x104/0xae8)
[<c0089e04>] (handle_mm_fault+0x0/0xae8) from [<c0037ae8>] (do_page_fault+0x1a4/0x200)
[<c0037944>] (do_page_fault+0x0/0x200) from [<c0037c64>] (do_translation_fault+0x78/0x80)
[<c0037bec>] (do_translation_fault+0x0/0x80) from [<c00301e8>] (do_PrefetchAbort+0x40/0xa4)
r7:c04d6868 r6:00000005 r5:001e762c r4:c04d6818
[<c00301a8>] (do_PrefetchAbort+0x0/0xa4) from [<c0030ea4>] (ret_from_exception+0x0/0x10)
Exception stack(0xc3af9fb0 to 0xc3af9ff8)
9fa0: 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff
Code: e1a04001 e3a0100e ebff979e e596e088 (e5de3000)
eth1: ax88772a - Link status is: 0
---[ end trace a1d5403463fbccb5 ]---
Kernel panic - not syncing: Fatal exception in interrupt
Backtrace:
[<c0035270>] (dump_backtrace+0x0/0x10c) from [<c03a3684>] (dump_stack+0x18/0x1c)
r7:c03085a8 r6:c05148f0 r5:c3af99cf r4:c03085a8
[<c03a366c>] (dump_stack+0x0/0x1c) from [<c03a36d4>] (panic+0x4c/0x134)
eth1: ax88772a - Link status is: 1
[<c03a3688>] (panic+0x0/0x134) from [<c0035580>] (die+0x204/0x240)
r3:00000100 r2:c04d9638 r1:00007a79 r0:c0464320
[<c003537c>] (die+0x0/0x240) from [<c0037934>] (__do_kernel_fault+0x6c/0x7c)
[<c00378c8>] (__do_kernel_fault+0x0/0x7c) from [<c0037a8c>] (do_page_fault+0x148/0x200)
r7:c3aca300 r6:000000f2 r5:c3aa1d80 r4:c04d6618
[<c0037944>] (do_page_fault+0x0/0x200) from [<c003028c>] (do_DataAbort+0x40/0xa4)
[<c003024c>] (do_DataAbort+0x0/0xa4) from [<c0030ac0>] (__dabt_svc+0x40/0x60)
Exception stack(0xc3af9b70 to 0xc3af9bb8)
9b60: 00000100 0000000e 00000000 000000f2
9b80: c3ace000 c3ace2c0 c3afe9c0 c3ae5006 c3afe300 c3ace2c0 00000052 c3af9bd4
9ba0: c3afe9c0 c3af9bb8 000000f2 c03085a8 20000013 ffffffff
[<c030857c>] (eth_type_trans+0x0/0x11c) from [<bf000398>] (axusbnet_skb_return+0x28/0xb4 [asix])
r7:c3ae5006 r6:00000052 r5:c3ace2c0 r4:c3afe9c0
[<bf000370>] (axusbnet_skb_return+0x0/0xb4 [asix]) from [<bf0006a4>] (ax88772_rx_fixup+0x6c/0x1cc [asix])
r5:c3afe9c0 r4:c3ae5006
[<bf000638>] (ax88772_rx_fixup+0x0/0x1cc [asix]) from [<bf007688>] (axusbnet_bh+0xd0/0x2c0 [asix])
[<bf0075b8>] (axusbnet_bh+0x0/0x2c0 [asix]) from [<c004efa0>] (tasklet_action+0x78/0xf0)
r9:0000000a r8:c3af8000 r7:00000000 r6:c0535220 r5:c04d96a8
r4:00000000
[<c004ef28>] (tasklet_action+0x0/0xf0) from [<c004f634>] (__do_softirq+0x90/0x120)
r7:00000006 r6:00000100 r5:00000001 r4:00000018
[<c004f5a4>] (__do_softirq+0x0/0x120) from [<c004f70c>] (irq_exit+0x48/0x50)
[<c004f6c4>] (irq_exit+0x0/0x50) from [<c0030048>] (asm_do_IRQ+0x48/0x8c)
[<c0030000>] (asm_do_IRQ+0x0/0x8c) from [<c0030b04>] (__irq_svc+0x24/0xa0)
Exception stack(0xc3af9cd8 to 0xc3af9d20)
9cc0: c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
r7:c3ac8080 r6:04000000 r5:f4000000 r4:ffffffff
[<c0075c3c>] (find_get_page+0x0/0x84) from [<c007679c>] (filemap_fault+0x6c/0x3bc)
r5:c3aafe70 r4:00000000
[<c0076730>] (filemap_fault+0x0/0x3bc) from [<c0089484>] (__do_fault+0x58/0x3e0)
[<c008942c>] (__do_fault+0x0/0x3e0) from [<c0089f08>] (handle_mm_fault+0x104/0xae8)
[<c0089e04>] (handle_mm_fault+0x0/0xae8) from [<c0037ae8>] (do_page_fault+0x1a4/0x200)
[<c0037944>] (do_page_fault+0x0/0x200) from [<c0037c64>] (do_translation_fault+0x78/0x80)
[<c0037bec>] (do_translation_fault+0x0/0x80) from [<c00301e8>] (do_PrefetchAbort+0x40/0xa4)
r7:c04d6868 r6:00000005 r5:001e762c r4:c04d6818
[<c00301a8>] (do_PrefetchAbort+0x0/0xa4) from [<c0030ea4>] (ret_from_exception+0x0/0x10)
Exception stack(0xc3af9fb0 to 0xc3af9ff8)
9fa0: 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff</pre>
I'm so confused that dose Bridge module conflicts with the driver module of my new NIC? Or..something else?
Who can help me,Thanks a lot!:)
|
linux
|
kernel
|
arm
|
driver
|
bridge
|
05/31/2012 03:17:56
|
off topic
|
Anybody had a problem like this? It's making me crazy...
===
I need to build a transparent bridge between two NICs in a development board(ARM9 with LINUX OS(2.6.32 kernel)):
Firstly,cause there is only one NIC on the board,so I transplanted a driver of USBtoRJ45(with NIC) to the board,and it works well.
Secondly,to build a bridge between two NICs,I built in the "802.1d Ethernet Bridging" module and rebuilt the kernel, and then the command "brctl" can work.
However,when i want to config the new NIC by "ifconfig eth1 192.168.1.231..." and Enter,all things crashed,Oops error jumped out:
<pre style="color:#222222;background-color:#ebf1f5;line-height:1.1em;background-image:initial;background-attachment:initial;background-position:initial initial;background-repeat:initial initial;border:1px solid #bbccdd;padding:1em;">
[root@FriendlyARM plg]# ifconfig eth1 192.168.1.231 netmask 255.255.255.0
eth1: rxqlen 0 --> 4
Unable to handle kernel NULL pointer dereference at virtual address 000000f2
pgd = c3ab4000
[000000f2] *pgd=33afd031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
last sysfs file: /sys/devices/platform/s3c2410-ohci/usb1/1-1/dev
Modules linked in: asix
CPU: 0 Not tainted (2.6.32.2-FriendlyARM #14)
PC is at eth_type_trans+0x2c/0x11c
LR is at 0xf2
pc : [<c03085a8>] lr : [<000000f2>] psr: 20000013
sp : c3af9bb8 ip : c3afe9c0 fp : c3af9bd4
r10: 00000052 r9 : c3ace2c0 r8 : c3afe300
r7 : c3ae5006 r6 : c3afe9c0 r5 : c3ace2c0 r4 : c3ace000
r3 : 000000f2 r2 : 00000000 r1 : 0000000e r0 : 00000100
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: c000717f Table: 33ab4000 DAC: 00000015
Process ifconfig (pid: 745, stack limit = 0xc3af8270)
Stack: (0xc3af9bb8 to 0xc3afa000)
9ba0: c3afe9c0 c3ace2c0
9bc0: 00000052 c3ae5006 c3af9bec c3af9bd8 bf000398 c030858c c3ae5006 c3afe9c0
9be0: c3af9c24 c3af9bf0 bf0006a4 bf000380 c3af9cd8 ffad0052 c3af9c24 c3afe300
9c00: c3ace2c0 c3ace3c0 00000005 c3af8000 0000000a c0535220 c3af9c4c c3af9c28
9c20: bf007688 bf000648 00000000 c04d96a8 c0535220 00000000 c3af8000 0000000a
9c40: c3af9c6c c3af9c50 c004efa0 bf0075c8 00000018 00000001 00000100 00000006
9c60: c3af9ca4 c3af9c70 c004f634 c004ef38 c04dbe9c c3911240 0000002a 0000002a
9c80: c04e832c 00000000 c3ac8080 00000162 c3af9d88 c34084d8 c3af9cb4 c3af9ca8
9ca0: c004f70c c004f5b4 c3af9cd4 c3af9cb8 c0030048 c004f6d4 ffffffff f4000000
9cc0: 04000000 c3ac8080 c3af9d34 c3af9cd8 c0030b04 c0030010 c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
9d20: 00000000 c3aafe70 c3af9d74 c3af9d38 c007679c c0075c4c c3af9d6c c3af9d48
9d40: c3408440 c01e3744 c3ac7e80 00000000 c3aa1d80 c3ab4000 c3aafe70 c3af9d88
9d60: 00000000 0016a000 c3af9dc4 c3af9d78 c0089484 c0076740 c3ab4000 c3ace000
9d80: 00000001 00000000 00000000 00000162 0016a000 00000000 c3af9dd4 00000000
9da0: c3ab4000 c3ab4000 c3af8000 0000016a 00000000 00000000 c3af9e2c c3af9dc8
9dc0: c0089f08 c008943c 00000162 00000000 00000000 c03a4694 c3af9e1c 0016a000
9de0: c3aafe70 c3aa1d80 000005a8 c3af9de8 c02f6dc8 00000000 00000000 bef4ac68
9e00: c0542270 c3aafe70 c3aa1d80 0016a97c c3aca300 c3aa1db4 80000005 c3af9fb0
9e20: c3af9edc c3af9e30 c0037ae8 c0089e14 c3af9e70 bef4ac68 00000020 c3af9e68
9e40: 00008913 c02fb86c c394f400 c394f40c c3ace000 00000000 31687465 00000000
9e60: 00000000 00000000 00001043 0100000a 00000001 001c6e20 00001043 0100000a
9e80: 00000001 001c6e20 00000001 00008914 bef4ac68 bef4ac68 bef4ac68 c00310c8
9ea0: c3af8000 00000000 c3af9ec4 c3af9eb8 c0341e94 c04d6818 001e762c 00000005
9ec0: c04d6868 c3af9fb0 00000003 0016a97c c3af9efc c3af9ee0 c0037c64 c0037954
9ee0: c04d6818 001e762c 00000005 c04d6868 c3af9fac c3af9f00 c00301e8 c0037bfc
9f00: c00aa78c c00aa17c c3af9f5c c3af9f18 c02e8cc4 c009eaa4 c03fec88 c3af9f28
9f20: c009ebf8 00000000 00000000 c0478064 c348a780 00000000 00000003 c348a780
9f40: 00000119 c00310c8 c3af8000 00000000 c3af9f84 00000003 bef4ac68 00008914
9f60: c3ac8100 c00310c8 c3af8000 00000000 c3af9fa4 c3af9f80 c00aaa48 c00aa464
9f80: c02e9b20 00000000 ffffffff 001e762c 000e8198 00000000 00000000 00000000
9fa0: 00000000 c3af9fb0 c0030ea4 c00301b8 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff 00000028 00000000
Backtrace:
[<c030857c>] (eth_type_trans+0x0/0x11c) from [<bf000398>] (axusbnet_skb_return+0x28/0xb4 [asix])
r7:c3ae5006 r6:00000052 r5:c3ace2c0 r4:c3afe9c0
[<bf000370>] (axusbnet_skb_return+0x0/0xb4 [asix]) from [<bf0006a4>] (ax88772_rx_fixup+0x6c/0x1cc [asix])
r5:c3afe9c0 r4:c3ae5006
[<bf000638>] (ax88772_rx_fixup+0x0/0x1cc [asix]) from [<bf007688>] (axusbnet_bh+0xd0/0x2c0 [asix])
[<bf0075b8>] (axusbnet_bh+0x0/0x2c0 [asix]) from [<c004efa0>] (tasklet_action+0x78/0xf0)
r9:0000000a r8:c3af8000 r7:00000000 r6:c0535220 r5:c04d96a8
r4:00000000
[<c004ef28>] (tasklet_action+0x0/0xf0) from [<c004f634>] (__do_softirq+0x90/0x120)
r7:00000006 r6:00000100 r5:00000001 r4:00000018
[<c004f5a4>] (__do_softirq+0x0/0x120) from [<c004f70c>] (irq_exit+0x48/0x50)
[<c004f6c4>] (irq_exit+0x0/0x50) from [<c0030048>] (asm_do_IRQ+0x48/0x8c)
[<c0030000>] (asm_do_IRQ+0x0/0x8c) from [<c0030b04>] (__irq_svc+0x24/0xa0)
Exception stack(0xc3af9cd8 to 0xc3af9d20)
9cc0: c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
r7:c3ac8080 r6:04000000 r5:f4000000 r4:ffffffff
[<c0075c3c>] (find_get_page+0x0/0x84) from [<c007679c>] (filemap_fault+0x6c/0x3bc)
r5:c3aafe70 r4:00000000
[<c0076730>] (filemap_fault+0x0/0x3bc) from [<c0089484>] (__do_fault+0x58/0x3e0)
[<c008942c>] (__do_fault+0x0/0x3e0) from [<c0089f08>] (handle_mm_fault+0x104/0xae8)
[<c0089e04>] (handle_mm_fault+0x0/0xae8) from [<c0037ae8>] (do_page_fault+0x1a4/0x200)
[<c0037944>] (do_page_fault+0x0/0x200) from [<c0037c64>] (do_translation_fault+0x78/0x80)
[<c0037bec>] (do_translation_fault+0x0/0x80) from [<c00301e8>] (do_PrefetchAbort+0x40/0xa4)
r7:c04d6868 r6:00000005 r5:001e762c r4:c04d6818
[<c00301a8>] (do_PrefetchAbort+0x0/0xa4) from [<c0030ea4>] (ret_from_exception+0x0/0x10)
Exception stack(0xc3af9fb0 to 0xc3af9ff8)
9fa0: 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff
Code: e1a04001 e3a0100e ebff979e e596e088 (e5de3000)
eth1: ax88772a - Link status is: 0
---[ end trace a1d5403463fbccb5 ]---
Kernel panic - not syncing: Fatal exception in interrupt
Backtrace:
[<c0035270>] (dump_backtrace+0x0/0x10c) from [<c03a3684>] (dump_stack+0x18/0x1c)
r7:c03085a8 r6:c05148f0 r5:c3af99cf r4:c03085a8
[<c03a366c>] (dump_stack+0x0/0x1c) from [<c03a36d4>] (panic+0x4c/0x134)
eth1: ax88772a - Link status is: 1
[<c03a3688>] (panic+0x0/0x134) from [<c0035580>] (die+0x204/0x240)
r3:00000100 r2:c04d9638 r1:00007a79 r0:c0464320
[<c003537c>] (die+0x0/0x240) from [<c0037934>] (__do_kernel_fault+0x6c/0x7c)
[<c00378c8>] (__do_kernel_fault+0x0/0x7c) from [<c0037a8c>] (do_page_fault+0x148/0x200)
r7:c3aca300 r6:000000f2 r5:c3aa1d80 r4:c04d6618
[<c0037944>] (do_page_fault+0x0/0x200) from [<c003028c>] (do_DataAbort+0x40/0xa4)
[<c003024c>] (do_DataAbort+0x0/0xa4) from [<c0030ac0>] (__dabt_svc+0x40/0x60)
Exception stack(0xc3af9b70 to 0xc3af9bb8)
9b60: 00000100 0000000e 00000000 000000f2
9b80: c3ace000 c3ace2c0 c3afe9c0 c3ae5006 c3afe300 c3ace2c0 00000052 c3af9bd4
9ba0: c3afe9c0 c3af9bb8 000000f2 c03085a8 20000013 ffffffff
[<c030857c>] (eth_type_trans+0x0/0x11c) from [<bf000398>] (axusbnet_skb_return+0x28/0xb4 [asix])
r7:c3ae5006 r6:00000052 r5:c3ace2c0 r4:c3afe9c0
[<bf000370>] (axusbnet_skb_return+0x0/0xb4 [asix]) from [<bf0006a4>] (ax88772_rx_fixup+0x6c/0x1cc [asix])
r5:c3afe9c0 r4:c3ae5006
[<bf000638>] (ax88772_rx_fixup+0x0/0x1cc [asix]) from [<bf007688>] (axusbnet_bh+0xd0/0x2c0 [asix])
[<bf0075b8>] (axusbnet_bh+0x0/0x2c0 [asix]) from [<c004efa0>] (tasklet_action+0x78/0xf0)
r9:0000000a r8:c3af8000 r7:00000000 r6:c0535220 r5:c04d96a8
r4:00000000
[<c004ef28>] (tasklet_action+0x0/0xf0) from [<c004f634>] (__do_softirq+0x90/0x120)
r7:00000006 r6:00000100 r5:00000001 r4:00000018
[<c004f5a4>] (__do_softirq+0x0/0x120) from [<c004f70c>] (irq_exit+0x48/0x50)
[<c004f6c4>] (irq_exit+0x0/0x50) from [<c0030048>] (asm_do_IRQ+0x48/0x8c)
[<c0030000>] (asm_do_IRQ+0x0/0x8c) from [<c0030b04>] (__irq_svc+0x24/0xa0)
Exception stack(0xc3af9cd8 to 0xc3af9d20)
9cc0: c34084dc 00000162
9ce0: 00000000 001d9527 c34084dc 00000162 c3ab4000 c3ac8080 00000162 c3af9d88
9d00: c34084d8 c3af9d34 c3af9d38 c3af9d20 c0075c5c c014d4b4 80000013 ffffffff
r7:c3ac8080 r6:04000000 r5:f4000000 r4:ffffffff
[<c0075c3c>] (find_get_page+0x0/0x84) from [<c007679c>] (filemap_fault+0x6c/0x3bc)
r5:c3aafe70 r4:00000000
[<c0076730>] (filemap_fault+0x0/0x3bc) from [<c0089484>] (__do_fault+0x58/0x3e0)
[<c008942c>] (__do_fault+0x0/0x3e0) from [<c0089f08>] (handle_mm_fault+0x104/0xae8)
[<c0089e04>] (handle_mm_fault+0x0/0xae8) from [<c0037ae8>] (do_page_fault+0x1a4/0x200)
[<c0037944>] (do_page_fault+0x0/0x200) from [<c0037c64>] (do_translation_fault+0x78/0x80)
[<c0037bec>] (do_translation_fault+0x0/0x80) from [<c00301e8>] (do_PrefetchAbort+0x40/0xa4)
r7:c04d6868 r6:00000005 r5:001e762c r4:c04d6818
[<c00301a8>] (do_PrefetchAbort+0x0/0xa4) from [<c0030ea4>] (ret_from_exception+0x0/0x10)
Exception stack(0xc3af9fb0 to 0xc3af9ff8)
9fa0: 00000000 00000000 001e7628 0016a97c
9fc0: 00000002 001e762c 000e8198 00000000 00000000 00000003 00000000 bef4ae74
9fe0: 000e8198 bef4acd8 000e81c4 0016a97c 00000010 ffffffff</pre>
I'm so confused that dose Bridge module conflicts with the driver module of my new NIC? Or..something else?
Who can help me,Thanks a lot!:)
| 2 |
881,479 |
05/19/2009 07:58:49
| 51,604 |
01/05/2009 11:26:55
| 99 | 9 |
convert old delphi 5 project to diagrams (also vb6)
|
Does anyone know of any (free) tools that will convert an old Delhi 5 project into class diagrams / uml or any form of diagrams for ease of reading?
Also, if you know of any VB6 tools (again, preferably free) that would also convert to some form of diagrams?
|
vb6
|
delphi
| null | null | null | null |
open
|
convert old delphi 5 project to diagrams (also vb6)
===
Does anyone know of any (free) tools that will convert an old Delhi 5 project into class diagrams / uml or any form of diagrams for ease of reading?
Also, if you know of any VB6 tools (again, preferably free) that would also convert to some form of diagrams?
| 0 |
8,806,412 |
01/10/2012 16:07:43
| 507,018 |
11/13/2010 22:19:59
| 362 | 10 |
Android - xml vs. database
|
I have ListView with about 30 items. When I click on an item, some text displays.
Currently I am storing text in strings.xml, but I wonder if it's better practice to insert this text into database.
What are advantages and disadvantages of both ways? Which is faster?
|
android
|
xml
|
database
|
android-listview
| null | null |
open
|
Android - xml vs. database
===
I have ListView with about 30 items. When I click on an item, some text displays.
Currently I am storing text in strings.xml, but I wonder if it's better practice to insert this text into database.
What are advantages and disadvantages of both ways? Which is faster?
| 0 |
3,008,285 |
06/09/2010 17:33:23
| 362,719 |
06/09/2010 17:33:23
| 1 | 0 |
What do abb and cl mean...think that they have to do with licenses?
|
What does abb and cl stand for. Education related.
|
legal
| null | null | null | null |
06/09/2010 17:40:15
|
off topic
|
What do abb and cl mean...think that they have to do with licenses?
===
What does abb and cl stand for. Education related.
| 2 |
11,126,152 |
06/20/2012 18:46:49
| 1,449,980 |
06/11/2012 21:54:57
| 6 | 0 |
How to access attribute which are stored as variables
|
model Sample has attributes car,bike
x ="bike"
y = Sample.new
How can I do?
y.x ??
It gives me an error
Is there any way I can do it, I know that x is an attribute but I dont know which one.
So how can I get y.x?
|
ruby
|
variables
| null | null | null | null |
open
|
How to access attribute which are stored as variables
===
model Sample has attributes car,bike
x ="bike"
y = Sample.new
How can I do?
y.x ??
It gives me an error
Is there any way I can do it, I know that x is an attribute but I dont know which one.
So how can I get y.x?
| 0 |
6,763,729 |
07/20/2011 14:43:26
| 823,893 |
06/30/2011 21:45:26
| 1 | 0 |
How to split a string ...
|
How do I convert the following c# to ms sql?
Thanks for your help!
#region determine if Dimension has length & width
decimal _dimension = 0;
string[] xy = new string[1];
Dimension = Dimension.ToUpper();
if (Dimension.Contains('X'))
{
xy = Dimension.Split('X');
_dimension = (Convert.ToInt32(xy[0]) * Convert.ToInt32(xy[1]) / 144);
}
else
{
_dimension = Convert.ToDecimal(Dimension);
}
#endregion
DECLARE @_dimension numeric
select @_dimension = Dimension
how to upcase string?
how to split string at 'X'?
|
sql
|
ms
| null | null | null |
07/21/2011 00:51:01
|
not a real question
|
How to split a string ...
===
How do I convert the following c# to ms sql?
Thanks for your help!
#region determine if Dimension has length & width
decimal _dimension = 0;
string[] xy = new string[1];
Dimension = Dimension.ToUpper();
if (Dimension.Contains('X'))
{
xy = Dimension.Split('X');
_dimension = (Convert.ToInt32(xy[0]) * Convert.ToInt32(xy[1]) / 144);
}
else
{
_dimension = Convert.ToDecimal(Dimension);
}
#endregion
DECLARE @_dimension numeric
select @_dimension = Dimension
how to upcase string?
how to split string at 'X'?
| 1 |
11,660,255 |
07/25/2012 23:34:32
| 1,553,091 |
07/25/2012 23:30:35
| 1 | 0 |
Is there plans for Meteor to support Gentoo?
|
I operate Gentoo systems, will Meteor support for Gentoo be available at some point? Is there a way I can install on Gentoo now?
Thank you
Chuck
|
install
|
meteor
|
gentoo
| null | null |
07/27/2012 00:26:47
|
off topic
|
Is there plans for Meteor to support Gentoo?
===
I operate Gentoo systems, will Meteor support for Gentoo be available at some point? Is there a way I can install on Gentoo now?
Thank you
Chuck
| 2 |
9,961,288 |
04/01/2012 01:48:58
| 111,243 |
05/22/2009 18:47:43
| 342 | 18 |
What are great modern options for helpers and frameworks for an html5 tablet site's front end?
|
I'm trying to ask this question in a non-subjective way. The question is pretty much this:
If you had the chance to write the front end for a high-feature-count, webkit-tablet-targeted web application with rich UI demands that uses web services for all of it's data handling, what frameworks and helper libraries are the best options?
I've tried my best to keep a strong front end stack going, but I wonder now if I'm missing anything really awesome and useful.
I have and want no control over the back end, but I can change anything on the front end that I like. Here's what my stack looks like now:
- Modularization - curl.js
- DOM Abstraction - Zepto
- Capability Detection - Modernizr
- Templating - Mustache
- Code Analysis - JSHint
- Unit Testing - Qunit
- Test Automation - Maven->PhantomJS
And pieces I know of that I haven't decided on yet:
- History Managment - History.js?
- MVC/Data Models - spine.js?
- Module Stitching - cujo/cram?
What do you guys think? Am I missing anything? Am I crazy to not be using coffeescript? Is this how you would do it? I have chance to build the perfect front end architecture on the most modern web technology out there, and I want to nail it.
|
javascript
|
html5
|
architecture
|
tablet
|
frontend
|
04/25/2012 03:24:44
|
not constructive
|
What are great modern options for helpers and frameworks for an html5 tablet site's front end?
===
I'm trying to ask this question in a non-subjective way. The question is pretty much this:
If you had the chance to write the front end for a high-feature-count, webkit-tablet-targeted web application with rich UI demands that uses web services for all of it's data handling, what frameworks and helper libraries are the best options?
I've tried my best to keep a strong front end stack going, but I wonder now if I'm missing anything really awesome and useful.
I have and want no control over the back end, but I can change anything on the front end that I like. Here's what my stack looks like now:
- Modularization - curl.js
- DOM Abstraction - Zepto
- Capability Detection - Modernizr
- Templating - Mustache
- Code Analysis - JSHint
- Unit Testing - Qunit
- Test Automation - Maven->PhantomJS
And pieces I know of that I haven't decided on yet:
- History Managment - History.js?
- MVC/Data Models - spine.js?
- Module Stitching - cujo/cram?
What do you guys think? Am I missing anything? Am I crazy to not be using coffeescript? Is this how you would do it? I have chance to build the perfect front end architecture on the most modern web technology out there, and I want to nail it.
| 4 |
8,973,934 |
01/23/2012 15:20:14
| 1,161,971 |
01/21/2012 06:35:27
| 1 | 0 |
PHP How to find a line begining with a word from a text file
|
I have a text file with following lines
`Manifest-Version: 1.0
MIDlet-Vendor: Croco Gamez
MIDlet-Version: 1.0.0
MIDlet-1: Quan, /icon.png, CGTQ
MicroEdition-Configuration: CLDC-1.0
Created-By: 1.4.2 (Sun Microsystems Inc.)
MIDlet-Icon: /icon.png
MIDlet-Name: Quan
MicroEdition-Profile: MIDP-2.0`
I want to find the line start with **MIDlet-1** and Remove paragraph from end of this line
Please help me
|
php
| null | null | null | null | null |
open
|
PHP How to find a line begining with a word from a text file
===
I have a text file with following lines
`Manifest-Version: 1.0
MIDlet-Vendor: Croco Gamez
MIDlet-Version: 1.0.0
MIDlet-1: Quan, /icon.png, CGTQ
MicroEdition-Configuration: CLDC-1.0
Created-By: 1.4.2 (Sun Microsystems Inc.)
MIDlet-Icon: /icon.png
MIDlet-Name: Quan
MicroEdition-Profile: MIDP-2.0`
I want to find the line start with **MIDlet-1** and Remove paragraph from end of this line
Please help me
| 0 |
4,696,498 |
01/14/2011 22:06:45
| 409,958 |
08/03/2010 17:35:57
| 239 | 12 |
iphone SIGABRT error with registerForSystemEvents unrecognized selector
|
Hi I keep try to debug my iPhone app in the iPhone simulator firmware 4.2, but none of the apps open up and I receive this error called "SIGABRT" and the gdb says:
<code>+[MyAppDelegate registerForSystemEvents]: unrecognized selector sent to class...</code>
any suggestions as to how to fix this error?
Thanks,
Thommaye
|
iphone
|
selector
| null | null | null | null |
open
|
iphone SIGABRT error with registerForSystemEvents unrecognized selector
===
Hi I keep try to debug my iPhone app in the iPhone simulator firmware 4.2, but none of the apps open up and I receive this error called "SIGABRT" and the gdb says:
<code>+[MyAppDelegate registerForSystemEvents]: unrecognized selector sent to class...</code>
any suggestions as to how to fix this error?
Thanks,
Thommaye
| 0 |
8,320,765 |
11/30/2011 03:26:14
| 1,072,583 |
11/30/2011 03:19:29
| 1 | 0 |
C++ Queue Template STL
|
I have the default constructor but the copy constructor I am having trouble with. Any help.
enum Direction { front_to_back, back_to_front };
template <typename EType>
class Queue
{
private:
struct Node
{
EType Item;
unsigned Priority;
unsigned Identifier;
Node * Pred;
Node * Succ;
};
Node * Head; // Pointer to head of chain (front)
Node * Tail; // Pointer to tail of chain (back)
public:
// Initialize pqueue to empty
//
Queue();
// De-initialize pqueue
//
~Queue();
// Re-initialize pqueue to empty
//
void reset();
// Initialize pqueue using existing pqueue
|
c++
|
templates
|
stl
| null | null |
12/01/2011 09:20:41
|
not a real question
|
C++ Queue Template STL
===
I have the default constructor but the copy constructor I am having trouble with. Any help.
enum Direction { front_to_back, back_to_front };
template <typename EType>
class Queue
{
private:
struct Node
{
EType Item;
unsigned Priority;
unsigned Identifier;
Node * Pred;
Node * Succ;
};
Node * Head; // Pointer to head of chain (front)
Node * Tail; // Pointer to tail of chain (back)
public:
// Initialize pqueue to empty
//
Queue();
// De-initialize pqueue
//
~Queue();
// Re-initialize pqueue to empty
//
void reset();
// Initialize pqueue using existing pqueue
| 1 |
11,569,244 |
07/19/2012 21:02:27
| 1,322,534 |
04/09/2012 19:00:37
| 1 | 0 |
convert News Industry Text Format (NITF) document referenced in the ATOM feed
|
I need to convert ATOM feed that contains NITF documnet within it in XML.
Any help is appreciated.
Thanks.
|
atom
| null | null | null | null |
07/20/2012 12:12:07
|
not a real question
|
convert News Industry Text Format (NITF) document referenced in the ATOM feed
===
I need to convert ATOM feed that contains NITF documnet within it in XML.
Any help is appreciated.
Thanks.
| 1 |
7,075,119 |
08/16/2011 07:56:43
| 896,211 |
08/16/2011 07:47:21
| 1 | 0 |
How to Decrypt the Region Entity of .dxf File in java
|
I am trying to read a dxf file in java. But there is a REGION Entity where all the code is encrypted. I hava also done some research work and found few application that are decrypting the REGION Entity, but the source code in not available.
REGION
5
A5
330
6B
100
AcDbEntity
8
0
100
AcDbModelerGeometry
70
1
1
mnjoo nf m mk
1
ni ^ *+0;:,4 ^ *+0\^ [ nf ^ LR mniqoqoqkjon QK o
1
mjqlffffffffffffff fqfffffffffffffffj:rooh n:rono
1
>,27:>;:- {rn rn _nm mniqoqoqkjon |
1
=0;& {m rn {rn {l {rn {rn |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {n {k {j |
1
3*2/ {i rn {rn {rn {h {n |
3
:&:@-:961:2:1+ {rn rn _j 8-6; n _l +-6 n _k ,*-9 o _l >;5 o _k 8->; o _f /0,+<7:<4 o _k <>3< n _k <01) o _k ,+03 nqiokoijgfjogojiik _k 1+03 lo _k ;,63 o _g 93>+1:,, o _h /6'>-:> o _k 72>' o _i 8-6;>- o _j 28-6; looo _j *8-6; o _j )8-6; o _no :1;@96:3;, |
1
1
):-+:'@+:2/3>+: {rn rn l o n g |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {l {k {j |
1
,7:33 {g rn {rn {rn {rn {f {rn {l |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {h {k {j |
1
9><: {no rn {rn {rn {nn {h {rn {nm 90-(>-; ;0*=3: 0*+ |
1
92:,7r:&:r>++-6= {rn rn {nl {rn {f |
1
300/ {rn rn {rn {rn {nk {f |
1
/3>1:r,*-9><: {rn rn {rn nmliqmlijlinkjjlnj mhjqkjijmjhokjgogl o o o n n o o -:):-,:@) V V V V |
1
-:9@)+r:&:r>++-6= {rn rn {rn {no {f {k {j |
1
<0:;8: {rn rn {rn {nk {nk {rn {nj -:):-,:; {nn {rn |
1
:;8: {rn rn {rn {ni o {ni iqmglngjlohnhfjgim {nk {nh 90-(>-; _h *1410(1 |
1
):-+:' {rn rn {rn {nj m {ng |
1
:336/,:r<*-): {rn rn {rn nmliqmlijlinkjjlnj mhjqkjijmjhokjgogl o ro ro rn mqj o o n V V |
1
/061+ {rn rn {rn nmlgqhlijlinkjjlnl mhjqkjijmjhokjgogl o |
0
Please help me with the logic so that this code can be read in java. As this is in acis sat format which is property of Spatial Inc. But no description is provided in their website .
|
java
|
dxf
| null | null | null |
12/10/2011 16:54:19
|
not a real question
|
How to Decrypt the Region Entity of .dxf File in java
===
I am trying to read a dxf file in java. But there is a REGION Entity where all the code is encrypted. I hava also done some research work and found few application that are decrypting the REGION Entity, but the source code in not available.
REGION
5
A5
330
6B
100
AcDbEntity
8
0
100
AcDbModelerGeometry
70
1
1
mnjoo nf m mk
1
ni ^ *+0;:,4 ^ *+0\^ [ nf ^ LR mniqoqoqkjon QK o
1
mjqlffffffffffffff fqfffffffffffffffj:rooh n:rono
1
>,27:>;:- {rn rn _nm mniqoqoqkjon |
1
=0;& {m rn {rn {l {rn {rn |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {n {k {j |
1
3*2/ {i rn {rn {rn {h {n |
3
:&:@-:961:2:1+ {rn rn _j 8-6; n _l +-6 n _k ,*-9 o _l >;5 o _k 8->; o _f /0,+<7:<4 o _k <>3< n _k <01) o _k ,+03 nqiokoijgfjogojiik _k 1+03 lo _k ;,63 o _g 93>+1:,, o _h /6'>-:> o _k 72>' o _i 8-6;>- o _j 28-6; looo _j *8-6; o _j )8-6; o _no :1;@96:3;, |
1
1
):-+:'@+:2/3>+: {rn rn l o n g |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {l {k {j |
1
,7:33 {g rn {rn {rn {rn {f {rn {l |
1
-:9@)+r:&:r>++-6= {rn rn {rn {rn {h {k {j |
1
9><: {no rn {rn {rn {nn {h {rn {nm 90-(>-; ;0*=3: 0*+ |
1
92:,7r:&:r>++-6= {rn rn {nl {rn {f |
1
300/ {rn rn {rn {rn {nk {f |
1
/3>1:r,*-9><: {rn rn {rn nmliqmlijlinkjjlnj mhjqkjijmjhokjgogl o o o n n o o -:):-,:@) V V V V |
1
-:9@)+r:&:r>++-6= {rn rn {rn {no {f {k {j |
1
<0:;8: {rn rn {rn {nk {nk {rn {nj -:):-,:; {nn {rn |
1
:;8: {rn rn {rn {ni o {ni iqmglngjlohnhfjgim {nk {nh 90-(>-; _h *1410(1 |
1
):-+:' {rn rn {rn {nj m {ng |
1
:336/,:r<*-): {rn rn {rn nmliqmlijlinkjjlnj mhjqkjijmjhokjgogl o ro ro rn mqj o o n V V |
1
/061+ {rn rn {rn nmlgqhlijlinkjjlnl mhjqkjijmjhokjgogl o |
0
Please help me with the logic so that this code can be read in java. As this is in acis sat format which is property of Spatial Inc. But no description is provided in their website .
| 1 |
8,392,166 |
12/05/2011 21:32:21
| 234,188 |
12/17/2009 22:33:41
| 147 | 3 |
Dropdown List will not populate
|
I'm not sure how to correct the following problem. I have dropdown list that has a object data source. Then in the code there is a method like this
void InitPageData()
{
MembershipUser user = Membership.GetUser();
DataSetTableAdapters.MemberInfoTableAdapter da = new DataSetTableAdapters.MemberInfoTableAdapter();
DataSet.MemberInfoDataTable dt = da.GetMember((Guid)user.ProviderUserKey);
if (dt.Rows.Count == 1)
{
DataSet.MemberInfoRow mr = dt[0];
//rank.Text = mr.rank;
//position.Text = mr.position;
UserName.Text = user.UserName;
...
}
This method populates form fields on the page. What I'm trying to do is to have the rank dropdown list populated from the ods but use this method above to populate the selected item of the rank dropwon list with the line rank.Text = mr.rank. In this example the the line of code that throws the error is commented out otherwise it throws this: "'rank' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value".
I've chaned the code to rank.DataTextFiled = mr.rank and rank.DataValueField = mr.rankid.ToString() but this threw another error: "DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Star'." "Star" is the value of the mr.rank.
Here is what the dropdown list and the ods look like:
<asp:DropDownList runat="server" ID="rank" CssClass="txtfield" DataSourceID="ODCRanks"
DataTextField="Rank" DataValueField="ID" AppendDataBoundItems="True">
<asp:ListItem Text="--- Select a Rank ---" Value="-1" />
</asp:DropDownList>
<asp:ObjectDataSource ID="ODCRanks" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetRanks"
TypeName="RanksTableAdapters.RankTableAdapter"></asp:ObjectDataSource>
Thanks for your help.
Risho
|
c#
|
asp.net
| null | null | null | null |
open
|
Dropdown List will not populate
===
I'm not sure how to correct the following problem. I have dropdown list that has a object data source. Then in the code there is a method like this
void InitPageData()
{
MembershipUser user = Membership.GetUser();
DataSetTableAdapters.MemberInfoTableAdapter da = new DataSetTableAdapters.MemberInfoTableAdapter();
DataSet.MemberInfoDataTable dt = da.GetMember((Guid)user.ProviderUserKey);
if (dt.Rows.Count == 1)
{
DataSet.MemberInfoRow mr = dt[0];
//rank.Text = mr.rank;
//position.Text = mr.position;
UserName.Text = user.UserName;
...
}
This method populates form fields on the page. What I'm trying to do is to have the rank dropdown list populated from the ods but use this method above to populate the selected item of the rank dropwon list with the line rank.Text = mr.rank. In this example the the line of code that throws the error is commented out otherwise it throws this: "'rank' has a SelectedValue which is invalid because it does not exist in the list of items.
Parameter name: value".
I've chaned the code to rank.DataTextFiled = mr.rank and rank.DataValueField = mr.rankid.ToString() but this threw another error: "DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'Star'." "Star" is the value of the mr.rank.
Here is what the dropdown list and the ods look like:
<asp:DropDownList runat="server" ID="rank" CssClass="txtfield" DataSourceID="ODCRanks"
DataTextField="Rank" DataValueField="ID" AppendDataBoundItems="True">
<asp:ListItem Text="--- Select a Rank ---" Value="-1" />
</asp:DropDownList>
<asp:ObjectDataSource ID="ODCRanks" runat="server"
OldValuesParameterFormatString="original_{0}" SelectMethod="GetRanks"
TypeName="RanksTableAdapters.RankTableAdapter"></asp:ObjectDataSource>
Thanks for your help.
Risho
| 0 |
7,757,224 |
10/13/2011 16:23:15
| 398,970 |
07/22/2010 10:39:03
| 163 | 12 |
Automatically authorize oAuth on Linkedin authorization page
|
I already have oAuth working with the Linked API. The dance is working nicely. But now I have the Linkedin data displaying correctly on my site I'm now thinking about throttle limits and load speeds.
I don't want the site to keep requesting throughout the day. It would be better if I could run a script via cron every 6 hours to make the requests all at once. (There will be less than 3000 requests each time.) This will make my pages load faster and my site wont have to wait for the API callbacks in order to display the full page.
**Headache** = When using the Linkedin API all calls have to be authenticated. Users do this manually once per session but how can I script this process? Is there a direct way to send *my?* details to linkedin to autorize before the script carries on making requests?
----
https://developer.linkedin.com/documents/authentication
My setup uses:
- OAuth.php http://oauth.googlecode.com/svn/code/php/
- Linkedinclass.php http://code.google.com/p/simple-linkedinphp/
|
php
|
api
|
oauth
|
linkedin
| null | null |
open
|
Automatically authorize oAuth on Linkedin authorization page
===
I already have oAuth working with the Linked API. The dance is working nicely. But now I have the Linkedin data displaying correctly on my site I'm now thinking about throttle limits and load speeds.
I don't want the site to keep requesting throughout the day. It would be better if I could run a script via cron every 6 hours to make the requests all at once. (There will be less than 3000 requests each time.) This will make my pages load faster and my site wont have to wait for the API callbacks in order to display the full page.
**Headache** = When using the Linkedin API all calls have to be authenticated. Users do this manually once per session but how can I script this process? Is there a direct way to send *my?* details to linkedin to autorize before the script carries on making requests?
----
https://developer.linkedin.com/documents/authentication
My setup uses:
- OAuth.php http://oauth.googlecode.com/svn/code/php/
- Linkedinclass.php http://code.google.com/p/simple-linkedinphp/
| 0 |
11,382,681 |
07/08/2012 11:14:04
| 1,023,060 |
11/01/2011 04:09:00
| 194 | 2 |
Is there any Java online training similar to tuts.premium and lynda?
|
I am doing my research on video tutorial with regards to java. and I am wondering are there any websites out there that provides the same services like lynda? lynda has video tutorials about php, javascript etc etc. but I can't seem to find any for java. so is there websites out there that provides the same services like lynda for java?
|
java
| null | null | null | null |
07/08/2012 11:22:33
|
off topic
|
Is there any Java online training similar to tuts.premium and lynda?
===
I am doing my research on video tutorial with regards to java. and I am wondering are there any websites out there that provides the same services like lynda? lynda has video tutorials about php, javascript etc etc. but I can't seem to find any for java. so is there websites out there that provides the same services like lynda for java?
| 2 |
6,986,947 |
08/08/2011 18:43:18
| 103,432 |
05/08/2009 09:49:12
| 447 | 24 |
What are the best tools you install in Ruby on Rails MacOS development environment?
|
I'm new in Ruby on Rails world and I would like to know what tools use the big guns in their day to day work. The first of what i can think of is:
- pomodoro timer
- git client
- RubyMine
...
Thanks
|
ruby-on-rails
|
productivity
|
osx-leopard
|
rubymine
| null |
08/08/2011 22:34:15
|
not constructive
|
What are the best tools you install in Ruby on Rails MacOS development environment?
===
I'm new in Ruby on Rails world and I would like to know what tools use the big guns in their day to day work. The first of what i can think of is:
- pomodoro timer
- git client
- RubyMine
...
Thanks
| 4 |
3,362,707 |
07/29/2010 13:02:23
| 405,698 |
07/29/2010 13:00:25
| 1 | 0 |
windows 7, visual studio 2008, winforms program installer problems
|
windows 7, visual studio 2008, trying to install created windorms program (created on xp maxchine), but get installer problems when trying to install the program on any windows 7 machine 64-bit or 32-bit.
when i try to install the packaged program it says that the install is incorrect and then crashes, so that i cant run the made program on windows 7
please help, i have spent a lot of time building this suite of programs (build under 32 & 64 bit in the IDE, but without success running under windows 7 but fine on XP Pro 32-bit and 64 bit
|
visual-studio-2008
|
windows-7
| null | null | null | null |
open
|
windows 7, visual studio 2008, winforms program installer problems
===
windows 7, visual studio 2008, trying to install created windorms program (created on xp maxchine), but get installer problems when trying to install the program on any windows 7 machine 64-bit or 32-bit.
when i try to install the packaged program it says that the install is incorrect and then crashes, so that i cant run the made program on windows 7
please help, i have spent a lot of time building this suite of programs (build under 32 & 64 bit in the IDE, but without success running under windows 7 but fine on XP Pro 32-bit and 64 bit
| 0 |
4,686,886 |
01/14/2011 00:27:23
| 509,755 |
11/16/2010 16:19:13
| 26 | 0 |
Session aware spring bean
|
Is there any way to define a spring bean which will be notified when data in session has changed?
I would also like to know pure java solution if possible. All I want is when i add/edit/delete data in httpsession then I want one java class to be notified to do some processing on that data.
Thanks
|
spring
|
servlets
|
j2ee
| null | null | null |
open
|
Session aware spring bean
===
Is there any way to define a spring bean which will be notified when data in session has changed?
I would also like to know pure java solution if possible. All I want is when i add/edit/delete data in httpsession then I want one java class to be notified to do some processing on that data.
Thanks
| 0 |
3,258,421 |
07/15/2010 17:57:23
| 393,052 |
07/15/2010 17:57:23
| 1 | 0 |
Unable to modify machine.config file
|
I want to improve performance of my ASP.NET web application and want to change "processModel" tag in machine.config. But I am unable to modify "machine.config" file located at framework directory. Though I have disabled "readonly" permission for the file, still it is not working.
|
asp.net
|
iis
|
machine.config
| null | null | null |
open
|
Unable to modify machine.config file
===
I want to improve performance of my ASP.NET web application and want to change "processModel" tag in machine.config. But I am unable to modify "machine.config" file located at framework directory. Though I have disabled "readonly" permission for the file, still it is not working.
| 0 |
7,476,439 |
09/19/2011 19:47:31
| 391,104 |
07/14/2010 01:45:37
| 3,037 | 1 |
Large data processing technology & books
|
I am looking for good resources on how to query large volume of data efficiently.
Each data item is represented as many different attributes such as quantity, price, history info, etc. The client will provide different query criteria but without requirement to change the dataset. By simply storing all data into MS SQL is not a good method b/c the scalability of MS SQL is not that good. Here we are targeting many tera byte data and need 200-300 CPU clusters.
I am interested in good resources or books that I can at least do some research.
|
c++
|
query
|
large-data-volumes
| null | null |
09/20/2011 07:15:34
|
not a real question
|
Large data processing technology & books
===
I am looking for good resources on how to query large volume of data efficiently.
Each data item is represented as many different attributes such as quantity, price, history info, etc. The client will provide different query criteria but without requirement to change the dataset. By simply storing all data into MS SQL is not a good method b/c the scalability of MS SQL is not that good. Here we are targeting many tera byte data and need 200-300 CPU clusters.
I am interested in good resources or books that I can at least do some research.
| 1 |
9,249,319 |
02/12/2012 13:55:56
| 1,067,965 |
11/27/2011 14:44:30
| 1 | 1 |
Disk Partitioning error in Windows 7
|
i just received a laptop which has windows 7 installed in it. There was only one C drive. I tried to partition it and was successful but when i did the second time it gave me this error. Could some one help pls.
Error: Disk already contains maximum number of partitions.
|
partitioning
|
disk
| null | null | null |
02/12/2012 23:25:12
|
off topic
|
Disk Partitioning error in Windows 7
===
i just received a laptop which has windows 7 installed in it. There was only one C drive. I tried to partition it and was successful but when i did the second time it gave me this error. Could some one help pls.
Error: Disk already contains maximum number of partitions.
| 2 |
2,261,787 |
02/14/2010 16:31:24
| 148,814 |
08/01/2009 01:19:28
| 340 | 3 |
How to prevent automatic truncation of leading zeros in Excel cell
|
I have list of STD Codes. If I paste a STD Code as 04562 , it automatically truncates the leading zero and store it as 4562. But I want it to to store it as 04562
Plz Give me a solution. Any Help will be highly appreciated
|
excel
|
spreadsheet
|
data
|
microsoft
| null | null |
open
|
How to prevent automatic truncation of leading zeros in Excel cell
===
I have list of STD Codes. If I paste a STD Code as 04562 , it automatically truncates the leading zero and store it as 4562. But I want it to to store it as 04562
Plz Give me a solution. Any Help will be highly appreciated
| 0 |
7,312,041 |
09/05/2011 19:28:05
| 929,460 |
09/05/2011 19:28:05
| 1 | 0 |
Create 10000 text file with DOS with text
|
Create 10000 text file with DOS with text
so filename will be 1.txt and inside of it will be "numeric1.txt"
and the next text file will be 2.txt and inside of it will be "numeric2.txt"
and the next text file will be 3.txt and inside of it will be "numeric3.txt"
and the next text file will be 4.txt and inside of it will be "numeric4.txt"
and the next text file will be 5.txt and inside of it will be "numeric5.txt"
and the next text file will be 6.txt and inside of it will be "numeric6.txt"
and the next text file will be 7.txt and inside of it will be "numeric7.txt"
and the next text file will be 8.txt and inside of it will be "numeric8.txt"
and the next text file will be 9.txt and inside of it will be "numeric9.txt"
and the next text file will be 10.txt and inside of it will be "numeric10.txt"
.
.
.
.
until the last text file will be 10000.txt and inside of it will be "numeric10000.txt"
Can you please help me with that ?
Regards
|
dos
| null | null | null | null |
09/06/2011 03:30:02
|
not a real question
|
Create 10000 text file with DOS with text
===
Create 10000 text file with DOS with text
so filename will be 1.txt and inside of it will be "numeric1.txt"
and the next text file will be 2.txt and inside of it will be "numeric2.txt"
and the next text file will be 3.txt and inside of it will be "numeric3.txt"
and the next text file will be 4.txt and inside of it will be "numeric4.txt"
and the next text file will be 5.txt and inside of it will be "numeric5.txt"
and the next text file will be 6.txt and inside of it will be "numeric6.txt"
and the next text file will be 7.txt and inside of it will be "numeric7.txt"
and the next text file will be 8.txt and inside of it will be "numeric8.txt"
and the next text file will be 9.txt and inside of it will be "numeric9.txt"
and the next text file will be 10.txt and inside of it will be "numeric10.txt"
.
.
.
.
until the last text file will be 10000.txt and inside of it will be "numeric10000.txt"
Can you please help me with that ?
Regards
| 1 |
6,071,324 |
05/20/2011 11:34:54
| 762,660 |
05/20/2011 11:34:54
| 1 | 0 |
How to get data from doc and store in excel
|
Hai i have uploaded resume i want to store some fields Mobile number email id to excel
Can any one suggest algorithm for this
|
php
|
javascript
|
algorithm
| null | null |
05/20/2011 14:44:45
|
not a real question
|
How to get data from doc and store in excel
===
Hai i have uploaded resume i want to store some fields Mobile number email id to excel
Can any one suggest algorithm for this
| 1 |
10,066,380 |
04/08/2012 20:48:33
| 1,320,771 |
04/08/2012 20:42:04
| 1 | 0 |
Using a Django website on company intranet
|
I worked in an office for several months on the IT helpdesk and my boss asked me recently if I could possibly develop a small app for a few members of staff to use.
Having used Django with Python a few times I feel it would be a good idea to develop it this way, and figured a good idea would be to run the application on one of the company servers and just access it using an internal address. The servers are Windows Server 2003/2008.
How easy is it to achieve this? And other than Python what would have to be installed on the server which hosts the app/site?
|
python
|
django
|
intranet
| null | null | null |
open
|
Using a Django website on company intranet
===
I worked in an office for several months on the IT helpdesk and my boss asked me recently if I could possibly develop a small app for a few members of staff to use.
Having used Django with Python a few times I feel it would be a good idea to develop it this way, and figured a good idea would be to run the application on one of the company servers and just access it using an internal address. The servers are Windows Server 2003/2008.
How easy is it to achieve this? And other than Python what would have to be installed on the server which hosts the app/site?
| 0 |
6,208,429 |
06/01/2011 18:35:48
| 780,393 |
06/02/2011 01:31:46
| 1 | 0 |
Android emulator has stopped unexpectedly.How to Rectify it??
|
I am new to Android Development.
I am using Eclipse.
I copied the snake game from the sample example.
When I try to run it the following things are displayed on the console:
11-06-01 20:11:32 - Snake] Android Launch!
[2011-06-01 20:11:32 - Snake] adb is running normally.
[2011-06-01 20:11:32 - Snake] Performing
com.example.android.snake.Snake activity launch
[2011-06-01 20:11:32 - Snake] Automatic Target Mode: Preferred AVD
'Pratyush_android' is not available. Launching new emulator.
[2011-06-01 20:11:32 - Snake] Launching a new emulator with Virtual
Device 'Pratyush_android'
[2011-06-01 20:11:33 - Snake] New emulator found: emulator-5554
[2011-06-01 20:11:33 - Snake] Waiting for HOME
('android.process.acore') to be launched...
[2011-06-01 20:11:54 - Snake] WARNING: Application does not specify an
API level requirement!
[2011-06-01 20:11:54 - Snake] Device API version is 4 (Android 1.6)
[2011-06-01 20:11:54 - Snake] HOME is up on device 'emulator-5554'
[2011-06-01 20:11:54 - Snake] Uploading Snake.apk onto device
'emulator-5554'
[2011-06-01 20:11:54 - Snake] Installing Snake.apk...
[2011-06-01 20:12:06 - Snake] Success!
[2011-06-01 20:12:06 - Snake] Starting activity
com.example.android.snake.Snake on device emulator-5554
[2011-06-01 20:12:11 - Snake] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example.android.snake/.Snake }
On the screen of the Emulator, it says:
SCREEN is LOCKED ,Unlock it by pressing Menu
When I Press Menu, there is a message box:
The application(process com.example.android.snake) has stopped
unexpectedly.
Please try again.
What could be causing this?
|
android
|
debugging
| null | null | null | null |
open
|
Android emulator has stopped unexpectedly.How to Rectify it??
===
I am new to Android Development.
I am using Eclipse.
I copied the snake game from the sample example.
When I try to run it the following things are displayed on the console:
11-06-01 20:11:32 - Snake] Android Launch!
[2011-06-01 20:11:32 - Snake] adb is running normally.
[2011-06-01 20:11:32 - Snake] Performing
com.example.android.snake.Snake activity launch
[2011-06-01 20:11:32 - Snake] Automatic Target Mode: Preferred AVD
'Pratyush_android' is not available. Launching new emulator.
[2011-06-01 20:11:32 - Snake] Launching a new emulator with Virtual
Device 'Pratyush_android'
[2011-06-01 20:11:33 - Snake] New emulator found: emulator-5554
[2011-06-01 20:11:33 - Snake] Waiting for HOME
('android.process.acore') to be launched...
[2011-06-01 20:11:54 - Snake] WARNING: Application does not specify an
API level requirement!
[2011-06-01 20:11:54 - Snake] Device API version is 4 (Android 1.6)
[2011-06-01 20:11:54 - Snake] HOME is up on device 'emulator-5554'
[2011-06-01 20:11:54 - Snake] Uploading Snake.apk onto device
'emulator-5554'
[2011-06-01 20:11:54 - Snake] Installing Snake.apk...
[2011-06-01 20:12:06 - Snake] Success!
[2011-06-01 20:12:06 - Snake] Starting activity
com.example.android.snake.Snake on device emulator-5554
[2011-06-01 20:12:11 - Snake] ActivityManager: Starting: Intent
{ act=android.intent.action.MAIN
cat=[android.intent.category.LAUNCHER]
cmp=com.example.android.snake/.Snake }
On the screen of the Emulator, it says:
SCREEN is LOCKED ,Unlock it by pressing Menu
When I Press Menu, there is a message box:
The application(process com.example.android.snake) has stopped
unexpectedly.
Please try again.
What could be causing this?
| 0 |
834,101 |
05/07/2009 11:20:02
| 100,747 |
05/04/2009 08:49:24
| 28 | 9 |
creating dynamic textboxes with 'paging'
|
based on the solution here: http://stackoverflow.com/questions/827175/entering-values-into-database-from-unlimited-dynamic-controls
i could successfully create dynamic asp.net controls at runtime. so if the user enters 10, it displays 10 textboxes and if the user displayed 50 it displays 50. so far it's good. but 50 textboxes would make the page very lengthy.
how should i display the textboxes side-by-side? is paging a good idea?
|
asp.net
|
textbox
|
dynamic
|
runtime
|
paging
| null |
open
|
creating dynamic textboxes with 'paging'
===
based on the solution here: http://stackoverflow.com/questions/827175/entering-values-into-database-from-unlimited-dynamic-controls
i could successfully create dynamic asp.net controls at runtime. so if the user enters 10, it displays 10 textboxes and if the user displayed 50 it displays 50. so far it's good. but 50 textboxes would make the page very lengthy.
how should i display the textboxes side-by-side? is paging a good idea?
| 0 |
6,917,833 |
08/02/2011 19:57:45
| 868,412 |
07/28/2011 22:31:11
| 3 | 0 |
using a sorting algorithm in Java?
|
I'm trying to make a project that asks for the number of strings a person wants. then prompts the person to enter the strings in any order. Then I am supposed to order them alphabetically and I CAN NOT use Java.util at all. I am supposed to use any type of sorting algorithm that can sort the inputted strings in alphabetical order. This is my code so far. Could any one help me put a sorting algorithm in my code.
package sorting;
import java.io.*;
public class Sorting
{
private static BufferedReader stdin = new BufferedReader( new InputStreamReader( System.in ) );
public static void main(String[] arguments) throws IOException
{
System.out.println("How many strings would you like to enter?");
int stringCount = Integer.parseInt(stdin.readLine());
String[] stringInput = new String[stringCount];
for(int i = 0; i < stringCount; i++)
{
System.out.print("Could you enter the strings here: ");
stringInput[i] = stdin.readLine();
}
}
}
|
java
|
algorithm
|
sorting
| null | null |
08/02/2011 22:35:22
|
not a real question
|
using a sorting algorithm in Java?
===
I'm trying to make a project that asks for the number of strings a person wants. then prompts the person to enter the strings in any order. Then I am supposed to order them alphabetically and I CAN NOT use Java.util at all. I am supposed to use any type of sorting algorithm that can sort the inputted strings in alphabetical order. This is my code so far. Could any one help me put a sorting algorithm in my code.
package sorting;
import java.io.*;
public class Sorting
{
private static BufferedReader stdin = new BufferedReader( new InputStreamReader( System.in ) );
public static void main(String[] arguments) throws IOException
{
System.out.println("How many strings would you like to enter?");
int stringCount = Integer.parseInt(stdin.readLine());
String[] stringInput = new String[stringCount];
for(int i = 0; i < stringCount; i++)
{
System.out.print("Could you enter the strings here: ");
stringInput[i] = stdin.readLine();
}
}
}
| 1 |
8,117,372 |
11/14/2011 04:34:15
| 277,498 |
02/20/2010 04:00:51
| 139 | 11 |
Making z-order work between fixed and staticaly positioned divs
|
Consider: http://jsfiddle.net/PxabT/48/
I want the 'left' div to fall behind the 'ft' div. z-order doesn't work. Note, position of the 'left' div is fixed, but the position of the 'ft' div is not. How do I make 'left' fall behind 'ft'?
Thanks!
|
html
|
css
| null | null | null | null |
open
|
Making z-order work between fixed and staticaly positioned divs
===
Consider: http://jsfiddle.net/PxabT/48/
I want the 'left' div to fall behind the 'ft' div. z-order doesn't work. Note, position of the 'left' div is fixed, but the position of the 'ft' div is not. How do I make 'left' fall behind 'ft'?
Thanks!
| 0 |
1,762,494 |
11/19/2009 10:55:29
| 171,528 |
09/10/2009 15:40:20
| 8 | 6 |
Regular expression required
|
Please give me one regular expression which mathes these kind of name formats like:
1) M/S.KHALIL WARDE S.A.L.
2) Oliver Twist
The expression should allow alphabets, dot, space and / only.
thanks
|
regular-expression
| null | null | null | null |
01/22/2012 19:56:05
|
not a real question
|
Regular expression required
===
Please give me one regular expression which mathes these kind of name formats like:
1) M/S.KHALIL WARDE S.A.L.
2) Oliver Twist
The expression should allow alphabets, dot, space and / only.
thanks
| 1 |
6,979,166 |
08/08/2011 07:57:08
| 788,711 |
06/08/2011 07:02:38
| 40 | 0 |
Undifined control sequence error in miktex
|
hi I am using mikTex to compile my latex file generated from Doxygen. But every time i am getting ! Undefined control sequence. as an error.
|
latex
|
doxygen
|
miktex
| null | null |
08/25/2011 18:24:20
|
not a real question
|
Undifined control sequence error in miktex
===
hi I am using mikTex to compile my latex file generated from Doxygen. But every time i am getting ! Undefined control sequence. as an error.
| 1 |
10,360,489 |
04/28/2012 04:06:14
| 1,144,981 |
01/12/2012 08:00:57
| 1 | 0 |
Insert Query is not working with phpexcel Script
|
I am using phpExcel library for import data from excel(csv) file into mysql data. Every thing is working fine except mysql insert query below is my source code. Please after review my codes let me know where is problem. I have tried with an array but im fail too. Please review my table and let me know which query will be better in this PhpExcel Library. Thanks in advance.
> $objPHPExcel = PHPExcel_IOFactory::load("ebay.csv");<br>
foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) {<br>
$worksheetTitle = $worksheet->getTitle();<br>
$highestRow = $worksheet->getHighestRow(); <br>
$highestColumn = $worksheet->getHighestColumn(); <br>
$highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn);<br>
$nrColumns = ord($highestColumn) - 64;<br>
> for ($row=2; $row<=$highestRow; $row++) {<br>
$cell = $worksheet->getCellByColumnAndRow(3, $row)->getValue();<br>
> mysql_query("INSERT INTO myTableName (`title`) VALUES ('$cell')");
}
}
|
php
|
mysql
|
database
|
phpexcel
| null | null |
open
|
Insert Query is not working with phpexcel Script
===
I am using phpExcel library for import data from excel(csv) file into mysql data. Every thing is working fine except mysql insert query below is my source code. Please after review my codes let me know where is problem. I have tried with an array but im fail too. Please review my table and let me know which query will be better in this PhpExcel Library. Thanks in advance.
> $objPHPExcel = PHPExcel_IOFactory::load("ebay.csv");<br>
foreach ($objPHPExcel->getWorksheetIterator() as $worksheet) {<br>
$worksheetTitle = $worksheet->getTitle();<br>
$highestRow = $worksheet->getHighestRow(); <br>
$highestColumn = $worksheet->getHighestColumn(); <br>
$highestColumnIndex = PHPExcel_Cell::columnIndexFromString($highestColumn);<br>
$nrColumns = ord($highestColumn) - 64;<br>
> for ($row=2; $row<=$highestRow; $row++) {<br>
$cell = $worksheet->getCellByColumnAndRow(3, $row)->getValue();<br>
> mysql_query("INSERT INTO myTableName (`title`) VALUES ('$cell')");
}
}
| 0 |
5,813,366 |
04/28/2011 03:43:15
| 248,430 |
01/11/2010 22:14:18
| 947 | 2 |
TFS how to terminate/close a project
|
I am migrating from TFS to SVN, however want to keep TFS repository for reference. Is is possible to make the TFS project read-only? So no one can commit new changes.
|
tfs
| null | null | null | null | null |
open
|
TFS how to terminate/close a project
===
I am migrating from TFS to SVN, however want to keep TFS repository for reference. Is is possible to make the TFS project read-only? So no one can commit new changes.
| 0 |
10,989,286 |
06/12/2012 00:49:15
| 689,416 |
12/04/2010 12:11:38
| 157 | 10 |
How to post to a conversation scope bean or access this bean from a servlet
|
The scenario, I have a client website that needs to post data to the server website. During the post, the server open a login page to authenticate the client and after successful authentication store the data in the database.
I'm using javaee6, jsf, ejb.
Questions:
1.) I'm posting on a servlet but can't get a hold of the conversation scope bean, so that I can show the posted data on the login screen at the same time store in the conversation scope bean. After successful login get the data from the bean and store in the database.
2.) Can I post directly to a page, with a conversation scope backing bean?
Thanks,
<br />czetsuya
|
servlets
|
ejb
|
conversation-scope
| null | null | null |
open
|
How to post to a conversation scope bean or access this bean from a servlet
===
The scenario, I have a client website that needs to post data to the server website. During the post, the server open a login page to authenticate the client and after successful authentication store the data in the database.
I'm using javaee6, jsf, ejb.
Questions:
1.) I'm posting on a servlet but can't get a hold of the conversation scope bean, so that I can show the posted data on the login screen at the same time store in the conversation scope bean. After successful login get the data from the bean and store in the database.
2.) Can I post directly to a page, with a conversation scope backing bean?
Thanks,
<br />czetsuya
| 0 |
6,404,671 |
06/19/2011 19:35:00
| 268,114 |
02/07/2010 13:00:16
| 43 | 2 |
Trigger jQuery Validation Manually?
|
I have i form i submit via jQuery's .submit(), unfortunately it does not trigger the validation plugin when i do it this way. If i place a submit button inside the form, it works perfectly.
Is there someway to trigger the plugin manually?
Thanks in advance.
|
javascript
|
jquery
|
validation
| null | null | null |
open
|
Trigger jQuery Validation Manually?
===
I have i form i submit via jQuery's .submit(), unfortunately it does not trigger the validation plugin when i do it this way. If i place a submit button inside the form, it works perfectly.
Is there someway to trigger the plugin manually?
Thanks in advance.
| 0 |
7,824,516 |
10/19/2011 16:16:48
| 804,128 |
06/18/2011 00:46:58
| 128 | 1 |
Product key authentication over mysql, is it safe?
|
I am linking a user's computer' unqiue ID to their purchased product key to make sure they can only run their purchased app on 1 computer at a time, and can't share it with anyone else. Currently, I am just retrieving the id and key from a mysql database and see if they match, but is this safe enough?
I would imagine that if someone were to mimic the mysql database, and alter their windows host file to redirect my servers IP to their own localhost, they could make their own keys and prevent the application from ever even connecting to my server in the first place.
I have no idea how hard / easy it is to do the above (like figuring out what the mysql structure is like), but I'm hoping someone here does and possibly provide a better alternative.
|
mysql
|
vb.net
| null | null | null | null |
open
|
Product key authentication over mysql, is it safe?
===
I am linking a user's computer' unqiue ID to their purchased product key to make sure they can only run their purchased app on 1 computer at a time, and can't share it with anyone else. Currently, I am just retrieving the id and key from a mysql database and see if they match, but is this safe enough?
I would imagine that if someone were to mimic the mysql database, and alter their windows host file to redirect my servers IP to their own localhost, they could make their own keys and prevent the application from ever even connecting to my server in the first place.
I have no idea how hard / easy it is to do the above (like figuring out what the mysql structure is like), but I'm hoping someone here does and possibly provide a better alternative.
| 0 |
9,102,185 |
02/01/2012 19:44:53
| 128,516 |
06/24/2009 22:39:50
| 110 | 0 |
internet explorer font face ssl
|
The fonts for my site are working fine in all browsers using http. However when I change to https the fonts don't work in IE8 and below(haven't tested 9 yet).
Using IE, when I type the path to the .eot file using http, I get the option to download the file, but when I use https, it says it can't be found.
I'm using a self assigned certificate. iis 7.5 .net 4.0, umbraco 4.7.0 cms, client dependency framework (I have tried with client dependency framework removed, still didn't work).
<style type="text/css">
@font-face {
font-family: 'GGX88UltraLight';
src: url('/css/type/ggx88_ul-webfont.eot');
src: url('/css/type/ggx88_ul-webfont.eot?iefix') format('embedded-opentype'),
url('/css/type/ggx88_ul-webfont.woff') format('woff'),
url('/css/type/ggx88_ul-webfont.ttf') format('truetype'),
url('/css/type/ggx88_ul-webfont.svg#webfontU6kiGgEl') format('svg');
font-weight: normal;
font-style: normal;
}
</style>
web config values that might be useful
<staticContent>
<!-- Set expire headers to 30 days for static content-->
<clientCache cacheControlMode="DisableCache" cacheControlMaxAge="30.00:00:00" />
<!-- use utf-8 encoding for anything served text/plain or text/html -->
<remove fileExtension=".css" />
<mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
<remove fileExtension=".js" />
<mimeMap fileExtension=".js" mimeType="text/javascript; charset=UTF-8" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
<remove fileExtension=".rss" />
<mimeMap fileExtension=".rss" mimeType="application/rss+xml; charset=UTF-8" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html; charset=UTF-8" />
<remove fileExtension=".xml" />
<mimeMap fileExtension=".xml" mimeType="application/xml; charset=UTF-8" />
<!-- HTML5 Video mime types-->
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />
<mimeMap fileExtension=".ogg" mimeType="video/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<!-- Remove default IIS mime type for .eot which is application/octet-stream -->
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
<mimeMap fileExtension=".crx" mimeType="application/x-chrome-extension" />
<mimeMap fileExtension=".xpi" mimeType="application/x-xpinstall" />
<mimeMap fileExtension=".safariextz" mimeType="application/octet-stream" />
</staticContent>
<httpProtocol allowKeepAlive="true">
<customHeaders>
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
|
css
|
iis7
| null | null | null | null |
open
|
internet explorer font face ssl
===
The fonts for my site are working fine in all browsers using http. However when I change to https the fonts don't work in IE8 and below(haven't tested 9 yet).
Using IE, when I type the path to the .eot file using http, I get the option to download the file, but when I use https, it says it can't be found.
I'm using a self assigned certificate. iis 7.5 .net 4.0, umbraco 4.7.0 cms, client dependency framework (I have tried with client dependency framework removed, still didn't work).
<style type="text/css">
@font-face {
font-family: 'GGX88UltraLight';
src: url('/css/type/ggx88_ul-webfont.eot');
src: url('/css/type/ggx88_ul-webfont.eot?iefix') format('embedded-opentype'),
url('/css/type/ggx88_ul-webfont.woff') format('woff'),
url('/css/type/ggx88_ul-webfont.ttf') format('truetype'),
url('/css/type/ggx88_ul-webfont.svg#webfontU6kiGgEl') format('svg');
font-weight: normal;
font-style: normal;
}
</style>
web config values that might be useful
<staticContent>
<!-- Set expire headers to 30 days for static content-->
<clientCache cacheControlMode="DisableCache" cacheControlMaxAge="30.00:00:00" />
<!-- use utf-8 encoding for anything served text/plain or text/html -->
<remove fileExtension=".css" />
<mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
<remove fileExtension=".js" />
<mimeMap fileExtension=".js" mimeType="text/javascript; charset=UTF-8" />
<remove fileExtension=".json" />
<mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
<remove fileExtension=".rss" />
<mimeMap fileExtension=".rss" mimeType="application/rss+xml; charset=UTF-8" />
<remove fileExtension=".html" />
<mimeMap fileExtension=".html" mimeType="text/html; charset=UTF-8" />
<remove fileExtension=".xml" />
<mimeMap fileExtension=".xml" mimeType="application/xml; charset=UTF-8" />
<!-- HTML5 Video mime types-->
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<mimeMap fileExtension=".m4v" mimeType="video/m4v" />
<mimeMap fileExtension=".ogg" mimeType="video/ogg" />
<mimeMap fileExtension=".ogv" mimeType="video/ogg" />
<mimeMap fileExtension=".webm" mimeType="video/webm" />
<!-- Remove default IIS mime type for .eot which is application/octet-stream -->
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />
<mimeMap fileExtension=".crx" mimeType="application/x-chrome-extension" />
<mimeMap fileExtension=".xpi" mimeType="application/x-xpinstall" />
<mimeMap fileExtension=".safariextz" mimeType="application/octet-stream" />
</staticContent>
<httpProtocol allowKeepAlive="true">
<customHeaders>
<add name="X-UA-Compatible" value="IE=Edge,chrome=1" />
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
| 0 |
4,384,165 |
12/08/2010 04:28:00
| 186,128 |
10/08/2009 04:54:23
| 28 | 1 |
jQuery fadeIn and fadeOut on hover freeze after using .stop()
|
I have a simple hover fadeIn and fadeOut as you will see in my code. The problem is that to prevent the fadeIn/Out from happening a 100 times i have to use .stop() before i call fadeIn/Out, but the stop seems to freeze the elements fade and then when you hover back over it will only fade in as far as you let it, you can see an example here: http://ena.vu/jhover/jhover.html
and the jQ code is:
<pre><code>
obj.children().hover(function(e){
$(this).find("."+options.title_class).stop().fadeIn(options.title_speed);
},function(){
$(this).find("."+options.title_class).stop().fadeOut(options.title_speed);
});</code></pre>
|
javascript
|
jquery
|
hover
|
fadein
|
fadeout
| null |
open
|
jQuery fadeIn and fadeOut on hover freeze after using .stop()
===
I have a simple hover fadeIn and fadeOut as you will see in my code. The problem is that to prevent the fadeIn/Out from happening a 100 times i have to use .stop() before i call fadeIn/Out, but the stop seems to freeze the elements fade and then when you hover back over it will only fade in as far as you let it, you can see an example here: http://ena.vu/jhover/jhover.html
and the jQ code is:
<pre><code>
obj.children().hover(function(e){
$(this).find("."+options.title_class).stop().fadeIn(options.title_speed);
},function(){
$(this).find("."+options.title_class).stop().fadeOut(options.title_speed);
});</code></pre>
| 0 |
4,286,857 |
11/26/2010 16:12:26
| 407,418 |
07/31/2010 11:04:41
| 272 | 1 |
how to change the session scope in php?
|
i am using php to develop web applications. i used session to pass information from one page to other page. but the session is reset when it comes to other page. i think it is due to wrong scope of sessions(page scope)! am i correct? if it is the problem, then how to overcome the problem? please help me. thanks in advance!
|
php
|
web-applications
|
session
| null | null | null |
open
|
how to change the session scope in php?
===
i am using php to develop web applications. i used session to pass information from one page to other page. but the session is reset when it comes to other page. i think it is due to wrong scope of sessions(page scope)! am i correct? if it is the problem, then how to overcome the problem? please help me. thanks in advance!
| 0 |
8,899,058 |
01/17/2012 17:32:23
| 1,151,442 |
01/16/2012 08:05:58
| 6 | 0 |
Pls help how to get only HH:MM:SS from Date and assign back to Date datatype so that i can insert in my Database?
|
Mon Dec 01 09:00:00 IST 1969
i just want 09:00:00 to be stored in Database because the column is of Date Time datatype
pls help !
Thanks in advance..
|
java
|
mysql
| null | null | null |
01/18/2012 01:37:17
|
not a real question
|
Pls help how to get only HH:MM:SS from Date and assign back to Date datatype so that i can insert in my Database?
===
Mon Dec 01 09:00:00 IST 1969
i just want 09:00:00 to be stored in Database because the column is of Date Time datatype
pls help !
Thanks in advance..
| 1 |
178,560 |
10/07/2008 13:55:39
| 8,815 |
09/15/2008 16:55:45
| 626 | 28 |
Which PHP CMS has the best architecture?
|
In your opinion, which PHP CMS has the best architecture? I don't care about how easy its admin panel is to use, or how many CMS features it has. Right now, I'm after how good its *code* is (so, please, don't even mention Drupal or Wordpress /shudder). I want to know which ones have a good, solid, OOP codebase.
Please provide as much detail as you can in your replies.
|
php
|
content-management-system
|
architecture
|
oop
|
add-in
|
09/11/2011 17:22:22
|
not constructive
|
Which PHP CMS has the best architecture?
===
In your opinion, which PHP CMS has the best architecture? I don't care about how easy its admin panel is to use, or how many CMS features it has. Right now, I'm after how good its *code* is (so, please, don't even mention Drupal or Wordpress /shudder). I want to know which ones have a good, solid, OOP codebase.
Please provide as much detail as you can in your replies.
| 4 |
10,817,773 |
05/30/2012 13:55:54
| 867,711 |
07/28/2011 14:31:45
| 13 | 0 |
Concurrently Access and Write to a Synchronized Dictionary Efficiently in C#
|
I'm looking for the most efficient way to store key value pairs in a static Synchronized Dictionary (.NET 3.5, so not ConcurrentDictionary) while being able to access them at the same time.
Dictionary.Add(key, value);
if (Dictionary.Count >= 200)
{
foreach (KeyValuePair<string, Info> pair in Dictionary)
{
Info entry = pair.Value;
StoreInDatabase(entry);
}
Dictionary.Clear();
}
This is where the problem lies. If one user is adding to the dictionary while another is accessing and storing to the database it breaks.
lock (Dictionary)
{
//Same Code Above
}
I put a lock in, and it seems to work fine, but I'm wondering if there is a more efficient way of doing this. It's not as efficient as I'd like it to be. Any suggestions would be much appreciated!
Note: I have to use the StoreInDatabase method to store the values.
|
c#
|
performance
|
concurrency
| null | null | null |
open
|
Concurrently Access and Write to a Synchronized Dictionary Efficiently in C#
===
I'm looking for the most efficient way to store key value pairs in a static Synchronized Dictionary (.NET 3.5, so not ConcurrentDictionary) while being able to access them at the same time.
Dictionary.Add(key, value);
if (Dictionary.Count >= 200)
{
foreach (KeyValuePair<string, Info> pair in Dictionary)
{
Info entry = pair.Value;
StoreInDatabase(entry);
}
Dictionary.Clear();
}
This is where the problem lies. If one user is adding to the dictionary while another is accessing and storing to the database it breaks.
lock (Dictionary)
{
//Same Code Above
}
I put a lock in, and it seems to work fine, but I'm wondering if there is a more efficient way of doing this. It's not as efficient as I'd like it to be. Any suggestions would be much appreciated!
Note: I have to use the StoreInDatabase method to store the values.
| 0 |
10,820,768 |
05/30/2012 16:54:36
| 1,426,572 |
05/30/2012 16:41:18
| 1 | 0 |
Several errors "Access of undefined property"
|
So I have this pretty basic code in my document class:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.ui.*;
import flash.events.MouseEvent;
import flash.display.Stage;
import flash.display.MovieClip;
public class Main extends Sprite
{
//Properties
public var circle:Circle;
public var vx:Number;
public var vy:Number;
addEventListener(KeyboardEvent.KEY_DOWN, onKeyboardDown);
addEventListener(KeyboardEvent.KEY_UP, onKeyboardUp);
addEventListener(Event.ENTER_FRAME, onEnter);
public function addedToStageHandler(event:Event):void
{
}
public function Main()
{
super();
init();
}
public function init():void
{
vx = 0;
vy = 0;
circle = new Circle(35, 0x0066FF);
stage.addChild(circle);
circle.x = 50;
circle.y = 50;
}
public function onKeyboardDown(event:KeyboardEvent):void
{
switch(event.keyCode)
{
case Keyboard.LEFT:
vx = -5;
break;
case Keyboard.RIGHT:
vx = 5;
break;
case Keyboard.UP:
vy = -5;
break;
case Keyboard.DOWN:
vy = 5;
break;
}
}
public function onKeyboardUp(event:KeyboardEvent):void
{
switch(event.keyCode)
{
case Keyboard.LEFT:
vx = 0;
break;
case Keyboard.RIGHT:
vx = 0;
break;
case Keyboard.UP:
vy = 0;
break;
case Keyboard.DOWN:
vy = 0;
break;
}
}
public function onEnter(event:Event):void
{
circle.x += vx;
circle.y += vy;
}
}
}
The problem is that I keep getting errors that to a beginner don't make any sense:
"Call to a possibly undefined method addEventListener." x 3
"Access of undefined property onEnter."
"Access of undefined property onKeyboardUp."
"Access of undefined property onKeyboardDown."
I really don't understand this issue. How can AS3 not recognize addEventListener? As well, I did have it so my event listeners were added to the stage "stage.addEventListener" and it wasn't recognizing the stage either. Can somebody push me in the right direction with this issue? Thanks!
|
actionscript-3
|
addeventlistener
|
stage
| null | null | null |
open
|
Several errors "Access of undefined property"
===
So I have this pretty basic code in my document class:
package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.KeyboardEvent;
import flash.ui.*;
import flash.events.MouseEvent;
import flash.display.Stage;
import flash.display.MovieClip;
public class Main extends Sprite
{
//Properties
public var circle:Circle;
public var vx:Number;
public var vy:Number;
addEventListener(KeyboardEvent.KEY_DOWN, onKeyboardDown);
addEventListener(KeyboardEvent.KEY_UP, onKeyboardUp);
addEventListener(Event.ENTER_FRAME, onEnter);
public function addedToStageHandler(event:Event):void
{
}
public function Main()
{
super();
init();
}
public function init():void
{
vx = 0;
vy = 0;
circle = new Circle(35, 0x0066FF);
stage.addChild(circle);
circle.x = 50;
circle.y = 50;
}
public function onKeyboardDown(event:KeyboardEvent):void
{
switch(event.keyCode)
{
case Keyboard.LEFT:
vx = -5;
break;
case Keyboard.RIGHT:
vx = 5;
break;
case Keyboard.UP:
vy = -5;
break;
case Keyboard.DOWN:
vy = 5;
break;
}
}
public function onKeyboardUp(event:KeyboardEvent):void
{
switch(event.keyCode)
{
case Keyboard.LEFT:
vx = 0;
break;
case Keyboard.RIGHT:
vx = 0;
break;
case Keyboard.UP:
vy = 0;
break;
case Keyboard.DOWN:
vy = 0;
break;
}
}
public function onEnter(event:Event):void
{
circle.x += vx;
circle.y += vy;
}
}
}
The problem is that I keep getting errors that to a beginner don't make any sense:
"Call to a possibly undefined method addEventListener." x 3
"Access of undefined property onEnter."
"Access of undefined property onKeyboardUp."
"Access of undefined property onKeyboardDown."
I really don't understand this issue. How can AS3 not recognize addEventListener? As well, I did have it so my event listeners were added to the stage "stage.addEventListener" and it wasn't recognizing the stage either. Can somebody push me in the right direction with this issue? Thanks!
| 0 |
7,715,908 |
10/10/2011 16:35:33
| 966,185 |
09/27/2011 03:04:10
| 23 | 2 |
Graphics lib for 'SVG Editor'
|
I want to create my own SVG Editor on Java. Suggest good library for this. Please. It library should be simple and fast.
|
java
|
graphics
|
svg
| null | null |
12/26/2011 18:45:57
|
not a real question
|
Graphics lib for 'SVG Editor'
===
I want to create my own SVG Editor on Java. Suggest good library for this. Please. It library should be simple and fast.
| 1 |
6,125,042 |
05/25/2011 13:16:09
| 739,477 |
05/05/2011 08:16:24
| 1 | 0 |
Benefit of writing (1<<24 - 1) instead of FFFFFF?
|
I have a piece of code in C with the following:
a = b & ((1<<24) - 1);
If I am not mistaking, this is equivalent to:
a = b & 0xFFFFFF;
What is the benefit in terms of performance to write the first one? For me it is more complicated to read, but I suppose the guy who wrote that had a better C background than I have.
Thanks
|
c
| null | null | null | null | null |
open
|
Benefit of writing (1<<24 - 1) instead of FFFFFF?
===
I have a piece of code in C with the following:
a = b & ((1<<24) - 1);
If I am not mistaking, this is equivalent to:
a = b & 0xFFFFFF;
What is the benefit in terms of performance to write the first one? For me it is more complicated to read, but I suppose the guy who wrote that had a better C background than I have.
Thanks
| 0 |
144,351 |
09/27/2008 20:01:34
| 22,502 |
09/26/2008 01:49:19
| 6 | 0 |
Comparison of Code Review Tools/Systems
|
There are a number of tools/systems available aimed at streamlining and enhancing the code review process, including:
- [CodeStriker][1]
- [Review Board][2], code review system in use at VMWare
- [Code Collaborator][3], commercial product by SmartBear
- [Rietveld][4], based on Modrian, the code review system in use at Google
- [Crucible][5], commercial product by Atlassian
These systems all have varying feature sets, and differ in degrees of maturity and polish; the selection is a little bewildering for someone who is evaluating code review systems for the frist time.
Some of these tools have already been mentioned in other questions/answers on StackOverflow, but I would like to see a more comprehensive comparison of the more popular systems, especially with respect to:
- integration with source control systems
- integration with bug tracking systems
- supported workflow (reviews pre/post commit, review or contiguous/non-contigous revision ranges, etc)
- deployment/maintenance requirements
[1]: http://codestriker.sourceforge.net/
[2]: http://www.review-board.org/
[3]: http://smartbear.com/codecollab.php
[4]: http://code.google.com/p/rietveld/
[5]: http://www.atlassian.com/software/crucible/
|
version-control
|
code-review
|
bug-tracking
| null | null |
05/14/2012 13:42:22
|
not constructive
|
Comparison of Code Review Tools/Systems
===
There are a number of tools/systems available aimed at streamlining and enhancing the code review process, including:
- [CodeStriker][1]
- [Review Board][2], code review system in use at VMWare
- [Code Collaborator][3], commercial product by SmartBear
- [Rietveld][4], based on Modrian, the code review system in use at Google
- [Crucible][5], commercial product by Atlassian
These systems all have varying feature sets, and differ in degrees of maturity and polish; the selection is a little bewildering for someone who is evaluating code review systems for the frist time.
Some of these tools have already been mentioned in other questions/answers on StackOverflow, but I would like to see a more comprehensive comparison of the more popular systems, especially with respect to:
- integration with source control systems
- integration with bug tracking systems
- supported workflow (reviews pre/post commit, review or contiguous/non-contigous revision ranges, etc)
- deployment/maintenance requirements
[1]: http://codestriker.sourceforge.net/
[2]: http://www.review-board.org/
[3]: http://smartbear.com/codecollab.php
[4]: http://code.google.com/p/rietveld/
[5]: http://www.atlassian.com/software/crucible/
| 4 |
9,867,947 |
03/26/2012 07:05:29
| 1,105,630 |
12/19/2011 10:03:40
| 8 | 0 |
Hi, does anyone have MATLAB code for eye localisation during face recognition?
|
I am trying to code a PCA-based face recognition system in Matlab. I have implemented PCA, but not able to find codes for eye localisation. Does anyone have an implementation of eye localisation part?
|
matlab
|
face-recognition
| null | null | null | null |
open
|
Hi, does anyone have MATLAB code for eye localisation during face recognition?
===
I am trying to code a PCA-based face recognition system in Matlab. I have implemented PCA, but not able to find codes for eye localisation. Does anyone have an implementation of eye localisation part?
| 0 |
7,993,936 |
11/03/2011 11:14:58
| 851,408 |
04/07/2011 14:11:37
| 1 | 0 |
Read excel file by code in android
|
I want to read an excel file in android and want to print all the contents of this file.Please help me.
Thanks in advance
|
android
| null | null | null | null |
11/03/2011 12:36:29
|
not a real question
|
Read excel file by code in android
===
I want to read an excel file in android and want to print all the contents of this file.Please help me.
Thanks in advance
| 1 |
7,079,067 |
08/16/2011 13:39:11
| 632,848 |
02/24/2011 18:09:26
| 63 | 8 |
Update C++ COM object to C#
|
We have a COM interface declared and implemented in unmanaged C++. We no longer wish to maintain this assembly, but do need to make some changes, and still be backward compatible.
What I want to do, is to write all the new code in C#, and make it ComVisible. From [this thread][1] I see a reference to TreatAs to replace the old interface.
I was thinking along the same path as Jonathan Peppers regarding ProgId, Guid, etc. I will implement the exact interface as the old version as a wrapper to the new implementation. I am also thinking about adding MarshalAs attributes exactly as in the generated interop wrapper to be sure the data types will be the same, if possible.
Are there anything else I should consider while working with this? Anyone with experience doing this conversion?
Bjørnar Sundsbø
[1]: http://stackoverflow.com/questions/1563051/c-hook-into-existing-com-object
|
c#
|
com
|
com-interop
| null | null | null |
open
|
Update C++ COM object to C#
===
We have a COM interface declared and implemented in unmanaged C++. We no longer wish to maintain this assembly, but do need to make some changes, and still be backward compatible.
What I want to do, is to write all the new code in C#, and make it ComVisible. From [this thread][1] I see a reference to TreatAs to replace the old interface.
I was thinking along the same path as Jonathan Peppers regarding ProgId, Guid, etc. I will implement the exact interface as the old version as a wrapper to the new implementation. I am also thinking about adding MarshalAs attributes exactly as in the generated interop wrapper to be sure the data types will be the same, if possible.
Are there anything else I should consider while working with this? Anyone with experience doing this conversion?
Bjørnar Sundsbø
[1]: http://stackoverflow.com/questions/1563051/c-hook-into-existing-com-object
| 0 |
10,872,793 |
06/03/2012 18:28:41
| 1,031,791 |
11/06/2011 02:51:52
| 322 | 4 |
Node.js: neither "profile" nor "profiler" libraries installing correctly from npm
|
I'm getting [those error](http://i.imgur.com/1rFlj.png) trying to install [node-profile](https://github.com/mape/node-profile) and [node-profiler](https://github.com/bnoordhuis/node-profiler).
|
node.js
|
installation
|
profiling
|
npm
| null |
06/13/2012 12:22:41
|
too localized
|
Node.js: neither "profile" nor "profiler" libraries installing correctly from npm
===
I'm getting [those error](http://i.imgur.com/1rFlj.png) trying to install [node-profile](https://github.com/mape/node-profile) and [node-profiler](https://github.com/bnoordhuis/node-profiler).
| 3 |
2,414,500 |
03/10/2010 04:24:52
| 146,857 |
07/29/2009 06:11:50
| 3,014 | 163 |
Calling multiple javascript functions on a button click.....
|
How to call multiple functions on button click event?
Here is my button,
` <asp:LinkButton ID="LbSearch" runat="server" CssClass="regular" onclick="LbSearch_Click"
OnClientClick="return validateView();ShowDiv1();">`
But my `ShowDiv1` Doesnt get called....
My javascript functions,
function ShowDiv1() {
document.getElementById("ReportDiv").style.display = 'block';
return false;
}
function validateView() {
if (document.getElementById("ctl00_ContentPlaceHolder1_DLCategory").selectedIndex == 0) {
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML = "Please Select Your Category";
document.getElementById("ctl00_ContentPlaceHolder1_DLCategory").focus();
return false;
}
if (document.getElementById("ctl00_ContentPlaceHolder1_DLEmpName").selectedIndex == 0) {
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML = "Please Select Your Employee Name";
document.getElementById("ctl00_ContentPlaceHolder1_DLEmpName").focus();
return false;
}
return true;
}
If `ValidateView()` function returns true i should call `ShowDiv1()`...........
|
javascript
|
function
| null | null | null | null |
open
|
Calling multiple javascript functions on a button click.....
===
How to call multiple functions on button click event?
Here is my button,
` <asp:LinkButton ID="LbSearch" runat="server" CssClass="regular" onclick="LbSearch_Click"
OnClientClick="return validateView();ShowDiv1();">`
But my `ShowDiv1` Doesnt get called....
My javascript functions,
function ShowDiv1() {
document.getElementById("ReportDiv").style.display = 'block';
return false;
}
function validateView() {
if (document.getElementById("ctl00_ContentPlaceHolder1_DLCategory").selectedIndex == 0) {
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML = "Please Select Your Category";
document.getElementById("ctl00_ContentPlaceHolder1_DLCategory").focus();
return false;
}
if (document.getElementById("ctl00_ContentPlaceHolder1_DLEmpName").selectedIndex == 0) {
document.getElementById("ctl00_ContentPlaceHolder1_ErrorMsg").innerHTML = "Please Select Your Employee Name";
document.getElementById("ctl00_ContentPlaceHolder1_DLEmpName").focus();
return false;
}
return true;
}
If `ValidateView()` function returns true i should call `ShowDiv1()`...........
| 0 |
7,817,791 |
10/19/2011 07:18:33
| 374,924 |
06/24/2010 06:16:08
| 25 | 6 |
emacs icicles error on start
|
Icicles (v.22.0) installed from elpa (package-list-packages)
Emacs version
$ emacs --version
GNU Emacs 24.0.90.1
Output on emacs start
Warning (initialization): An error occurred while loading `/home/exu/.emacs.d/init.el':
Symbol's function definition is void: hexrgb-canonicalize-defined-colors
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Debug init below:
[Link to GIST error dump][1]
[1]: https://gist.github.com/1297660
|
emacs
|
icicles
| null | null | null |
10/22/2011 14:05:20
|
off topic
|
emacs icicles error on start
===
Icicles (v.22.0) installed from elpa (package-list-packages)
Emacs version
$ emacs --version
GNU Emacs 24.0.90.1
Output on emacs start
Warning (initialization): An error occurred while loading `/home/exu/.emacs.d/init.el':
Symbol's function definition is void: hexrgb-canonicalize-defined-colors
To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the `--debug-init' option to view a complete error backtrace.
Debug init below:
[Link to GIST error dump][1]
[1]: https://gist.github.com/1297660
| 2 |
7,228,771 |
08/29/2011 10:13:29
| 907,526 |
08/23/2011 10:38:57
| 3 | 0 |
EXTJs Add items to panel from dynamic array
|
I have an accordion layout which has 3 panel sections within it.
I want to use one of the sections to displays the months for the past 90 days. This can be between 3-5 months. I have a function that calculates these months and stores them in an array similar to:
months["May", "June, "July", "August"]
Based on the values in this array, I want these to display as links in the accordion panel. I have no idea how to dynamically add these as items to the accordion section. The links will be used to load grids into the Container of the overall border layout.
This is my accordion setup:
title : 'Navigation',
region : 'west',
collapsible : false,
margins: '100 0 0 0',
cmargins: '5 5 0 0',
width: 175,
minSize: 100,
maxSize: 150,
layout: {
type: 'accordion',
animate: true
},
items:[{
id:'main'
,title:'Summary'
,collapsed:false
,frame:true
//captures the expand function to call the getgrids functionality
//don't want it to expand as it only displays 1 thing
,expand : function(){
getGrids();
}
},
{
id:'month'
,title:'Month View'
,collapsed:false
,frame:true
,items:[{
}]
},{
id:'search'
,title:'Search'
,html: 'Search'
,collapsed:true
,frame:true
}]
},
|
javascript
|
extjs
| null | null | null | null |
open
|
EXTJs Add items to panel from dynamic array
===
I have an accordion layout which has 3 panel sections within it.
I want to use one of the sections to displays the months for the past 90 days. This can be between 3-5 months. I have a function that calculates these months and stores them in an array similar to:
months["May", "June, "July", "August"]
Based on the values in this array, I want these to display as links in the accordion panel. I have no idea how to dynamically add these as items to the accordion section. The links will be used to load grids into the Container of the overall border layout.
This is my accordion setup:
title : 'Navigation',
region : 'west',
collapsible : false,
margins: '100 0 0 0',
cmargins: '5 5 0 0',
width: 175,
minSize: 100,
maxSize: 150,
layout: {
type: 'accordion',
animate: true
},
items:[{
id:'main'
,title:'Summary'
,collapsed:false
,frame:true
//captures the expand function to call the getgrids functionality
//don't want it to expand as it only displays 1 thing
,expand : function(){
getGrids();
}
},
{
id:'month'
,title:'Month View'
,collapsed:false
,frame:true
,items:[{
}]
},{
id:'search'
,title:'Search'
,html: 'Search'
,collapsed:true
,frame:true
}]
},
| 0 |
7,818,956 |
10/19/2011 09:08:54
| 425,989 |
08/20/2010 04:36:08
| 25 | 1 |
MongoAlchemy Document Encode to JSON via Flask-MongoAlchemy
|
I think I am missing something small here. I am testing out Python framework Flask and Flask-MongoAlchemy, and want to convert an entity into JSON output. Here is my code (abstracted):
from flask import Flask
from flaskext.mongoalchemy import MongoAlchemy
try:
from bson.objectid import ObjectId
except:
pass
#a bunch of code to open the mongoDB
class ClassA(db.Document):
title = db.StringField()
field1 = db.StringField()
field2 = db.BoolField()
@app.route('/api/classA', methods=['GET'])
def api_list_all
a = ClassA.query.all()
result = []
for b in a:
result.append(b.wrap())
print result
return json.dumps(result)
Without the json.dumps line, the print statement prompt the right result. But only if I run the json.dumps on result, it yields:
**TypeError: ObjectId('...') is not JSON serializable**
What am I missing?
|
python
|
mongodb
|
flask
| null | null | null |
open
|
MongoAlchemy Document Encode to JSON via Flask-MongoAlchemy
===
I think I am missing something small here. I am testing out Python framework Flask and Flask-MongoAlchemy, and want to convert an entity into JSON output. Here is my code (abstracted):
from flask import Flask
from flaskext.mongoalchemy import MongoAlchemy
try:
from bson.objectid import ObjectId
except:
pass
#a bunch of code to open the mongoDB
class ClassA(db.Document):
title = db.StringField()
field1 = db.StringField()
field2 = db.BoolField()
@app.route('/api/classA', methods=['GET'])
def api_list_all
a = ClassA.query.all()
result = []
for b in a:
result.append(b.wrap())
print result
return json.dumps(result)
Without the json.dumps line, the print statement prompt the right result. But only if I run the json.dumps on result, it yields:
**TypeError: ObjectId('...') is not JSON serializable**
What am I missing?
| 0 |
3,229,342 |
07/12/2010 14:12:10
| 389,563 |
07/12/2010 14:12:10
| 1 | 0 |
PHP hosting Fopen enable
|
Does anyone know a free PHP hosting service with Fopen enable ???
(if no ads that would be great)
Thanks
|
php
| null | null | null | null |
07/13/2010 15:08:08
|
off topic
|
PHP hosting Fopen enable
===
Does anyone know a free PHP hosting service with Fopen enable ???
(if no ads that would be great)
Thanks
| 2 |
9,323,740 |
02/17/2012 06:14:42
| 424,310 |
08/18/2010 17:07:11
| 24 | 0 |
Dropdownlist Disable and Enable regarding Checkbox Action in MVC
|
In my MVC Application my form contains a checkbox and dropdownlist.When i check the checkbox to true i want to disable dropdownlist and vice versa. Also i want to populate a 'None' value as the selected item in dropdownlist, there is some other datas in dropdownlist populating from db. There have any solution? Please help me to resolve this.
Thanks
|
jquery
|
asp.net-mvc-3
|
mvc
| null | null | null |
open
|
Dropdownlist Disable and Enable regarding Checkbox Action in MVC
===
In my MVC Application my form contains a checkbox and dropdownlist.When i check the checkbox to true i want to disable dropdownlist and vice versa. Also i want to populate a 'None' value as the selected item in dropdownlist, there is some other datas in dropdownlist populating from db. There have any solution? Please help me to resolve this.
Thanks
| 0 |
8,485,797 |
12/13/2011 07:42:32
| 438,758 |
09/03/2010 08:07:23
| 642 | 60 |
Text editor for Mac which uses git to save files
|
I want a text editor in mac which supports saving files directly in git.
i.e. I want git commit to get executed every time I save the file.
I am not comfortable using command line editors like vi and emacs, so a GUI editor will be better.
Presently I use TextWrangler and am trying out Sublime Text 2 and from command line doing a git commit.
|
git
|
text-editor
| null | null | null |
12/13/2011 13:10:40
|
off topic
|
Text editor for Mac which uses git to save files
===
I want a text editor in mac which supports saving files directly in git.
i.e. I want git commit to get executed every time I save the file.
I am not comfortable using command line editors like vi and emacs, so a GUI editor will be better.
Presently I use TextWrangler and am trying out Sublime Text 2 and from command line doing a git commit.
| 2 |
9,114,784 |
02/02/2012 15:17:25
| 1,174,873 |
01/28/2012 06:27:18
| 1 | 0 |
I am new to android technology and i am using eclipse
|
I am new to android technology and i am using eclipse. i have written a java example in the eclipse previoulsy and now i have written a Hello World app for android but when i run it the java program runs but the android program is not there
|
android
| null | null | null | null |
02/03/2012 15:11:43
|
not a real question
|
I am new to android technology and i am using eclipse
===
I am new to android technology and i am using eclipse. i have written a java example in the eclipse previoulsy and now i have written a Hello World app for android but when i run it the java program runs but the android program is not there
| 1 |
8,400,895 |
12/06/2011 13:46:40
| 1,083,432 |
12/06/2011 11:53:22
| 1 | 0 |
Which IoC container to use in a ASP.NET MVC 3 application?
|
I am starting with a new ASP.NET MVC 3 project and I am in the process of deciding which IoC container to use. I have used Unity in the past.
But perhaps you have some recommendations and pros and cons of another IoC container compared to Unity?
|
.net
|
asp.net-mvc-3
|
ioc-container
| null | null |
12/06/2011 13:53:17
|
not constructive
|
Which IoC container to use in a ASP.NET MVC 3 application?
===
I am starting with a new ASP.NET MVC 3 project and I am in the process of deciding which IoC container to use. I have used Unity in the past.
But perhaps you have some recommendations and pros and cons of another IoC container compared to Unity?
| 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.