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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,056,294 | 05/19/2011 09:11:10 | 760,705 | 05/19/2011 09:03:00 | 1 | 0 | Process for making ultimate naughts and crosses / tic tac toe | I'm learning android, and I'd like to make a game of "Ultimate" naughts and crosses. This is where you have a large board, and you have to get 5 in a row. The game ends when there is not enough space left to make 5 in a row. What would be the most efficient way to add a point to a player's score when they make 5. Testing every combination is all well and good for a 3x3 grid, but if it were something like 20x20, it could become a problem. I'm not going to worry about AI for now.
Thanks, Matt. | android | tic-tac-toe | null | null | null | null | open | Process for making ultimate naughts and crosses / tic tac toe
===
I'm learning android, and I'd like to make a game of "Ultimate" naughts and crosses. This is where you have a large board, and you have to get 5 in a row. The game ends when there is not enough space left to make 5 in a row. What would be the most efficient way to add a point to a player's score when they make 5. Testing every combination is all well and good for a 3x3 grid, but if it were something like 20x20, it could become a problem. I'm not going to worry about AI for now.
Thanks, Matt. | 0 |
4,840,612 | 01/30/2011 01:31:33 | 595,441 | 01/30/2011 01:31:33 | 1 | 0 | How to get a high-liter in a cursor??? | How to get a high-liter in a cursor? I am trying that for few months, I asked total of 29 people, finally I got to you. PLEASE HELP ME. PLZPLZPLZPLZ | mouse | highlight | cursors | null | null | 01/30/2011 08:41:44 | not a real question | How to get a high-liter in a cursor???
===
How to get a high-liter in a cursor? I am trying that for few months, I asked total of 29 people, finally I got to you. PLEASE HELP ME. PLZPLZPLZPLZ | 1 |
6,596,451 | 07/06/2011 12:36:27 | 831,568 | 07/06/2011 12:36:27 | 1 | 0 | How to retrieve data threw xml in iPhone (locally file)? | <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<results>
<folder>
<name>Audio</name>
<type>Standard</type>
<file>Audio 1.mp3</file>
</folder>
<folder>
<name>folder 1</name>
<type>Custom</type>
<file>Video 1.mp4</file>
<file>Video 2.mp4</file>
</folder>
<folder>
<name>folder 2</name>
<type>Custom</type>
<file>Graphic 3.pdf</file>
<file>Graphic 4.pdf</file>
<file>Graphic 5.pdf</file>
<file>Graphic 6.pdf</file>
</folder>
<folder>
<name>folder 3</name>
<type>Custom</type>
<file>Exhibit 1.pdf</file>
<file>Exhibit 2.pdf</file>
<file>Exhibit 3.pdf</file>
</folder>
<folder>
<name>Exhibits</name>
<type>Standard</type>
<file>Exhibit 1.pdf</file>
<file>Exhibit 2.pdf</file>
<file>Exhibit 3.pdf</file>
</folder>
<folder>
<name>Graphics</name>
<type>Standard</type>
<file>Graphic 1.pdf</file>
<file>Graphic 2.pdf</file>
<file>Graphic 3.pdf</file>
<file>Graphic 4.pdf</file>
<file>Graphic 5.pdf</file>
<file>Graphic 6.pdf</file>
</folder>
<folder>
<name>Photos</name>
<type>Standard</type>
<file>Photo 1.pdf</file>
<file>Photo 2.pdf</file>
<file>Photo 3.pdf</file>
<file>Photo 4.pdf</file>
<file>Photo 6.pdf</file>
</folder>
<folder>
<name>Powerpoint</name>
<type>Standard</type>
<file>Powerpoint 1.pdf</file>
</folder>
<folder>
<name>Video</name>
<type>Standard</type>
<file>VID 5 - Meadowbank.mp4</file>
<file>Video 1.mp4</file>
<file>Video 2.mp4</file>
<file>xmen.mp4</file>
</folder>
</results> | iphone | null | null | null | null | 07/08/2011 00:07:28 | not a real question | How to retrieve data threw xml in iPhone (locally file)?
===
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<results>
<folder>
<name>Audio</name>
<type>Standard</type>
<file>Audio 1.mp3</file>
</folder>
<folder>
<name>folder 1</name>
<type>Custom</type>
<file>Video 1.mp4</file>
<file>Video 2.mp4</file>
</folder>
<folder>
<name>folder 2</name>
<type>Custom</type>
<file>Graphic 3.pdf</file>
<file>Graphic 4.pdf</file>
<file>Graphic 5.pdf</file>
<file>Graphic 6.pdf</file>
</folder>
<folder>
<name>folder 3</name>
<type>Custom</type>
<file>Exhibit 1.pdf</file>
<file>Exhibit 2.pdf</file>
<file>Exhibit 3.pdf</file>
</folder>
<folder>
<name>Exhibits</name>
<type>Standard</type>
<file>Exhibit 1.pdf</file>
<file>Exhibit 2.pdf</file>
<file>Exhibit 3.pdf</file>
</folder>
<folder>
<name>Graphics</name>
<type>Standard</type>
<file>Graphic 1.pdf</file>
<file>Graphic 2.pdf</file>
<file>Graphic 3.pdf</file>
<file>Graphic 4.pdf</file>
<file>Graphic 5.pdf</file>
<file>Graphic 6.pdf</file>
</folder>
<folder>
<name>Photos</name>
<type>Standard</type>
<file>Photo 1.pdf</file>
<file>Photo 2.pdf</file>
<file>Photo 3.pdf</file>
<file>Photo 4.pdf</file>
<file>Photo 6.pdf</file>
</folder>
<folder>
<name>Powerpoint</name>
<type>Standard</type>
<file>Powerpoint 1.pdf</file>
</folder>
<folder>
<name>Video</name>
<type>Standard</type>
<file>VID 5 - Meadowbank.mp4</file>
<file>Video 1.mp4</file>
<file>Video 2.mp4</file>
<file>xmen.mp4</file>
</folder>
</results> | 1 |
10,236,321 | 04/19/2012 20:35:13 | 639,087 | 03/01/2011 09:18:43 | 73 | 3 | Creating a web based point of sale system | I am considering of prototyping a web based point-of-sale system.
I don't have programming skills but I'm thinking of using this project in order to learn.
I would like to ask you the following two questions:
1. Do you think the above task is achievable within the period of 6 months (for building a rough prototype of the basic functions of a POS)?
2. If yes, which programming language would you recommend me and why? (I was thinking of Python)
Your advice is greatly appreciated! | python | point-of-sale | prototyping | null | null | 04/20/2012 04:21:11 | not constructive | Creating a web based point of sale system
===
I am considering of prototyping a web based point-of-sale system.
I don't have programming skills but I'm thinking of using this project in order to learn.
I would like to ask you the following two questions:
1. Do you think the above task is achievable within the period of 6 months (for building a rough prototype of the basic functions of a POS)?
2. If yes, which programming language would you recommend me and why? (I was thinking of Python)
Your advice is greatly appreciated! | 4 |
6,187,679 | 05/31/2011 12:37:30 | 777,675 | 05/31/2011 12:36:10 | 1 | 0 | How to create haskell permutation | What i want to do is create a function that given a certain length creates all possible combinations/permutations of True/False
ex. getPerm 2 shall return
[True,True,True,False,False,True,False,False]
getTrue 0 = []
getTrue size = (True:(getTrue (size-1)))++(True:(getFalse (size-1)))
getFalse 0 = []
getFalse size =(False:(getTrue (size-1)))++(False:(getFalse (size-1)))
getPerm 0 = []
getPerm size= (getTrue size)++(getFalse size)
I can't get it right..im new to functional programming so please only use basic stuff and not weird things..try to make code as simple as possible cuz i don't know a lot about haskell yet | function | haskell | boolean | permutation | null | null | open | How to create haskell permutation
===
What i want to do is create a function that given a certain length creates all possible combinations/permutations of True/False
ex. getPerm 2 shall return
[True,True,True,False,False,True,False,False]
getTrue 0 = []
getTrue size = (True:(getTrue (size-1)))++(True:(getFalse (size-1)))
getFalse 0 = []
getFalse size =(False:(getTrue (size-1)))++(False:(getFalse (size-1)))
getPerm 0 = []
getPerm size= (getTrue size)++(getFalse size)
I can't get it right..im new to functional programming so please only use basic stuff and not weird things..try to make code as simple as possible cuz i don't know a lot about haskell yet | 0 |
6,357,858 | 06/15/2011 12:46:52 | 774,739 | 05/28/2011 23:05:39 | 66 | 2 | What's the preferred web server for perl? | In PHP the best choice is nginx now,what's the case in perl world? | perl | webserver | null | null | null | 06/15/2011 13:33:50 | not constructive | What's the preferred web server for perl?
===
In PHP the best choice is nginx now,what's the case in perl world? | 4 |
11,129,592 | 06/20/2012 23:25:53 | 308,745 | 04/04/2010 14:55:25 | 560 | 21 | Can't add Ado .Net Entity Data Model | I'm doing these steps:
1. Create new vs2010 C# console application
2. Project menu -> Add New Item
3. select Ado.NET Entity Data Model -> click Add
4. Entity Data Model wizard window opened.
5. Select Generate From database -> Click Next
6. The next window will appear for less than 1 second and it will close automatically.
I tried to reset vs2010 setting but no good news, the problem still exist.
I also tried it with ASP.NET Website.
What is the problem?
| visual-studio-2010 | null | null | null | null | null | open | Can't add Ado .Net Entity Data Model
===
I'm doing these steps:
1. Create new vs2010 C# console application
2. Project menu -> Add New Item
3. select Ado.NET Entity Data Model -> click Add
4. Entity Data Model wizard window opened.
5. Select Generate From database -> Click Next
6. The next window will appear for less than 1 second and it will close automatically.
I tried to reset vs2010 setting but no good news, the problem still exist.
I also tried it with ASP.NET Website.
What is the problem?
| 0 |
2,613,645 | 04/10/2010 14:08:35 | 286,340 | 03/04/2010 14:54:37 | 15 | 0 | C++ addition overload ambiguity | I am coming up against a vexing conundrum in my code base. I can't quite tell why my code generates this error, but (for example) std::string does not.
class String {
public:
String(const char*str);
friend String operator+ ( const String& lval, const char *rval );
friend String operator+ ( const char *lval, const String& rval );
String operator+ ( const String& rval );
};
The implementation of these is easy enough to imagine on your own.
My driver program contains the following:
String result, lval("left side "), rval("of string");
char lv[] = "right side ", rv[] = "of string";
result = lv + rval;
printf(result);
result = (lval + rv);
printf(result);
Which generates the following error in gcc 4.1.2:
driver.cpp:25: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
String.h:22: note: candidate 1: String operator+(const String&, const char*)
String.h:24: note: candidate 2: String String::operator+(const String&)
So far so good, right? Sadly, my String(const char *str) constructor is so handy to have as an implicit constructor, that using the explicit keyword to solve this would just cause a different pile of problems.
Moreover... std::string doesn't have to resort to this, and I can't figure out why. For example, in basic_string.h, they are declared as follows:
template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
const basic_string<_CharT, _Traits, _Alloc>& __rhs)
template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT,_Traits,_Alloc>
operator+(const _CharT* __lhs,
const basic_string<_CharT,_Traits,_Alloc>& __rhs);
and so on. The basic_string constructor is not declared explicit. How does this not cause the same error I'm getting, and how can I achieve the same behavior?? | c++ | stdstring | gcc | operator-overloading | null | null | open | C++ addition overload ambiguity
===
I am coming up against a vexing conundrum in my code base. I can't quite tell why my code generates this error, but (for example) std::string does not.
class String {
public:
String(const char*str);
friend String operator+ ( const String& lval, const char *rval );
friend String operator+ ( const char *lval, const String& rval );
String operator+ ( const String& rval );
};
The implementation of these is easy enough to imagine on your own.
My driver program contains the following:
String result, lval("left side "), rval("of string");
char lv[] = "right side ", rv[] = "of string";
result = lv + rval;
printf(result);
result = (lval + rv);
printf(result);
Which generates the following error in gcc 4.1.2:
driver.cpp:25: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
String.h:22: note: candidate 1: String operator+(const String&, const char*)
String.h:24: note: candidate 2: String String::operator+(const String&)
So far so good, right? Sadly, my String(const char *str) constructor is so handy to have as an implicit constructor, that using the explicit keyword to solve this would just cause a different pile of problems.
Moreover... std::string doesn't have to resort to this, and I can't figure out why. For example, in basic_string.h, they are declared as follows:
template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>
operator+(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
const basic_string<_CharT, _Traits, _Alloc>& __rhs)
template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT,_Traits,_Alloc>
operator+(const _CharT* __lhs,
const basic_string<_CharT,_Traits,_Alloc>& __rhs);
and so on. The basic_string constructor is not declared explicit. How does this not cause the same error I'm getting, and how can I achieve the same behavior?? | 0 |
8,097,459 | 11/11/2011 17:07:41 | 1,042,099 | 11/11/2011 16:51:35 | 1 | 0 | How to make a storefront for a comic book app like comixology? | I am not getting a starting point to begin with an app. I want to make a storefront for iphone and ipad. I am unable to get a starting point.
It would be great if someone could help me with this.
I am open to all technology that will accomplish this for iphone and ipad.
eg. objective C, Adobe Flex, corona, HTML5 - Jquery - js etc.
Thanks in advance. Any help will be appreciated. | iphone | ios | ipad | shopping-cart | storefront | 11/13/2011 12:43:50 | not a real question | How to make a storefront for a comic book app like comixology?
===
I am not getting a starting point to begin with an app. I want to make a storefront for iphone and ipad. I am unable to get a starting point.
It would be great if someone could help me with this.
I am open to all technology that will accomplish this for iphone and ipad.
eg. objective C, Adobe Flex, corona, HTML5 - Jquery - js etc.
Thanks in advance. Any help will be appreciated. | 1 |
6,697,291 | 07/14/2011 17:14:12 | 665,335 | 03/18/2011 01:05:50 | 203 | 3 | Good NHibernate tutorial recommendation help | I am looking for a good NHibernate tutorial, websites or books.
Thanks! | nhibernate | tutorials | recommendation | null | null | 07/19/2011 12:19:59 | not constructive | Good NHibernate tutorial recommendation help
===
I am looking for a good NHibernate tutorial, websites or books.
Thanks! | 4 |
9,010,150 | 01/25/2012 20:55:32 | 1,170,087 | 01/25/2012 20:53:48 | 1 | 0 | PHP MySQL - Receive mail when data is inserted | Is it possible to receive and e-mail every time a customer, user, etc. fills in a form which is being inserted into tables on a MySQL Database?
Thanks! | php | mysql | database | email | null | 01/26/2012 03:37:07 | not a real question | PHP MySQL - Receive mail when data is inserted
===
Is it possible to receive and e-mail every time a customer, user, etc. fills in a form which is being inserted into tables on a MySQL Database?
Thanks! | 1 |
10,851,774 | 06/01/2012 14:05:34 | 76,439 | 03/11/2009 01:16:11 | 3,271 | 193 | Extending the YUI Panel | I have a requirement to extend the YUI Panel with some custom functionality that will be in a new file and shared across multiple views.
I am at a bit of a loss as to how best to go about this, can anyone give me any pointers please?
| yui | null | null | null | null | null | open | Extending the YUI Panel
===
I have a requirement to extend the YUI Panel with some custom functionality that will be in a new file and shared across multiple views.
I am at a bit of a loss as to how best to go about this, can anyone give me any pointers please?
| 0 |
4,754,445 | 01/21/2011 01:08:16 | 583,760 | 01/20/2011 23:44:11 | 1 | 0 | Can I trust DragonFireSDK? | Watching their video and browsing their site, it looks like I have to do some kind of mouse olympics to publish an app. I want to publish an app to the App Store for as little money as possible, without using "hacks". Is there any way to do this, and does Apple allow it? | iphone | windows | app-store | null | null | 01/21/2011 02:11:03 | off topic | Can I trust DragonFireSDK?
===
Watching their video and browsing their site, it looks like I have to do some kind of mouse olympics to publish an app. I want to publish an app to the App Store for as little money as possible, without using "hacks". Is there any way to do this, and does Apple allow it? | 2 |
8,686,954 | 12/31/2011 07:28:43 | 648,865 | 03/07/2011 21:24:14 | 316 | 3 | How can I raise my application's feed action request limit? | I'm trying to raise the limits for my application because after ~50 or so requests the app becomes non-functional. How can I do this?
This is the error:
<br />
<b>Fatal error</b>: Uncaught OAuthException: (#341) Feed action request limit reached | facebook | application | facebook-graph-api | oauth | facebook-connect | 12/31/2011 20:30:58 | off topic | How can I raise my application's feed action request limit?
===
I'm trying to raise the limits for my application because after ~50 or so requests the app becomes non-functional. How can I do this?
This is the error:
<br />
<b>Fatal error</b>: Uncaught OAuthException: (#341) Feed action request limit reached | 2 |
679,520 | 03/24/2009 22:35:10 | 65,313 | 02/11/2009 21:54:03 | 79 | 6 | Advice on a better way to extend C++ STL container with user-defined methods | I inherited from C++ STL container and add my own methods to it. The rationale was such that to the clients, it will look act a regular list, yet has application-specific methods they can readily be called.
This works fine, but I have read numerous posts about not inheriting from STL. Can someone provide a concrete advice of how I might write the code below in a better way?
class Item
{
int a;
int b;
int c;
int SpecialB()
{
return a * b + c;
}
};
class ItemList : public std::vector<Item>
{
int MaxA()
{
if( this->empty() )
throw;
int maxA = (*this)[0].a;
for( int idx = 1; idx < this->size(); idx++ )
{
if( (*this)[idx].a > maxA )
{
maxA = (*this)[idx].a;
}
}
return maxA;
}
int SpecialB()
{
if( this->empty() )
throw;
int specialB = (*this)[0].SpecialB();
for( int idx = 1; idx < this->size(); idx++ )
{
if( (*this)[idx].SpecialB() < specialB )
{
specialB -= (*this)[idx].c;
}
}
return specialB;
}
int AvgC()
{
if( this->empty() )
throw;
int cSum = 0;
for( int idx = 0; idx < this->size(); idx++ )
{
cSum += (*this)[idx].c;
}
return cSum / this->size(); // average
}
}; | c++ | stl | null | null | null | null | open | Advice on a better way to extend C++ STL container with user-defined methods
===
I inherited from C++ STL container and add my own methods to it. The rationale was such that to the clients, it will look act a regular list, yet has application-specific methods they can readily be called.
This works fine, but I have read numerous posts about not inheriting from STL. Can someone provide a concrete advice of how I might write the code below in a better way?
class Item
{
int a;
int b;
int c;
int SpecialB()
{
return a * b + c;
}
};
class ItemList : public std::vector<Item>
{
int MaxA()
{
if( this->empty() )
throw;
int maxA = (*this)[0].a;
for( int idx = 1; idx < this->size(); idx++ )
{
if( (*this)[idx].a > maxA )
{
maxA = (*this)[idx].a;
}
}
return maxA;
}
int SpecialB()
{
if( this->empty() )
throw;
int specialB = (*this)[0].SpecialB();
for( int idx = 1; idx < this->size(); idx++ )
{
if( (*this)[idx].SpecialB() < specialB )
{
specialB -= (*this)[idx].c;
}
}
return specialB;
}
int AvgC()
{
if( this->empty() )
throw;
int cSum = 0;
for( int idx = 0; idx < this->size(); idx++ )
{
cSum += (*this)[idx].c;
}
return cSum / this->size(); // average
}
}; | 0 |
6,840,345 | 07/27/2011 06:40:27 | 242,241 | 09/19/2008 21:40:11 | 2,641 | 140 | Where is the chrome in Firefox 5 (Windows)? | I want to extract one of the animation files (probably a PNG?) I see in the Firefox 5 interface ... where would they be found? I used to be able to find all that kind of thing in a .jar file somewhere in Program Files/Firefox or maybe in Application Data?
Anyway, I can't find files like that now. Can anyone help me? | firefox | null | null | null | null | null | open | Where is the chrome in Firefox 5 (Windows)?
===
I want to extract one of the animation files (probably a PNG?) I see in the Firefox 5 interface ... where would they be found? I used to be able to find all that kind of thing in a .jar file somewhere in Program Files/Firefox or maybe in Application Data?
Anyway, I can't find files like that now. Can anyone help me? | 0 |
5,997,743 | 05/13/2011 21:03:32 | 579,132 | 01/17/2011 21:58:58 | 39 | 6 | XCode syntax 'theme' - which one do you use?? | Just wondering which XCode syntax colouring 'theme' all you guys use, and why?? | xcode | osx | null | null | null | 05/13/2011 21:07:42 | not constructive | XCode syntax 'theme' - which one do you use??
===
Just wondering which XCode syntax colouring 'theme' all you guys use, and why?? | 4 |
3,634,000 | 09/03/2010 08:09:12 | 419,261 | 08/11/2010 07:01:59 | 5 | 1 | Calendar in iphone app | I want to add a calendar to my app to which i can add events and stuff.But i cant find any info in this regard.One site provided code that wasnt workin too well.
Any suggestions??
| iphone | objective-c | null | null | null | 07/30/2012 12:01:48 | not constructive | Calendar in iphone app
===
I want to add a calendar to my app to which i can add events and stuff.But i cant find any info in this regard.One site provided code that wasnt workin too well.
Any suggestions??
| 4 |
4,050,229 | 10/29/2010 08:32:05 | 318,249 | 04/16/2010 06:52:58 | 411 | 24 | Help me translate the C++ code to Delphi | do{
memset(szSpeechBuf, 0x0, sizeof(char)*QSIZE);
if((nBufIter+1)*QSIZE > nRawBufLen)
{
diff = nRawBufLen - (nBufIter)*QSIZE;
if(diff < 0)
{
printf("DetectSpeech() error : timeout!!!");
exit(1);
}
memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), diff);
}
else
memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), sizeof(char)*QSIZE);
} while(1);
// where szSpeechBuf: PAnsiChar; nBufIter: Integer; Const QSIZE = 3200 | c++ | delphi | transactions | equivalent | null | 10/31/2010 01:38:22 | not a real question | Help me translate the C++ code to Delphi
===
do{
memset(szSpeechBuf, 0x0, sizeof(char)*QSIZE);
if((nBufIter+1)*QSIZE > nRawBufLen)
{
diff = nRawBufLen - (nBufIter)*QSIZE;
if(diff < 0)
{
printf("DetectSpeech() error : timeout!!!");
exit(1);
}
memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), diff);
}
else
memcpy(szSpeechBuf, szRawBuf+(QSIZE*nBufIter), sizeof(char)*QSIZE);
} while(1);
// where szSpeechBuf: PAnsiChar; nBufIter: Integer; Const QSIZE = 3200 | 1 |
3,911,209 | 10/12/2010 02:08:09 | 472,854 | 10/12/2010 02:08:09 | 1 | 0 | Carnegie Melon Online Masters - MSE-IT..opinions? | I graduated with an undergrad in CS and have been working for two years. After switching jobs, my new employer has educational incentives and will pay 100%. I am interested in an online program due to my geographic location (Southern United States, no school nearby with a program) and the Carnegie Melon MSE-IT looks appealing. I would like to do the MSE but I don't know 6 other people to do the program with me, so that's not an option.
I was wondering if anyone had experience with this program and opinion of the degree in general. The IT portion kind of scares me (I.e - Software Engineering "Lite"), I would rather have a full blown MSE degree, such as Auburn University's MSE program, but Carnegie Melon is top rated.
Any opinions about the Carnegie Melon program or any other online MSE program in general would be much appreciated.
Thanks. | engineering | masters-degree | null | null | null | 10/12/2010 12:22:25 | off topic | Carnegie Melon Online Masters - MSE-IT..opinions?
===
I graduated with an undergrad in CS and have been working for two years. After switching jobs, my new employer has educational incentives and will pay 100%. I am interested in an online program due to my geographic location (Southern United States, no school nearby with a program) and the Carnegie Melon MSE-IT looks appealing. I would like to do the MSE but I don't know 6 other people to do the program with me, so that's not an option.
I was wondering if anyone had experience with this program and opinion of the degree in general. The IT portion kind of scares me (I.e - Software Engineering "Lite"), I would rather have a full blown MSE degree, such as Auburn University's MSE program, but Carnegie Melon is top rated.
Any opinions about the Carnegie Melon program or any other online MSE program in general would be much appreciated.
Thanks. | 2 |
11,279,621 | 07/01/2012 04:35:17 | 1,492,257 | 06/29/2012 22:18:01 | 1 | 0 | Jquery move div up at certain points | hey i have this menu that i want to rotate from left to right but right now it only goes left to right been searching for a month now can some one help me please
the menu can be found [here](http://www.houseofsteff.com/) | jquery | menu | null | null | null | 07/01/2012 05:37:04 | not a real question | Jquery move div up at certain points
===
hey i have this menu that i want to rotate from left to right but right now it only goes left to right been searching for a month now can some one help me please
the menu can be found [here](http://www.houseofsteff.com/) | 1 |
9,355,562 | 02/20/2012 02:40:36 | 920,060 | 08/30/2011 15:49:53 | 39 | 0 | Is this <?php //comment ?> kind of comment workable in php? | As the title.
If the <?php function ?> stay in one line, is the comment can be add before the last ?> ?
| php | null | null | null | null | 02/20/2012 13:34:35 | not a real question | Is this <?php //comment ?> kind of comment workable in php?
===
As the title.
If the <?php function ?> stay in one line, is the comment can be add before the last ?> ?
| 1 |
3,956,340 | 10/18/2010 02:56:12 | 469,823 | 10/08/2010 03:44:11 | 1 | 0 | Pls introduce me several great consulting corporation about IT business | Please introduce me some good consulting corporations oriented in IT business.
Thank u | business | consulting | it | corporation | null | 10/18/2010 03:04:03 | not a real question | Pls introduce me several great consulting corporation about IT business
===
Please introduce me some good consulting corporations oriented in IT business.
Thank u | 1 |
617,916 | 03/06/2009 07:04:04 | 65,917 | 02/13/2009 06:25:50 | 13 | 1 | is it useful for a programmer to do java certification up to advance level for his carrier growth | i have just started my carrier as a programmer.if i do java cerification starting from sun certified java programmer level(foundation level) and then web component developer and bussiness component developer on speciality level.is it usefull for off campus placement and for growth in company. | java | certification | null | null | null | 01/18/2012 18:12:01 | not constructive | is it useful for a programmer to do java certification up to advance level for his carrier growth
===
i have just started my carrier as a programmer.if i do java cerification starting from sun certified java programmer level(foundation level) and then web component developer and bussiness component developer on speciality level.is it usefull for off campus placement and for growth in company. | 4 |
2,794,561 | 05/08/2010 15:09:01 | 4,937 | 09/06/2008 20:01:14 | 397 | 9 | Writing a DLNA server (DMS) in Cocoa/Objective-C/C | I'd like to write a DLNA server in Cocoa for the Mac. Are there any libraries for speaking UPnP/DLNA in Objective-C or C? Failing that, where is the spec for DLNA so I can write my own? | dlna | osx | cocoa | objective-c | c | null | open | Writing a DLNA server (DMS) in Cocoa/Objective-C/C
===
I'd like to write a DLNA server in Cocoa for the Mac. Are there any libraries for speaking UPnP/DLNA in Objective-C or C? Failing that, where is the spec for DLNA so I can write my own? | 0 |
4,653,415 | 01/11/2011 01:44:24 | 371,178 | 06/19/2010 18:46:01 | 38 | 1 | Elegant solution for multiple forms on single page | I'm building a web application (in Django) that will accept a search criteria and display a report - once the user is satisfied with the results, save both the criteria and a reference to these objects back to the database.
The problem I'm having is finding an elegant solution for having 2 forms:
1. Display (GET) the results of their criteria.
2. Enter in some descriptions, and save (POST) everything back to the database.
I'm leaning towards AJAX for the GET stuff and a POST for the save, but I wanted to make sure there wasn't a more elegant solution first. | ajax | django | django-forms | get | postback | null | open | Elegant solution for multiple forms on single page
===
I'm building a web application (in Django) that will accept a search criteria and display a report - once the user is satisfied with the results, save both the criteria and a reference to these objects back to the database.
The problem I'm having is finding an elegant solution for having 2 forms:
1. Display (GET) the results of their criteria.
2. Enter in some descriptions, and save (POST) everything back to the database.
I'm leaning towards AJAX for the GET stuff and a POST for the save, but I wanted to make sure there wasn't a more elegant solution first. | 0 |
7,995,132 | 11/03/2011 12:48:55 | 788,711 | 06/08/2011 07:02:38 | 83 | 0 | object vs object pointer | what could be analogue code for following code snippet
class A
{
};
I have above class, now I create one object pointer for it and one object for it.
A* a;
A aobj;
I want an analogue code for if statement below using aobj( A's object).
if(a)
{
}
| c++ | object | pointers | null | null | 11/03/2011 13:06:47 | not a real question | object vs object pointer
===
what could be analogue code for following code snippet
class A
{
};
I have above class, now I create one object pointer for it and one object for it.
A* a;
A aobj;
I want an analogue code for if statement below using aobj( A's object).
if(a)
{
}
| 1 |
7,663,856 | 10/05/2011 15:34:45 | 980,679 | 10/05/2011 15:28:36 | 1 | 1 | Has anyone used PhoneGap? What has your experience been with their service | I'm trying to develop a mobile app I've been thinking about for a while. I want to know if anyone has used PhoneGap and what your experience has been with using their service. | mobile | null | null | null | null | 10/05/2011 20:51:57 | not constructive | Has anyone used PhoneGap? What has your experience been with their service
===
I'm trying to develop a mobile app I've been thinking about for a while. I want to know if anyone has used PhoneGap and what your experience has been with using their service. | 4 |
9,848,857 | 03/24/2012 03:19:06 | 804,928 | 06/18/2011 23:00:15 | 11 | 0 | Sending Location Updates to Server In Android | I am developing an application for proof of concept at school and I need to develop a simple app that lets a parent track a child's android device. I've figured out how to use GPS to get location updates now What is the best way to bridge the gap between parent's device and the child's device? How will the app know who is Parent and who is child? Also is it best to send the child's data using getLastKnownLocation(best) to a remote server and then some how send to parent, or is there an easier way to do this?
Thanks in advance. | android | gps | tracking | null | null | null | open | Sending Location Updates to Server In Android
===
I am developing an application for proof of concept at school and I need to develop a simple app that lets a parent track a child's android device. I've figured out how to use GPS to get location updates now What is the best way to bridge the gap between parent's device and the child's device? How will the app know who is Parent and who is child? Also is it best to send the child's data using getLastKnownLocation(best) to a remote server and then some how send to parent, or is there an easier way to do this?
Thanks in advance. | 0 |
10,320,389 | 04/25/2012 17:01:35 | 1,339,559 | 04/17/2012 19:03:16 | 7 | 0 | Decorator Design Pattern in Java | I am new to the field of Design Patterns. Could anyone please explain me about Decorator Design Patterns? An example would greatly help like counting numbers from 1 to 10 or any other simple one.
Thanks in advance. | java | design | decorator | null | null | 04/26/2012 10:38:40 | not a real question | Decorator Design Pattern in Java
===
I am new to the field of Design Patterns. Could anyone please explain me about Decorator Design Patterns? An example would greatly help like counting numbers from 1 to 10 or any other simple one.
Thanks in advance. | 1 |
5,909,049 | 05/06/2011 08:55:40 | 735,764 | 05/03/2011 08:36:05 | 29 | 0 | Shell Scripting and other languages | I am interested in having opinion of you all on , How competitively strong is Shell Scripting compare to other scripting languages?
for example what kind of benefits does Shell scripting offers you over python or perl or ruby or R etc...
It would be fun to know from Shell Scripting geeks the advantages of Shell Scripting ... :)
No offences, I am a newbie in shell scripting and want to know the practical advantages of shell over other scripting languages..
Thank you in advance | shell | scripting | null | null | null | 05/07/2011 11:35:04 | not a real question | Shell Scripting and other languages
===
I am interested in having opinion of you all on , How competitively strong is Shell Scripting compare to other scripting languages?
for example what kind of benefits does Shell scripting offers you over python or perl or ruby or R etc...
It would be fun to know from Shell Scripting geeks the advantages of Shell Scripting ... :)
No offences, I am a newbie in shell scripting and want to know the practical advantages of shell over other scripting languages..
Thank you in advance | 1 |
4,880,012 | 02/02/2011 21:22:33 | 546,496 | 12/17/2010 20:18:08 | 92 | 0 | Programtically Install Driver For MySQL Database | I need some help, pointers and guidance.
We have a C# 4.0 (VS2010) application that requires installation of a MYSQL (driver) Connector)... We don't want the user to manually install it.. Is there a way to do this programatically? through a DLL COM Registration etc?
What are the possible solutions?
Any help will be great.
BR
SoomthCriminel | c# | mysql | visual-studio-2010 | null | null | null | open | Programtically Install Driver For MySQL Database
===
I need some help, pointers and guidance.
We have a C# 4.0 (VS2010) application that requires installation of a MYSQL (driver) Connector)... We don't want the user to manually install it.. Is there a way to do this programatically? through a DLL COM Registration etc?
What are the possible solutions?
Any help will be great.
BR
SoomthCriminel | 0 |
6,444,915 | 06/22/2011 18:45:57 | 810,918 | 06/22/2011 18:17:18 | 1 | 1 | Algorithm to get an approximate depth map from an embossed/reielf image | I am attempting to read information from pictures of hard plastic ID cards. As a first step, I've been trying to process the pictures to make the text more computer-readable. The pictures are fairly clear, but they are tricky because they are light on one side and dark on the other. It seems like it should be possible to use this information to create a depth map, which could then be converted to a black and white image. Mainly, I'd like to know if there is some known algorithm (the simpler the better) I could implement. I'm currently doing the rest of the processing using Python and PIL, but any implementation I could adapt would be great.
Since I am new, I can't post an example picture, but if you search for emboss on Google, you will find several examples of the type of picture I mean. | algorithm | image-processing | image-manipulation | null | null | null | open | Algorithm to get an approximate depth map from an embossed/reielf image
===
I am attempting to read information from pictures of hard plastic ID cards. As a first step, I've been trying to process the pictures to make the text more computer-readable. The pictures are fairly clear, but they are tricky because they are light on one side and dark on the other. It seems like it should be possible to use this information to create a depth map, which could then be converted to a black and white image. Mainly, I'd like to know if there is some known algorithm (the simpler the better) I could implement. I'm currently doing the rest of the processing using Python and PIL, but any implementation I could adapt would be great.
Since I am new, I can't post an example picture, but if you search for emboss on Google, you will find several examples of the type of picture I mean. | 0 |
1,117,777 | 07/13/2009 05:02:41 | 56,952 | 01/20/2009 04:39:48 | 196 | 6 | Is there a find to find out if a software keyboard is shown? [iPhone SDK] | My actual UITextField control is embedded many layers down in an external library. Therefore I am unable to detect if it is being edited by calling [control isFirstResponder]. Is there another way to detect if the software keyboard is shown? | iphone | null | null | null | null | null | open | Is there a find to find out if a software keyboard is shown? [iPhone SDK]
===
My actual UITextField control is embedded many layers down in an external library. Therefore I am unable to detect if it is being edited by calling [control isFirstResponder]. Is there another way to detect if the software keyboard is shown? | 0 |
10,700,377 | 05/22/2012 10:38:49 | 1,409,957 | 05/22/2012 10:34:48 | 1 | 0 | Parallel execution takes more time | I am executing a process which takes around 20 secs. But when I execute the same process multiple times parallelly using Parallel.Foreach (I have 64 core system), each individual process execution takes around 35 secs. Why the parallel execution takes more time and how to resolve it? | c# | parallel.foreach | null | null | null | 05/22/2012 15:54:39 | not a real question | Parallel execution takes more time
===
I am executing a process which takes around 20 secs. But when I execute the same process multiple times parallelly using Parallel.Foreach (I have 64 core system), each individual process execution takes around 35 secs. Why the parallel execution takes more time and how to resolve it? | 1 |
7,048,289 | 08/13/2011 02:59:12 | 151,531 | 08/06/2009 05:15:03 | 237 | 6 | What is the most advanced and reliable COMET solution today? | **Problem**: need to serve millions of realtime notifications to web users per day.
Requirements:
* Scalability
* Cross-domain requests without proxies. (XHR polling won't work)
* Cross browser support. (Can't rely only on websockets or flash sockets)
* Well-tested and maintained components
So far I have come up with some solutions wich have various limitations:
**RabbitMQ + node.js + Socket.IO**
This is my favorite solution so far but there were complains about reliability of node.js part, when it comes to huge number of requests. Experience of plurk.com http://amix.dk/blog/post/19577
**XMPP/BOSH + strophe.js**
This also looks reliable but due to limitation of BOSH, JSONP polling is not possible and therefore - no cross-domain requests.
**Mochiweb + Dojo**
It is claimed that Facebook uses Mochiweb for their chat system (which sucks btw). Seems too complex to setup and maintain. Am I wrong?
**JBoss Netty**
Java server. This is what plurk.com uses to serve their notifications. It is unclear of what can be used on browser side.
**Faye + node.js**
Very easy to set up, but seems that it doesn't work well on heavy loads, not tested and there's no clear way to scale.
Any ideas or experience? :) | javascript | ajax | node.js | scalability | comet | 08/13/2011 03:17:39 | not constructive | What is the most advanced and reliable COMET solution today?
===
**Problem**: need to serve millions of realtime notifications to web users per day.
Requirements:
* Scalability
* Cross-domain requests without proxies. (XHR polling won't work)
* Cross browser support. (Can't rely only on websockets or flash sockets)
* Well-tested and maintained components
So far I have come up with some solutions wich have various limitations:
**RabbitMQ + node.js + Socket.IO**
This is my favorite solution so far but there were complains about reliability of node.js part, when it comes to huge number of requests. Experience of plurk.com http://amix.dk/blog/post/19577
**XMPP/BOSH + strophe.js**
This also looks reliable but due to limitation of BOSH, JSONP polling is not possible and therefore - no cross-domain requests.
**Mochiweb + Dojo**
It is claimed that Facebook uses Mochiweb for their chat system (which sucks btw). Seems too complex to setup and maintain. Am I wrong?
**JBoss Netty**
Java server. This is what plurk.com uses to serve their notifications. It is unclear of what can be used on browser side.
**Faye + node.js**
Very easy to set up, but seems that it doesn't work well on heavy loads, not tested and there's no clear way to scale.
Any ideas or experience? :) | 4 |
665,810 | 03/20/2009 11:48:15 | 27,782 | 10/14/2008 09:22:04 | 145 | 3 | Decent JavaScript IDE | What is a decent IDE for developing JavaScript, I'll be writing both client side stuff and writing for Rhino. Ideally It needs to run on Mac OSX, although something that runs on Windows too would be nice. | javascript | ide | rhino | null | null | 09/01/2011 13:30:52 | not constructive | Decent JavaScript IDE
===
What is a decent IDE for developing JavaScript, I'll be writing both client side stuff and writing for Rhino. Ideally It needs to run on Mac OSX, although something that runs on Windows too would be nice. | 4 |
3,539,818 | 08/22/2010 02:14:23 | 127,954 | 06/24/2009 02:35:43 | 212 | 7 | Death of the Repository? | I have been hearing a lot about the death of the repository pattern. People using listen when such influential people such as ayende: http://ayende.com/Blog/archive/2009/04/17/repository-is-the-new-singleton.aspx speak.
This is a direction which i really don't understand and hence my post. Maybe i don't get the point because of my limited experience with ORMs. I have played with Linq2SQL & EF1. I pretty stopped when i found out the dependency requirements. I know EF4 has solved some of those problems. Having never worked with NHibernate i don't know what the story is like there. I understand the problems with a repository especially when you have really complex query logic but i just can't see how replacing the repository with a dependency on an ORM is a good design decision. For example look at Linq2SQL that pretty much died a quick death.
To me using an ORM behind a repository is just fine and dandy just as long as you don't plan to replace your repository with the ORM which i think could add maintenance problems in the future. I don't know maybe i fail to see the point because of my limited exposure working with ORMs? | orm | domain-driven-design | dependencies | null | null | 08/23/2010 02:49:50 | not a real question | Death of the Repository?
===
I have been hearing a lot about the death of the repository pattern. People using listen when such influential people such as ayende: http://ayende.com/Blog/archive/2009/04/17/repository-is-the-new-singleton.aspx speak.
This is a direction which i really don't understand and hence my post. Maybe i don't get the point because of my limited experience with ORMs. I have played with Linq2SQL & EF1. I pretty stopped when i found out the dependency requirements. I know EF4 has solved some of those problems. Having never worked with NHibernate i don't know what the story is like there. I understand the problems with a repository especially when you have really complex query logic but i just can't see how replacing the repository with a dependency on an ORM is a good design decision. For example look at Linq2SQL that pretty much died a quick death.
To me using an ORM behind a repository is just fine and dandy just as long as you don't plan to replace your repository with the ORM which i think could add maintenance problems in the future. I don't know maybe i fail to see the point because of my limited exposure working with ORMs? | 1 |
2,891,974 | 05/23/2010 13:53:09 | 150,327 | 08/04/2009 12:45:21 | 1,544 | 116 | Commercial CMS on Google App Engine, violation of terms? | I'm developing commercial CMS running on Google App Engine. I'm thinking of selling it in two ways:
1) Software as a service (SaS). The CMS running in my App Engine account (as single app), hosting the sites of all customers. A turn-key solution for "end user" customers.
2) Licence for running the CMS in customer's own App Engine account. Targeted for digital agencies for reselling as SaS.
Being not a lawyer myself, I don't trust my abilities to read between the lines of TOS jargon. Counting on the general knowledge of SO community, my question is: do the above scenarios violate the App Engine [Terms of Service][1]?
[1]: http://code.google.com/appengine/terms.html | google-app-engine | terms-of-use | null | null | null | null | open | Commercial CMS on Google App Engine, violation of terms?
===
I'm developing commercial CMS running on Google App Engine. I'm thinking of selling it in two ways:
1) Software as a service (SaS). The CMS running in my App Engine account (as single app), hosting the sites of all customers. A turn-key solution for "end user" customers.
2) Licence for running the CMS in customer's own App Engine account. Targeted for digital agencies for reselling as SaS.
Being not a lawyer myself, I don't trust my abilities to read between the lines of TOS jargon. Counting on the general knowledge of SO community, my question is: do the above scenarios violate the App Engine [Terms of Service][1]?
[1]: http://code.google.com/appengine/terms.html | 0 |
10,941,330 | 06/07/2012 23:40:18 | 14,122 | 09/16/2008 22:05:28 | 12,491 | 252 | Class/forName in Clojure not respecting ContextClassLoader? | I'm REPLed in to a running service, and have a var pointing to a classloader with which a plugin was loaded (with `my.package` installed).
The DynamicClassLoader used by the REPL does not include the plugin with which I wish to interact; I wish to be able to work with classes loaded from the plugin despite this limitation.
The following works:
=> (.loadClass plugin-classloader "my.package.MyClass")
my.package.MyClass
...whereas the following doesn't:
=> (do
(.setContextClassLoader (Thread/currentThread) plugin-classloader)
(Class/forName "my.package.MyClass"))
ClassNotFoundException my.package.MyClass java.net.URLClassLoader$1.run (URLClassLoader.java:202)
...and neither does this:
=> my.package.MyClass
CompilerException java.lang.ClassNotFoundException: my.package.MyClass, compiling:(NO_SOURCE_PATH:0)
Shouldn't `Class.forName()` use the thread context classloader when set? I'm trying to make some calls into 3rd-party code doing introspection magic; the tools in question are failing with ClassNotFoundExceptions even when the thread context classloader should be set. | clojure | classloader | null | null | null | null | open | Class/forName in Clojure not respecting ContextClassLoader?
===
I'm REPLed in to a running service, and have a var pointing to a classloader with which a plugin was loaded (with `my.package` installed).
The DynamicClassLoader used by the REPL does not include the plugin with which I wish to interact; I wish to be able to work with classes loaded from the plugin despite this limitation.
The following works:
=> (.loadClass plugin-classloader "my.package.MyClass")
my.package.MyClass
...whereas the following doesn't:
=> (do
(.setContextClassLoader (Thread/currentThread) plugin-classloader)
(Class/forName "my.package.MyClass"))
ClassNotFoundException my.package.MyClass java.net.URLClassLoader$1.run (URLClassLoader.java:202)
...and neither does this:
=> my.package.MyClass
CompilerException java.lang.ClassNotFoundException: my.package.MyClass, compiling:(NO_SOURCE_PATH:0)
Shouldn't `Class.forName()` use the thread context classloader when set? I'm trying to make some calls into 3rd-party code doing introspection magic; the tools in question are failing with ClassNotFoundExceptions even when the thread context classloader should be set. | 0 |
10,771,704 | 05/27/2012 04:41:21 | 1,419,766 | 05/27/2012 04:28:32 | 1 | 0 | mySQL Query to Extract/Replace src parameter from <img> tag in field data | I have a situation where I'm upgraded a CMS based website that has had some major changes over the years on how to handle certain field types. On in particular is images. Originally an <img> tag in a text field was used to store and image. Now we've moved to a more dynamic method where we use a preset file directory and just the image file name.
Currently in my 'exp_weblog_table' I have a field 'field_id_8' which is a text field holding something like the following:
<img src="{filedir_2}V55-Kaos-Chrome.jpg" width="400" height="400" />
Now my SQL query skills are pretty much non-existent, so need a hand in stripping out everything in the field except the contents of the img tag's src parameter. SO based on the above example of existing data, I ideally need the following left in the field data:
{filedir_2}V55-Kaos-Chrome.jpg
There's a number of other fields that use the same method, but I should be able to figure it out once I have something to work from.
I'll be using phpMyAdmin to make these updates to the DB table fields.
Thanks in advance
Brendan | mysql | query | replace | img | src | null | open | mySQL Query to Extract/Replace src parameter from <img> tag in field data
===
I have a situation where I'm upgraded a CMS based website that has had some major changes over the years on how to handle certain field types. On in particular is images. Originally an <img> tag in a text field was used to store and image. Now we've moved to a more dynamic method where we use a preset file directory and just the image file name.
Currently in my 'exp_weblog_table' I have a field 'field_id_8' which is a text field holding something like the following:
<img src="{filedir_2}V55-Kaos-Chrome.jpg" width="400" height="400" />
Now my SQL query skills are pretty much non-existent, so need a hand in stripping out everything in the field except the contents of the img tag's src parameter. SO based on the above example of existing data, I ideally need the following left in the field data:
{filedir_2}V55-Kaos-Chrome.jpg
There's a number of other fields that use the same method, but I should be able to figure it out once I have something to work from.
I'll be using phpMyAdmin to make these updates to the DB table fields.
Thanks in advance
Brendan | 0 |
10,795,245 | 05/29/2012 08:02:17 | 1,423,146 | 05/29/2012 07:56:43 | 1 | 0 | Technologies to be used in J2EE app | We are working on a project since last year. Now I am very impressed with the UI and responsiveness of ASANA application. Can anyone suggest me what technology would be best suited for the same. Here is my requirements.
1. Comet
2. Edit on clicking on any predefined label.
3. App should not be slow.
Should I use JQeury, DWR, CometD, JEditable..... Any help would be appreciated.
Thanks in advance.
DeGoga | jquery | java-ee | comet | dwr | asana | 05/31/2012 20:18:25 | not constructive | Technologies to be used in J2EE app
===
We are working on a project since last year. Now I am very impressed with the UI and responsiveness of ASANA application. Can anyone suggest me what technology would be best suited for the same. Here is my requirements.
1. Comet
2. Edit on clicking on any predefined label.
3. App should not be slow.
Should I use JQeury, DWR, CometD, JEditable..... Any help would be appreciated.
Thanks in advance.
DeGoga | 4 |
2,446,752 | 03/15/2010 11:38:33 | 272,023 | 02/12/2010 17:32:18 | 1 | 0 | Core Data: Merging multiple Managed Object Contexts and deleting objects | I have an iPhone project where I have a series of Managed Objects in a Managed Object Context within the main application thread. On a separate thread, I import new objects from a webserver into a second Managed Object Context.
If the import goes ok without errors, I save the import context. This triggers contextDidSave from which I call mergeChangesFromContextDidSaveNotification. The two contexts merge ok. So far, so good.
My desired functionality is to have any objects that are in the original MOC but not in the imported MOC to be deleted (the idea is that the user is refreshing the data, and so old data should be deleted), but the merge seems to just combine the 2 MOCs.
Please can you advise if there is a way of managing the merge of the 2 MOCs so that those not in one are deleted in the other?
Thanks,
John | core-data | iphone | managed | object | context | null | open | Core Data: Merging multiple Managed Object Contexts and deleting objects
===
I have an iPhone project where I have a series of Managed Objects in a Managed Object Context within the main application thread. On a separate thread, I import new objects from a webserver into a second Managed Object Context.
If the import goes ok without errors, I save the import context. This triggers contextDidSave from which I call mergeChangesFromContextDidSaveNotification. The two contexts merge ok. So far, so good.
My desired functionality is to have any objects that are in the original MOC but not in the imported MOC to be deleted (the idea is that the user is refreshing the data, and so old data should be deleted), but the merge seems to just combine the 2 MOCs.
Please can you advise if there is a way of managing the merge of the 2 MOCs so that those not in one are deleted in the other?
Thanks,
John | 0 |
10,515,948 | 05/09/2012 12:19:47 | 986,259 | 10/09/2011 10:13:01 | 76 | 2 | how to count DataGridView's Column in c# for Windows Application? | in my application, DataGridView filled with Excel file Records, I want to count DataGridView's Column. | c# | null | null | null | null | 05/09/2012 18:21:55 | not a real question | how to count DataGridView's Column in c# for Windows Application?
===
in my application, DataGridView filled with Excel file Records, I want to count DataGridView's Column. | 1 |
11,625,765 | 07/24/2012 07:05:52 | 1,545,410 | 07/23/2012 09:12:59 | 1 | 1 | add nodes in xml document to fetch data | How to add nodes in a xml document which is not having any node.
The data is in the div tag. I need to fetch the data from xml file and show it in grid view.
to do so i need to add tags to the data. how can i do this.
The code in xml file is generated after converting html file to xml.
I have shown the code below.
Please help. I am unable to get correct solution for this from google.
div class="job_title1">
<span class="txt_green">MS CRM 4.0, MS CRM 2011, PHP, SQl server, My SQL, SSRS</span>
<br />
<br />
MCA (Computers), Amity Business School
<br />
<br />
- <span class="txt_grey">
Last Active: 16th Jul 2012
<br />
Resume ID: 23961482
</span>
</div>
- <div class="company_info1">
<span class="bold">s3infotech</span>
<br />
Annual Salary: 2.40 lacs
<br />
Exp: 2Years 1Month
<br />
<span>Preferred Location: Anywhere</span>
<br />
</div>
| c# | xml | null | null | null | 07/25/2012 19:02:57 | not a real question | add nodes in xml document to fetch data
===
How to add nodes in a xml document which is not having any node.
The data is in the div tag. I need to fetch the data from xml file and show it in grid view.
to do so i need to add tags to the data. how can i do this.
The code in xml file is generated after converting html file to xml.
I have shown the code below.
Please help. I am unable to get correct solution for this from google.
div class="job_title1">
<span class="txt_green">MS CRM 4.0, MS CRM 2011, PHP, SQl server, My SQL, SSRS</span>
<br />
<br />
MCA (Computers), Amity Business School
<br />
<br />
- <span class="txt_grey">
Last Active: 16th Jul 2012
<br />
Resume ID: 23961482
</span>
</div>
- <div class="company_info1">
<span class="bold">s3infotech</span>
<br />
Annual Salary: 2.40 lacs
<br />
Exp: 2Years 1Month
<br />
<span>Preferred Location: Anywhere</span>
<br />
</div>
| 1 |
10,217,878 | 04/18/2012 20:57:45 | 155,409 | 08/12/2009 20:59:25 | 313 | 11 | Bridging and ARC | I am converting some code over to ARC and per the compiler error message, I need to bridge this code:
SCNetworkReachabilityContext context = {0, self, NULL, NULL, NULL};
I looked at the docs and yet something is not correct. Can someone tell me why this bridge cast is not working? Thanks
SCNetworkReachabilityContext context = {0, (__bridge_retained SCNetworkReachabilityContext)self, NULL, NULL, NULL};
| ios5 | bridge | arc | null | null | null | open | Bridging and ARC
===
I am converting some code over to ARC and per the compiler error message, I need to bridge this code:
SCNetworkReachabilityContext context = {0, self, NULL, NULL, NULL};
I looked at the docs and yet something is not correct. Can someone tell me why this bridge cast is not working? Thanks
SCNetworkReachabilityContext context = {0, (__bridge_retained SCNetworkReachabilityContext)self, NULL, NULL, NULL};
| 0 |
31,500 | 08/28/2008 02:00:09 | 493 | 08/06/2008 10:25:05 | 2,416 | 162 | Do indexes work with "IN" clause | If I have a query like:
Select EmployeeId From Employee Where EmployeeTypeId IN (1,2,3)
and I have an index on the EmployeeTypeId field, does SQL server still use that index? | sql | query | indexing | null | null | 05/03/2012 19:49:26 | not a real question | Do indexes work with "IN" clause
===
If I have a query like:
Select EmployeeId From Employee Where EmployeeTypeId IN (1,2,3)
and I have an index on the EmployeeTypeId field, does SQL server still use that index? | 1 |
8,053,651 | 11/08/2011 16:20:56 | 1,035,910 | 11/08/2011 15:32:58 | 1 | 0 | JSF commandButtons action value seems to be ignored - redirects to frontpage | I have a commandButton in JSF 2.0 with a actionvalue that I want to call a method in a bean and otherwise do nothing. However when I click on it, it redirects to the previous page.
This was programmed in java 1.7 in eclipse using glassfish 3.1.1.
Here is the code for the welcome.xhtml file where the commandButton is (showDetails) but there are many other files, so I have included a link to a WAR file so it is possible to check everything out. If i change the action attribute to point to a method that does not exist I will not get an error, I will again be redirected to the frontpage.
Link to the WAR file http://www.megaupload.com/?d=FESCHMC9
The program is started from the index.html file. After importing remember to leftclick on the project, go to properties>project facets and tick of JavaServerFaces 2.0
The relevant code:
welcome.xhtml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Insert title here</title>
</h:head>
<h:body>
<h3>#{userBean.user.name}</h3>
<hr />
<form>
<h:commandButton value="Back" action="index" />
</form>
<form>
<h:commandButton value="Show details" action="#{userBean.changeRenderDetails}" />
<h:panelGrid rendered="#{userBean.renderDetails}" columns="2">
<h:outputText value="Brugernavn:" /> #{userBean.user.name}
<h:outputText value="Password:" /> #{userBean.user.password}
</h:panelGrid>
</form>
</h:body>
</html>
userBean
package model;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
@Named("userBean")
// or @ManagedBean(name="user")
@SessionScoped
public class UserBean implements Serializable {
// Oprettes når en bean oprettes
private User user = new User("", "");
@Inject
// Det nuværende service objekt initialiseres automatisk
private Service service;
public String validateUser() {
return service.validateUser(user);
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
//Lektion 10 - opg1
private boolean renderDetails;
public void changeRenderDetails(){
setRenderDetails(!isRenderDetails());
}
public boolean isRenderDetails() {
return renderDetails;
}
public void setRenderDetails(boolean renderDetails) {
this.renderDetails = renderDetails;
}
}
and the user class
package model;
public class User {
private String name;
private String password;
public User(String name, String password) {
super();
this.name = name;
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
navigation rules, none of which should have anything to do with the button which redirects to index.html:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee /web-facesconfig_2_0.xsd"
version="2.0">
<navigation-rule>
<from-view-id>/index.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/welcome.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/error.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
| jsf | navigation | command | action | redirect | null | open | JSF commandButtons action value seems to be ignored - redirects to frontpage
===
I have a commandButton in JSF 2.0 with a actionvalue that I want to call a method in a bean and otherwise do nothing. However when I click on it, it redirects to the previous page.
This was programmed in java 1.7 in eclipse using glassfish 3.1.1.
Here is the code for the welcome.xhtml file where the commandButton is (showDetails) but there are many other files, so I have included a link to a WAR file so it is possible to check everything out. If i change the action attribute to point to a method that does not exist I will not get an error, I will again be redirected to the frontpage.
Link to the WAR file http://www.megaupload.com/?d=FESCHMC9
The program is started from the index.html file. After importing remember to leftclick on the project, go to properties>project facets and tick of JavaServerFaces 2.0
The relevant code:
welcome.xhtml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Insert title here</title>
</h:head>
<h:body>
<h3>#{userBean.user.name}</h3>
<hr />
<form>
<h:commandButton value="Back" action="index" />
</form>
<form>
<h:commandButton value="Show details" action="#{userBean.changeRenderDetails}" />
<h:panelGrid rendered="#{userBean.renderDetails}" columns="2">
<h:outputText value="Brugernavn:" /> #{userBean.user.name}
<h:outputText value="Password:" /> #{userBean.user.password}
</h:panelGrid>
</form>
</h:body>
</html>
userBean
package model;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
@Named("userBean")
// or @ManagedBean(name="user")
@SessionScoped
public class UserBean implements Serializable {
// Oprettes når en bean oprettes
private User user = new User("", "");
@Inject
// Det nuværende service objekt initialiseres automatisk
private Service service;
public String validateUser() {
return service.validateUser(user);
}
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
//Lektion 10 - opg1
private boolean renderDetails;
public void changeRenderDetails(){
setRenderDetails(!isRenderDetails());
}
public boolean isRenderDetails() {
return renderDetails;
}
public void setRenderDetails(boolean renderDetails) {
this.renderDetails = renderDetails;
}
}
and the user class
package model;
public class User {
private String name;
private String password;
public User(String name, String password) {
super();
this.name = name;
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
}
navigation rules, none of which should have anything to do with the button which redirects to index.html:
<?xml version="1.0" encoding="UTF-8"?>
<faces-config
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee /web-facesconfig_2_0.xsd"
version="2.0">
<navigation-rule>
<from-view-id>/index.xhtml</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/welcome.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>failure</from-outcome>
<to-view-id>/error.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
| 0 |
7,331,860 | 09/07/2011 09:49:06 | 66,674 | 02/15/2009 17:59:30 | 425 | 3 | Difference between char in Java and C# (particular problem with (char)-1) | char x = (char)-1;
is valid in Java, but shows me the error (*Overflow in constant value computation*)
Should I use a different datatype in C#? | c# | java | null | null | null | null | open | Difference between char in Java and C# (particular problem with (char)-1)
===
char x = (char)-1;
is valid in Java, but shows me the error (*Overflow in constant value computation*)
Should I use a different datatype in C#? | 0 |
6,168,741 | 05/29/2011 16:00:30 | 673,329 | 03/23/2011 15:25:33 | 28 | 0 | CSS: small problem with float | Hihi,
I have a small problem, I´ve done it before but as CSS behave sometimes it´s OK on time
but next time it shows a bug.
As you can see the red area (main content) doesn´t flow as it should
I must be missing something but why not post the problem while I go to the grocery store :)
As I say, guess it´s something tiny...
[enter link description here][1]
[1]: http://trekkingtravel.is/admin/control.php | css | float | null | null | null | 09/30/2011 18:04:20 | too localized | CSS: small problem with float
===
Hihi,
I have a small problem, I´ve done it before but as CSS behave sometimes it´s OK on time
but next time it shows a bug.
As you can see the red area (main content) doesn´t flow as it should
I must be missing something but why not post the problem while I go to the grocery store :)
As I say, guess it´s something tiny...
[enter link description here][1]
[1]: http://trekkingtravel.is/admin/control.php | 3 |
10,583,077 | 05/14/2012 12:12:35 | 727,278 | 04/27/2011 12:49:31 | 59 | 0 | 3D: What to hardcode and what not | I just wonder what do I hardcode in my game? E.g do I have an external file for every `Enemy` properties so on or do I make a class?
So what info/stuff should I code and what should I have as a .file?
Cheers! | java | 3d | pygame | hardcode | null | 05/15/2012 15:32:33 | not a real question | 3D: What to hardcode and what not
===
I just wonder what do I hardcode in my game? E.g do I have an external file for every `Enemy` properties so on or do I make a class?
So what info/stuff should I code and what should I have as a .file?
Cheers! | 1 |
9,704,122 | 03/14/2012 14:41:47 | 1,152,083 | 01/16/2012 14:56:36 | 13 | 0 | if else not working in php | I am working on php 5.3.10 on Apache 2.2.21 server. My problem is that these if...else aren't giving outputs as they should. The first and the last echo statements work well, the first one displaying correctly the value sent from the page that redirects to this one (however the status is printed within quotes, for eg 'pending').The rest of the echos don't work even when their conditions are true. Also, writing *else if* instead of *elseif* doesn't make any difference.
$status= $_GET['type'];
echo $status;
if ($status =='pending'){
echo "Select the accounts to approve : ";}
elseif ($status =='inactive'){
echo "Select the accounts to activate : ";}
elseif ($status =='active'){
echo "Select the accounts to deactivate : ";}
elseif ($status =='all'){
echo "Select the accounts to delete : ";}
echo get_user_list_for_admin($status);
| php | if-statement | null | null | null | 03/16/2012 03:58:38 | not a real question | if else not working in php
===
I am working on php 5.3.10 on Apache 2.2.21 server. My problem is that these if...else aren't giving outputs as they should. The first and the last echo statements work well, the first one displaying correctly the value sent from the page that redirects to this one (however the status is printed within quotes, for eg 'pending').The rest of the echos don't work even when their conditions are true. Also, writing *else if* instead of *elseif* doesn't make any difference.
$status= $_GET['type'];
echo $status;
if ($status =='pending'){
echo "Select the accounts to approve : ";}
elseif ($status =='inactive'){
echo "Select the accounts to activate : ";}
elseif ($status =='active'){
echo "Select the accounts to deactivate : ";}
elseif ($status =='all'){
echo "Select the accounts to delete : ";}
echo get_user_list_for_admin($status);
| 1 |
11,581,678 | 07/20/2012 14:48:01 | 1,252,954 | 03/06/2012 18:19:42 | 1 | 0 | Matrix Transposition with Cache Blocking | I am having trouble with implement a matrix transposition algorithm with cache blocking. Here's the code I have so far but it doesnt work for some matrix sizes but I have no idea why, could anyone shed some light on why?
void transpose(int m, int n, int blocksize, float* src, float* dst) {
for (int i=0;i<m;i+= blocksize) {
for (int j=0;j<n;j+=blocksize) {
for(int k = i; k <= i+blocksize; k++ ) {
for(int l = j; l <= j+blocksize; l++ ) {
//printf("%d:%d\n\n", l*n+k, l+k*m);
if((l * n + k) > (n*m-1) || (l + k*m) > (n*m-1)) {
break;
} else {
dst[l * n + k] = src[l + k * m];
}
}
}
}
}
}
| c | caching | matrix | blocking | transpose | 07/20/2012 21:13:43 | not constructive | Matrix Transposition with Cache Blocking
===
I am having trouble with implement a matrix transposition algorithm with cache blocking. Here's the code I have so far but it doesnt work for some matrix sizes but I have no idea why, could anyone shed some light on why?
void transpose(int m, int n, int blocksize, float* src, float* dst) {
for (int i=0;i<m;i+= blocksize) {
for (int j=0;j<n;j+=blocksize) {
for(int k = i; k <= i+blocksize; k++ ) {
for(int l = j; l <= j+blocksize; l++ ) {
//printf("%d:%d\n\n", l*n+k, l+k*m);
if((l * n + k) > (n*m-1) || (l + k*m) > (n*m-1)) {
break;
} else {
dst[l * n + k] = src[l + k * m];
}
}
}
}
}
}
| 4 |
7,754,430 | 10/13/2011 12:53:16 | 993,472 | 10/13/2011 12:43:20 | 1 | 0 | SharePoint WSS 3.0 calendar is missing events | I have a WSS 3.0 site at a small school. The teachers are using the calendar regularly when suddenly, the events are not longer showing up in calendar view. The events are THERE (if I create an email alert, create an event, I will get a clickable link to the event, but if I view the calendar in IE, no events) Each months shows *some* events, but it's like the calendar gets 'full' and suddenly there are days with NOTHING.
I read some stuff from MS on increasing the limit for entries, but I don't think it applies because we're no where near 2000 events in the calendar. I've tooled around the XML files, but nothing is jumping out at me.
There were a couple of MS articles that I ran thru, but no resolution yet. Any ideas? Conversely, is there a recommended cloud service that can replace this if it's not functional?
Cheers. | sharepoint | events | calendar | missing | null | null | open | SharePoint WSS 3.0 calendar is missing events
===
I have a WSS 3.0 site at a small school. The teachers are using the calendar regularly when suddenly, the events are not longer showing up in calendar view. The events are THERE (if I create an email alert, create an event, I will get a clickable link to the event, but if I view the calendar in IE, no events) Each months shows *some* events, but it's like the calendar gets 'full' and suddenly there are days with NOTHING.
I read some stuff from MS on increasing the limit for entries, but I don't think it applies because we're no where near 2000 events in the calendar. I've tooled around the XML files, but nothing is jumping out at me.
There were a couple of MS articles that I ran thru, but no resolution yet. Any ideas? Conversely, is there a recommended cloud service that can replace this if it's not functional?
Cheers. | 0 |
8,690,183 | 12/31/2011 19:43:35 | 1,124,209 | 12/31/2011 10:20:43 | 1 | 0 | content management system for reservation system | i am an asp.net programmer.I want to develop a hotel reservation system on a content management system.can anybody suggest me which cms can be used to develop.
pardon if this is my question is right one.
thanks in advance.
| asp.net | content-management-system | null | null | null | 01/01/2012 15:14:15 | not constructive | content management system for reservation system
===
i am an asp.net programmer.I want to develop a hotel reservation system on a content management system.can anybody suggest me which cms can be used to develop.
pardon if this is my question is right one.
thanks in advance.
| 4 |
2,263,154 | 02/14/2010 22:44:38 | 272,487 | 02/13/2010 17:44:12 | 1 | 0 | "using typedef-name ... as class" on a forward declaration | I'm doing some policy-based designs here and I have the need to typedef lots of template types to shorten the names.
Now the problem comes that when I need to use a pointer to one of those types I try to just forward-declare it but the compiler complains with a `test.cpp:8: error: using typedef-name ‘Test1’ after ‘class’
`
It's nothing to do with sizes as I don't need the obj at all, its just a pointer in a ".h" file where I don't want to bring the whole template in.
This is g++:
//Works
class Test{};
class Test;
//Doesn't work
class Test{};
typedef Test Test1;
class Test1;
Any hint? | c++ | forward-declaration | typedef | compiler | null | null | open | "using typedef-name ... as class" on a forward declaration
===
I'm doing some policy-based designs here and I have the need to typedef lots of template types to shorten the names.
Now the problem comes that when I need to use a pointer to one of those types I try to just forward-declare it but the compiler complains with a `test.cpp:8: error: using typedef-name ‘Test1’ after ‘class’
`
It's nothing to do with sizes as I don't need the obj at all, its just a pointer in a ".h" file where I don't want to bring the whole template in.
This is g++:
//Works
class Test{};
class Test;
//Doesn't work
class Test{};
typedef Test Test1;
class Test1;
Any hint? | 0 |
10,551,286 | 05/11/2012 12:24:05 | 1,071,203 | 11/29/2011 11:46:54 | 313 | 11 | VB.NET LINQ to SQL - db.ExecuteQuery(Of ITable)("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id) | In my programming task I've gone down a dark alley and wished I hadn't, but there is no turning back now.
I'm building up a SQL statement where the table name, column name and id value are retrieved from query string parameters i.e. `("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id)`
But it isn't as bad as it looks, I'm protected:
- Only authenticated users (i.e. signed in users) can execute the Page_Load
- I'm checking that both the table and the column exists beforehand (using GetSchema etc.)
- I'm checking that the Id is an integer beforehand
The field value is expected to be of the NVARCHAR(4000) or NVARCHAR(MAX) so I'm avoiding `ExecuteScalar` and I'm trying out LINQ `ExecuteQuery` because I like LINQ. But I'm a bit out of my depth again.
I've got this far:
Dim db As New MyDataContext
Dim result = db.ExecuteQuery(Of ITable)("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id)
- Is this the right way to go?
- How do I get first row and first column value?
- Is there a better alternative?
P.S. It's a SQL Server 2005 R2 database
Any help appreciated.
Thanks. | asp.net | vb.net | linq | linq-to-sql | asp.net-webforms | null | open | VB.NET LINQ to SQL - db.ExecuteQuery(Of ITable)("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id)
===
In my programming task I've gone down a dark alley and wished I hadn't, but there is no turning back now.
I'm building up a SQL statement where the table name, column name and id value are retrieved from query string parameters i.e. `("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id)`
But it isn't as bad as it looks, I'm protected:
- Only authenticated users (i.e. signed in users) can execute the Page_Load
- I'm checking that both the table and the column exists beforehand (using GetSchema etc.)
- I'm checking that the Id is an integer beforehand
The field value is expected to be of the NVARCHAR(4000) or NVARCHAR(MAX) so I'm avoiding `ExecuteScalar` and I'm trying out LINQ `ExecuteQuery` because I like LINQ. But I'm a bit out of my depth again.
I've got this far:
Dim db As New MyDataContext
Dim result = db.ExecuteQuery(Of ITable)("SELECT [{0}] FROM [{1}] WHERE [Id] = {2};", c, t, id)
- Is this the right way to go?
- How do I get first row and first column value?
- Is there a better alternative?
P.S. It's a SQL Server 2005 R2 database
Any help appreciated.
Thanks. | 0 |
26,455 | 08/25/2008 17:26:47 | 290 | 08/04/2008 12:57:50 | 441 | 49 | Does Design By Contract Work For You? | Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?
I came across the [Design by Contract][1] approach in a grad school course. In the academic setting, it seemed to be a pretty useful technique. But I don't currently use Design by Contract professionally, and I don't know any other developers that are using it. It would be good to hear about its actual usage from the SO crowd.
[1]: http://en.wikipedia.org/wiki/Design_by_contract | contract-programming | design-by-contract | design | contract-first-developme | null | 10/21/2011 12:43:57 | not constructive | Does Design By Contract Work For You?
===
Do you use Design by Contract professionally? Is it something you have to do from the beginning of a project, or can you change gears and start to incorporate it into your software development lifecycle? What have you found to be the pros/cons of the design approach?
I came across the [Design by Contract][1] approach in a grad school course. In the academic setting, it seemed to be a pretty useful technique. But I don't currently use Design by Contract professionally, and I don't know any other developers that are using it. It would be good to hear about its actual usage from the SO crowd.
[1]: http://en.wikipedia.org/wiki/Design_by_contract | 4 |
8,588,729 | 12/21/2011 10:57:45 | 576,758 | 01/15/2011 14:12:54 | 981 | 30 | Data storage with infinite capacity | I want to store infinity number of java `BigInteger`s in a storage from where I can fetch those data, do some operation, insert new data. The operation needs to be very fast. What will be the best choice of storage for this purpose? | java | datastorage | null | null | null | 12/21/2011 23:23:57 | not a real question | Data storage with infinite capacity
===
I want to store infinity number of java `BigInteger`s in a storage from where I can fetch those data, do some operation, insert new data. The operation needs to be very fast. What will be the best choice of storage for this purpose? | 1 |
2,652,875 | 04/16/2010 12:27:18 | 57,159 | 01/20/2009 16:21:54 | 4,529 | 273 | How do I use a ValueConverter in with Databinding in Winforms | In WPF it is easy to use a ValueConverter to format values etc, (in our case convert some numbers into a different unit, e.g km to miles)
I know it can be done in Winforms, but all my Googleing just brings up results for WPF and Silverlight.
| winforms | data-binding | null | null | null | null | open | How do I use a ValueConverter in with Databinding in Winforms
===
In WPF it is easy to use a ValueConverter to format values etc, (in our case convert some numbers into a different unit, e.g km to miles)
I know it can be done in Winforms, but all my Googleing just brings up results for WPF and Silverlight.
| 0 |
11,470,042 | 07/13/2012 11:56:51 | 104,731 | 05/11/2009 11:10:40 | 392 | 15 | How do you choose the EC2 instance for your django app? | My team has created a nice django app and now it is going to be deployed on an EC2 instance. Now there are a few questions that I am looking answer for:
* How do I decide which instance is good for my app (micro, small, medium, large etc.). In other words how can I tell how much memory/processing power is required by this application.
* How can I quantify maximum number of concurrent users on my server. This is important for this application, I need to know how many users would be supported by micro/small/medium or large instance.
* Should I go for everything installed on a single instance or should I have separate instance for database, backups and application.
* How can I have an estimate of extra resources required with addition of each user (I think this would not be linear)
I know that answer to these questions are very subjective and most of the things depend on application design and architecture. Therefore, I am more interested in getting to know the process involved in making such decisions. | django | amazon-ec2 | scalability | null | null | 07/20/2012 04:03:39 | off topic | How do you choose the EC2 instance for your django app?
===
My team has created a nice django app and now it is going to be deployed on an EC2 instance. Now there are a few questions that I am looking answer for:
* How do I decide which instance is good for my app (micro, small, medium, large etc.). In other words how can I tell how much memory/processing power is required by this application.
* How can I quantify maximum number of concurrent users on my server. This is important for this application, I need to know how many users would be supported by micro/small/medium or large instance.
* Should I go for everything installed on a single instance or should I have separate instance for database, backups and application.
* How can I have an estimate of extra resources required with addition of each user (I think this would not be linear)
I know that answer to these questions are very subjective and most of the things depend on application design and architecture. Therefore, I am more interested in getting to know the process involved in making such decisions. | 2 |
11,733,693 | 07/31/2012 05:31:35 | 1,536,707 | 07/19/2012 03:51:27 | 8 | 0 | How to get new view from clicking barbuttonitem? | I have made a barbuttonitem programmatically on a toolbar overlay. All of this appears when my camera is accessed. The button functions fine and the selector is fully capable of calling it.
Here's the overlay in .m , take a look at the doneButton selector.
- (UIView*)CommomOverlay {
//Both of the 428 values stretch the overlay bottom to top for overlay function. It
doesn't cover it.
UIView* view = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,420)];
UIImageView *FrameImg = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,420)];
[FrameImg setImage:[UIImage imageNamed:@"newGraphicOverlay.png"]];
FrameImg.userInteractionEnabled = YES;
UIToolbar *myToolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 428, 320, 50)];
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self
action:@selector(doneButtonPressed)];
[myToolBar setItems:[NSArray arrayWithObjects: cancelButton, flexiSpace2, flexiSpace,
doneButton, nil] animated:YES];
[view addSubview:FrameImg];
[view addSubview:myToolBar];
return view;
}
Here's method I'm using for my void function.
//NewViewController is the nib I want to bring up when done is clicked.
-(void)doneButtonPressed {
NewViewController *UIView = [[NewViewController alloc] initWithNibName:nil bundle:nil];
UIView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:UIView animated:NO];
[UIView release];
NSLog(@"Acknowledged!");
}
The button is being called, but nothing happens. As you can see I added an NSLog function to see whether it was being called or not. "Acknowledged" shows up in the log when the button is clicked, so it's not a problem with the selector. The app doesn't crash when i use the button either, which should occur had I done some heavily faulty coding (in fact I don't even get any warnings about it), as far as Xcode is considered, everything is fine which, needless to say isn't.
I also have my .h files of NewViewController in place correctly in the view controller in which this code is being implemented.
| ios | uibarbuttonitem | null | null | null | null | open | How to get new view from clicking barbuttonitem?
===
I have made a barbuttonitem programmatically on a toolbar overlay. All of this appears when my camera is accessed. The button functions fine and the selector is fully capable of calling it.
Here's the overlay in .m , take a look at the doneButton selector.
- (UIView*)CommomOverlay {
//Both of the 428 values stretch the overlay bottom to top for overlay function. It
doesn't cover it.
UIView* view = [[UIView alloc] initWithFrame:CGRectMake(0,0,320,420)];
UIImageView *FrameImg = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,420)];
[FrameImg setImage:[UIImage imageNamed:@"newGraphicOverlay.png"]];
FrameImg.userInteractionEnabled = YES;
UIToolbar *myToolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(0, 428, 320, 50)];
UIBarButtonItem *doneButton = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self
action:@selector(doneButtonPressed)];
[myToolBar setItems:[NSArray arrayWithObjects: cancelButton, flexiSpace2, flexiSpace,
doneButton, nil] animated:YES];
[view addSubview:FrameImg];
[view addSubview:myToolBar];
return view;
}
Here's method I'm using for my void function.
//NewViewController is the nib I want to bring up when done is clicked.
-(void)doneButtonPressed {
NewViewController *UIView = [[NewViewController alloc] initWithNibName:nil bundle:nil];
UIView.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
[self presentModalViewController:UIView animated:NO];
[UIView release];
NSLog(@"Acknowledged!");
}
The button is being called, but nothing happens. As you can see I added an NSLog function to see whether it was being called or not. "Acknowledged" shows up in the log when the button is clicked, so it's not a problem with the selector. The app doesn't crash when i use the button either, which should occur had I done some heavily faulty coding (in fact I don't even get any warnings about it), as far as Xcode is considered, everything is fine which, needless to say isn't.
I also have my .h files of NewViewController in place correctly in the view controller in which this code is being implemented.
| 0 |
8,402,413 | 12/06/2011 15:30:28 | 1,081,839 | 12/05/2011 15:39:15 | 1 | 0 | Recommend books about web server architecture or technique |
I'm looking for an book which presents how does a web server work. For example, I want to learn how Apache works and its architecture.
Thank you very much | webserver | null | null | null | null | 12/06/2011 15:42:27 | not constructive | Recommend books about web server architecture or technique
===
I'm looking for an book which presents how does a web server work. For example, I want to learn how Apache works and its architecture.
Thank you very much | 4 |
8,827,070 | 01/11/2012 21:41:18 | 918,055 | 08/29/2011 15:03:19 | 8 | 0 | Jquery Mobile size is too small | I'm making an app on PhoneGap using Jquery Mobile. The app runs fine on the PC browser and on the simulator, but when I install it on my phone everything it's very small.
On my home page I have a listView that is searchable and when I tap the textfield to search something the page adjust the itself to a more readable size.
How can I solve this? I want it to be readable from the start.
Thank you in advanced. | html | css | mobile | jquery-mobile | phonegap | null | open | Jquery Mobile size is too small
===
I'm making an app on PhoneGap using Jquery Mobile. The app runs fine on the PC browser and on the simulator, but when I install it on my phone everything it's very small.
On my home page I have a listView that is searchable and when I tap the textfield to search something the page adjust the itself to a more readable size.
How can I solve this? I want it to be readable from the start.
Thank you in advanced. | 0 |
7,871,927 | 10/24/2011 06:22:25 | 1,010,322 | 10/24/2011 05:58:25 | 1 | 0 | How to execute javascript of one page on click to trigger a click event on another page? | Just starting to dabble in jquery so bear with me ,
This is what the link/anchor looks like on pg1:
`<li id="click1"><a href="products.htm#test4Handle1">TNT Cable System</a></li>`
This is what i want to trigger on page 2:
`<a name="test4Handle1"> <button onclick="$('#test4Handle1').click()">TNT Cable System</button></a> `
my attempt at jquery
'$("test4Handle1").observe('domready',function() {
document.getElementById("test4Handle1").click();});'
What page should have the javascript pg 1 or 2?
Thanks for your patience.
David | anchor | jquery-events | null | null | null | null | open | How to execute javascript of one page on click to trigger a click event on another page?
===
Just starting to dabble in jquery so bear with me ,
This is what the link/anchor looks like on pg1:
`<li id="click1"><a href="products.htm#test4Handle1">TNT Cable System</a></li>`
This is what i want to trigger on page 2:
`<a name="test4Handle1"> <button onclick="$('#test4Handle1').click()">TNT Cable System</button></a> `
my attempt at jquery
'$("test4Handle1").observe('domready',function() {
document.getElementById("test4Handle1").click();});'
What page should have the javascript pg 1 or 2?
Thanks for your patience.
David | 0 |
8,179,511 | 11/18/2011 08:15:55 | 327,528 | 04/28/2010 06:13:59 | 893 | 1 | Is Visual Studio 2010 Express an acceptable development platform? | Is VS2010 Express acceptable for developing a C#-SQL desktop application, or is there a need to purchase the full edition? | visual-studio-2010 | null | null | null | null | 11/18/2011 09:01:52 | off topic | Is Visual Studio 2010 Express an acceptable development platform?
===
Is VS2010 Express acceptable for developing a C#-SQL desktop application, or is there a need to purchase the full edition? | 2 |
5,710,317 | 04/19/2011 00:31:05 | 703,291 | 04/12/2011 03:39:47 | 1 | 0 | Java code working on InventoryPart 2 program, have no idea what I am doing wrong? Urgently need help. | I get the following error code:
C:\Documents and Settings\AdminUser\My Documents\InventoryPart2.java:83: class, interface, or enum expected
import java.util.*;
^
1 error
Tool completed with exit code 1
This is my code
[CODE]
public class Television { //class name and attributes
private String ItemNumber; //item # of product
private String ProductName; //product name
private double UnitsStock; //# of units in stock
private double UnitPrice; //Price per unit
private double InventoryValue; //The dollar value of the inventory in stock
private double CalculateInventory; //The total value of all of the inventory in stock
private double value;
//contructor
public Television (String item, String product, double units, double price) {
ItemNumber = item;
ProductName = product;
UnitsStock = units;
UnitPrice = price;
} //end constructor
//getter and setter methods for Television
public void setItemNumber (String item) { //setter for item number
this.ItemNumber = item;
} //end setter item number
public String getItemNumber() { //getter for item number
return ItemNumber;
} //end getter item number
public void setProductName (String product) { //setter for product name
this.ProductName = product;
} //end setter product name
public String getProductName() { //getter for product name
return ProductName;
} //end getter product name
public void setUnitsStock (double units) { //setter for units in stock
this.UnitsStock = units;
} //end setter units in stock
public double getUnitsStock() { //getter for units in stock
return UnitsStock;
} //end getter units in stock
public void setUnitPrice (double price) { //setter for unit price
this.UnitPrice = price;
} //end setter unit price
public double getUnitPrice() { //getter for unit price
return UnitPrice;
} //end getter for unit price
//calculate inventory value
public double getInventoryValue(){
return UnitsStock * UnitPrice;
}//end calculate inventory value
public void setCalculateInventory (double value){
this.CalculateInventory = value;
}
public double getCalculateInventory(){
double value = 0;
for(int i = 0; i < 5; i++){
value = getInventoryValue();
}
return value;
}
//end getter and setter methods for Television
} //end class Television
//begin main program
import java.util.*;
public class InventoryPart2 {
public static void main (String args []){
//instantiate Television array
Television myTelevisions[] = new Television[5];
myTelevisions[0] = new Television ("0001", " Samsung UN46D6400",9,1599.99);
myTelevisions[1] = new Television ("0002", " Vizio XVT553SV",6,1299.00);
myTelevisions[2] = new Television ("0003", " Panasonic Viera TC-P50VT25",2,2079.99);
myTelevisions[3] = new Television ("0004", " Sony Bravia KDL-55EX720",8, 1889.99);
myTelevisions[4] = new Television ("0005", " LG Infinia 47LX9500",2,2099.00);
//output
for (int i = 0; i < myTelevisions.length; i++){
System.out.println("Product Number: \t\t" + myTelevisions[i].getItemNumber());
System.out.println("Product Name: \t\t\t" + myTelevisions[i].getProductName());
System.out.println("Number of Units in Stock: \t" + myTelevisions[i].getUnitsStock());
System.out.printf("Price per Unit: \t\t$%.2f\n", + myTelevisions[i].getUnitPrice());
System.out.printf("Value of Inventory: \t\t$%.2f\n", + myTelevisions[i].getInventoryValue());
System.out.println();
} // end output
for (int i = 0; i < 5; i++){ //output total inventory value
System.out.printf("Total Value of Inventory is: \t$%.2f\n", + myTelevision[i].getCalculateInventory());
System.out.println();
}//end output total inventory value
} //end method main
} //end class InventoryPart1
[/CODE] | java | null | null | null | null | null | open | Java code working on InventoryPart 2 program, have no idea what I am doing wrong? Urgently need help.
===
I get the following error code:
C:\Documents and Settings\AdminUser\My Documents\InventoryPart2.java:83: class, interface, or enum expected
import java.util.*;
^
1 error
Tool completed with exit code 1
This is my code
[CODE]
public class Television { //class name and attributes
private String ItemNumber; //item # of product
private String ProductName; //product name
private double UnitsStock; //# of units in stock
private double UnitPrice; //Price per unit
private double InventoryValue; //The dollar value of the inventory in stock
private double CalculateInventory; //The total value of all of the inventory in stock
private double value;
//contructor
public Television (String item, String product, double units, double price) {
ItemNumber = item;
ProductName = product;
UnitsStock = units;
UnitPrice = price;
} //end constructor
//getter and setter methods for Television
public void setItemNumber (String item) { //setter for item number
this.ItemNumber = item;
} //end setter item number
public String getItemNumber() { //getter for item number
return ItemNumber;
} //end getter item number
public void setProductName (String product) { //setter for product name
this.ProductName = product;
} //end setter product name
public String getProductName() { //getter for product name
return ProductName;
} //end getter product name
public void setUnitsStock (double units) { //setter for units in stock
this.UnitsStock = units;
} //end setter units in stock
public double getUnitsStock() { //getter for units in stock
return UnitsStock;
} //end getter units in stock
public void setUnitPrice (double price) { //setter for unit price
this.UnitPrice = price;
} //end setter unit price
public double getUnitPrice() { //getter for unit price
return UnitPrice;
} //end getter for unit price
//calculate inventory value
public double getInventoryValue(){
return UnitsStock * UnitPrice;
}//end calculate inventory value
public void setCalculateInventory (double value){
this.CalculateInventory = value;
}
public double getCalculateInventory(){
double value = 0;
for(int i = 0; i < 5; i++){
value = getInventoryValue();
}
return value;
}
//end getter and setter methods for Television
} //end class Television
//begin main program
import java.util.*;
public class InventoryPart2 {
public static void main (String args []){
//instantiate Television array
Television myTelevisions[] = new Television[5];
myTelevisions[0] = new Television ("0001", " Samsung UN46D6400",9,1599.99);
myTelevisions[1] = new Television ("0002", " Vizio XVT553SV",6,1299.00);
myTelevisions[2] = new Television ("0003", " Panasonic Viera TC-P50VT25",2,2079.99);
myTelevisions[3] = new Television ("0004", " Sony Bravia KDL-55EX720",8, 1889.99);
myTelevisions[4] = new Television ("0005", " LG Infinia 47LX9500",2,2099.00);
//output
for (int i = 0; i < myTelevisions.length; i++){
System.out.println("Product Number: \t\t" + myTelevisions[i].getItemNumber());
System.out.println("Product Name: \t\t\t" + myTelevisions[i].getProductName());
System.out.println("Number of Units in Stock: \t" + myTelevisions[i].getUnitsStock());
System.out.printf("Price per Unit: \t\t$%.2f\n", + myTelevisions[i].getUnitPrice());
System.out.printf("Value of Inventory: \t\t$%.2f\n", + myTelevisions[i].getInventoryValue());
System.out.println();
} // end output
for (int i = 0; i < 5; i++){ //output total inventory value
System.out.printf("Total Value of Inventory is: \t$%.2f\n", + myTelevision[i].getCalculateInventory());
System.out.println();
}//end output total inventory value
} //end method main
} //end class InventoryPart1
[/CODE] | 0 |
5,012,333 | 02/16/2011 03:47:40 | 325,418 | 05/09/2009 15:50:29 | 10,331 | 352 | Can any account with verified email address be used to merge with an account with unverified email address? | Say, if using OpenID Selector which is StockOverflow's log in system, or JanRain, which actually allows
using Facebook or Twitter to log in as well as OpenID, then, some email address are not verified...
On the original website, if an email addresses is not verified, maybe we can merge two accounts (threat them as one user) if
OpenID or JanRain logs in a user with an email address that is verified, and our current user accounts also has a user with that
email address (but unverified) -- the real user can take control of the account now... but, what if a hacker register a celebrity's
email address, and then just wait months until the celebrity uses OpenID or Facebook with the verified email address to "merge" the
two accounts... (the website can announce the accounts are merged, but the celebrity may not remember whether he or she previously has sign up in that website... so he or she may not feel security breech) so the security risk is...
now whatever the celebrity does -- saving items to a list, etc, the hacker can now silently monitor what is being done...
So is it true that if any account has an unverified email address, no other account should merge with it. Only if both accounts
have that same verified email address, then those accounts can be treated as one single account... is this true, or can the rule
be more flexible than this?
| security | web-security | hacking | privacy | janrain | null | open | Can any account with verified email address be used to merge with an account with unverified email address?
===
Say, if using OpenID Selector which is StockOverflow's log in system, or JanRain, which actually allows
using Facebook or Twitter to log in as well as OpenID, then, some email address are not verified...
On the original website, if an email addresses is not verified, maybe we can merge two accounts (threat them as one user) if
OpenID or JanRain logs in a user with an email address that is verified, and our current user accounts also has a user with that
email address (but unverified) -- the real user can take control of the account now... but, what if a hacker register a celebrity's
email address, and then just wait months until the celebrity uses OpenID or Facebook with the verified email address to "merge" the
two accounts... (the website can announce the accounts are merged, but the celebrity may not remember whether he or she previously has sign up in that website... so he or she may not feel security breech) so the security risk is...
now whatever the celebrity does -- saving items to a list, etc, the hacker can now silently monitor what is being done...
So is it true that if any account has an unverified email address, no other account should merge with it. Only if both accounts
have that same verified email address, then those accounts can be treated as one single account... is this true, or can the rule
be more flexible than this?
| 0 |
11,717,657 | 07/30/2012 08:17:38 | 1,513,580 | 07/10/2012 03:26:50 | 6 | 0 | PHP: Dinamic table | i need help...
i have a table like:
studentID | name | 1stExam | 2ndExam | 3Exam | 4Exam
001, eric, 30, 64,
002, Joy, 34, 44, 0, 13
003, Ray, 45
Here, i wanna make a table view what can make a dinamic colum exam as "nExamp" on the table in the database. so, the number of tables "nExam" according to the number of "Examp" ever. as "nExamp" on the table in the database. so, the number of tables "nExam" according to the number of "Examp" ever. and will automatically increase when there is "Exam" new, such as "5exam". Yes, i wanna a some thing like automatic increase or decrease "colspan"
sorry if my english not good...
| php | mysql | html | colspan | null | 07/30/2012 15:16:32 | not a real question | PHP: Dinamic table
===
i need help...
i have a table like:
studentID | name | 1stExam | 2ndExam | 3Exam | 4Exam
001, eric, 30, 64,
002, Joy, 34, 44, 0, 13
003, Ray, 45
Here, i wanna make a table view what can make a dinamic colum exam as "nExamp" on the table in the database. so, the number of tables "nExam" according to the number of "Examp" ever. as "nExamp" on the table in the database. so, the number of tables "nExam" according to the number of "Examp" ever. and will automatically increase when there is "Exam" new, such as "5exam". Yes, i wanna a some thing like automatic increase or decrease "colspan"
sorry if my english not good...
| 1 |
10,976,714 | 06/11/2012 08:33:03 | 1,159,601 | 01/19/2012 22:25:02 | 3 | 0 | setContentView and layout (android) | I have a layout for an activity but I also want to display some text.
I can't use the <include/> tag because I don't have two layouts. Is there any equivalent that can make a layout and a setContentView(textView) statement work together? | android | layout | content | priority | null | 06/12/2012 11:40:32 | too localized | setContentView and layout (android)
===
I have a layout for an activity but I also want to display some text.
I can't use the <include/> tag because I don't have two layouts. Is there any equivalent that can make a layout and a setContentView(textView) statement work together? | 3 |
8,122,369 | 11/14/2011 13:35:50 | 1,045,676 | 11/14/2011 13:30:17 | 1 | 0 | How to convert PHP application to Desktop application | I developed a dictionary with PHP by using CodeIgniter Framework. I want to convert to that dictionary application to desktop application. How to convert? | php | codeigniter | desktop-application | null | null | 11/15/2011 03:33:31 | not a real question | How to convert PHP application to Desktop application
===
I developed a dictionary with PHP by using CodeIgniter Framework. I want to convert to that dictionary application to desktop application. How to convert? | 1 |
184,652 | 10/08/2008 20:12:38 | 7,565 | 09/15/2008 13:58:28 | 601 | 47 | What is the best way to handle change management? | My organization's main project went live on Monday. That was my third day here. Now that I've been here almost a week, I'm tasked with creating a change management plan for the maintenance of the application and preparation for phase 2, which will commence "someday." We're a Microsoft shop but open-minded.
I'm looking for some suggestions on CM techniques and *especially tools* that will help with this. I'm familiar with ITIL and I've been considering how its concept of CM could apply to this project, but admittedly this one is a lot smaller than I'm used to (< 100 users versus thousands). I'm not exactly sure how, or if, ITIL can be pared down to such a small project. Or maybe I'm thinking too small.
How does your organization manage change at the system level? Does it work for you? How could it be improved?
| itil | cm | processes | null | null | 04/15/2011 15:00:57 | off topic | What is the best way to handle change management?
===
My organization's main project went live on Monday. That was my third day here. Now that I've been here almost a week, I'm tasked with creating a change management plan for the maintenance of the application and preparation for phase 2, which will commence "someday." We're a Microsoft shop but open-minded.
I'm looking for some suggestions on CM techniques and *especially tools* that will help with this. I'm familiar with ITIL and I've been considering how its concept of CM could apply to this project, but admittedly this one is a lot smaller than I'm used to (< 100 users versus thousands). I'm not exactly sure how, or if, ITIL can be pared down to such a small project. Or maybe I'm thinking too small.
How does your organization manage change at the system level? Does it work for you? How could it be improved?
| 2 |
7,688,966 | 10/07/2011 14:52:05 | 965,276 | 09/26/2011 14:52:54 | 31 | 0 | php json returning bool(false) | Any thoughts as to why the following is not working.
$request_url = "someurl?myId=$id"; //returns feed like above
$json = file_get_contents($request_url, true); //getting the file content
$decode = json_decode($json, true);
var_dump($json);
When I paste the request_url into a browser I get back the json data but if I try in php the var_dump is simply bool(false); Any ideas?? | php | json | web-services | file-get-contents | null | null | open | php json returning bool(false)
===
Any thoughts as to why the following is not working.
$request_url = "someurl?myId=$id"; //returns feed like above
$json = file_get_contents($request_url, true); //getting the file content
$decode = json_decode($json, true);
var_dump($json);
When I paste the request_url into a browser I get back the json data but if I try in php the var_dump is simply bool(false); Any ideas?? | 0 |
11,015,059 | 06/13/2012 12:42:20 | 1,453,614 | 06/13/2012 12:24:32 | 1 | 0 | VoIP browser plugin using Java supported for windows and mac | I want to create VoIP browser plugin supported for windows and mac. Can we develop it using java? | java | null | null | null | null | 06/14/2012 14:09:43 | not a real question | VoIP browser plugin using Java supported for windows and mac
===
I want to create VoIP browser plugin supported for windows and mac. Can we develop it using java? | 1 |
7,119,380 | 08/19/2011 09:10:58 | 902,113 | 08/19/2011 08:58:40 | 1 | 0 | Flickering while moving an image from right to left | I am moving an image from right to left by changing the imageView center. I am using a NSTimer to trigger the event of changing the center. Everything is working fine except that the image movement is not smooth and is flickering. Kindly help. | iphone | ipad | null | null | null | null | open | Flickering while moving an image from right to left
===
I am moving an image from right to left by changing the imageView center. I am using a NSTimer to trigger the event of changing the center. Everything is working fine except that the image movement is not smooth and is flickering. Kindly help. | 0 |
9,546,550 | 03/03/2012 13:37:04 | 471,213 | 10/09/2010 22:46:44 | 4,427 | 202 | Estimating the cost of a multi-platform mobile application for phones & tablets | I would like to estimate the initial cost that I would need to afford in order to create an application that runs on the major mobile platforms. Let's assume I can do the design&code in my free time (which is also called *night* somewhere around) and I already have all the devices I need for staging. HTML is not an option since it **must** run offline.
Another "requirement" is that the code is as most reusable as possible between platforms. A reasonable choice could be MonoTouch, since you can code for WM6, WP7, iOS and Android in C#, but I found it costs 400$ for each platform
AFAIK, Google and Apple retain 30% from your sales. AFAIK, again, Microsoft wants 99$/yr subscription and I don't know how much does they retain from sales.
Could you illustrate me the complete prices/policies for developers of the three overmentioned platforms? I already have Visual Studio and I don't know if there are alternative tools to code for iOS/Android with the same language than MonoTouch.
Finally, I should try to obtain a ROI from all this. The higher the initial costs, the farther the objective and the higher the risk.
Thank you in advance | android | ios | windows-phone-7 | mobile | estimation | 03/04/2012 13:28:54 | off topic | Estimating the cost of a multi-platform mobile application for phones & tablets
===
I would like to estimate the initial cost that I would need to afford in order to create an application that runs on the major mobile platforms. Let's assume I can do the design&code in my free time (which is also called *night* somewhere around) and I already have all the devices I need for staging. HTML is not an option since it **must** run offline.
Another "requirement" is that the code is as most reusable as possible between platforms. A reasonable choice could be MonoTouch, since you can code for WM6, WP7, iOS and Android in C#, but I found it costs 400$ for each platform
AFAIK, Google and Apple retain 30% from your sales. AFAIK, again, Microsoft wants 99$/yr subscription and I don't know how much does they retain from sales.
Could you illustrate me the complete prices/policies for developers of the three overmentioned platforms? I already have Visual Studio and I don't know if there are alternative tools to code for iOS/Android with the same language than MonoTouch.
Finally, I should try to obtain a ROI from all this. The higher the initial costs, the farther the objective and the higher the risk.
Thank you in advance | 2 |
1,457,908 | 09/22/2009 02:50:12 | 92,682 | 04/19/2009 05:48:21 | 152 | 4 | Best way to plot a graph | I have a file with about a couple thousand entries in the form
timestamp cmdType latency
I want an automated script to graph all the points on a graph. What is the best way to write a script for creating the graph 9and in what language. No java)? I dont want to open excel and import points etc etc. | graph | null | null | null | null | 04/19/2012 11:52:27 | not constructive | Best way to plot a graph
===
I have a file with about a couple thousand entries in the form
timestamp cmdType latency
I want an automated script to graph all the points on a graph. What is the best way to write a script for creating the graph 9and in what language. No java)? I dont want to open excel and import points etc etc. | 4 |
9,026,359 | 01/26/2012 22:25:26 | 1,126,723 | 01/02/2012 19:56:37 | 3 | 0 | Can a database be replicated to an ec2 instance from outside amazon? | I am looking to set up replication which will have master in local environment and slave in the amazon environment. I am able to set up replication successfully for two ec2 instances but failing to do so if the Master is outside amazon. I changed Security group to have 3306 port open but that didn't change anything.
Are there any other changes to be done? Anyone has a similar setup? Is this possible at all?
Thanks. | amazon-ec2 | replication | master-slave | null | null | 01/29/2012 05:48:35 | off topic | Can a database be replicated to an ec2 instance from outside amazon?
===
I am looking to set up replication which will have master in local environment and slave in the amazon environment. I am able to set up replication successfully for two ec2 instances but failing to do so if the Master is outside amazon. I changed Security group to have 3306 port open but that didn't change anything.
Are there any other changes to be done? Anyone has a similar setup? Is this possible at all?
Thanks. | 2 |
11,651,236 | 07/25/2012 13:48:52 | 1,281,067 | 03/20/2012 13:47:52 | 6 | 0 | Is it possible to translate/localize Android in different language? | Is it possible to translate/localize Android (OS itself) in different languages? For example, Windows is in German, Russian etc.
Your ideas/solutions are greatly appreciated
Thanks,
G
| android | localization | translate | null | null | 07/25/2012 14:56:55 | off topic | Is it possible to translate/localize Android in different language?
===
Is it possible to translate/localize Android (OS itself) in different languages? For example, Windows is in German, Russian etc.
Your ideas/solutions are greatly appreciated
Thanks,
G
| 2 |
7,994,454 | 11/03/2011 11:58:09 | 749,759 | 05/12/2011 01:47:51 | 6 | 0 | How can I catch the visual data which is broadcasted with openCV? TV tuner card? | Most of all I appreciate all guys help my installation of openCV...
Duing to the HEPLS, I've install openCV successfully.
Now, I'm trying to get the visual data which is broadcasted with openCV.
But there is no function to get the broadcasting electric wave(terrestrial, cable, and satellite).
I think, the cvCaptureFromCAM would work, but there is no detail explanation for it in OpenCV Reference Manual...
Regarding this;
To get the broadcasting electric wave, I am going to set up 2~3(or more) TV tuner cards on my PC.
1) Is the cvCaptureFromCAM appropriate way to get the visual data of broadcasting materials?
2) If it is, how can I make my openCV programe recognize the each tuner card in window7?
3) When I set up multi TV tuner cards in one PC, Is It OK?
Someone says, "it will be OK, if they use different driver, because they are from different
manufacturer." And someone is not. I'm confused now....
Thank you again for your help.... | opencv | tv-tuner | null | null | null | null | open | How can I catch the visual data which is broadcasted with openCV? TV tuner card?
===
Most of all I appreciate all guys help my installation of openCV...
Duing to the HEPLS, I've install openCV successfully.
Now, I'm trying to get the visual data which is broadcasted with openCV.
But there is no function to get the broadcasting electric wave(terrestrial, cable, and satellite).
I think, the cvCaptureFromCAM would work, but there is no detail explanation for it in OpenCV Reference Manual...
Regarding this;
To get the broadcasting electric wave, I am going to set up 2~3(or more) TV tuner cards on my PC.
1) Is the cvCaptureFromCAM appropriate way to get the visual data of broadcasting materials?
2) If it is, how can I make my openCV programe recognize the each tuner card in window7?
3) When I set up multi TV tuner cards in one PC, Is It OK?
Someone says, "it will be OK, if they use different driver, because they are from different
manufacturer." And someone is not. I'm confused now....
Thank you again for your help.... | 0 |
9,350,286 | 02/19/2012 15:01:44 | 516,476 | 11/22/2010 18:03:25 | 544 | 16 | Force downloading in php | I am trying to create a force-download page to prevent browsers from opening files that should be downloaded. The problem is that the downloaded file has 0 bytes and thus is unusable. What is wrong with my code?
$file = "http://gh0stsec.zxq.net/background1.jpg";
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
header("Content-Description: File Transfer");
@readfile($file);
exit(); | php | header | download | null | null | 02/19/2012 15:34:37 | too localized | Force downloading in php
===
I am trying to create a force-download page to prevent browsers from opening files that should be downloaded. The problem is that the downloaded file has 0 bytes and thus is unusable. What is wrong with my code?
$file = "http://gh0stsec.zxq.net/background1.jpg";
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".basename($file));
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));
header("Content-Description: File Transfer");
@readfile($file);
exit(); | 3 |
6,521,286 | 06/29/2011 13:18:54 | 638,007 | 02/28/2011 16:17:19 | 220 | 19 | Can I pass the viewbag value to the jquery in mvc2 | I need to pass the value to jqueyr in the view using viewbag. What I want to acheive is pass the null or some value and then jquery should hide or show the div depending on the value passed for instance something like below:
viewbag.testNumber = null;
$('#showdiv').hide();
$('viewbag.testNumber').value == someinteger{
$("#showdiv").show();
else
$("#showdiv").hide();
});
<div id="showdiv"> Some Calculation </div>
Also I want to disable the viewbag in the view if the value is null , coz it gives null error | jquery | asp.net-mvc | asp.net-mvc-2 | null | null | null | open | Can I pass the viewbag value to the jquery in mvc2
===
I need to pass the value to jqueyr in the view using viewbag. What I want to acheive is pass the null or some value and then jquery should hide or show the div depending on the value passed for instance something like below:
viewbag.testNumber = null;
$('#showdiv').hide();
$('viewbag.testNumber').value == someinteger{
$("#showdiv").show();
else
$("#showdiv").hide();
});
<div id="showdiv"> Some Calculation </div>
Also I want to disable the viewbag in the view if the value is null , coz it gives null error | 0 |
5,839,016 | 04/30/2011 02:17:16 | 560,632 | 01/02/2011 21:56:18 | 36 | 4 | Rails 3, Rspec/Cucumber, and Factory Girl: No method error on nested/associated objects. | I've been bashing my head against a wall for a while on this one and I can't get it to work. I have three models:
class Instrument < ActiveRecord::Base
has_many :analytical_methods
has_many :analytes, :through => :analytical_methods
accepts_nested_attributes_for :analytical_methods
attr_accessible :name, :analytical_methods_attributes
end
class AnalyticalMethod < ActiveRecord::Base
belongs_to :instrument
has_many :analytes
accepts_nested_attributes_for :analytes
attr_accessible :name, :analytes_attributes
end
class Analyte < ActiveRecord::Base
belongs_to :analytical_method
attr_accessible :name
end
And I have the following factories:
Factory.define :analyte do |analyte|
analyte.name "Test analyte"
end
Factory.define :analytical_method do |analytical_method|
analytical_method.name "Test method"
analytical_method.association :analyte
end
Factory.define :instrument do |instrument|
instrument.name "Test instrument"
instrument.association :analytical_method
instrument.association :analyte
end
Any time I try to Factory(:instrument) or Factory(:analytical_method), it throws the following error:
NoMethodError:
undefined method `analyte=' for #<AnalyticalMethod:0x00000104c44758>
Am I missing some ridiculous typo or something? The website works perfectly fine, but the tests keep failing. Thanks for any help in returning my sanity!
| ruby-on-rails | cucumber | rspec2 | factorygirl | null | null | open | Rails 3, Rspec/Cucumber, and Factory Girl: No method error on nested/associated objects.
===
I've been bashing my head against a wall for a while on this one and I can't get it to work. I have three models:
class Instrument < ActiveRecord::Base
has_many :analytical_methods
has_many :analytes, :through => :analytical_methods
accepts_nested_attributes_for :analytical_methods
attr_accessible :name, :analytical_methods_attributes
end
class AnalyticalMethod < ActiveRecord::Base
belongs_to :instrument
has_many :analytes
accepts_nested_attributes_for :analytes
attr_accessible :name, :analytes_attributes
end
class Analyte < ActiveRecord::Base
belongs_to :analytical_method
attr_accessible :name
end
And I have the following factories:
Factory.define :analyte do |analyte|
analyte.name "Test analyte"
end
Factory.define :analytical_method do |analytical_method|
analytical_method.name "Test method"
analytical_method.association :analyte
end
Factory.define :instrument do |instrument|
instrument.name "Test instrument"
instrument.association :analytical_method
instrument.association :analyte
end
Any time I try to Factory(:instrument) or Factory(:analytical_method), it throws the following error:
NoMethodError:
undefined method `analyte=' for #<AnalyticalMethod:0x00000104c44758>
Am I missing some ridiculous typo or something? The website works perfectly fine, but the tests keep failing. Thanks for any help in returning my sanity!
| 0 |
2,823,439 | 05/12/2010 23:15:26 | 158,008 | 08/17/2009 20:35:44 | 79 | 1 | when text changed inputbox automatically updates next text boxes? | Extension to my previous question http://bit.ly/c5yiVM
I have 7 textboxes. If Top 1 textbox(**Volume All Years**) text changed, text need to be updated in next 6 inputboxes(**Latest 2009 Volume to Latest 2014 Volume**). I need javascript or Jquery for this. I will write Js textchanged() or focuschange() for top 1 textbox. So what should I write in focuschage() or textchanged methods().
I changed little bit in code. Now Html will like below. These textboxes have common CssClass. **volumetextbox**. Can we use this class and change text in all textboxes those have same CssClass.
<tr id="row12_136" class="RegText">
<td style="width:420px;Padding-right:20px;">Volume All Years</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_136" tabindex="61" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_60" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2009 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_60" tabindex="56" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_61" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2010 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_61" tabindex="57" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_62" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2011 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_62" tabindex="58" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_63" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2012 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_63" tabindex="59" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_64" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2013 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_64" tabindex="60" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_65" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2014 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_65" tabindex="61" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
| javascript | jquery | asp.net | null | null | null | open | when text changed inputbox automatically updates next text boxes?
===
Extension to my previous question http://bit.ly/c5yiVM
I have 7 textboxes. If Top 1 textbox(**Volume All Years**) text changed, text need to be updated in next 6 inputboxes(**Latest 2009 Volume to Latest 2014 Volume**). I need javascript or Jquery for this. I will write Js textchanged() or focuschange() for top 1 textbox. So what should I write in focuschage() or textchanged methods().
I changed little bit in code. Now Html will like below. These textboxes have common CssClass. **volumetextbox**. Can we use this class and change text in all textboxes those have same CssClass.
<tr id="row12_136" class="RegText">
<td style="width:420px;Padding-right:20px;">Volume All Years</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_136" tabindex="61" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_60" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2009 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_60" tabindex="56" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_61" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2010 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_61" tabindex="57" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_62" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2011 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_62" tabindex="58" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_63" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2012 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_63" tabindex="59" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_64" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2013 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_64" tabindex="60" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
<tr id="row12_65" class="RegText">
<td style="width:420px;Padding-right:20px;">Latest 2014 Volume</td>
<td style="width:420px;Padding-left:0px;">
<input name="12_136" type="text" maxlength="255" id="12_65" tabindex="61" title="Volume All Years" class="volumetextbox" OnKeyPress="javascript:FocusChange();" style="width:300px;" />
</td>
| 0 |
6,635,569 | 07/09/2011 15:10:11 | 836,810 | 07/09/2011 15:10:11 | 1 | 0 | Touble using Windows forms to design GUI | I'm trying to write a simple GUI that renders a number of images using the Graphics' object primitives. What I want to have is a series of areas that I can paint to in isolation of the other areas, so that each painting "canvas" has it's own origin within the global coordinate frame of the top-level form.
So far I have tried adding several panels to a FlowLayoutPanel. However, they seem to be getting placed one on top of the other, as only one onPaint method is being called. I can override the Form's onPaint to invalidate the other panels, which are then painted, but not displayed.
Besides setting the sizes, and initialising the FlowLayoutPanel, is there something I'm missing? Is there a better way of doing this?
Code: http://pastebin.com/30Uf9AGF | c# | winforms | gui | drawing | system.drawing | null | open | Touble using Windows forms to design GUI
===
I'm trying to write a simple GUI that renders a number of images using the Graphics' object primitives. What I want to have is a series of areas that I can paint to in isolation of the other areas, so that each painting "canvas" has it's own origin within the global coordinate frame of the top-level form.
So far I have tried adding several panels to a FlowLayoutPanel. However, they seem to be getting placed one on top of the other, as only one onPaint method is being called. I can override the Form's onPaint to invalidate the other panels, which are then painted, but not displayed.
Besides setting the sizes, and initialising the FlowLayoutPanel, is there something I'm missing? Is there a better way of doing this?
Code: http://pastebin.com/30Uf9AGF | 0 |
4,075,047 | 11/02/2010 05:07:05 | 415,041 | 08/09/2010 11:57:54 | 55 | 0 | Object Oriented Programming is a solution to complexity | Do you think Object Oriented Programming is a solution to complexity. Why ? This topic may be a bit controversial but my intentions to know the answer of Why from the experts here ! | oop | complexity | null | null | null | 11/02/2010 05:12:21 | off topic | Object Oriented Programming is a solution to complexity
===
Do you think Object Oriented Programming is a solution to complexity. Why ? This topic may be a bit controversial but my intentions to know the answer of Why from the experts here ! | 2 |
10,993,207 | 06/12/2012 08:46:32 | 1,186,775 | 02/03/2012 05:23:20 | 1 | 0 | is there a book which tells how some commands such as "ls" works with linux kernel | i want to know details about these commands working with kernel ,if some guys can introduce such books.
for example ,i type "ls" in command line console ,i want to know how linux kernel handles this command and so on. | linux | kernel | null | null | null | 06/13/2012 16:52:06 | off topic | is there a book which tells how some commands such as "ls" works with linux kernel
===
i want to know details about these commands working with kernel ,if some guys can introduce such books.
for example ,i type "ls" in command line console ,i want to know how linux kernel handles this command and so on. | 2 |
5,886,890 | 05/04/2011 16:45:30 | 284,609 | 06/21/2009 18:32:56 | 272 | 0 | Silently authentication from webview | Here's what I want to have figured out : I'm using a webview to access a feature of a site that requires authentication. Therefore whenever that particular link is loaded the login page is displayed . Is is possible to somehow authenticate silently so that the particular feature is displayed directly ? Perhaps by using the "webView.setHttpAuthUsernamePassword" (which does not seem to work for me, or I don't do it right) or by making some POST or GET before I load the page , or other possibility ? | android | null | null | null | null | null | open | Silently authentication from webview
===
Here's what I want to have figured out : I'm using a webview to access a feature of a site that requires authentication. Therefore whenever that particular link is loaded the login page is displayed . Is is possible to somehow authenticate silently so that the particular feature is displayed directly ? Perhaps by using the "webView.setHttpAuthUsernamePassword" (which does not seem to work for me, or I don't do it right) or by making some POST or GET before I load the page , or other possibility ? | 0 |
7,510,254 | 09/22/2011 06:07:27 | 496,934 | 11/04/2010 08:35:25 | 213 | 2 | Link on java design problems and scenarios | I am looking for some links or a good book on java design problems and solutions. For example, designing a dictionary, what will be the starting approach and other similar problems and solutions. Is there any link on high level design problems and their solutions ? | java | design | null | null | null | 09/22/2011 20:42:30 | not constructive | Link on java design problems and scenarios
===
I am looking for some links or a good book on java design problems and solutions. For example, designing a dictionary, what will be the starting approach and other similar problems and solutions. Is there any link on high level design problems and their solutions ? | 4 |
11,418,293 | 07/10/2012 17:02:44 | 1,497,561 | 07/03/2012 02:41:54 | 11 | 0 | Have A Java Program Create A .jar | I am looking for something similar to this:
http://stackoverflow.com/questions/2977663/java-code-to-create-a-jar-file
I want the user to type their name in a text box, and hit a compile button. When the jar is run, have it print out "Created by 'name here'". I was thinking about including a .txt file with the information stored in it. Any help? | java | jar | null | null | null | 07/10/2012 17:58:41 | not a real question | Have A Java Program Create A .jar
===
I am looking for something similar to this:
http://stackoverflow.com/questions/2977663/java-code-to-create-a-jar-file
I want the user to type their name in a text box, and hit a compile button. When the jar is run, have it print out "Created by 'name here'". I was thinking about including a .txt file with the information stored in it. Any help? | 1 |
2,792,438 | 05/08/2010 00:32:41 | 335,938 | 05/08/2010 00:32:41 | 1 | 0 | Use of XMLHttpRequest in Dashboard widget failing | I am unable to get an XMLHttpRequest object to work correctly in a Dashboard widget I am writing. I've isolated it to a trivial example not working in the global scope of the main.js file:
xhr = new XMLHttpRequest;
xhr.open( 'GET', "http://google.com", false );
xhr.send('');
When the last line is executed I get the error "ABORT_ERR: XMLHttpRequest Exception 102" (this is in the Dashcode debugger).
Does anyone have any idea what could be wrong here?
| dashboard | dashcode | xmlhttprequest | null | null | null | open | Use of XMLHttpRequest in Dashboard widget failing
===
I am unable to get an XMLHttpRequest object to work correctly in a Dashboard widget I am writing. I've isolated it to a trivial example not working in the global scope of the main.js file:
xhr = new XMLHttpRequest;
xhr.open( 'GET', "http://google.com", false );
xhr.send('');
When the last line is executed I get the error "ABORT_ERR: XMLHttpRequest Exception 102" (this is in the Dashcode debugger).
Does anyone have any idea what could be wrong here?
| 0 |
8,119,632 | 11/14/2011 09:39:36 | 720,099 | 04/22/2011 05:38:44 | 41 | 1 | Need help in cryptography, C programming | I have developed a sample code that does AES-256 Encryption. It takes a key, and using that key it can encrypt and decrypt message. Now I want to implement key sharing mechnaism.
Which Key-sharing algorithm is the best, and fits in this scenario.
Also, if there is any other best Encryption, then please tell me.
Thanks,
Pawan | c | encryption | cryptography | null | null | 11/14/2011 11:56:04 | not constructive | Need help in cryptography, C programming
===
I have developed a sample code that does AES-256 Encryption. It takes a key, and using that key it can encrypt and decrypt message. Now I want to implement key sharing mechnaism.
Which Key-sharing algorithm is the best, and fits in this scenario.
Also, if there is any other best Encryption, then please tell me.
Thanks,
Pawan | 4 |
9,219,408 | 02/09/2012 21:54:47 | 635,923 | 02/26/2011 21:40:48 | 147 | 5 | Did I do the extra credit part of the assignent correctly? | I needed to create a class that gives the elapsed time between two times in military format. I already completed the assignment including the extra credit part which states below:
Extra credit if you can make your class also handle the case where the end time is less than the start time, without using an “if” statement or any other decision-making statements. E.g.,
Start time: 1600
End time: 1130
Exactly 19 hour(s) and 30 minute(s) have passed.
Total elapsed time in minutes: 1170
Total elapsed time in hours: 19.5
I know I was suppose to handle where the end time is less than the start time without using if or an other conditional statement. At first I was like how am I suppose to do that without if or any other conditional statement. So I thought that I use the max method from the Math class to ensure that end time is greater than the start time. So is the extra-credit portion correct below I will show the whole class below just so you can see everything is okay. In my opinion I think it is correct since the professor gave us a sample output to test but I want to make sure the extra-credit is correct.
public class ElapsedTimeCalculator
{
private int startTime;
private int endTime;
/**
* Constructs the ElapsedTimeCalculator
* @param startTime The start time in military format
* @param endTime The end time in military format
*/
public ElapsedTimeCalculator(int startTime, int endTime) {
this.startTime = startTime;
this.endTime = Math.max(endTime, startTime); // Always makes sure that endTime is either greater than startTime or equal to startTime.
}
/**
* Gets the end time in military format.
* @return the end time as an integer.
*/
public int getEndTime() {
return endTime;
}
/**
* Gets the start time in military format.
* @return the start time as an integer.
*/
public int getStartTime() {
return startTime;
}
/**
* Gets the hour portion of the elapsed time.
* @return an integer
*/
public int getHourPortion()
{
int startTimeMin= (((startTime / 100) * 60) + (startTime % 100));
int endTimeMin = (((endTime / 100) * 60) + (endTime % 100));
return ((endTimeMin - startTimeMin) / 60);
}
/**
* Gets the minute portion of the elapsed time.
* @return
*/
public int getMinutePortion()
{
int startTimeMin= (((startTime / 100) * 60) + (startTime % 100));
int endTimeMin = (((endTime / 100) * 60) + (endTime % 100));
return ((endTimeMin - startTimeMin) - (getHourPortion() * 60));
}
/**
* Gets the string representation of the string object.
* @return The string representing the current object.
*/
@Override
public String toString() {
String output = "Start time:\t" + startTime + "\n" + "End time:\t" + endTime + "\n\n"
+ "Exactly " + getHourPortion() + " hours(s) and " + getMinutePortion()
+ " minutes(s) have passed.\nTotal elapsed time in minutes:\t" + getTotalInMinutes()
+ "\nTotal elapsed time in hours:\t" + getTotalInHours();
return output;
}
/**
* Gets the total elapsed time in minutes.
* @return an integer
*/
public int getTotalInMinutes()
{
int totalMinutes = getHourPortion() * 60;
totalMinutes += getMinutePortion();
return totalMinutes;
}
/**
* Gets the total elapsed time in hours.
* @return a double precision floating point number.
*/
public double getTotalInHours()
{
return (double)getTotalInMinutes() / 60;
}
}
| java | homework | null | null | null | 02/10/2012 01:24:42 | off topic | Did I do the extra credit part of the assignent correctly?
===
I needed to create a class that gives the elapsed time between two times in military format. I already completed the assignment including the extra credit part which states below:
Extra credit if you can make your class also handle the case where the end time is less than the start time, without using an “if” statement or any other decision-making statements. E.g.,
Start time: 1600
End time: 1130
Exactly 19 hour(s) and 30 minute(s) have passed.
Total elapsed time in minutes: 1170
Total elapsed time in hours: 19.5
I know I was suppose to handle where the end time is less than the start time without using if or an other conditional statement. At first I was like how am I suppose to do that without if or any other conditional statement. So I thought that I use the max method from the Math class to ensure that end time is greater than the start time. So is the extra-credit portion correct below I will show the whole class below just so you can see everything is okay. In my opinion I think it is correct since the professor gave us a sample output to test but I want to make sure the extra-credit is correct.
public class ElapsedTimeCalculator
{
private int startTime;
private int endTime;
/**
* Constructs the ElapsedTimeCalculator
* @param startTime The start time in military format
* @param endTime The end time in military format
*/
public ElapsedTimeCalculator(int startTime, int endTime) {
this.startTime = startTime;
this.endTime = Math.max(endTime, startTime); // Always makes sure that endTime is either greater than startTime or equal to startTime.
}
/**
* Gets the end time in military format.
* @return the end time as an integer.
*/
public int getEndTime() {
return endTime;
}
/**
* Gets the start time in military format.
* @return the start time as an integer.
*/
public int getStartTime() {
return startTime;
}
/**
* Gets the hour portion of the elapsed time.
* @return an integer
*/
public int getHourPortion()
{
int startTimeMin= (((startTime / 100) * 60) + (startTime % 100));
int endTimeMin = (((endTime / 100) * 60) + (endTime % 100));
return ((endTimeMin - startTimeMin) / 60);
}
/**
* Gets the minute portion of the elapsed time.
* @return
*/
public int getMinutePortion()
{
int startTimeMin= (((startTime / 100) * 60) + (startTime % 100));
int endTimeMin = (((endTime / 100) * 60) + (endTime % 100));
return ((endTimeMin - startTimeMin) - (getHourPortion() * 60));
}
/**
* Gets the string representation of the string object.
* @return The string representing the current object.
*/
@Override
public String toString() {
String output = "Start time:\t" + startTime + "\n" + "End time:\t" + endTime + "\n\n"
+ "Exactly " + getHourPortion() + " hours(s) and " + getMinutePortion()
+ " minutes(s) have passed.\nTotal elapsed time in minutes:\t" + getTotalInMinutes()
+ "\nTotal elapsed time in hours:\t" + getTotalInHours();
return output;
}
/**
* Gets the total elapsed time in minutes.
* @return an integer
*/
public int getTotalInMinutes()
{
int totalMinutes = getHourPortion() * 60;
totalMinutes += getMinutePortion();
return totalMinutes;
}
/**
* Gets the total elapsed time in hours.
* @return a double precision floating point number.
*/
public double getTotalInHours()
{
return (double)getTotalInMinutes() / 60;
}
}
| 2 |
7,772,721 | 10/14/2011 19:38:23 | 956,471 | 09/21/2011 08:24:12 | 1 | 0 | WebView in user interface on Android | How do you think, is it good idea to use WebView+html+java script to make user interface on android? And all Dialogs in application will open new WebView which contains html page, binded with Java handlers. | javascript | android | html | webview | user-interaction | 10/15/2011 00:49:17 | not a real question | WebView in user interface on Android
===
How do you think, is it good idea to use WebView+html+java script to make user interface on android? And all Dialogs in application will open new WebView which contains html page, binded with Java handlers. | 1 |
11,381,771 | 07/08/2012 08:31:30 | 859,154 | 07/23/2011 09:23:42 | 14,785 | 717 | Thread.sleep vs Monitor.Wait vs RegisteredWaitHandle? | *(the following items has different goals , but im interesting knowing how they "PAUSEd")*
questions
`Thread.sleep` - Does it impact performance on a system ?does it tie up a thread with its wait ?
what about `Monitor.Wait` ? what is the difference in the way they "wait"? do they tie up a thread with their wait ?
what `aboutRegisteredWaitHandle` ? This method accepts a delegate that is executed when a wait
handle is signaled. While it’s waiting, **it doesn’t** tie up a thread.
so some thread are paused and can be woken by a delegate , while others just wait ? spin ?
can someone please make things clearer ? | c# | .net | multithreading | .net-4.0 | clr | null | open | Thread.sleep vs Monitor.Wait vs RegisteredWaitHandle?
===
*(the following items has different goals , but im interesting knowing how they "PAUSEd")*
questions
`Thread.sleep` - Does it impact performance on a system ?does it tie up a thread with its wait ?
what about `Monitor.Wait` ? what is the difference in the way they "wait"? do they tie up a thread with their wait ?
what `aboutRegisteredWaitHandle` ? This method accepts a delegate that is executed when a wait
handle is signaled. While it’s waiting, **it doesn’t** tie up a thread.
so some thread are paused and can be woken by a delegate , while others just wait ? spin ?
can someone please make things clearer ? | 0 |
4,820,392 | 01/27/2011 18:38:13 | 399,046 | 07/22/2010 11:59:12 | 130 | 3 | Orientation in android | With the following lines we can set the orientation with in the application..
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
If I want to set the orientation to every screen(not only with in application). how can i do this?Any help..
Thanks in advance | android | null | null | null | null | null | open | Orientation in android
===
With the following lines we can set the orientation with in the application..
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
If I want to set the orientation to every screen(not only with in application). how can i do this?Any help..
Thanks in advance | 0 |
11,554,326 | 07/19/2012 05:15:03 | 1,007,099 | 10/21/2011 12:27:14 | 7 | 0 | Android Frameworks/Technologies to improve development | I am planing my new Android project and I would like to know which frameworks/technologies you can recommend.
Currently I want to use:
- roboguice
- greenDAO
Anybody another good tools to improve Android development?
Thanks for help!
Regards,
Markus | java | android | java-ee | null | null | 07/20/2012 00:25:58 | not constructive | Android Frameworks/Technologies to improve development
===
I am planing my new Android project and I would like to know which frameworks/technologies you can recommend.
Currently I want to use:
- roboguice
- greenDAO
Anybody another good tools to improve Android development?
Thanks for help!
Regards,
Markus | 4 |
247,284 | 10/29/2008 15:38:28 | 2,656 | 08/24/2008 02:05:05 | 133 | 6 | Modifying form values with beforeSubmit with jQuery ajaxSubmit? | I have a form I am submitting using jQuery's ajaxSubmit function from the Forms plugin. I'm trying to add a form name/value pair to the form data just before submission occurs. My plan is to modify the form data in the beforeSubmit event handler.
Given a function that looks like:
function handleActionFormBeforeSubmit(formData, form, options) {
// Add a name/value pair here somehow to formData
}
How do I add a simple pair to formData? It is an array in the form of:
[ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
Thanks,
Brian
| jquery | jquery-forms-plugin | null | null | null | null | open | Modifying form values with beforeSubmit with jQuery ajaxSubmit?
===
I have a form I am submitting using jQuery's ajaxSubmit function from the Forms plugin. I'm trying to add a form name/value pair to the form data just before submission occurs. My plan is to modify the form data in the beforeSubmit event handler.
Given a function that looks like:
function handleActionFormBeforeSubmit(formData, form, options) {
// Add a name/value pair here somehow to formData
}
How do I add a simple pair to formData? It is an array in the form of:
[ { name: 'username', value: 'jresig' }, { name: 'password', value: 'secret' } ]
Thanks,
Brian
| 0 |
11,316,905 | 07/03/2012 18:23:59 | 1,499,481 | 07/03/2012 17:08:31 | 1 | 0 | CSS Sliding Doors Not Working | This is probably a dumb question but can't find an answer with google. Left side of the image shows up fine, can't for the life of me get the right image to show.
HTML/CSS Newb, just learning the basics.
http://bungle.ca/
http://bungle.ca/images/
<ul id="nav">
<li><a href="#">Link One</a></li>
<li><a href="#">Link Two</a></li>
<li><a href="#">Link Three</a></li>
<li><a href="#">Link Four</a></li>
<li><a href="#">Link Five</a></li>
<li><a href="#">Link Six</a></li>
</ul>
#nav{
min-width: 1024px;
height: 30px;
padding: 0px;
margin: 0px;
color: #eeeeee;
white-space: nowrap;
list-style-type: none;
}
#nav li{
display: inline;
background: url('../images/tabRight.png') no-repeat right top;
}
#nav li a{
padding: .2em 1em;
height: 30px;
width: 100px;
text-decoration: none;
float: left;
text-align: center;
background: url('../images/tabLeft.png') no-repeat left top;
}
| html | css | null | null | null | null | open | CSS Sliding Doors Not Working
===
This is probably a dumb question but can't find an answer with google. Left side of the image shows up fine, can't for the life of me get the right image to show.
HTML/CSS Newb, just learning the basics.
http://bungle.ca/
http://bungle.ca/images/
<ul id="nav">
<li><a href="#">Link One</a></li>
<li><a href="#">Link Two</a></li>
<li><a href="#">Link Three</a></li>
<li><a href="#">Link Four</a></li>
<li><a href="#">Link Five</a></li>
<li><a href="#">Link Six</a></li>
</ul>
#nav{
min-width: 1024px;
height: 30px;
padding: 0px;
margin: 0px;
color: #eeeeee;
white-space: nowrap;
list-style-type: none;
}
#nav li{
display: inline;
background: url('../images/tabRight.png') no-repeat right top;
}
#nav li a{
padding: .2em 1em;
height: 30px;
width: 100px;
text-decoration: none;
float: left;
text-align: center;
background: url('../images/tabLeft.png') no-repeat left top;
}
| 0 |
6,850,885 | 07/27/2011 20:35:05 | 607,025 | 02/07/2011 19:56:34 | 253 | 3 | How Does Facebook Determine "Suggested Friends"? | This is more of a curiosity question than anything, but I'd like to know how you think (or know) it is that Facebook produces the "people you might like" or "suggested friends" on each user's page.
For me it is a curious question of efficiency. I understand how one might accomplish this for a single user; basically finding the users that are friends with the highest number of your current friends but not you. However, this does not strike me as very fast or efficient a process, and it must be done for around about a billion users.
This leads me to believe that the process is run only on a user's login, but I still wonder what kind of algorithm is actually used to find these "suggested friends". Thoughts? | algorithm | facebook | null | null | null | 07/27/2011 22:28:36 | not a real question | How Does Facebook Determine "Suggested Friends"?
===
This is more of a curiosity question than anything, but I'd like to know how you think (or know) it is that Facebook produces the "people you might like" or "suggested friends" on each user's page.
For me it is a curious question of efficiency. I understand how one might accomplish this for a single user; basically finding the users that are friends with the highest number of your current friends but not you. However, this does not strike me as very fast or efficient a process, and it must be done for around about a billion users.
This leads me to believe that the process is run only on a user's login, but I still wonder what kind of algorithm is actually used to find these "suggested friends". Thoughts? | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.