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,624,904 |
07/08/2011 13:10:47
| 813,929 |
06/24/2011 10:54:41
| 1 | 0 |
Youtube embeded action when video ends
|
I wonder if it is possible to make an action with youtube api when embeded video finishes. For example, in my web i start video on hover of one element, but i want video tu be replaced by static image when it finishes. How can i do that?
|
youtube
|
youtube-api
| null | null | null | null |
open
|
Youtube embeded action when video ends
===
I wonder if it is possible to make an action with youtube api when embeded video finishes. For example, in my web i start video on hover of one element, but i want video tu be replaced by static image when it finishes. How can i do that?
| 0 |
2,227,926 |
02/09/2010 09:21:59
| 193,128 |
10/20/2009 13:44:16
| 1,503 | 61 |
What technique would you recomend when revising C++ for an interview?
|
I've got about 2/3 years C++ experience but I've spent most of my career doing Java. I'm about to go for an interview for a C++ programming role and I've been thinking about the best way to brush up my C++ to make sure I don't get caught out by any awkward questions. What would you recommend?
|
c++
|
interview-questions
| null | null | null |
12/03/2011 06:16:16
|
not constructive
|
What technique would you recomend when revising C++ for an interview?
===
I've got about 2/3 years C++ experience but I've spent most of my career doing Java. I'm about to go for an interview for a C++ programming role and I've been thinking about the best way to brush up my C++ to make sure I don't get caught out by any awkward questions. What would you recommend?
| 4 |
6,884,357 |
07/30/2011 16:09:07
| 870,825 |
07/30/2011 16:09:07
| 1 | 0 |
python newline to list
|
I have a text file like this
abc
(xyz)
(x1y1z1)
(x2y2z2)
efg
(uvw)
(u1v1w1)
I would like to have it in the following form as a list of list
[[abc,(xyz),(x1y1z1),(x2y2z2)],[efg,(uvw),(u1v1w1)]]
|
python
| null | null | null | null |
08/19/2011 17:22:25
|
too localized
|
python newline to list
===
I have a text file like this
abc
(xyz)
(x1y1z1)
(x2y2z2)
efg
(uvw)
(u1v1w1)
I would like to have it in the following form as a list of list
[[abc,(xyz),(x1y1z1),(x2y2z2)],[efg,(uvw),(u1v1w1)]]
| 3 |
6,801,481 |
07/23/2011 15:43:19
| 90,442 |
04/13/2009 23:01:59
| 11 | 5 |
Is it possible to downgrade from iOS 5?
|
On the Apple developer site, it states that "Devices updated to iOS 5 beta can not be restored to earlier versions of iOS." I believe this is new, and remember seeing that Apple is changing the way it provides older versions of iOS. I'd like to be able to install iOS 5, knowing that I can revert to iOS 4 if need be, since I have some apps that may not be compatible.
Does anyone know if this is possible? And if so, A) is it hard, and B), does it actually violate Apple's TOS?
Thanks!
|
iphone
|
ios
|
ipad
| null | null |
07/23/2011 16:46:58
|
off topic
|
Is it possible to downgrade from iOS 5?
===
On the Apple developer site, it states that "Devices updated to iOS 5 beta can not be restored to earlier versions of iOS." I believe this is new, and remember seeing that Apple is changing the way it provides older versions of iOS. I'd like to be able to install iOS 5, knowing that I can revert to iOS 4 if need be, since I have some apps that may not be compatible.
Does anyone know if this is possible? And if so, A) is it hard, and B), does it actually violate Apple's TOS?
Thanks!
| 2 |
7,006,686 |
08/10/2011 06:25:31
| 872,249 |
08/01/2011 06:00:02
| 6 | 0 |
unable to understand STREAM project
|
I was surfing the net for sources of streaming data
Most of the references redirect me to the STREAM project ...
Can anyone help me with what does this project exactly do
does it generate the stream of data or is it something else ???
Thanks in Advance
|
database
|
stream
| null | null | null |
08/10/2011 06:38:07
|
not a real question
|
unable to understand STREAM project
===
I was surfing the net for sources of streaming data
Most of the references redirect me to the STREAM project ...
Can anyone help me with what does this project exactly do
does it generate the stream of data or is it something else ???
Thanks in Advance
| 1 |
9,700,942 |
03/14/2012 11:21:14
| 956,424 |
09/21/2011 07:58:24
| 31 | 4 |
can i use plone workflow to manage autocad related drawings?
|
How can I use Plone 4.1.4 to manage autocad drawings with different roles like architect, sr.architect, Project Manager, accounts manager(who manages the user accounts). I would first of all like to know whether Plone can be used to crease a workflow for uploaded autocad drawing files or for uploaded files as such? Doubt arises due to certain plone documentation which say that plone By default, content types Image and File have no workflow.
|
python
|
plone
| null | null | null | null |
open
|
can i use plone workflow to manage autocad related drawings?
===
How can I use Plone 4.1.4 to manage autocad drawings with different roles like architect, sr.architect, Project Manager, accounts manager(who manages the user accounts). I would first of all like to know whether Plone can be used to crease a workflow for uploaded autocad drawing files or for uploaded files as such? Doubt arises due to certain plone documentation which say that plone By default, content types Image and File have no workflow.
| 0 |
1,893,768 |
12/12/2009 15:32:16
| 84,201 |
03/29/2009 07:46:24
| 999 | 19 |
How to make table like look with such type of code with help of css
|
See source code of this http://jsbin.com/iveso I can't change anything in xhtml code.
And i need cross browser output exact like this.
![alt text][2]
How we can give same look with less and optimize css
[2]: http://easycaptures.com/fs/uploaded/445/5025516010.jpg
|
xhtml
|
css
| null | null | null |
06/07/2012 13:21:01
|
not constructive
|
How to make table like look with such type of code with help of css
===
See source code of this http://jsbin.com/iveso I can't change anything in xhtml code.
And i need cross browser output exact like this.
![alt text][2]
How we can give same look with less and optimize css
[2]: http://easycaptures.com/fs/uploaded/445/5025516010.jpg
| 4 |
7,359,722 |
09/09/2011 09:39:21
| 400,790 |
07/24/2010 00:42:27
| 740 | 22 |
In RSpec, what's the difference between a mock and a double?
|
In rspec you can either create a `mock` or a `double`. These two seem to be almost the same thing and I can't find anything in the documentation that disambiguates them.
What's the difference?
|
testing
|
rspec
| null | null | null | null |
open
|
In RSpec, what's the difference between a mock and a double?
===
In rspec you can either create a `mock` or a `double`. These two seem to be almost the same thing and I can't find anything in the documentation that disambiguates them.
What's the difference?
| 0 |
10,278,795 |
04/23/2012 10:26:37
| 1,347,786 |
04/21/2012 02:55:05
| 1 | 0 |
Retrive data from two tables and show it in page(.CSHTML) in MVC app
|
I have scenario in my MVC application as I have to get data from two tables Course and Course_session and display the data in one page like CourseName(From Course table) and respective Session Name(of the Course from Course_Session table) to display on the page with hyperlinks.
In the page I can see the Course name and below the Course Session name with Hyperlinks.
Please help me Iam new to MVC and working in Developemt project.
Thanks,
|
mvc
| null | null | null | null | null |
open
|
Retrive data from two tables and show it in page(.CSHTML) in MVC app
===
I have scenario in my MVC application as I have to get data from two tables Course and Course_session and display the data in one page like CourseName(From Course table) and respective Session Name(of the Course from Course_Session table) to display on the page with hyperlinks.
In the page I can see the Course name and below the Course Session name with Hyperlinks.
Please help me Iam new to MVC and working in Developemt project.
Thanks,
| 0 |
10,450,241 |
05/04/2012 13:53:08
| 1,274,240 |
03/16/2012 14:28:18
| 40 | 0 |
Cannot turn off Ubuntu Unity
|
Having been coerced into upgrading from Ubuntu 10.04 (which I was totally happy with) to 11.04 and then being told to upgrade again within days to Ubuntu 11.10, I'm now trying to remove this awful Unity GUI.
I've read all the 'how to remove Unity' posts on the net, but simply don't get the options that these tell me to use. Examples (1) Selecting user at login does not show a bar at the bottom to choose Ubuntu Classic, (2) The System Setting menu does not have a 'Login Screen' use, etc.
I only upgraded a few hours ago, so none of the published actions seem applicable.
Any ideas will be appreciated
|
ubuntu-11.10
| null | null | null | null |
05/06/2012 06:07:47
|
off topic
|
Cannot turn off Ubuntu Unity
===
Having been coerced into upgrading from Ubuntu 10.04 (which I was totally happy with) to 11.04 and then being told to upgrade again within days to Ubuntu 11.10, I'm now trying to remove this awful Unity GUI.
I've read all the 'how to remove Unity' posts on the net, but simply don't get the options that these tell me to use. Examples (1) Selecting user at login does not show a bar at the bottom to choose Ubuntu Classic, (2) The System Setting menu does not have a 'Login Screen' use, etc.
I only upgraded a few hours ago, so none of the published actions seem applicable.
Any ideas will be appreciated
| 2 |
5,594,748 |
04/08/2011 12:00:52
| 698,591 |
04/08/2011 12:00:52
| 1 | 0 |
Super simple computers with minimal
|
When I went to the science museum in London, many years ago, they had, on display, a simple early computer, named 'The Nicolas' which consisted of 80-90 logic gates which, for any kind of computer is very small. Now I know that the early colossus code breaking computers started with 1300-1500 valves/tubes and I know that for tubes/valves, a single tube could contain two complete triodes, enough to make a simple logic gate (Put's flame proof jacket on) So, if you wanted to build, from scatch a super-simple cpu or computer, what is the minimum number of gates required to build a simple cpu/computer. I realise that this is a virtually impossible question to answer. It is a fantasy project of mine to build a super simple CPU/computer using a modern PC laptop as a frontend and shared stoage. I am not trying TO REINVENT the wheel, just interested in follow where the discussion goes possibly doing some experimentation. A mixed technology computer using relays, valves, traNSISTORS and a handful of IC's would make an entertaining challenge...
Stephen Walters
|
machine-code
| null | null | null | null |
04/08/2011 12:34:33
|
not a real question
|
Super simple computers with minimal
===
When I went to the science museum in London, many years ago, they had, on display, a simple early computer, named 'The Nicolas' which consisted of 80-90 logic gates which, for any kind of computer is very small. Now I know that the early colossus code breaking computers started with 1300-1500 valves/tubes and I know that for tubes/valves, a single tube could contain two complete triodes, enough to make a simple logic gate (Put's flame proof jacket on) So, if you wanted to build, from scatch a super-simple cpu or computer, what is the minimum number of gates required to build a simple cpu/computer. I realise that this is a virtually impossible question to answer. It is a fantasy project of mine to build a super simple CPU/computer using a modern PC laptop as a frontend and shared stoage. I am not trying TO REINVENT the wheel, just interested in follow where the discussion goes possibly doing some experimentation. A mixed technology computer using relays, valves, traNSISTORS and a handful of IC's would make an entertaining challenge...
Stephen Walters
| 1 |
10,198,655 |
04/17/2012 20:30:16
| 1,284,917 |
03/22/2012 03:18:33
| 13 | 0 |
ssl for an absolute beginner
|
i have developing a website with cakephp and now i want to implement ssl in it, but i have zero knowledge about ssl.
is an ssl certificate and some changes in the httpd.conf is all that's required for secure connection and does that mean that my sessions and form data are secure? or should i add additional code?
i've searched some websites on ssl and implemented it on my localhost by creating a self signed certificate,made some changes in the httpd.conf file,added an exception in my browser and everthing works fine.
is that it or is it just the beginning?
php also provides with some openssl functions. do i need to implement it?
|
php
|
security
|
cakephp
|
ssl
| null |
04/18/2012 04:20:58
|
not a real question
|
ssl for an absolute beginner
===
i have developing a website with cakephp and now i want to implement ssl in it, but i have zero knowledge about ssl.
is an ssl certificate and some changes in the httpd.conf is all that's required for secure connection and does that mean that my sessions and form data are secure? or should i add additional code?
i've searched some websites on ssl and implemented it on my localhost by creating a self signed certificate,made some changes in the httpd.conf file,added an exception in my browser and everthing works fine.
is that it or is it just the beginning?
php also provides with some openssl functions. do i need to implement it?
| 1 |
8,425,732 |
12/08/2011 03:21:48
| 286,768 |
03/05/2010 01:29:13
| 1 | 2 |
what programming paradigms/components that every programmer should know about?
|
Probably the title doesn't clearly describe my question. I'm not asking about design patterns, nor some common techniques like pimp or some computer science / mathematics theories.
Well, an example I can think of is co-routine, which is provided by many dynamic programming language like lua, but is not common in C/C++. I just have little limited knowledge about it even after some years of programming career, but recently I know it is widely used in game area. I also came across a famous desktop application (written in C++) which greatly depends on coroutine to achieve high performance (through Windows Fiber). So knowing about this paradigm (or concept?) may extend my view.
Other examples like tail recursion which I only know about after learning functional programming language. And continuation. And co-variance/contra-variance.
More examples?
|
programming-languages
| null | null | null | null |
12/08/2011 08:28:53
|
not constructive
|
what programming paradigms/components that every programmer should know about?
===
Probably the title doesn't clearly describe my question. I'm not asking about design patterns, nor some common techniques like pimp or some computer science / mathematics theories.
Well, an example I can think of is co-routine, which is provided by many dynamic programming language like lua, but is not common in C/C++. I just have little limited knowledge about it even after some years of programming career, but recently I know it is widely used in game area. I also came across a famous desktop application (written in C++) which greatly depends on coroutine to achieve high performance (through Windows Fiber). So knowing about this paradigm (or concept?) may extend my view.
Other examples like tail recursion which I only know about after learning functional programming language. And continuation. And co-variance/contra-variance.
More examples?
| 4 |
9,486,956 |
02/28/2012 17:39:32
| 1,035,993 |
11/08/2011 16:17:33
| 6 | 2 |
PeopleSoft - Cannot process SOAP fault messages after consuming web service
|
PT 8.50.15
We have a new integration with a third party system. They have provided the wsdl and I have used the consume web service wizard to consume it into PeopleSoft. All this does is give you the stub messages with a schema attached to each. I have written some peoplecode to send a test message out to the webservice. When the webservice returns a valid result, I have no problems. However, when the webservice returns a fault message, I get the following error:
Integration Gateway - HttpTargetConnector:ExternalApplicationException. Http status code HttpStatusCode returned : 500. (158,10623)
HttpTargetConnector:ExternalApplicationException. External System responded with an Error status. For Http Status Code explanation please check Http protocol Specifications.
I know the webservice is returning the fault message b/c I have tried the same thing in SOAPUI. Does anyone know why PeopleSoft throws up this error ONLY on the fault message?
|
web-services
|
soap
|
peoplesoft
| null | null | null |
open
|
PeopleSoft - Cannot process SOAP fault messages after consuming web service
===
PT 8.50.15
We have a new integration with a third party system. They have provided the wsdl and I have used the consume web service wizard to consume it into PeopleSoft. All this does is give you the stub messages with a schema attached to each. I have written some peoplecode to send a test message out to the webservice. When the webservice returns a valid result, I have no problems. However, when the webservice returns a fault message, I get the following error:
Integration Gateway - HttpTargetConnector:ExternalApplicationException. Http status code HttpStatusCode returned : 500. (158,10623)
HttpTargetConnector:ExternalApplicationException. External System responded with an Error status. For Http Status Code explanation please check Http protocol Specifications.
I know the webservice is returning the fault message b/c I have tried the same thing in SOAPUI. Does anyone know why PeopleSoft throws up this error ONLY on the fault message?
| 0 |
7,620,242 |
10/01/2011 12:37:24
| 804,735 |
06/18/2011 17:43:45
| 118 | 2 |
Need more information on this Agile Topic
|
[http://defense.about.com/od/BusinessOps/a/Agile-Certified-Practitioner-Pmi-Acp.htm][1]
[1]: http://defense.about.com/od/BusinessOps/a/Agile-Certified-Practitioner-Pmi-Acp.htm
"Assessing and incorporating community and stakeholder values " is the third bullet point under **Level 1**
I want to learn more on this topic and hence google'ed for it as 'Assessing and incorporating community and stakeholder values" but I am not getting any related search results with respect to Agile Software Development.
Can anyone suggest me to any links or books that talk about this topic, please?
|
agile
| null | null | null | null |
10/01/2011 22:03:22
|
off topic
|
Need more information on this Agile Topic
===
[http://defense.about.com/od/BusinessOps/a/Agile-Certified-Practitioner-Pmi-Acp.htm][1]
[1]: http://defense.about.com/od/BusinessOps/a/Agile-Certified-Practitioner-Pmi-Acp.htm
"Assessing and incorporating community and stakeholder values " is the third bullet point under **Level 1**
I want to learn more on this topic and hence google'ed for it as 'Assessing and incorporating community and stakeholder values" but I am not getting any related search results with respect to Agile Software Development.
Can anyone suggest me to any links or books that talk about this topic, please?
| 2 |
10,897,803 |
06/05/2012 13:01:34
| 812,297 |
06/23/2011 13:22:56
| 40 | 0 |
How to display images one by one
|
In my application I want to display images one by one in imageview. so that it look like that image is move.
Thanks in advance.
|
android
| null | null | null | null |
06/07/2012 16:22:38
|
not a real question
|
How to display images one by one
===
In my application I want to display images one by one in imageview. so that it look like that image is move.
Thanks in advance.
| 1 |
10,426 |
08/13/2008 22:24:28
| 287 |
08/04/2008 12:43:38
| 113 | 11 |
What is a good Windows hex editor / viewer?
|
I am in need of a hex editor / viewer (viewer is more important than editing, but a plus if it can edit) for Windows.
See [KHexedit][1]
Requirements:
- Free is best
- View data at cursor as: byte, short, int, long, float, double (signed/unsiged where applicable)
- Configure the endiance for multi-byte decoding
"Nice to have" features:
- String decoding, null-term or selection based, ASCII/UTF-8/16
- Create user defined "structures" to overlay and view fields
[1]: http://home.online.no/~espensa/khexedit/documentation/khexedit.png
|
windows
|
editor
|
hex
|
endiance
| null |
09/10/2011 19:15:31
|
not constructive
|
What is a good Windows hex editor / viewer?
===
I am in need of a hex editor / viewer (viewer is more important than editing, but a plus if it can edit) for Windows.
See [KHexedit][1]
Requirements:
- Free is best
- View data at cursor as: byte, short, int, long, float, double (signed/unsiged where applicable)
- Configure the endiance for multi-byte decoding
"Nice to have" features:
- String decoding, null-term or selection based, ASCII/UTF-8/16
- Create user defined "structures" to overlay and view fields
[1]: http://home.online.no/~espensa/khexedit/documentation/khexedit.png
| 4 |
1,547,666 |
10/10/2009 11:05:57
| 1,030 |
08/11/2008 15:40:52
| 3,378 | 119 |
How do I get a list of locked users in an Oracle database?
|
I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I'm having is querying the "locked" status for a given user, I though it might have been on `all_users` but it isn't. Can anyone point me in the right direction?
|
oracle
|
user
|
system-administration
|
query
|
locked
| null |
open
|
How do I get a list of locked users in an Oracle database?
===
I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I'm having is querying the "locked" status for a given user, I though it might have been on `all_users` but it isn't. Can anyone point me in the right direction?
| 0 |
7,378,184 |
09/11/2011 12:31:40
| 884,521 |
08/08/2011 17:24:32
| 25 | 2 |
Upload XML data to MySQL table
|
I have a VOIP website [http://www.dialncall.com/][1]. The calling rates will be changes on every month. I just build a CMS to change rates. In that system I need to change every country rate one by one. It hard to do because country list a so BIG.
The rate list I can get as XML file. Could any one tell to me how to upload to MySQL table.
below image is screen print of the XML file
![XLS contents ][2]
[1]: http://www.dialncall.com/
[2]: http://i.stack.imgur.com/nLIuq.png
|
php
|
mysql
|
database
|
php5
|
mysql-error-1064
| null |
open
|
Upload XML data to MySQL table
===
I have a VOIP website [http://www.dialncall.com/][1]. The calling rates will be changes on every month. I just build a CMS to change rates. In that system I need to change every country rate one by one. It hard to do because country list a so BIG.
The rate list I can get as XML file. Could any one tell to me how to upload to MySQL table.
below image is screen print of the XML file
![XLS contents ][2]
[1]: http://www.dialncall.com/
[2]: http://i.stack.imgur.com/nLIuq.png
| 0 |
8,777,769 |
01/08/2012 13:05:39
| 20,126 |
09/21/2008 23:21:25
| 6,341 | 312 |
I am confused, is EF 4.2 is final release, from where to download it?
|
Is EF 4.2 is a final release and we can use in production code?, from where I can download it, and from where I can download its code generation tools such as DBContext code generation?
|
entity-framework
| null | null | null | null |
01/08/2012 14:30:22
|
too localized
|
I am confused, is EF 4.2 is final release, from where to download it?
===
Is EF 4.2 is a final release and we can use in production code?, from where I can download it, and from where I can download its code generation tools such as DBContext code generation?
| 3 |
7,705,294 |
10/09/2011 17:42:53
| 409,971 |
03/20/2010 14:18:02
| 350 | 7 |
How to create nested <ul> <li> tags with HtmlTags (FubuMVC)
|
I have no previous experience with FubuMVC HtmlTags library, and I simply got stuck when trying to accomplish a rather simple nested structure like this:
<ul>
<li>text</li>
<li>text
<ul>
<li>subtext</li>
<li>subtext</li>
</ul>
</li>
<li>text</li>
</ul>
Here's how I have it when building the string:
public static HtmlString ChildNodesRecursive(DocumentNode documentNode)
{
var tag="";
if (documentNode.Children.Count > 0)
{
tag = "<ul>";
foreach (var c in documentNode.Children)
{
tag += "<li>" + c.Name;
tag += ChildNodesRecursive(c);
tag += "</li>";
}
tag += "</ul>";
}
return new HtmlString(tag);
}
Works fine, but I like to use HtmlTags library (outside of FubuMvc, witg the HtmlTags separate Nuget).
|
fubumvc
| null | null | null | null | null |
open
|
How to create nested <ul> <li> tags with HtmlTags (FubuMVC)
===
I have no previous experience with FubuMVC HtmlTags library, and I simply got stuck when trying to accomplish a rather simple nested structure like this:
<ul>
<li>text</li>
<li>text
<ul>
<li>subtext</li>
<li>subtext</li>
</ul>
</li>
<li>text</li>
</ul>
Here's how I have it when building the string:
public static HtmlString ChildNodesRecursive(DocumentNode documentNode)
{
var tag="";
if (documentNode.Children.Count > 0)
{
tag = "<ul>";
foreach (var c in documentNode.Children)
{
tag += "<li>" + c.Name;
tag += ChildNodesRecursive(c);
tag += "</li>";
}
tag += "</ul>";
}
return new HtmlString(tag);
}
Works fine, but I like to use HtmlTags library (outside of FubuMvc, witg the HtmlTags separate Nuget).
| 0 |
7,746,770 |
10/12/2011 21:23:15
| 704,905 |
04/12/2011 21:20:39
| 52 | 5 |
What java framework is easiest to use with embedded Jetty web server?
|
I want to create java application with embedded web server (Jetty, are there any other servers which I can use for that?) and database (H2). GUI of application will be accessible through web browser. <br/><br/>
I can choose any framework which will allow me to create RCP application easy and work flawlessly witch my server. Also good behavior of hot swapping is important. Is JRebel needed at all with embedded Jetty?<br/><br/>
I think it's mostly the battle between Seam 3 and Spring 3, but maybe someone have any real experience with that kind of setup?
|
spring
|
java-ee
|
jetty
|
seam
|
embedded-jetty
|
10/13/2011 01:05:10
|
not constructive
|
What java framework is easiest to use with embedded Jetty web server?
===
I want to create java application with embedded web server (Jetty, are there any other servers which I can use for that?) and database (H2). GUI of application will be accessible through web browser. <br/><br/>
I can choose any framework which will allow me to create RCP application easy and work flawlessly witch my server. Also good behavior of hot swapping is important. Is JRebel needed at all with embedded Jetty?<br/><br/>
I think it's mostly the battle between Seam 3 and Spring 3, but maybe someone have any real experience with that kind of setup?
| 4 |
8,967,536 |
01/23/2012 05:28:51
| 1,444,686 |
11/27/2009 08:40:28
| 111 | 2 |
How to get list of pages indexed bu Google?
|
I have created a site too years ago in php and now converting it into asp.net mvc. Now I would like to get all indexed pages by Google so I can validate all these are working with new site.
I search on google using "site:mysite.com" it shows 21000 results, So how Can i get these 21000 results and validate all they are working with new.
Please let me know.
Thanks,
Laxmilal
|
asp.net
|
google
|
web-crawler
| null | null |
01/24/2012 01:51:04
|
off topic
|
How to get list of pages indexed bu Google?
===
I have created a site too years ago in php and now converting it into asp.net mvc. Now I would like to get all indexed pages by Google so I can validate all these are working with new site.
I search on google using "site:mysite.com" it shows 21000 results, So how Can i get these 21000 results and validate all they are working with new.
Please let me know.
Thanks,
Laxmilal
| 2 |
6,828,784 |
07/26/2011 10:39:53
| 630,020 |
02/23/2011 10:52:55
| 158 | 0 |
IIS7 Rewrite Rules?
|
I'm used to making .htaccess rewriterules for PHP sites. But now I'm trying to do it with IIS7 which is totally new for me.
What I would like is when I insert the url with the page afterwards( `www.website.ext/page` ), that it looks for the page `www.website.ext/index.php?page=title`.
In .htaccess it would be something like; `RewriteRule ^(.*)$ index.php?page=$1`.
But how can I do this in IIS7?
Thanks in advance!
|
php
|
mysql
|
apache
|
iis
|
iis7
| null |
open
|
IIS7 Rewrite Rules?
===
I'm used to making .htaccess rewriterules for PHP sites. But now I'm trying to do it with IIS7 which is totally new for me.
What I would like is when I insert the url with the page afterwards( `www.website.ext/page` ), that it looks for the page `www.website.ext/index.php?page=title`.
In .htaccess it would be something like; `RewriteRule ^(.*)$ index.php?page=$1`.
But how can I do this in IIS7?
Thanks in advance!
| 0 |
4,659,021 |
01/11/2011 15:05:45
| 552,246 |
12/23/2010 10:10:00
| 3 | 0 |
Getting File from /res/raw
|
I need your help, may be this question is very easy for you.
I have a file in /res/raw folder. For example, it's id is **R.raw.myFile**. I need to get "File" object. Such as i can do with file on sdcard
File file = new File("/sdcard/myFolder/myFile");
How I can do this?
By the way, sorry for my english if there are some mistakes.
|
android
| null | null | null | null | null |
open
|
Getting File from /res/raw
===
I need your help, may be this question is very easy for you.
I have a file in /res/raw folder. For example, it's id is **R.raw.myFile**. I need to get "File" object. Such as i can do with file on sdcard
File file = new File("/sdcard/myFolder/myFile");
How I can do this?
By the way, sorry for my english if there are some mistakes.
| 0 |
11,596,348 |
07/21/2012 22:30:00
| 1,526,895 |
07/15/2012 13:02:00
| 5 | 0 |
Runing thread java
|
This is my code:
Thread thread = new Thread("New Thread")
{
public void run(){
//instructions A,B and C
};
thread.start();
//instructions D, E
I wonder please why D and E do not run after termination of instructions A, B and C ?
How to make D and E run after termination of instructions A, B and C
Thank you.
|
java
| null | null | null | null |
07/23/2012 09:02:25
|
not a real question
|
Runing thread java
===
This is my code:
Thread thread = new Thread("New Thread")
{
public void run(){
//instructions A,B and C
};
thread.start();
//instructions D, E
I wonder please why D and E do not run after termination of instructions A, B and C ?
How to make D and E run after termination of instructions A, B and C
Thank you.
| 1 |
5,846,194 |
05/01/2011 03:18:11
| 194,175 |
10/21/2009 22:17:15
| 640 | 19 |
What Are Some Good Open Source Project Landing Pages?
|
I've built a pretty extensive open source project that I'm soon going to publish online. It's got full documentation, source, and everything else you'd expect from a project, but no website.
I've been looking around for inspiration, and found some great open source website examples written by the pocoo team, for example:
<ul>
<li><a href="http://flask.pocoo.org/">Flask</a></li>
<li><a href="http://jinja.pocoo.org/">Jinja</a></li>
</ul>
The problem is, I'm not a designer, and can't make web designs if my life depends on it.
So my question is: are there any good HTML/CSS templates out there that would be suitable to use for an open source project? Preferably something simple that shows off a bit of code, and links to docs, help, etc.
|
templates
| null | null | null | null |
05/01/2011 15:48:07
|
off topic
|
What Are Some Good Open Source Project Landing Pages?
===
I've built a pretty extensive open source project that I'm soon going to publish online. It's got full documentation, source, and everything else you'd expect from a project, but no website.
I've been looking around for inspiration, and found some great open source website examples written by the pocoo team, for example:
<ul>
<li><a href="http://flask.pocoo.org/">Flask</a></li>
<li><a href="http://jinja.pocoo.org/">Jinja</a></li>
</ul>
The problem is, I'm not a designer, and can't make web designs if my life depends on it.
So my question is: are there any good HTML/CSS templates out there that would be suitable to use for an open source project? Preferably something simple that shows off a bit of code, and links to docs, help, etc.
| 2 |
5,141,708 |
02/28/2011 12:02:11
| 13,030 |
09/16/2008 16:43:20
| 1,341 | 56 |
ASP.NET MVC3 VPS Hosting : Windows 2008 32bit or Windows 2008 R2 ?
|
I would like to use a VPS to host my ASP.NET MVC 3 + SQL Server 2008 Express project but I'm hesitating between Windows 2008 and Windows 2008 R2. This server will only have 1 Go of RAM.
I was thinking about choosing Windows 2008 32bit because a 32 bit OS requires less RAM than a 64bit OS but are there some important features of Windows 2008 R2 that I'm going to miss ?Maybe better support for AMS.NET MVC 3, easier deployment ... ?
|
c#
|
.net
|
asp.net-mvc
|
windows-server-2008
|
vps
|
03/18/2012 15:53:43
|
not constructive
|
ASP.NET MVC3 VPS Hosting : Windows 2008 32bit or Windows 2008 R2 ?
===
I would like to use a VPS to host my ASP.NET MVC 3 + SQL Server 2008 Express project but I'm hesitating between Windows 2008 and Windows 2008 R2. This server will only have 1 Go of RAM.
I was thinking about choosing Windows 2008 32bit because a 32 bit OS requires less RAM than a 64bit OS but are there some important features of Windows 2008 R2 that I'm going to miss ?Maybe better support for AMS.NET MVC 3, easier deployment ... ?
| 4 |
7,587,386 |
09/28/2011 17:50:55
| 263,944 |
02/01/2010 23:32:34
| 61 | 3 |
Dynamic Languages on / off the Java JVM
|
I'm interested in learning a dynamic language after at least 10 years on the Java platform. There are two choices that I was considering. One, learning one such as Clojure / Groovy that ride on top of the Java JVM. Secondly, a language off the JVM, which would include Ruby / Rails or Erlang.
Having knowing alot about the Java side, I'd like to choose a JVM based solution, but considering an off the JVM solution.
My question is:
- ***What advantages / disadvantages would I get by choosing a language off of the Java JVM?***
One of my biggest pain points is deployment memory footprint. I'd like to have a solution that allows low memory consumption, because most cloud / ISP providers require high dollar for anything greater the 512 MB / server. I've been so used to using High Memory JVM's which just don't work well with my costs. Maybe this isn't a concern for using clojure or groovy, but I'd expect a high memory footprint since it's running on the JVM.
I've already started using Ruby / Rails lately and I've been impressed with it.
|
java
|
ruby-on-rails
|
ruby
|
groovy
|
clojure
|
09/29/2011 03:41:47
|
not constructive
|
Dynamic Languages on / off the Java JVM
===
I'm interested in learning a dynamic language after at least 10 years on the Java platform. There are two choices that I was considering. One, learning one such as Clojure / Groovy that ride on top of the Java JVM. Secondly, a language off the JVM, which would include Ruby / Rails or Erlang.
Having knowing alot about the Java side, I'd like to choose a JVM based solution, but considering an off the JVM solution.
My question is:
- ***What advantages / disadvantages would I get by choosing a language off of the Java JVM?***
One of my biggest pain points is deployment memory footprint. I'd like to have a solution that allows low memory consumption, because most cloud / ISP providers require high dollar for anything greater the 512 MB / server. I've been so used to using High Memory JVM's which just don't work well with my costs. Maybe this isn't a concern for using clojure or groovy, but I'd expect a high memory footprint since it's running on the JVM.
I've already started using Ruby / Rails lately and I've been impressed with it.
| 4 |
1,866,098 |
12/08/2009 10:35:47
| 200,891 |
11/02/2009 11:13:59
| 1 | 0 |
Why a full stop, "." and not a plus symbol, "+", for string concatentanation in PHP?
|
Why did the designers of PHP decide to use a full stop / period / "." as the string
concatenation operator rather than the more usual plus symbol "+" ?
Is there any advantage to it, or any reason at all? Or did they just like to? :o)
|
php
|
string
|
concatenation
| null | null | null |
open
|
Why a full stop, "." and not a plus symbol, "+", for string concatentanation in PHP?
===
Why did the designers of PHP decide to use a full stop / period / "." as the string
concatenation operator rather than the more usual plus symbol "+" ?
Is there any advantage to it, or any reason at all? Or did they just like to? :o)
| 0 |
8,573,348 |
12/20/2011 09:33:51
| 1,006,944 |
10/21/2011 10:57:13
| 538 | 64 |
Retain File Object valuie in a Form after File Upload
|
I have a form which has some input fields along with file object. Once the form is submitted, validation would happen in server side. If validation fails I need to show the same page to the user with the values he/she given. Im able to retain all the values except file object.
Is it possible in Playframework?
|
file-upload
|
playframework
| null | null | null | null |
open
|
Retain File Object valuie in a Form after File Upload
===
I have a form which has some input fields along with file object. Once the form is submitted, validation would happen in server side. If validation fails I need to show the same page to the user with the values he/she given. Im able to retain all the values except file object.
Is it possible in Playframework?
| 0 |
9,878,848 |
03/26/2012 19:57:33
| 139,618 |
07/16/2009 16:17:44
| 623 | 7 |
SQL Server 2008 Sum and Select Max Only?
|
I am trying to understand how to do a Sum when I need to only use the Max/top values for a date period. This is kind of like http://stackoverflow.com/questions/7118170/sql-server-select-only-the-rows-with-maxdate but not exactly. Thanks for reading.
declare @tbl Table ( tableid int , eventdate date, valuec char(5) , valued int , recordedwhen datetime2(3) )
insert into @tbl values ( 0 , '2012-03-22' , '11111' , 3 , '2012-03-23 17:21:01.083' )
insert into @tbl values ( 1 , '2012-03-22' , '22222' , 3 , '2012-03-23 17:21:01.083' )
insert into @tbl values ( 2 , '2012-03-22' , '22222' , 4 , '2012-03-23 18:21:01.083' )
insert into @tbl values ( 3 , '2012-03-22' , '22222' , 5 , '2012-03-23 18:21:01.083' )
select
eventdate, valuec , sum(valued) as valuedSum , recordedwhen
from
@tbl
group by eventdate, valuec, recordedwhen
I get three rows. But what I actually want is this:
--
-- eventdate valuec valuedSum recordedwhen
-- ---------- ------ ----------- ----------------------
-- 2012-03-22 11111 3 2012-03-23 17:21:01.08
-- 2012-03-22 22222 9 2012-03-23 18:21:01.08
I do not want the row where tableid=1 because that is part of an older batch of data.
The newer rows represent a later insert (all recordedwhen values with the same datetime are the same for a batch)
So if a new row was inserted like this:
insert into @tbl values ( 4 , '2012-03-22' , '22222' , 6 , '2012-03-24 18:21:01.083' )
Then the data would should like this:
-- eventdate valuec valuedSum recordedwhen
-- ---------- ------ ----------- ----------------------
-- 2012-03-22 11111 3 2012-03-23 17:21:01.08
-- 2012-03-22 22222 6 2012-03-24 18:21:01.08
|
sql-server-2008
|
max
|
row-number
| null | null | null |
open
|
SQL Server 2008 Sum and Select Max Only?
===
I am trying to understand how to do a Sum when I need to only use the Max/top values for a date period. This is kind of like http://stackoverflow.com/questions/7118170/sql-server-select-only-the-rows-with-maxdate but not exactly. Thanks for reading.
declare @tbl Table ( tableid int , eventdate date, valuec char(5) , valued int , recordedwhen datetime2(3) )
insert into @tbl values ( 0 , '2012-03-22' , '11111' , 3 , '2012-03-23 17:21:01.083' )
insert into @tbl values ( 1 , '2012-03-22' , '22222' , 3 , '2012-03-23 17:21:01.083' )
insert into @tbl values ( 2 , '2012-03-22' , '22222' , 4 , '2012-03-23 18:21:01.083' )
insert into @tbl values ( 3 , '2012-03-22' , '22222' , 5 , '2012-03-23 18:21:01.083' )
select
eventdate, valuec , sum(valued) as valuedSum , recordedwhen
from
@tbl
group by eventdate, valuec, recordedwhen
I get three rows. But what I actually want is this:
--
-- eventdate valuec valuedSum recordedwhen
-- ---------- ------ ----------- ----------------------
-- 2012-03-22 11111 3 2012-03-23 17:21:01.08
-- 2012-03-22 22222 9 2012-03-23 18:21:01.08
I do not want the row where tableid=1 because that is part of an older batch of data.
The newer rows represent a later insert (all recordedwhen values with the same datetime are the same for a batch)
So if a new row was inserted like this:
insert into @tbl values ( 4 , '2012-03-22' , '22222' , 6 , '2012-03-24 18:21:01.083' )
Then the data would should like this:
-- eventdate valuec valuedSum recordedwhen
-- ---------- ------ ----------- ----------------------
-- 2012-03-22 11111 3 2012-03-23 17:21:01.08
-- 2012-03-22 22222 6 2012-03-24 18:21:01.08
| 0 |
6,373,155 |
06/16/2011 14:01:49
| 586,986 |
01/24/2011 04:19:27
| 10 | 0 |
developing a windows app
|
I want to develop an app for windows that will end up being an exe file and have an installation process. However, I dont know where to start or which steps to follow. What is the best language to use and how do I endup having an exe file ?
|
windows
|
application
|
exe
| null | null |
06/16/2011 14:18:40
|
not constructive
|
developing a windows app
===
I want to develop an app for windows that will end up being an exe file and have an installation process. However, I dont know where to start or which steps to follow. What is the best language to use and how do I endup having an exe file ?
| 4 |
4,665,957 |
01/12/2011 06:31:40
| 172,637 |
09/13/2009 00:11:44
| 3,730 | 135 |
PDF parsing library for Android?
|
I'm looking for a **fast** PDF library, even commercial is okay.
Problem of opensource java PDF renderers that they are based on awt/swing which is not available on Android, so this need to be adopted to Android GUI model.
Best for now I found and checked: https://pdf-renderer.dev.java.net/ (not so old, not so huge, working on example PDFs).
Another is vuDroid PDF implementation, but its painfully slow so its out of option.
Thanks!
|
java
|
android
|
pdf
|
adobe
| null |
04/18/2012 19:31:51
|
not constructive
|
PDF parsing library for Android?
===
I'm looking for a **fast** PDF library, even commercial is okay.
Problem of opensource java PDF renderers that they are based on awt/swing which is not available on Android, so this need to be adopted to Android GUI model.
Best for now I found and checked: https://pdf-renderer.dev.java.net/ (not so old, not so huge, working on example PDFs).
Another is vuDroid PDF implementation, but its painfully slow so its out of option.
Thanks!
| 4 |
8,841,895 |
01/12/2012 20:34:04
| 548,906 |
12/20/2010 16:46:17
| 100 | 0 |
How to verify with ReCAPTCHA
|
I am hoping to get a quick answer to a simple problem.
I am trying to use the ReCaptcha on a site and the form is currently submitting to salesforce.com.
In the ReCaptcha instructions it tells me that the verify.php should run then submit if it passes I suppose.
Specifically like so:
<?php
require_once('recaptchalib.php');
$privatekey = "your_private_key";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>
If the original form is to submit like the following:
action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST"
How would I handle this within the php script above?
Any help is appreciated!
|
php
|
recaptcha
| null | null | null | null |
open
|
How to verify with ReCAPTCHA
===
I am hoping to get a quick answer to a simple problem.
I am trying to use the ReCaptcha on a site and the form is currently submitting to salesforce.com.
In the ReCaptcha instructions it tells me that the verify.php should run then submit if it passes I suppose.
Specifically like so:
<?php
require_once('recaptchalib.php');
$privatekey = "your_private_key";
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);
if (!$resp->is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." .
"(reCAPTCHA said: " . $resp->error . ")");
} else {
// Your code here to handle a successful verification
}
?>
If the original form is to submit like the following:
action="https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8" method="POST"
How would I handle this within the php script above?
Any help is appreciated!
| 0 |
2,235,994 |
02/10/2010 10:23:10
| 188,477 |
10/12/2009 14:29:12
| 24 | 0 |
How to determine if the location of the iframe has changed?
|
I have got an iframe that displays a form from an external site,once the form is submitted it is redirected to another page that has got a thankyou message.Is it posiible to know from the iframe if the location of src webpage has changed? i hope im making some sense...
thank you
|
javascript
|
iframe
| null | null | null | null |
open
|
How to determine if the location of the iframe has changed?
===
I have got an iframe that displays a form from an external site,once the form is submitted it is redirected to another page that has got a thankyou message.Is it posiible to know from the iframe if the location of src webpage has changed? i hope im making some sense...
thank you
| 0 |
6,322,573 |
06/12/2011 14:50:14
| 794,832 |
06/12/2011 14:50:14
| 1 | 0 |
C++ compiler not allowing to define a compiler generated constructor
|
I'm trying to define the constructor that compiler generates automatically and resulted in an compilation error. Here is my code.
<pre><code>
class myclass
{
public:
void Test_Func()
{}
};
myclass::myclass()
{
}
</code>
Is compiler doing anything in addition for a simple class like above. Here is the error that I got in MSVC compiler.
"error C2600: 'myclass::myclass' : cannot define a compiler-generated special member function (must be declared in the class first)"
Thanks in advance.
|
c++
| null | null | null | null | null |
open
|
C++ compiler not allowing to define a compiler generated constructor
===
I'm trying to define the constructor that compiler generates automatically and resulted in an compilation error. Here is my code.
<pre><code>
class myclass
{
public:
void Test_Func()
{}
};
myclass::myclass()
{
}
</code>
Is compiler doing anything in addition for a simple class like above. Here is the error that I got in MSVC compiler.
"error C2600: 'myclass::myclass' : cannot define a compiler-generated special member function (must be declared in the class first)"
Thanks in advance.
| 0 |
1,707,790 |
11/10/2009 12:59:32
| 59,242 |
01/27/2009 08:12:53
| 3,056 | 168 |
Direct actions on html() and text() in jQuery
|
Is there a way to tell jQuery that you want what ever comes after `text()` or `html()` to be applied to it? Hard to explain, easier to show:
$("#someElement").html().replace(oldWord, newWord, "g");
The above won't change the DOM, you'd have to do:
$("#someElement").html($("#someElement").html().replace(oldWord, newWord, "g"));
which is a pain in the a**.
|
jquery
| null | null | null | null | null |
open
|
Direct actions on html() and text() in jQuery
===
Is there a way to tell jQuery that you want what ever comes after `text()` or `html()` to be applied to it? Hard to explain, easier to show:
$("#someElement").html().replace(oldWord, newWord, "g");
The above won't change the DOM, you'd have to do:
$("#someElement").html($("#someElement").html().replace(oldWord, newWord, "g"));
which is a pain in the a**.
| 0 |
907,154 |
05/25/2009 15:28:28
| 20,126 |
09/21/2008 23:21:25
| 769 | 51 |
how to open VS 2005 solution using VS 2008?
|
when i try to open a solution created before with VS 2005 in 2008 i got this error message in VS:
---------------------------
Microsoft Visual Studio
---------------------------
The application for project 'C:\myProject.csproj' is not installed.
Make sure the application for the project type (.csproj) is installed.
---------------------------
OK Help
---------------------------
<br/><br/><br/>
How to make VS 2008 open 2005 solutions? i missed to do something?
|
visual-studio-2005
|
visual-studio-2008
| null | null | null | null |
open
|
how to open VS 2005 solution using VS 2008?
===
when i try to open a solution created before with VS 2005 in 2008 i got this error message in VS:
---------------------------
Microsoft Visual Studio
---------------------------
The application for project 'C:\myProject.csproj' is not installed.
Make sure the application for the project type (.csproj) is installed.
---------------------------
OK Help
---------------------------
<br/><br/><br/>
How to make VS 2008 open 2005 solutions? i missed to do something?
| 0 |
2,959,815 |
06/02/2010 16:58:06
| 345,072 |
05/19/2010 13:06:51
| 28 | 0 |
Separating functions to a separate header that rely on another function not inside the header?
|
I have several C scripts that will all have the same format(functions), but occasionally the actual code within a few functions. I am trying to separate a function into an external header file, but the issue is this:
int FunctionImExtracting()
{
//some code
FunctionThatCannotBeExtractedButTheFunctionSignatureWillAlwaysRemainTheSame()
//more code.
};
I have a feeling that function pointers will be my friend here, but I'm not sure how. How can this be accomplished?
|
c
|
function-pointers
| null | null | null | null |
open
|
Separating functions to a separate header that rely on another function not inside the header?
===
I have several C scripts that will all have the same format(functions), but occasionally the actual code within a few functions. I am trying to separate a function into an external header file, but the issue is this:
int FunctionImExtracting()
{
//some code
FunctionThatCannotBeExtractedButTheFunctionSignatureWillAlwaysRemainTheSame()
//more code.
};
I have a feeling that function pointers will be my friend here, but I'm not sure how. How can this be accomplished?
| 0 |
6,086,782 |
05/22/2011 08:12:03
| 741,996 |
05/06/2011 15:00:13
| 9 | 0 |
java help need (algorythems)
|
**in this coding we can add 6 times. i wanna to reduce it for three times.**
package dsa;
import javax.swing.JOptionPane;
/**
*
* @author asda
*/
public class myQueue
{
int maxSize, front, rear, nItems;
static String QueArr[][];
String result[]=new String[4];
public myQueue(int maximumSize)
{
maxSize=maximumSize;
QueArr=new String[maxSize][4];
front=0;
rear=-1;
nItems=0;
}
boolean isEmpty()
{
return nItems==0;
}
boolean isFull()
{
return nItems==maxSize;
}
void insert(String item1, String item2, String item3, String item4)
{
if (isFull())
{
JOptionPane.showMessageDialog(null,"queue full", "Full Array", JOptionPane.INFORMATION_MESSAGE );
}
else
{
++rear;
QueArr[rear][0]=item1;
QueArr[rear][1]=item2;
QueArr[rear][2]=item3;
QueArr[rear][3]=item4;
nItems++;
JOptionPane.showMessageDialog(null,"inserted!!!", "Successful", JOptionPane.INFORMATION_MESSAGE );
}
}
void pop()
{
if (isEmpty())
{
JOptionPane.showMessageDialog(null,"queue empty", "Empty Array", JOptionPane.INFORMATION_MESSAGE );
for (int j=0;j<3;j++)
{
result[j]="null";
}
}
else
{
for (int i=0;i<3;i++)
{
result[i]=QueArr[front][i];
}
front++;
nItems--;
}
}
String view(int i)
{
return result[i];
}
}
|
java
|
algorithm
| null | null | null |
05/22/2011 08:39:23
|
not a real question
|
java help need (algorythems)
===
**in this coding we can add 6 times. i wanna to reduce it for three times.**
package dsa;
import javax.swing.JOptionPane;
/**
*
* @author asda
*/
public class myQueue
{
int maxSize, front, rear, nItems;
static String QueArr[][];
String result[]=new String[4];
public myQueue(int maximumSize)
{
maxSize=maximumSize;
QueArr=new String[maxSize][4];
front=0;
rear=-1;
nItems=0;
}
boolean isEmpty()
{
return nItems==0;
}
boolean isFull()
{
return nItems==maxSize;
}
void insert(String item1, String item2, String item3, String item4)
{
if (isFull())
{
JOptionPane.showMessageDialog(null,"queue full", "Full Array", JOptionPane.INFORMATION_MESSAGE );
}
else
{
++rear;
QueArr[rear][0]=item1;
QueArr[rear][1]=item2;
QueArr[rear][2]=item3;
QueArr[rear][3]=item4;
nItems++;
JOptionPane.showMessageDialog(null,"inserted!!!", "Successful", JOptionPane.INFORMATION_MESSAGE );
}
}
void pop()
{
if (isEmpty())
{
JOptionPane.showMessageDialog(null,"queue empty", "Empty Array", JOptionPane.INFORMATION_MESSAGE );
for (int j=0;j<3;j++)
{
result[j]="null";
}
}
else
{
for (int i=0;i<3;i++)
{
result[i]=QueArr[front][i];
}
front++;
nItems--;
}
}
String view(int i)
{
return result[i];
}
}
| 1 |
3,074,780 |
06/19/2010 07:43:53
| 370,905 |
06/19/2010 07:37:12
| 1 | 0 |
jquery or prototype will be better
|
I am a newbie.I have doubt, regarding which js library i should select for my new project, which is a small website with rich user interface.Jquery and prorotype are the two options in my mind.
Will i go with jquery or prototype.
|
jquery
|
prototype
| null | null | null |
06/19/2010 08:56:20
|
not constructive
|
jquery or prototype will be better
===
I am a newbie.I have doubt, regarding which js library i should select for my new project, which is a small website with rich user interface.Jquery and prorotype are the two options in my mind.
Will i go with jquery or prototype.
| 4 |
8,516,418 |
12/15/2011 07:18:23
| 1,099,307 |
12/15/2011 07:06:33
| 1 | 0 |
solution for developing app for uploading file via iphone
|
i am developing an application where the user can upload his files of format .ppt, .doc, .jpeg, .txt, zip, etc. please tell how to upload the data on my local server, currently I am using MAMP, and also i am new to MAMP.
Thanks in advanced
SUDHANSHU SHUKLA
|
iphone
|
iphone-sdk-4.0
| null | null | null |
12/22/2011 08:17:22
|
not a real question
|
solution for developing app for uploading file via iphone
===
i am developing an application where the user can upload his files of format .ppt, .doc, .jpeg, .txt, zip, etc. please tell how to upload the data on my local server, currently I am using MAMP, and also i am new to MAMP.
Thanks in advanced
SUDHANSHU SHUKLA
| 1 |
6,942,479 |
08/04/2011 13:40:13
| 824,531 |
07/01/2011 08:47:54
| 26 | 1 |
What do each of PuTTY's text colours represent?
|
For example what is white text on a pink background?
Or white text on a red background?
Thanks
|
linux
|
putty
| null | null | null |
08/04/2011 14:45:18
|
off topic
|
What do each of PuTTY's text colours represent?
===
For example what is white text on a pink background?
Or white text on a red background?
Thanks
| 2 |
9,312,180 |
02/16/2012 13:32:18
| 1,210,637 |
02/15/2012 06:41:17
| 11 | 0 |
draw class diagram in java by connecting visio
|
I have a need to draw the class diagram with java code by being connect to MS visio installed on my system.
Tell me the step to get connect with visio and draw the diagram in visio sheet for example if i have to show the extends relationship between two classes then first i have to open a visio sheet and stencils then drop two rectangle having class names and one connector on blank sheet that shows the flow from base class to derive class.
I hope i have been able to describe my problem.
Thanks in advance for quick and positive response.
|
java
|
eclipse
|
swt
|
visio
|
class-diagram
|
02/18/2012 00:35:43
|
not a real question
|
draw class diagram in java by connecting visio
===
I have a need to draw the class diagram with java code by being connect to MS visio installed on my system.
Tell me the step to get connect with visio and draw the diagram in visio sheet for example if i have to show the extends relationship between two classes then first i have to open a visio sheet and stencils then drop two rectangle having class names and one connector on blank sheet that shows the flow from base class to derive class.
I hope i have been able to describe my problem.
Thanks in advance for quick and positive response.
| 1 |
10,695,979 |
05/22/2012 05:06:00
| 1,407,131 |
05/21/2012 05:47:13
| 1 | 0 |
error while using zoo package r
|
I am trying to analyze high frequency data of nifty using "zoo" package in r and i am following the methods given in the zoo documentation for reading a csv file as a zoo object .
I have written the following code but i am getting an error .
> Lines <- "
+ Date,Time,Open,High,Low,Close,Up,Down
+ 05.02.2001,00:30,421.20,421.20,421.20,421.20,11,0
+ 05.02.2001,01:30,421.20,421.40,421.20,421.40,7,0
+ 05.02.2001,02:00,421.30,421.30,421.30,421.30,0,5"
> f <- function(d, t) chron(d, paste(t, "00", sep = ":"),
+ format = c("m.d.y", "h:m:s"))
> z <- read.zoo(textConnection(Lines), sep = ",", header = TRUE,
+ index = 1:2, FUN = f)
Error in .C(NAME = "cnt_flds_str", strings = as.character(str), nstrings = as.integer(n), :
supplied argument name 'NAME' does not match 'name'
I have imported the library zoo and chron as required but i am still getting an error. I have searched over the net but i did not find any help of this regard neither this sort of error any help would be appreciated .
|
r
|
zoo
|
chron
| null | null |
05/22/2012 14:47:34
|
too localized
|
error while using zoo package r
===
I am trying to analyze high frequency data of nifty using "zoo" package in r and i am following the methods given in the zoo documentation for reading a csv file as a zoo object .
I have written the following code but i am getting an error .
> Lines <- "
+ Date,Time,Open,High,Low,Close,Up,Down
+ 05.02.2001,00:30,421.20,421.20,421.20,421.20,11,0
+ 05.02.2001,01:30,421.20,421.40,421.20,421.40,7,0
+ 05.02.2001,02:00,421.30,421.30,421.30,421.30,0,5"
> f <- function(d, t) chron(d, paste(t, "00", sep = ":"),
+ format = c("m.d.y", "h:m:s"))
> z <- read.zoo(textConnection(Lines), sep = ",", header = TRUE,
+ index = 1:2, FUN = f)
Error in .C(NAME = "cnt_flds_str", strings = as.character(str), nstrings = as.integer(n), :
supplied argument name 'NAME' does not match 'name'
I have imported the library zoo and chron as required but i am still getting an error. I have searched over the net but i did not find any help of this regard neither this sort of error any help would be appreciated .
| 3 |
10,534,634 |
05/10/2012 13:05:58
| 379,008 |
06/29/2010 12:49:08
| 2,575 | 52 |
Crea SEO Friendly hyperlinks using IIS Tools
|
I use Asp.net 4.
I have some code in C# that generates html hyperlinks on a web page, I would like to make this hyperlinks SEO friendly using **URL Rewrite Tool from IIS 7.5**.
Is it possible? Or shall I use URL Routing mechanism instead?
Thanks.
|
asp.net
|
url-rewriting
|
routing
|
iis-7.5
| null | null |
open
|
Crea SEO Friendly hyperlinks using IIS Tools
===
I use Asp.net 4.
I have some code in C# that generates html hyperlinks on a web page, I would like to make this hyperlinks SEO friendly using **URL Rewrite Tool from IIS 7.5**.
Is it possible? Or shall I use URL Routing mechanism instead?
Thanks.
| 0 |
7,976,633 |
11/02/2011 06:40:36
| 1,025,083 |
11/02/2011 06:38:15
| 1 | 0 |
what's the difference between [NSString copy] and [NSArray copy]?
|
what's the difference between [NSString copy] and [NSArray copy]?
hope someone can help me!
|
objective-c
|
copy
| null | null | null |
11/02/2011 19:18:15
|
not a real question
|
what's the difference between [NSString copy] and [NSArray copy]?
===
what's the difference between [NSString copy] and [NSArray copy]?
hope someone can help me!
| 1 |
3,980,105 |
10/20/2010 16:25:26
| 481,100 |
10/19/2010 23:24:49
| 1 | 0 |
travelling salesman
|
where can i find source code for travelling salasman problem
|
traveling-salesman
| null | null | null | null |
10/20/2010 16:55:17
|
not a real question
|
travelling salesman
===
where can i find source code for travelling salasman problem
| 1 |
7,600,325 |
09/29/2011 16:19:24
| 348,917 |
05/24/2010 12:09:14
| 319 | 4 |
What do I need to know going from Java to JavaScript?
|
This isn't as progressive as it sounds. Im not taking the whole "Oh I know Java, that must mean I can write in JavaScript too!" attitude. I have some education on Java under my belt, but now find myself having to do some PHP web development (which I have little experience in) using Java Script to handle some of the logic. But before going out and buying 2 or 3 books on JavaScript and diving right into it, I figure I might ask those that might have gone through the same experience. It appears that JavaScript lives and acts in its own environmnet which makes want to take the approach taking in JavaScript and PHP as a bundled package in my learning endeavors. JavaScript is similar just enough to Java that I will tend to make some dangerous assumptions. Should I treat JavaScript and PHP as one item, or should I still take this step by step and learn one at a time? What are some pitfalls that I might run Into? What are the main differences between the languages? Is there any litterature that has helped? Thanks Everybody.
|
java
|
php
|
javascript
| null | null |
09/29/2011 17:36:12
|
off topic
|
What do I need to know going from Java to JavaScript?
===
This isn't as progressive as it sounds. Im not taking the whole "Oh I know Java, that must mean I can write in JavaScript too!" attitude. I have some education on Java under my belt, but now find myself having to do some PHP web development (which I have little experience in) using Java Script to handle some of the logic. But before going out and buying 2 or 3 books on JavaScript and diving right into it, I figure I might ask those that might have gone through the same experience. It appears that JavaScript lives and acts in its own environmnet which makes want to take the approach taking in JavaScript and PHP as a bundled package in my learning endeavors. JavaScript is similar just enough to Java that I will tend to make some dangerous assumptions. Should I treat JavaScript and PHP as one item, or should I still take this step by step and learn one at a time? What are some pitfalls that I might run Into? What are the main differences between the languages? Is there any litterature that has helped? Thanks Everybody.
| 2 |
10,343,176 |
04/27/2012 00:23:01
| 1,359,964 |
04/27/2012 00:06:44
| 1 | 0 |
Hibernate transaction problems when running in Glassfish
|
I've got some Hibernate (3.6) code that works perfectly well when running in a standalone test class. However, when I incorporate it into a servlet class running in Glassfish (3.1.2), I'm getting "org.hibernate.HibernateException: load is not valid without active transaction".
The code snippet follows:
final Session session = daoFactory.getCurrentSession();
final Transaction transaction = session.getTransaction();
try
{
System.out.println("before begin(), Transaction is active: " + transaction.isActive()); // displays "false"
transaction.begin();
System.out.println("after begin(), Transaction Is Active: " + transaction.isActive()); // displays "true"
final Locality root = localityDAO.findById(1L, false); // throws exception
// deleted for brevity
}
catch (Exception e)
{
// deleted for brevity
}
finally
{
// deleted for brevity
}
My hibernate.cfg.xml file is:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">@connection.driver_class@</property>
<property name="connection.url">@connection.url@</property>
<property name="connection.username">@connection.username@</property>
<property name="connection.password">@connection.password@</property>
<property name="connection.pool_size">10</property>
<property name="current_session_context_class">thread</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files deleted for brevity -->
</session-factory>
</hibernate-configuration>
Can someone offer a solution?
Thanks,
Mike
|
hibernate
|
glassfish
| null | null | null | null |
open
|
Hibernate transaction problems when running in Glassfish
===
I've got some Hibernate (3.6) code that works perfectly well when running in a standalone test class. However, when I incorporate it into a servlet class running in Glassfish (3.1.2), I'm getting "org.hibernate.HibernateException: load is not valid without active transaction".
The code snippet follows:
final Session session = daoFactory.getCurrentSession();
final Transaction transaction = session.getTransaction();
try
{
System.out.println("before begin(), Transaction is active: " + transaction.isActive()); // displays "false"
transaction.begin();
System.out.println("after begin(), Transaction Is Active: " + transaction.isActive()); // displays "true"
final Locality root = localityDAO.findById(1L, false); // throws exception
// deleted for brevity
}
catch (Exception e)
{
// deleted for brevity
}
finally
{
// deleted for brevity
}
My hibernate.cfg.xml file is:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.driver_class">@connection.driver_class@</property>
<property name="connection.url">@connection.url@</property>
<property name="connection.username">@connection.username@</property>
<property name="connection.password">@connection.password@</property>
<property name="connection.pool_size">10</property>
<property name="current_session_context_class">thread</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Mapping files deleted for brevity -->
</session-factory>
</hibernate-configuration>
Can someone offer a solution?
Thanks,
Mike
| 0 |
5,681,630 |
04/15/2011 19:49:06
| 697,363 |
04/07/2011 18:20:01
| 11 | 2 |
Market Mix Modelling with R
|
Can anybody suggest me some literature on Market Mix Mode
|
r
| null | null | null | null |
04/15/2011 20:36:58
|
off topic
|
Market Mix Modelling with R
===
Can anybody suggest me some literature on Market Mix Mode
| 2 |
6,792,753 |
07/22/2011 16:03:04
| 444,549 |
09/10/2010 16:31:45
| 275 | 20 |
What functionality infringes Lodsys patents?
|
Currently I write a few mobile apps for various mobile platforms. I take the frameworks supplied by Apple/Android/Blackberry for granted using all the functionality assuming its all safe to do so on the various platforms.
Currently lots of app developers are being target by [Lodsys][1] for patent infringements.
Some of the functionality that is being disputed is:
- In App Purchasing.
- Twitter/Facebook style RSS Feeds.
My question is what functionality should I be careful implementing?
[1]: http://www.lodsys.com/
|
iphone
|
android
|
mobile
|
application
|
patents
|
07/22/2011 16:12:23
|
off topic
|
What functionality infringes Lodsys patents?
===
Currently I write a few mobile apps for various mobile platforms. I take the frameworks supplied by Apple/Android/Blackberry for granted using all the functionality assuming its all safe to do so on the various platforms.
Currently lots of app developers are being target by [Lodsys][1] for patent infringements.
Some of the functionality that is being disputed is:
- In App Purchasing.
- Twitter/Facebook style RSS Feeds.
My question is what functionality should I be careful implementing?
[1]: http://www.lodsys.com/
| 2 |
9,465,295 |
02/27/2012 12:49:09
| 1,162,052 |
01/21/2012 08:23:30
| 6 | 0 |
Modify URL in php
|
I want to modify following url http://www.gonzaga.edu/../../../../Files/About/Images/300x200/baseball_panorama_hz.jpg into http://www.gonzaga.edu/Files/About/Images/300x200/baseball_panorama_hz.jpg.
Thanks.
|
php
|
php5
| null | null | null |
02/27/2012 20:54:26
|
not a real question
|
Modify URL in php
===
I want to modify following url http://www.gonzaga.edu/../../../../Files/About/Images/300x200/baseball_panorama_hz.jpg into http://www.gonzaga.edu/Files/About/Images/300x200/baseball_panorama_hz.jpg.
Thanks.
| 1 |
9,276,283 |
02/14/2012 11:46:25
| 744,701 |
05/09/2011 07:21:53
| 16 | 2 |
PHP with RabbitMQ / ActiveMQ?
|
Using ActiveMQ or RabbitMQ from PHP, how easy, stable, maintainable and scalable is it?
Coding with MQ service, working with PHP with Async service? Share y
|
php
|
activemq
|
rabbitmq
| null | null |
02/20/2012 05:50:35
|
not constructive
|
PHP with RabbitMQ / ActiveMQ?
===
Using ActiveMQ or RabbitMQ from PHP, how easy, stable, maintainable and scalable is it?
Coding with MQ service, working with PHP with Async service? Share y
| 4 |
11,661,343 |
07/26/2012 02:09:11
| 1,210,385 |
02/15/2012 02:40:23
| 37 | 2 |
Upgrade Windows Server 2008 to R2
|
I'm trying to upgrade my Windows Server 2008 SP1 (64bit) to R2 version. Is it possible for the upgrade? If yes, is there any guide about the upgrade?
Thanks.
|
windows
|
microsoft
|
windows-server-2008
|
windows-server-2008-r2
|
windows-server-2008-x64
|
07/26/2012 02:18:11
|
off topic
|
Upgrade Windows Server 2008 to R2
===
I'm trying to upgrade my Windows Server 2008 SP1 (64bit) to R2 version. Is it possible for the upgrade? If yes, is there any guide about the upgrade?
Thanks.
| 2 |
11,518,210 |
07/17/2012 07:53:40
| 932,450 |
09/07/2011 09:58:05
| 16 | 0 |
Telerik.OpenAccess.Exceptions.DataStoreException was unhandled by user code
|
I am getting the above error while running my ETL service file, which is ETL project with C# code .
The following is error I am getting. Please help on this.
"
Telerik.OpenAccess.Exceptions.DataStoreException was unhandled by user code
Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Telerik.OpenAccess.RT.sql.SQLException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)
at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)
Source=Telerik.OpenAccess
CanRetry=false
StackTrace:
at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
at OpenAccessRuntime.ExceptionWrapper.Throw()
at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp..ctor(PropertySet properties, Object classloader)
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.Helper.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
at OpenAccessRuntime.DatabaseAdapter.GetObjectScope(TransactionProvider provider)
at Telerik.OpenAccess.Database.GetObjectScope(TransactionProvider provider)
at Telerik.OpenAccess.OpenAccessContextBase.GetScope()
at Telerik.OpenAccess.OpenAccessContext.GetAllCore[T]()
at Telerik.OpenAccess.OpenAccessContext.GetAll[T]()
at Excent.ETLProject.Data.Infrastructure.Repository`1.All() in C:\ETLProject\ETLProject.Data.Infrastructure\Repository.cs:line 46
at Excent.ETLProject.Data.Infrastructure.RepositoryBase`1.All() in C:\ETLProject\ETLProject.Data.Infrastructure\RepositoryBase.cs:line 56
at Excent.ETLProject.Core.Email.Notification.EmailTemplateHelper..ctor() in C:\ETLProject\ETLProject.Core.Email.Notification\EmailTemplateHelper.cs:line 23
at Excent.ETLProject.Core.Email.Notification.Processor..ctor() in C:\ETLProject\ETLProject.Core.Email.Notification\Processor.cs:line 14
at Excent.ETLProject.ETLService.ServiceAgent..ctor() in C:\ETLProject\ETLProject.ETLService\ServiceAgent.cs:line 13
at Excent.ETLProject.ETLService.ETLService.ETLProjectTimer_Elapsed(Object sender, ElapsedEventArgs e) in C:\ETLProject\ETLProject.ETLService\ETLService.cs:line 34
at System.Timers.Timer.MyTimerCallback(Object state)
InnerException: Telerik.OpenAccess.RT.sql.SQLException
Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Source=Telerik.OpenAccess.Runtime
Description=SQLState=;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
ErrorCode=67
Number=67
StackTrace:
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)
at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)
InnerException:
"
Please do needful.
Thank you,
Suresh
|
c#
|
telerik
|
etl
| null | null |
07/17/2012 18:51:09
|
too localized
|
Telerik.OpenAccess.Exceptions.DataStoreException was unhandled by user code
===
I am getting the above error while running my ETL service file, which is ETL project with C# code .
The following is error I am getting. Please help on this.
"
Telerik.OpenAccess.Exceptions.DataStoreException was unhandled by user code
Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Telerik.OpenAccess.RT.sql.SQLException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)
at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)
Source=Telerik.OpenAccess
CanRetry=false
StackTrace:
at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
at OpenAccessRuntime.ExceptionWrapper.Throw()
at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()
at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createStorageManagerFactory()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.createStorageManagerFactory()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.init()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp..ctor(PropertySet properties, Object classloader)
at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.Helper.getPersistenceManagerFactory(PropertySet props)
at OpenAccessRuntime.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
at OpenAccessRuntime.DatabaseAdapter.GetObjectScope(TransactionProvider provider)
at Telerik.OpenAccess.Database.GetObjectScope(TransactionProvider provider)
at Telerik.OpenAccess.OpenAccessContextBase.GetScope()
at Telerik.OpenAccess.OpenAccessContext.GetAllCore[T]()
at Telerik.OpenAccess.OpenAccessContext.GetAll[T]()
at Excent.ETLProject.Data.Infrastructure.Repository`1.All() in C:\ETLProject\ETLProject.Data.Infrastructure\Repository.cs:line 46
at Excent.ETLProject.Data.Infrastructure.RepositoryBase`1.All() in C:\ETLProject\ETLProject.Data.Infrastructure\RepositoryBase.cs:line 56
at Excent.ETLProject.Core.Email.Notification.EmailTemplateHelper..ctor() in C:\ETLProject\ETLProject.Core.Email.Notification\EmailTemplateHelper.cs:line 23
at Excent.ETLProject.Core.Email.Notification.Processor..ctor() in C:\ETLProject\ETLProject.Core.Email.Notification\Processor.cs:line 14
at Excent.ETLProject.ETLService.ServiceAgent..ctor() in C:\ETLProject\ETLProject.ETLService\ServiceAgent.cs:line 13
at Excent.ETLProject.ETLService.ETLService.ETLProjectTimer_Elapsed(Object sender, ElapsedEventArgs e) in C:\ETLProject\ETLProject.ETLService\ETLService.cs:line 34
at System.Timers.Timer.MyTimerCallback(Object state)
InnerException: Telerik.OpenAccess.RT.sql.SQLException
Message=A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Source=Telerik.OpenAccess.Runtime
Description=SQLState=;A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
ErrorCode=67
Number=67
StackTrace:
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)
at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)
InnerException:
"
Please do needful.
Thank you,
Suresh
| 3 |
7,903,268 |
10/26/2011 13:27:49
| 22,194 |
09/25/2008 14:22:55
| 4,226 | 187 |
sp_ddopen - What is this doing?
|
Captured this in SQL Profiler, being sent from a 3rd party app. What is it doing?
declare @p1 int
set @p1=180150003
declare @p3 int
set @p3=8
declare @p4 int
set @p4=1
declare @p5 int
set @p5=34
exec sp_ddopen @p1 output,N'sp_sproc_columns',@p3 output,@p4 output,@p5 output,N'some_stored_procedure_name',NULL,NULL,NULL
select @p1, @p3, @p4, @p5
|
sql-server
|
sql-server-2005
|
stored-procedures
| null | null | null |
open
|
sp_ddopen - What is this doing?
===
Captured this in SQL Profiler, being sent from a 3rd party app. What is it doing?
declare @p1 int
set @p1=180150003
declare @p3 int
set @p3=8
declare @p4 int
set @p4=1
declare @p5 int
set @p5=34
exec sp_ddopen @p1 output,N'sp_sproc_columns',@p3 output,@p4 output,@p5 output,N'some_stored_procedure_name',NULL,NULL,NULL
select @p1, @p3, @p4, @p5
| 0 |
8,786,234 |
01/09/2012 09:28:12
| 1,113,150 |
12/23/2011 09:22:12
| 1 | 1 |
How to Update Blackberry Contact list with latest server data
|
We have blackberry enterprise server which have emergency contacts for the application support updated in it.
I want to know how i can update balckberry contact list with the latest contact details from server.
Also what is the type of feed file needs to be sent to the balckberry device.Any reasearch on this will help me to solve my problem.
|
c#
|
blackberry
|
mobile
| null | null |
01/10/2012 17:39:08
|
off topic
|
How to Update Blackberry Contact list with latest server data
===
We have blackberry enterprise server which have emergency contacts for the application support updated in it.
I want to know how i can update balckberry contact list with the latest contact details from server.
Also what is the type of feed file needs to be sent to the balckberry device.Any reasearch on this will help me to solve my problem.
| 2 |
5,470,060 |
03/29/2011 08:55:40
| 681,707 |
03/29/2011 08:55:40
| 1 | 0 |
How do you get info from a MySql database, to appear inside a div instead of a table?
|
I'm trying to create an online shop / catalogue and I want to use divs/css instead of tables to populate data from my mySql database. Showing data from the database to user, for example a list of products with price, category, picture, quantity and so on...
An example would be like Amazon.coms layout but with divs/css instead of table.
Thanks in advance :)
|
mysql
|
database
|
div
|
catalog
| null |
03/29/2011 11:16:28
|
not a real question
|
How do you get info from a MySql database, to appear inside a div instead of a table?
===
I'm trying to create an online shop / catalogue and I want to use divs/css instead of tables to populate data from my mySql database. Showing data from the database to user, for example a list of products with price, category, picture, quantity and so on...
An example would be like Amazon.coms layout but with divs/css instead of table.
Thanks in advance :)
| 1 |
3,003,919 |
06/09/2010 07:46:25
| 243,213 |
01/04/2010 13:52:34
| 1,169 | 157 |
Problem in Installing Wordpress
|
I try to install Wordpress in a Windows Client with `WebPI` which provided by Microsoft.
Everything installed in my client and finally I saw successful message. with a lunch application link. When I click on it I see following error.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
How Can I resolve this issue
|
php
|
mysql
|
wordpress
|
installation
| null | null |
open
|
Problem in Installing Wordpress
===
I try to install Wordpress in a Windows Client with `WebPI` which provided by Microsoft.
Everything installed in my client and finally I saw successful message. with a lunch application link. When I click on it I see following error.
Your PHP installation appears to be missing the MySQL extension which is required by WordPress.
How Can I resolve this issue
| 0 |
2,410,335 |
03/09/2010 15:50:32
| 164,497 |
08/27/2009 20:51:08
| 10 | 1 |
Need C# OCR Library to Convert Image to Text
|
I would like a library (preferably free) that is capable to read characters from an image and convert them to text. The input I will have is not a document, but a set of bitmaps that contain only one character each, and return a character in ASCII format for each bitmap.
The format of the input bitmap will be binarized and the size can be changed from 10*10 pixels to about 100*100 pixels.
Thanks for any help provided.
|
c#
|
ocr
|
recognition
|
image-processing
|
text-recognition
|
07/05/2012 16:03:49
|
not constructive
|
Need C# OCR Library to Convert Image to Text
===
I would like a library (preferably free) that is capable to read characters from an image and convert them to text. The input I will have is not a document, but a set of bitmaps that contain only one character each, and return a character in ASCII format for each bitmap.
The format of the input bitmap will be binarized and the size can be changed from 10*10 pixels to about 100*100 pixels.
Thanks for any help provided.
| 4 |
3,363,016 |
07/29/2010 13:35:48
| 148,956 |
08/01/2009 13:27:48
| 849 | 2 |
How to restrict access file from Apache Server?
|
If I allow user to upload file, after user uploaded the file, the file will go to
> wwww.someplace.com/public_file/... ....
So, everybody can get access the file. But I would like to make some restrictions on that. For example, I want to reduce the downloading speed for non-login users. How can I do that? Also, if I want to limit the user to get the files if he/she don't have a user right... ... For example, if some user upload to
wwww.someplace.com/secret_place/... ...
Only the user have some rights, can get access to this place... ...How can I do that? Should I do this in the web application and the Apache Server config too? Thank you.
|
security
|
server
| null | null | null | null |
open
|
How to restrict access file from Apache Server?
===
If I allow user to upload file, after user uploaded the file, the file will go to
> wwww.someplace.com/public_file/... ....
So, everybody can get access the file. But I would like to make some restrictions on that. For example, I want to reduce the downloading speed for non-login users. How can I do that? Also, if I want to limit the user to get the files if he/she don't have a user right... ... For example, if some user upload to
wwww.someplace.com/secret_place/... ...
Only the user have some rights, can get access to this place... ...How can I do that? Should I do this in the web application and the Apache Server config too? Thank you.
| 0 |
4,362,059 |
12/05/2010 23:49:12
| 231,677 |
12/14/2009 22:18:58
| 240 | 213 |
Is it worth to ensure that non-callable Python classes do not get called?
|
If yes, can you suggest a better way than below? Please elaborate/justify.
class X:
...
if __name__ == '__main__':
# TODO: Should we bother doing this?
errorMessage = 'This class is not meant to have a main method. Do not execute directly.'
print(errorMessage)
raise Error(errorMessage)
|
python
|
main-method
| null | null | null | null |
open
|
Is it worth to ensure that non-callable Python classes do not get called?
===
If yes, can you suggest a better way than below? Please elaborate/justify.
class X:
...
if __name__ == '__main__':
# TODO: Should we bother doing this?
errorMessage = 'This class is not meant to have a main method. Do not execute directly.'
print(errorMessage)
raise Error(errorMessage)
| 0 |
5,876,668 |
05/03/2011 22:54:19
| 400,589 |
07/23/2010 19:11:20
| 85 | 6 |
Looking for a good primer on writing GUI Applications using .NET (any language)
|
I have seen GUI applications written the wrong way so many times I am wondering if there is a good guide on how to write a solid Winforms/WPF app. Problems that I constantly see are that the GUI thread is stuck while a long-running task is running or just plain stops refreshing (yes, I know - needs threading). But is there a code template/design pattern I can use when reacting to mouse clicks or button presses. Should there be a processing thread always running in the GUI app? Basically, how do I write a kick-ass Winforms Application that is easy to maintain and doesn't have any quirky refresh bugs.
|
c#
|
.net
|
vb.net
| null | null |
05/06/2011 03:04:46
|
not a real question
|
Looking for a good primer on writing GUI Applications using .NET (any language)
===
I have seen GUI applications written the wrong way so many times I am wondering if there is a good guide on how to write a solid Winforms/WPF app. Problems that I constantly see are that the GUI thread is stuck while a long-running task is running or just plain stops refreshing (yes, I know - needs threading). But is there a code template/design pattern I can use when reacting to mouse clicks or button presses. Should there be a processing thread always running in the GUI app? Basically, how do I write a kick-ass Winforms Application that is easy to maintain and doesn't have any quirky refresh bugs.
| 1 |
8,656,187 |
12/28/2011 12:57:46
| 371,778 |
06/21/2010 01:12:14
| 441 | 16 |
One Application to run on TV and Tablet (with gps)
|
I have a Honeycomb application that my desire was it would run on both tablet and GoogleTV. I have code in my application to handle situations differently dependent upon if the application is on a tv or tablet.
My application is not showing up on the GoogleTV market. I have included in my manifest:
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
and
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
Does anyone know that if by declaring permission of ...LOCATION would cause it not to be seen in the market? If so, is there a way to include this code side if NOT tv?
|
android
|
android-manifest
|
google-tv
| null | null | null |
open
|
One Application to run on TV and Tablet (with gps)
===
I have a Honeycomb application that my desire was it would run on both tablet and GoogleTV. I have code in my application to handle situations differently dependent upon if the application is on a tv or tablet.
My application is not showing up on the GoogleTV market. I have included in my manifest:
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
and
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>
Does anyone know that if by declaring permission of ...LOCATION would cause it not to be seen in the market? If so, is there a way to include this code side if NOT tv?
| 0 |
5,405,344 |
03/23/2011 12:38:52
| 621,698 |
02/17/2011 16:00:58
| 48 | 0 |
i am passing models to radiobutton, how can i make one as default?
|
passing a model to radiobutton which has three different values for example
<%: Html:RadioButtonListFor(model=>model.Country, Model.Countries, new {@class="countrytype"})%>
these countries has three values U.S, Canada, Other. But i want U.S to be selected by default. How can my do that?
|
asp.net-mvc-2
|
defaultbutton
|
html.radiobuttonlist
| null | null | null |
open
|
i am passing models to radiobutton, how can i make one as default?
===
passing a model to radiobutton which has three different values for example
<%: Html:RadioButtonListFor(model=>model.Country, Model.Countries, new {@class="countrytype"})%>
these countries has three values U.S, Canada, Other. But i want U.S to be selected by default. How can my do that?
| 0 |
10,031,875 |
04/05/2012 15:53:35
| 489,041 |
10/27/2010 15:34:54
| 2,762 | 94 |
Cant import dll in C++ application
|
I have a dll called `hecom32.dll`. I want to use this in my application. I acll the following:
#import "hecom32.dll"
And I get the following error:
enter Error 1 error C1083: Cannot open type library file: 'c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\hecom32.dll': Error loading type library/DLL. c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\johnny.cpp 6 1 Johnny
Obviously it cant add it. I am not sure however to determine what is wrong with it. Is there some way that I can analyze the file to see why it cant be imported. Is there a different way to use the functions in the dll?
I am using Visual Studio 2010
|
c++
|
visual-studio-2010
|
dll
| null | null | null |
open
|
Cant import dll in C++ application
===
I have a dll called `hecom32.dll`. I want to use this in my application. I acll the following:
#import "hecom32.dll"
And I get the following error:
enter Error 1 error C1083: Cannot open type library file: 'c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\hecom32.dll': Error loading type library/DLL. c:\users\dvargo\documents\visual studio 2010\projects\johnny\johnny\johnny.cpp 6 1 Johnny
Obviously it cant add it. I am not sure however to determine what is wrong with it. Is there some way that I can analyze the file to see why it cant be imported. Is there a different way to use the functions in the dll?
I am using Visual Studio 2010
| 0 |
10,782,450 |
05/28/2012 09:39:55
| 1,421,381 |
05/28/2012 09:26:25
| 1 | 0 |
Display Result in another activity
|
I am a newbie in android development, so plz try to explain complex steps.
I want to know what codes to write for the following process:-
**Activity1** takes number input via **EditText** then perform some actions on it, lets say it multiply it with 2, then send *this new number* to another activity **Activity2** where it is displayed.
Mainly i want to know how to display the new number in an activity.
Thnx in Advance.
|
android
|
activity
| null | null | null |
05/29/2012 11:26:38
|
not a real question
|
Display Result in another activity
===
I am a newbie in android development, so plz try to explain complex steps.
I want to know what codes to write for the following process:-
**Activity1** takes number input via **EditText** then perform some actions on it, lets say it multiply it with 2, then send *this new number* to another activity **Activity2** where it is displayed.
Mainly i want to know how to display the new number in an activity.
Thnx in Advance.
| 1 |
3,634,779 |
09/03/2010 10:15:35
| 433,659 |
08/28/2010 11:27:09
| 14 | 0 |
which better ? jquery and YUI
|
hi all which one am i use jquery and YUI. which one is better jquery and YUI or another javascript library or framework
|
javascript
|
jquery
|
yui
| null | null |
09/03/2010 10:23:04
|
not constructive
|
which better ? jquery and YUI
===
hi all which one am i use jquery and YUI. which one is better jquery and YUI or another javascript library or framework
| 4 |
8,425,999 |
12/08/2011 04:03:37
| 1,058,296 |
11/21/2011 17:33:24
| 21 | 0 |
Upgrade Java socket to encrypted after issue starttls
|
Can i connect to a port (Eg:5222) and request for tls (starttls) in java? which Socket should i use for that?
what i want is talk to the server without encryption before issuing starttls and upgrade socket to Encrypted after that.
|
java
|
sockets
|
starttls
| null | null | null |
open
|
Upgrade Java socket to encrypted after issue starttls
===
Can i connect to a port (Eg:5222) and request for tls (starttls) in java? which Socket should i use for that?
what i want is talk to the server without encryption before issuing starttls and upgrade socket to Encrypted after that.
| 0 |
6,907,238 |
08/02/2011 04:27:23
| 588,521 |
01/25/2011 04:55:28
| 242 | 21 |
doing https using a certificate signed by CA that Android trusts by default
|
I tested my app's https capability with a self-signed certificate. To do this, I had to create a custom keystore to contain the self-signed certificate ([here][1]).
But what if I am going to use a certificate signed by CA that Android trusts by default? I found [a link][2] about how to incorporate multiple keystores into the app, also [this link][3] about how to include default keystore.
If I don't bother to do these and just use DefaultHttpClient(), will it trust all certificates from phone's default keystore (cacerts.bks)?
[1]: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html
[2]: http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https
[3]: http://comments.gmane.org/gmane.comp.handhelds.android.devel/86512
|
android
|
ssl
|
https
|
httpclient
| null | null |
open
|
doing https using a certificate signed by CA that Android trusts by default
===
I tested my app's https capability with a self-signed certificate. To do this, I had to create a custom keystore to contain the self-signed certificate ([here][1]).
But what if I am going to use a certificate signed by CA that Android trusts by default? I found [a link][2] about how to incorporate multiple keystores into the app, also [this link][3] about how to include default keystore.
If I don't bother to do these and just use DefaultHttpClient(), will it trust all certificates from phone's default keystore (cacerts.bks)?
[1]: http://blog.crazybob.org/2010/02/android-trusting-ssl-certificates.html
[2]: http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https
[3]: http://comments.gmane.org/gmane.comp.handhelds.android.devel/86512
| 0 |
2,128,580 |
01/24/2010 20:10:58
| 64,653 |
02/10/2009 16:32:29
| 61 | 1 |
Actionscript strange coords after removeChild is called
|
Can anyone help me make sense of the following?
I create a few squared sprites and then remove the first one
and display the coords.
The result is:
(x=0, y=0, w=208, h=40) 0 208
(x=42, y=0, w=166, h=40) 0 166
The x coordinate is still 0, though width has changed,
getBounds shows correct values.
I would expect x to change as well.
Because of the wrong value of x, globalToLocal and localToGlobal work incorrectly.
If you click somewhere on the left side of the second (still visible) rectangle
you get:
`2 28 (x=2, y=28)`
which is good for nothing. The values in brackets should be in stage coords and they are not.
The code:
public function test():void {
var s:Sprite;
var i:int;
var arr:Array = new Array();
for (i = 0; i < 5; ++i)
{
s = new Sprite();
s.graphics.beginFill(0x999);
s.graphics.drawRect(0, 0, 40, 40);
s.graphics.endFill();
s.x = i * 42;
arr.push(s);
addChild(s);
}
trace(this.getBounds(stage), x, width);
removeChild(arr[0]); arr[0] = null;
trace(this.getBounds(stage), x, width);
addEventListener(MouseEvent.CLICK, click);
}
private function click(e:MouseEvent):void {
trace(e.localX, e.localY, localToGlobal(new Point(e.localX, e.localY)));
}
|
flash
|
actionscript
|
removechild
|
coordinates
|
sprite
| null |
open
|
Actionscript strange coords after removeChild is called
===
Can anyone help me make sense of the following?
I create a few squared sprites and then remove the first one
and display the coords.
The result is:
(x=0, y=0, w=208, h=40) 0 208
(x=42, y=0, w=166, h=40) 0 166
The x coordinate is still 0, though width has changed,
getBounds shows correct values.
I would expect x to change as well.
Because of the wrong value of x, globalToLocal and localToGlobal work incorrectly.
If you click somewhere on the left side of the second (still visible) rectangle
you get:
`2 28 (x=2, y=28)`
which is good for nothing. The values in brackets should be in stage coords and they are not.
The code:
public function test():void {
var s:Sprite;
var i:int;
var arr:Array = new Array();
for (i = 0; i < 5; ++i)
{
s = new Sprite();
s.graphics.beginFill(0x999);
s.graphics.drawRect(0, 0, 40, 40);
s.graphics.endFill();
s.x = i * 42;
arr.push(s);
addChild(s);
}
trace(this.getBounds(stage), x, width);
removeChild(arr[0]); arr[0] = null;
trace(this.getBounds(stage), x, width);
addEventListener(MouseEvent.CLICK, click);
}
private function click(e:MouseEvent):void {
trace(e.localX, e.localY, localToGlobal(new Point(e.localX, e.localY)));
}
| 0 |
3,329,827 |
07/25/2010 15:45:54
| 256,138 |
01/21/2010 19:50:20
| 812 | 68 |
C++ ifstream UTF8 first characters
|
1. Why does a file saved as UTF8 (in Notepad++) not have this character in the beginning of the fstream I opened to it in my c++ program?
> ´╗┐
I have no idea what it is, I just know that it's not there when I save to ASCII.
2. How can I check the encoding of a file (ASCII or UTF8, everyhting else will be rejected ;) ) in c++. Is it exactly these characters?
Thanks!
|
c++
|
utf-8
|
ascii
|
fstream
| null | null |
open
|
C++ ifstream UTF8 first characters
===
1. Why does a file saved as UTF8 (in Notepad++) not have this character in the beginning of the fstream I opened to it in my c++ program?
> ´╗┐
I have no idea what it is, I just know that it's not there when I save to ASCII.
2. How can I check the encoding of a file (ASCII or UTF8, everyhting else will be rejected ;) ) in c++. Is it exactly these characters?
Thanks!
| 0 |
2,260,258 |
02/14/2010 05:52:45
| 257,670 |
01/24/2010 03:35:46
| 693 | 54 |
Is NHibernate Contrib still alive?
|
Does anyone use it?
I don't found they repository, and here I don't see any questions about it.
Is this project still alive?
|
nhibernate-contrib
|
nhibernate
| null | null | null |
09/16/2011 10:03:48
|
too localized
|
Is NHibernate Contrib still alive?
===
Does anyone use it?
I don't found they repository, and here I don't see any questions about it.
Is this project still alive?
| 3 |
10,552,055 |
05/11/2012 13:12:36
| 72,443 |
03/01/2009 11:57:20
| 4,046 | 243 |
algorithms that take advantage of multiple cores
|
I have to build an application that take full advantage of the available processor(s) cores for a demonstration purpose... could anyone please suggest something ? thank you for your time
|
multithreading
| null | null | null | null |
05/11/2012 15:54:03
|
not a real question
|
algorithms that take advantage of multiple cores
===
I have to build an application that take full advantage of the available processor(s) cores for a demonstration purpose... could anyone please suggest something ? thank you for your time
| 1 |
7,328,465 |
09/07/2011 03:08:41
| 127,320 |
06/23/2009 03:11:55
| 12,040 | 686 |
Sports league scheduling algorithm
|
I am building a small website for volleyball (personal interest). Appreciate help in algorithm for scheduling the games such that
1. A game lasts for 30 mins
2. The schedule is evenly distributed i.e. a team is not required to play consecutively
3. Each team is playing in approx equally distributed intervals i.e. a team shouldn't play their 1st game at 8 AM and wait until evening for their next 2 games
Regards.
|
java
|
algorithm
| null | null | null |
09/07/2011 04:29:08
|
too localized
|
Sports league scheduling algorithm
===
I am building a small website for volleyball (personal interest). Appreciate help in algorithm for scheduling the games such that
1. A game lasts for 30 mins
2. The schedule is evenly distributed i.e. a team is not required to play consecutively
3. Each team is playing in approx equally distributed intervals i.e. a team shouldn't play their 1st game at 8 AM and wait until evening for their next 2 games
Regards.
| 3 |
10,057,523 |
04/07/2012 19:15:23
| 467,255 |
10/05/2010 20:03:40
| 1,013 | 42 |
Get nested fields with MongoDB shell
|
I've users collection with many watchlists fields which have many inner field too. I need to find for each user in users collection, the "arrangeable_values" (first field of watchlists field ) for each "watchlists".
How can I do that with mongodb shell ?
Here is an example of data model :
> db.users.findOne({'nickname': 'superj'})
{
"_id" : ObjectId("4f6c42f6018a590001000001"),
"nickname" : "superj",
"provider" : "github",
"user_hash" : null,
"watchlists" : [
{
"_id" : ObjectId("4f6c42f7018a590001000002"),
"arrangeable_values" : {
"description" : "My introduction presentation to node.js along with sample code at various stages of building a simple RESTful web service with journey, cradle, winston, optimist, and http-console.",
"tag" : "",
"html_url" : "https://github.com/indexzero/nodejs-intro"
},
"avatar_url" : "https://secure.gravatar.com/avatar/d43e8ea63b61e7669ded5b9d3c2e980f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"created_at" : ISODate("2011-02-01T10:20:29Z"),
"description" : "My introduction presentation to node.js along with sample code at various stages of building a simple RESTful web service with journey, cradle, winston, optimist, and http-console.",
"fork_" : false,
"forks" : 13,
"html_url" : "https://github.com/indexzero/nodejs-intro",
"pushed_at" : ISODate("2011-09-12T17:54:58Z"),
"searchable_values" : [
"description:my",
"description:introduction",
"description:presentation",
"html_url:indexzero",
"html_url:nodejs",
"html_url:intro"
],
"tags_array" : [ ],
"watchers" : 75
}
]
}
|
database
|
shell
|
mongodb
|
nosql
|
criteria
| null |
open
|
Get nested fields with MongoDB shell
===
I've users collection with many watchlists fields which have many inner field too. I need to find for each user in users collection, the "arrangeable_values" (first field of watchlists field ) for each "watchlists".
How can I do that with mongodb shell ?
Here is an example of data model :
> db.users.findOne({'nickname': 'superj'})
{
"_id" : ObjectId("4f6c42f6018a590001000001"),
"nickname" : "superj",
"provider" : "github",
"user_hash" : null,
"watchlists" : [
{
"_id" : ObjectId("4f6c42f7018a590001000002"),
"arrangeable_values" : {
"description" : "My introduction presentation to node.js along with sample code at various stages of building a simple RESTful web service with journey, cradle, winston, optimist, and http-console.",
"tag" : "",
"html_url" : "https://github.com/indexzero/nodejs-intro"
},
"avatar_url" : "https://secure.gravatar.com/avatar/d43e8ea63b61e7669ded5b9d3c2e980f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png",
"created_at" : ISODate("2011-02-01T10:20:29Z"),
"description" : "My introduction presentation to node.js along with sample code at various stages of building a simple RESTful web service with journey, cradle, winston, optimist, and http-console.",
"fork_" : false,
"forks" : 13,
"html_url" : "https://github.com/indexzero/nodejs-intro",
"pushed_at" : ISODate("2011-09-12T17:54:58Z"),
"searchable_values" : [
"description:my",
"description:introduction",
"description:presentation",
"html_url:indexzero",
"html_url:nodejs",
"html_url:intro"
],
"tags_array" : [ ],
"watchers" : 75
}
]
}
| 0 |
11,555,997 |
07/19/2012 07:35:58
| 1,239,729 |
02/29/2012 08:22:37
| 1 | 0 |
C/C++ int[] vs int* (pointers vs. array notation). What difference?
|
I know that arrays in C are just pointers to sequentially stored data. But what differences imply the difference in notation [] and *. I mean in ALL possible usage context.
For example:
char c[] = "test";
if you provide this instruction in a function body it will allocate the string on a stack while
char* c = "test";
will point to a data (readonly) segment.
Can you list all the differences between these two notations in ALL usage contexts to form a clear general view.
|
c++
|
c
|
arrays
|
pointers
| null |
07/19/2012 10:36:02
|
not a real question
|
C/C++ int[] vs int* (pointers vs. array notation). What difference?
===
I know that arrays in C are just pointers to sequentially stored data. But what differences imply the difference in notation [] and *. I mean in ALL possible usage context.
For example:
char c[] = "test";
if you provide this instruction in a function body it will allocate the string on a stack while
char* c = "test";
will point to a data (readonly) segment.
Can you list all the differences between these two notations in ALL usage contexts to form a clear general view.
| 1 |
10,774,880 |
05/27/2012 14:56:29
| 1,276,473 |
03/18/2012 03:14:08
| 188 | 0 |
Is there something wrong with my implementation of "fork" system call?
|
In my implementation of "fork", data is copied from parent's space to child's.With the page enabled(page enabled in cr0 register is set), I insert a fake page to parent's page, and set it an empty frame, data is copied from parent's real page to this fake page;child's page with the same address as parent's is set to point the same frame as the fake page. Since more than one pages to be copied, the fake page's physical address changes to different empty frames,so that all the real pages can be copied.This fake page is deleted until parent's all real pages are copied completely, and swept from the tlb.
But this resolution runs strangely under my emulator QEMU, it runs differently with some garbage codes(like printf) inserted, sometimes success, sometimes fails.
To the most strange, it runs differently, when I set different breakpoints,and look up physical memory with qemu monitor at diffent breakpoints. I don't know whether it does matter to qemu itself or what is the matter with my codes?
|
c
|
linux
|
operating-system
|
linux-kernel
|
kernel
|
05/29/2012 21:27:24
|
not a real question
|
Is there something wrong with my implementation of "fork" system call?
===
In my implementation of "fork", data is copied from parent's space to child's.With the page enabled(page enabled in cr0 register is set), I insert a fake page to parent's page, and set it an empty frame, data is copied from parent's real page to this fake page;child's page with the same address as parent's is set to point the same frame as the fake page. Since more than one pages to be copied, the fake page's physical address changes to different empty frames,so that all the real pages can be copied.This fake page is deleted until parent's all real pages are copied completely, and swept from the tlb.
But this resolution runs strangely under my emulator QEMU, it runs differently with some garbage codes(like printf) inserted, sometimes success, sometimes fails.
To the most strange, it runs differently, when I set different breakpoints,and look up physical memory with qemu monitor at diffent breakpoints. I don't know whether it does matter to qemu itself or what is the matter with my codes?
| 1 |
11,472,880 |
07/13/2012 14:49:30
| 1,480,796 |
06/25/2012 18:32:20
| 35 | 0 |
How to call specific keys from a dictionary
|
Alright,
So I have a dictionary as following:
{'A': ('0.1', '0.1'), 'C': ('0.3', '0.5'), 'B': ('0.2', '0.9'), 'D': ('0.4', '0.5'), 'I': ('3.0', '0.9'), 'H': ('2.2', '0.9')}
And the keys and corresponding 2 values are defined as such:
dict[nodeName] = nodeDistance, parentD
The variable key names are being called by [nodeName] which is defined by a split of a previous string, inputing values A, B, C, D, H and I as 6 different keys in the dictionary. So my question is, how would i call the specific key of 'B' or 'I', because I am currently geting an error:
KeyError: 'B'
whenever I attempt to call key 'B' first value with this:
dict['B'][0]
Would there be any way of calling the individual keys without using 'nodeName' as the locator?
Thanks!
|
python
|
input
|
dictionary
|
value
|
key
|
07/14/2012 00:02:53
|
too localized
|
How to call specific keys from a dictionary
===
Alright,
So I have a dictionary as following:
{'A': ('0.1', '0.1'), 'C': ('0.3', '0.5'), 'B': ('0.2', '0.9'), 'D': ('0.4', '0.5'), 'I': ('3.0', '0.9'), 'H': ('2.2', '0.9')}
And the keys and corresponding 2 values are defined as such:
dict[nodeName] = nodeDistance, parentD
The variable key names are being called by [nodeName] which is defined by a split of a previous string, inputing values A, B, C, D, H and I as 6 different keys in the dictionary. So my question is, how would i call the specific key of 'B' or 'I', because I am currently geting an error:
KeyError: 'B'
whenever I attempt to call key 'B' first value with this:
dict['B'][0]
Would there be any way of calling the individual keys without using 'nodeName' as the locator?
Thanks!
| 3 |
10,042,811 |
04/06/2012 11:27:50
| 1,205,726 |
02/12/2012 22:07:21
| 70 | 0 |
windows vista recover from usb
|
I have a problem with my windows boot, it asks me to insert DVD, I have the DVD but the reader does not work well.
yesterday I download windows vista Vista SP1 32 Fr Original par Pastyx, it is it possible to correct erros if I use it from usb?
|
windows
|
usb
|
windows-vista
|
system
|
recovery
|
04/06/2012 11:56:37
|
off topic
|
windows vista recover from usb
===
I have a problem with my windows boot, it asks me to insert DVD, I have the DVD but the reader does not work well.
yesterday I download windows vista Vista SP1 32 Fr Original par Pastyx, it is it possible to correct erros if I use it from usb?
| 2 |
3,621,433 |
09/01/2010 19:25:32
| 437,277 |
07/16/2010 10:41:00
| 1 | 0 |
How to visualize Hash data structure in ruby?
|
I have hash object, that structure looks similar to this:
{:category1 =>
{:subcategory1 =>
[
{:article => "some article", :date => "2010-04-04"},
...
],
:subc2 => [...]
},
:category2 => {...},
...
}
How can I visualize it with graph in ruby?
Is there a simple method/gem/lib that convert this Hash to DOT?
|
ruby
|
hash
|
graph
|
dot
| null | null |
open
|
How to visualize Hash data structure in ruby?
===
I have hash object, that structure looks similar to this:
{:category1 =>
{:subcategory1 =>
[
{:article => "some article", :date => "2010-04-04"},
...
],
:subc2 => [...]
},
:category2 => {...},
...
}
How can I visualize it with graph in ruby?
Is there a simple method/gem/lib that convert this Hash to DOT?
| 0 |
7,789,430 |
10/17/2011 04:37:17
| 807,928 |
06/21/2011 06:49:03
| 41 | 0 |
ObjectIDGenerator implementation
|
I was attempting to use ObjectIDGenerator in C# to generate a unique ID during serialization, however, this class is not available in the XBox360 or Windows Phone 7 .NET frameworks (they use a compact version of .NET). I implemented a version using a dictionary of Object to Int64 and was able to get a fully working version up, however, the performance is unsatisfactory. I'm serializing on the order of tens of thousands of objects, and currently this is the greatest bottleneck in save/load performance. Using the actual .NET implementation on PC it takes about 0.3 seconds to serialize about 20,000 objects. Using my implementation, it takes about 6 seconds.
In profiling, I found that the heavy hitters were .TryGetValue and .Add on the dictionary (which makes sense since it's both indexing and adding to the hash map). More importantly, the virtual equality operator was being called instead of simply comparing references, so I implemented an IEqualityComparer that only used ReferenceEquals (this resulted in a speed increase).
Does anyone have an insight into a better implementation of ObjectIDGenerator? Thanks for your help!
My Implementation: http://pastebin.com/H1skZwNK
[Edit]
Another note, the results of profiling says that the object comparison / ReferenceEquals is still the bottleneck, with a hit count of 43,000,000. I'm wondering if there's a way to store data along side this object without having to look it up in a hash map...
|
c#
|
.net
|
optimization
|
xna
|
cross-platform
| null |
open
|
ObjectIDGenerator implementation
===
I was attempting to use ObjectIDGenerator in C# to generate a unique ID during serialization, however, this class is not available in the XBox360 or Windows Phone 7 .NET frameworks (they use a compact version of .NET). I implemented a version using a dictionary of Object to Int64 and was able to get a fully working version up, however, the performance is unsatisfactory. I'm serializing on the order of tens of thousands of objects, and currently this is the greatest bottleneck in save/load performance. Using the actual .NET implementation on PC it takes about 0.3 seconds to serialize about 20,000 objects. Using my implementation, it takes about 6 seconds.
In profiling, I found that the heavy hitters were .TryGetValue and .Add on the dictionary (which makes sense since it's both indexing and adding to the hash map). More importantly, the virtual equality operator was being called instead of simply comparing references, so I implemented an IEqualityComparer that only used ReferenceEquals (this resulted in a speed increase).
Does anyone have an insight into a better implementation of ObjectIDGenerator? Thanks for your help!
My Implementation: http://pastebin.com/H1skZwNK
[Edit]
Another note, the results of profiling says that the object comparison / ReferenceEquals is still the bottleneck, with a hit count of 43,000,000. I'm wondering if there's a way to store data along side this object without having to look it up in a hash map...
| 0 |
11,427,614 |
07/11/2012 07:25:08
| 806,106 |
06/20/2011 06:05:02
| 605 | 14 |
Issue in displaying activity as an dialog
|
I have an activity class. For this Activity class i have an xml layout. I want to display this activity class as an dialog, So to do so in the manifest i do the following change.
<activity
android:name=".AlarmDialogActivity"
android:theme="@android:style/Theme.Dialog">
</activity>
When i run my app the activity class display as dilaog, But the width of the is compressed, it not take the full screen of the device..why this happen, can anyone help me to solve this out.
**Code for xml layout**
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_alarm_dialog"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#E0D5B1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
<TextView
android:id="@+id/dialog_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/dialog_title_text"
android:textColor="#e89192"
android:textSize="18dp" >
</TextView>
<ListView
android:id="@+id/alarm_list_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginTop="10dp"
android:cacheColorHint="#00000000"
android:divider="@null"
android:dividerHeight="0dp"
android:listSelector="#00000000" >
</ListView>
<LinearLayout
android:id="@+id/bottom_control_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:gravity="center_horizontal|center_vertical" >
<Button
android:id="@+id/button_dismiss"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_dismiss_text"
android:textColor="#121212"
android:textSize="18dp" >
</Button>
</LinearLayout>
</LinearLayout>
**Screenshot of the dialog**
![enter image description here][1]
[1]: http://i.stack.imgur.com/TdyEA.png
|
android
| null | null | null | null | null |
open
|
Issue in displaying activity as an dialog
===
I have an activity class. For this Activity class i have an xml layout. I want to display this activity class as an dialog, So to do so in the manifest i do the following change.
<activity
android:name=".AlarmDialogActivity"
android:theme="@android:style/Theme.Dialog">
</activity>
When i run my app the activity class display as dilaog, But the width of the is compressed, it not take the full screen of the device..why this happen, can anyone help me to solve this out.
**Code for xml layout**
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_alarm_dialog"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="#E0D5B1"
android:gravity="center_vertical|center_horizontal"
android:orientation="vertical" >
<TextView
android:id="@+id/dialog_title_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:text="@string/dialog_title_text"
android:textColor="#e89192"
android:textSize="18dp" >
</TextView>
<ListView
android:id="@+id/alarm_list_view"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="15dp"
android:layout_marginTop="10dp"
android:cacheColorHint="#00000000"
android:divider="@null"
android:dividerHeight="0dp"
android:listSelector="#00000000" >
</ListView>
<LinearLayout
android:id="@+id/bottom_control_bar"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
android:gravity="center_horizontal|center_vertical" >
<Button
android:id="@+id/button_dismiss"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/button_dismiss_text"
android:textColor="#121212"
android:textSize="18dp" >
</Button>
</LinearLayout>
</LinearLayout>
**Screenshot of the dialog**
![enter image description here][1]
[1]: http://i.stack.imgur.com/TdyEA.png
| 0 |
5,962,866 |
05/11/2011 10:36:39
| 748,462 |
05/11/2011 10:36:39
| 1 | 0 |
PHP AMI Connection - saving incoming and outgoing calls to a database is not working
|
Using the AMI (API connection with an Asteriskserver so I can use a PHP Socket connection) I'm trying to catch the recieving data using PHP in a way that I can record outgoing and incomming calls for the CRM system (webbased) used at the company I work for.
But I'm not getting the result I am hoping for...
The full code can be found on PasteBin http://pastebin.com/AwRNBW2G
I catch the outgoing calls this way, and that works:
if($givenkey = array_search("Context: from-internal", $content)){
$calleridKey = $givenkey + 1;
$idSIP = $givenkey - 1;
$dialNumber = str_replace("Extension: 0","31",$content[$calleridKey]);
$dialNumber = str_replace("Extension: ", "", $dialNumber);
$fromSIP = str_replace("Channel: SIP/", "", $content[$idSIP]);
$fromSIP = substr($fromSIP, 0, 2);
$dialTime = date('r');
$uitgaand = array(
"Phonenumber" => $dialNumber,
"Type" => "Uitgaand",
"datetime" => $dialTime,
"SIP" => $fromSIP
);
The incomming calls are being catched this way, but that's not working properly:
if($givenkey = array_search("AppData: Using CallerID ", $content)){
if(array_search("Channel: SIP/31000000000", $content)+5 == $InCallKey = array_search("AppData: Using CallerID", $content)){
$calleridNum = explode('"',str_replace('AppData: Using CallerID "',"",$content[$InCallKey]));
$pickupSource = array_search("Source: SIP/31000000000", $content);
if($pickupSource+1 == $pickupKey = array_search("Destination: SIP/", $content)){
$pickupBy = str_replace("Destination: SIP/","",$content[$pickupkey]);
$pickupBy = substr($pickupBy, 0, 2);
$dialTime = date('r');
$inkomend = array(
"Phonenumber" => $calleridNum[0],
"Type" => "Binnenkomend",
"datetime" => $dialTime,
"SIP" => $pickupBy
);
I have the array that I make not available right now but, if necessary, I can save the array and post it here with personal data filtered.
I know that the code I'm using right now is not neat, but I wrote it with the goal: quick result. If I have a working code I will optimize it and clean it up. Tips about this are also very welcome. It's too bad that I cannot find any good documentation about this so I have to start from the beginning and could only find the working class that I'm using right now, however it's not very complete.
I had to write this part without any knowledge about VOIP or AMI or Asterisk.
To be short, here are my questions:
- How can I record incoming and outgoing calls to eventually save them in a database by using the AMI?
- How can I keep alive the connection with the server the best way? The method I'm using now is not optimal as the connection fails atleast once within 48 hours.
- Do you have tips or suggestions about optimizing the code and neater code-writing? And do you maybe know any functions that I could use instead of a function that I am using?
With regards,
Dempsey
> Since recently I get this error which
> I cannot solve properly. This error
> creates itself after about 15 minutes
> running. It would run atleast 24 hours
> before:
>
> PHP Notice: fwrite(): send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpami/AMILoader.php on line 147
> Net_AsteriskManagerException: Authorisation failed in /var/www/html/phpami/AMILoader.php on line 173
> #0 /var/www/html/phpami/AMILoader.php(173): Net_AsteriskManager-login('GEBRUIKERSNAAM','WACHTWOORD')
> #1 /var/www/html/phpami/AMILoader.php(306): Net_AsteriskManager-_sendCommand('Action: Ping???...')
> #2 /var/www/html/phpami/AMILoader.php(543): Net_AsteriskManager->ping()
> #3 {main}
>
> Can anyone help me with this too? The
> authorisation data is correct (it is
> using the same data in the whole
> script and it does get a connection).
> Also I don't get the response 'Action:
> Ping???...' which it says is being
> send by the script as command, but
> where do the three questionmarks and
> periods come from?
|
php
|
sockets
|
voip
|
asterisk
|
ami
| null |
open
|
PHP AMI Connection - saving incoming and outgoing calls to a database is not working
===
Using the AMI (API connection with an Asteriskserver so I can use a PHP Socket connection) I'm trying to catch the recieving data using PHP in a way that I can record outgoing and incomming calls for the CRM system (webbased) used at the company I work for.
But I'm not getting the result I am hoping for...
The full code can be found on PasteBin http://pastebin.com/AwRNBW2G
I catch the outgoing calls this way, and that works:
if($givenkey = array_search("Context: from-internal", $content)){
$calleridKey = $givenkey + 1;
$idSIP = $givenkey - 1;
$dialNumber = str_replace("Extension: 0","31",$content[$calleridKey]);
$dialNumber = str_replace("Extension: ", "", $dialNumber);
$fromSIP = str_replace("Channel: SIP/", "", $content[$idSIP]);
$fromSIP = substr($fromSIP, 0, 2);
$dialTime = date('r');
$uitgaand = array(
"Phonenumber" => $dialNumber,
"Type" => "Uitgaand",
"datetime" => $dialTime,
"SIP" => $fromSIP
);
The incomming calls are being catched this way, but that's not working properly:
if($givenkey = array_search("AppData: Using CallerID ", $content)){
if(array_search("Channel: SIP/31000000000", $content)+5 == $InCallKey = array_search("AppData: Using CallerID", $content)){
$calleridNum = explode('"',str_replace('AppData: Using CallerID "',"",$content[$InCallKey]));
$pickupSource = array_search("Source: SIP/31000000000", $content);
if($pickupSource+1 == $pickupKey = array_search("Destination: SIP/", $content)){
$pickupBy = str_replace("Destination: SIP/","",$content[$pickupkey]);
$pickupBy = substr($pickupBy, 0, 2);
$dialTime = date('r');
$inkomend = array(
"Phonenumber" => $calleridNum[0],
"Type" => "Binnenkomend",
"datetime" => $dialTime,
"SIP" => $pickupBy
);
I have the array that I make not available right now but, if necessary, I can save the array and post it here with personal data filtered.
I know that the code I'm using right now is not neat, but I wrote it with the goal: quick result. If I have a working code I will optimize it and clean it up. Tips about this are also very welcome. It's too bad that I cannot find any good documentation about this so I have to start from the beginning and could only find the working class that I'm using right now, however it's not very complete.
I had to write this part without any knowledge about VOIP or AMI or Asterisk.
To be short, here are my questions:
- How can I record incoming and outgoing calls to eventually save them in a database by using the AMI?
- How can I keep alive the connection with the server the best way? The method I'm using now is not optimal as the connection fails atleast once within 48 hours.
- Do you have tips or suggestions about optimizing the code and neater code-writing? And do you maybe know any functions that I could use instead of a function that I am using?
With regards,
Dempsey
> Since recently I get this error which
> I cannot solve properly. This error
> creates itself after about 15 minutes
> running. It would run atleast 24 hours
> before:
>
> PHP Notice: fwrite(): send of 16 bytes failed with errno=32 Broken pipe in /var/www/html/phpami/AMILoader.php on line 147
> Net_AsteriskManagerException: Authorisation failed in /var/www/html/phpami/AMILoader.php on line 173
> #0 /var/www/html/phpami/AMILoader.php(173): Net_AsteriskManager-login('GEBRUIKERSNAAM','WACHTWOORD')
> #1 /var/www/html/phpami/AMILoader.php(306): Net_AsteriskManager-_sendCommand('Action: Ping???...')
> #2 /var/www/html/phpami/AMILoader.php(543): Net_AsteriskManager->ping()
> #3 {main}
>
> Can anyone help me with this too? The
> authorisation data is correct (it is
> using the same data in the whole
> script and it does get a connection).
> Also I don't get the response 'Action:
> Ping???...' which it says is being
> send by the script as command, but
> where do the three questionmarks and
> periods come from?
| 0 |
9,019,009 |
01/26/2012 13:45:31
| 725,173 |
04/26/2011 10:17:21
| 8 | 1 |
Problems merging multiple objects into a complex object
|
I'm trying to merge these three objects into a single complex object:
public class Person {
private String name;
private List<Event> events;
// getters and setters
}
public class Event {
private String name;
private List<Gift> gifts;
// getters and setters
}
public class Gift {
private String name;
private String recipient;
private String eventName;
// getters and setters
}
My goal is to save the Person object in MongoDB using Morphia and this how I want my document laid out. I've created a document builder, of sorts, that combines lists of each object. Each Person gets a list of all Events, but can only receive specific Gifts. While my document builder does create a document that Morphia can persist, only the Gifts of that last recipient (sort order) are inserted into the Events for all Persons. Though for the correct Events.
public void merge() {
for (Person person : listOfPersons) {
for (Event event : listOfEvents) {
List<Gift> somePersonsGifts = new ArrayList<Gift>();
for (Gift gift : listOfGifts) {
if (person.getName().equals(gift.getRecipient()) && gift.getEventName().equals(event.getName())) {
somePersonsGifts.add(gift);
}
}
event.setGifts(somePersonsGifts);
}
person.setEvents(events)
}
}
If I modify the code slightly to process one person at a time by removing the outer loop and having the method take an argument for specific index of the Persons list:
public void merge(int p) {
Person person = listOfPersons.get(p);
//...and so on
I get one complete Person object with the correct gifts. If try to feed the this modified version into a loop, the problem comes back. I've tried using regular for-loops and synchronized collections. I've tried using Google Guava's ImmutableArrayList and still no luck. I know the problem is that I'm changing the lists while accessing them but I can't find anyway around it. I wrote a DAO that uses the MongoDB driver directly and it works properly, but it's a lot more code and quite ugly. I really want this approach to work, the answer is in front of me but I just can't see it. Any help would be greatly appreciated.
|
java
|
collections
|
concurrency
| null | null | null |
open
|
Problems merging multiple objects into a complex object
===
I'm trying to merge these three objects into a single complex object:
public class Person {
private String name;
private List<Event> events;
// getters and setters
}
public class Event {
private String name;
private List<Gift> gifts;
// getters and setters
}
public class Gift {
private String name;
private String recipient;
private String eventName;
// getters and setters
}
My goal is to save the Person object in MongoDB using Morphia and this how I want my document laid out. I've created a document builder, of sorts, that combines lists of each object. Each Person gets a list of all Events, but can only receive specific Gifts. While my document builder does create a document that Morphia can persist, only the Gifts of that last recipient (sort order) are inserted into the Events for all Persons. Though for the correct Events.
public void merge() {
for (Person person : listOfPersons) {
for (Event event : listOfEvents) {
List<Gift> somePersonsGifts = new ArrayList<Gift>();
for (Gift gift : listOfGifts) {
if (person.getName().equals(gift.getRecipient()) && gift.getEventName().equals(event.getName())) {
somePersonsGifts.add(gift);
}
}
event.setGifts(somePersonsGifts);
}
person.setEvents(events)
}
}
If I modify the code slightly to process one person at a time by removing the outer loop and having the method take an argument for specific index of the Persons list:
public void merge(int p) {
Person person = listOfPersons.get(p);
//...and so on
I get one complete Person object with the correct gifts. If try to feed the this modified version into a loop, the problem comes back. I've tried using regular for-loops and synchronized collections. I've tried using Google Guava's ImmutableArrayList and still no luck. I know the problem is that I'm changing the lists while accessing them but I can't find anyway around it. I wrote a DAO that uses the MongoDB driver directly and it works properly, but it's a lot more code and quite ugly. I really want this approach to work, the answer is in front of me but I just can't see it. Any help would be greatly appreciated.
| 0 |
3,027,552 |
06/12/2010 05:01:08
| 365,083 |
06/12/2010 05:01:08
| 1 | 0 |
A CMS based on Yii ?
|
i've been with Yii for a few months and before I use main CodeIgniter, SilverStripe in my projects. Does anyone know a good Yii based CMS such as SilverStripe based on Sapphire or EE based on CodeIgniter ?
My experience is working with Yii is much more easier and straightforward assuming you are good OOP coder but Yii is still young and there are not lot of samples that I can put together quickly for a real prodcution project.
A couple of YII based CMS I spotted at do not look really promising or maybe at a very early stage such as dotPlant, Web3CMS.
|
content-management-system
|
yii
| null | null | null |
02/12/2012 13:54:52
|
not constructive
|
A CMS based on Yii ?
===
i've been with Yii for a few months and before I use main CodeIgniter, SilverStripe in my projects. Does anyone know a good Yii based CMS such as SilverStripe based on Sapphire or EE based on CodeIgniter ?
My experience is working with Yii is much more easier and straightforward assuming you are good OOP coder but Yii is still young and there are not lot of samples that I can put together quickly for a real prodcution project.
A couple of YII based CMS I spotted at do not look really promising or maybe at a very early stage such as dotPlant, Web3CMS.
| 4 |
2,317,013 |
02/23/2010 09:32:55
| 251,173 |
01/14/2010 23:54:03
| 376 | 68 |
Online Payment options
|
I am writing an online music store (wow!). I have written a shopping cart that caters for user to buy either an individual track or an collection of tracks (album or user-created playlist) and it works like a charm.
I have also created a checkout button which redirects to a secure (https) page containing credit card form where users can buy online with their credit card.
This is now my issue:
1) Which Service provider should I go for that provides credit card facility? Bear in mind that in South Africa (my client base) doesn't have PayPal facility.
2) Is my way of doing this whole online purchasing the ideal way? If not, what is wrong with it or what should I do better it?
3) It has to be java compliant since I'm developing it in Java.
Thanks a ton!
|
java
|
payment-gateway
|
java-ee
| null | null | null |
open
|
Online Payment options
===
I am writing an online music store (wow!). I have written a shopping cart that caters for user to buy either an individual track or an collection of tracks (album or user-created playlist) and it works like a charm.
I have also created a checkout button which redirects to a secure (https) page containing credit card form where users can buy online with their credit card.
This is now my issue:
1) Which Service provider should I go for that provides credit card facility? Bear in mind that in South Africa (my client base) doesn't have PayPal facility.
2) Is my way of doing this whole online purchasing the ideal way? If not, what is wrong with it or what should I do better it?
3) It has to be java compliant since I'm developing it in Java.
Thanks a ton!
| 0 |
7,109,295 |
08/18/2011 14:43:05
| 846,835 |
07/15/2011 16:41:00
| 16 | 0 |
Open .dat files with a Hex Editor
|
I'm trying to Open up a series of .dat files with a Hex Editor thru the vba in excel and then start a copy and paste process. Does anybody know how one can open up a file using a program other than excel inside the vba in Excel? Also I have a few errors in the code that I've written.
test = count
Do While (test >= 0)
Workbooks.Open Filename:=AllFiles(test) 'Open .dat file in order of Highest to Lowest count index. ERROR: SUBSCRIPT OUT OF RANGE. Need to open .dat files with Hex Edit HOW?
test = test - 1
Loop
'How do I manipulate the Hex Editor program: HxD with vba excel??
|
while-loops
|
subscript
|
open-file
|
outofrangeexception
| null | null |
open
|
Open .dat files with a Hex Editor
===
I'm trying to Open up a series of .dat files with a Hex Editor thru the vba in excel and then start a copy and paste process. Does anybody know how one can open up a file using a program other than excel inside the vba in Excel? Also I have a few errors in the code that I've written.
test = count
Do While (test >= 0)
Workbooks.Open Filename:=AllFiles(test) 'Open .dat file in order of Highest to Lowest count index. ERROR: SUBSCRIPT OUT OF RANGE. Need to open .dat files with Hex Edit HOW?
test = test - 1
Loop
'How do I manipulate the Hex Editor program: HxD with vba excel??
| 0 |
6,951,310 |
08/05/2011 04:08:49
| 879,833 |
08/05/2011 04:08:49
| 1 | 0 |
Wireframing & Prototyping tools
|
I need to give a presentation contrasting the strengths and weaknesses of various website wireframe/prototyping tools.
Given the budget of our team (and the amount of copies we will need), we are specifically considering Axure vs Justinmind.
Would anyone like to weigh in on which one I should be recommending?
Any advice would be greatly appreciated, especially from people who have used both products or is an expert in one or the other.
Cheers,
Mitch
|
prototyping
| null | null | null | null |
10/14/2011 15:39:47
|
not constructive
|
Wireframing & Prototyping tools
===
I need to give a presentation contrasting the strengths and weaknesses of various website wireframe/prototyping tools.
Given the budget of our team (and the amount of copies we will need), we are specifically considering Axure vs Justinmind.
Would anyone like to weigh in on which one I should be recommending?
Any advice would be greatly appreciated, especially from people who have used both products or is an expert in one or the other.
Cheers,
Mitch
| 4 |
7,545,839 |
09/25/2011 13:38:42
| 954,708 |
09/20/2011 12:06:09
| 1 | 0 |
How to create custom annotation and callout bubble in iphone?
|
i want to create a custom annotation and callout bubble on MKMapView. I have to create annotations with 7 different images and the call out bubble in the same manner of default bubble with a different color and bigger in size and have to display three or four lines of text(labels). So how to create a custom annotation and callout bubble.
|
ios
|
mkmapview
|
mkannotationview
| null | null |
03/10/2012 14:58:55
|
not a real question
|
How to create custom annotation and callout bubble in iphone?
===
i want to create a custom annotation and callout bubble on MKMapView. I have to create annotations with 7 different images and the call out bubble in the same manner of default bubble with a different color and bigger in size and have to display three or four lines of text(labels). So how to create a custom annotation and callout bubble.
| 1 |
4,611,007 |
01/06/2011 01:34:16
| 564,822 |
01/06/2011 01:34:16
| 1 | 0 |
How to go 'back' 2 levels?
|
From the list view of my app, I can view a list of records or drill down and edit/update a record. After updating, I want to go directly back to the list view, bypassing a couple of intermediate pages - but I don't simply want to link_to(:action => list) - there's pagination involved. I want to go back to the exact 'list' page I came from. What's the best way? Pass a hidden arg somewhere with the page number? Is there an elegant way to accomplish this?
Thanks,
Joe
|
ruby-on-rails
| null | null | null | null | null |
open
|
How to go 'back' 2 levels?
===
From the list view of my app, I can view a list of records or drill down and edit/update a record. After updating, I want to go directly back to the list view, bypassing a couple of intermediate pages - but I don't simply want to link_to(:action => list) - there's pagination involved. I want to go back to the exact 'list' page I came from. What's the best way? Pass a hidden arg somewhere with the page number? Is there an elegant way to accomplish this?
Thanks,
Joe
| 0 |
11,055,352 |
06/15/2012 17:16:44
| 1,383,243 |
05/08/2012 22:43:57
| 1 | 0 |
Absolute positioned div not stacking correctly IE
|
I have code similar to the following:
<div class="container">
<div class="overlay">
// hover content
</div>
<img/>
</div>
.container{
position:relative;
}
.overlay{
display:block;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
Basically, when someone hovers on the overlay div the content of that div is displayed.
This works great in every browser, except IE (of course)
In IE it the overlay div is behind the image, so the hover doesn't work.
If put a background (color or image) on the overlay div it will position over the image and work, but I want to avoid using a background.
I have also tried working with the z-index, with no success. Even with a higher z-index, and in a defined z-index stack (for IE), it still is behind the image.
This is in all IE versions 6-9.
Does anyone know any workarounds/fixes for this?
|
internet-explorer
|
absolute-positioning
| null | null | null | null |
open
|
Absolute positioned div not stacking correctly IE
===
I have code similar to the following:
<div class="container">
<div class="overlay">
// hover content
</div>
<img/>
</div>
.container{
position:relative;
}
.overlay{
display:block;
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}
Basically, when someone hovers on the overlay div the content of that div is displayed.
This works great in every browser, except IE (of course)
In IE it the overlay div is behind the image, so the hover doesn't work.
If put a background (color or image) on the overlay div it will position over the image and work, but I want to avoid using a background.
I have also tried working with the z-index, with no success. Even with a higher z-index, and in a defined z-index stack (for IE), it still is behind the image.
This is in all IE versions 6-9.
Does anyone know any workarounds/fixes for this?
| 0 |
3,936,217 |
10/14/2010 18:15:14
| 328,121 |
04/28/2010 16:58:37
| 11 | 4 |
Logs queue in multithreaded application which dump information to DB (server side application)?
|
Could you advise me how to implements queue in multithreaded application.
I have to register events in my application in queue (events from all users) which I flush and save to database every 100 events to improve performance. I don't want save database log for every single user commit. I suppose commit e.x. every 100 events to database will be faster that 100 single commits. I have three ideas:
<ul>
<li>use ThreadLocal</li>
<li>use queue for single user</li>
<li>use synchronized LinkedList and flush from time to time or every number of events</li>
</ul>
Do you have any other ideas? I don't use log4j because I have to save log to database - not to file, which method will the best?
|
java
|
multithreading
|
performance
|
logging
|
server-side
| null |
open
|
Logs queue in multithreaded application which dump information to DB (server side application)?
===
Could you advise me how to implements queue in multithreaded application.
I have to register events in my application in queue (events from all users) which I flush and save to database every 100 events to improve performance. I don't want save database log for every single user commit. I suppose commit e.x. every 100 events to database will be faster that 100 single commits. I have three ideas:
<ul>
<li>use ThreadLocal</li>
<li>use queue for single user</li>
<li>use synchronized LinkedList and flush from time to time or every number of events</li>
</ul>
Do you have any other ideas? I don't use log4j because I have to save log to database - not to file, which method will the best?
| 0 |
7,130,373 |
08/20/2011 07:13:26
| 659,196 |
03/14/2011 17:02:53
| 3 | 2 |
Is DreamFactory a real developer environment?
|
DreamFactory seems to layer a rich set of OO scripting abstractions on top cloud infrastructures.. AWS, Cisco, Azure, Salesforce..
But I don't see any real interest in Dreamfactory in developer communities like StackOverflow.
Can anyone tell me what DreamFactory is?! ..and whether it should be considered seriously as a viable development tool for cloud apps? .. they do have some interesting CRM / Project / Collab integration.
Thanks much
|
azure
|
amazon-web-services
|
cloud
|
salesforce
| null |
08/20/2011 15:22:52
|
not constructive
|
Is DreamFactory a real developer environment?
===
DreamFactory seems to layer a rich set of OO scripting abstractions on top cloud infrastructures.. AWS, Cisco, Azure, Salesforce..
But I don't see any real interest in Dreamfactory in developer communities like StackOverflow.
Can anyone tell me what DreamFactory is?! ..and whether it should be considered seriously as a viable development tool for cloud apps? .. they do have some interesting CRM / Project / Collab integration.
Thanks much
| 4 |
9,260,596 |
02/13/2012 12:34:09
| 809,745 |
06/22/2011 05:49:11
| 190 | 2 |
What is the difference between these two XML structures ?
|
Here are the two ways for data structures i can think of with XML :
1)
<root>
<color value1="red" value2="green" ></color>
</root>
2)
<root>
<color>
<value1> red </value1>
<value2> green </value2>
</color>
Which one is better ? Why ?
Thank you.
|
xml
| null | null | null | null | null |
open
|
What is the difference between these two XML structures ?
===
Here are the two ways for data structures i can think of with XML :
1)
<root>
<color value1="red" value2="green" ></color>
</root>
2)
<root>
<color>
<value1> red </value1>
<value2> green </value2>
</color>
Which one is better ? Why ?
Thank you.
| 0 |
4,537,509 |
12/27/2010 08:39:27
| 554,794 |
12/27/2010 08:18:20
| 1 | 0 |
linux kernel buffer memory is zero
|
There are one qestion that i can`t find in google.
I have many linux boxes mostly with SLES or openSUSE, diffrent versions and kernels.
On some of them i faced with slow oracle transactions problem. It time to time problem and when i log in the box on that time i see that oracle blocked in syscall sync_page
# while :; do ps axo stat,pid,cmd,wchan | egrep '^D|^R'; echo --; sleep 5; done
D 3483 hald-addon-storage: polling ide_do_drive_cmd
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
D 12457 [smtpd] sync_page
R+ 12458 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12501 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12535 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12570 ps axo stat,pid,cmd,wchan -
--
so i think that box is run out of memory for disk buffers but
total used free shared buffers cached
Mem: 4149084 3994552 154532 0 0 2424328
-/+ buffers/cache: 1570224 2578860
Swap: 3148700 750696 2398004
i think that this is the problem, buffer is zero and we must write directly to disk, but why buffer is zero - i try to google it and find nothing - is anyone can help ?
|
linux
|
buffer
| null | null | null | null |
open
|
linux kernel buffer memory is zero
===
There are one qestion that i can`t find in google.
I have many linux boxes mostly with SLES or openSUSE, diffrent versions and kernels.
On some of them i faced with slow oracle transactions problem. It time to time problem and when i log in the box on that time i see that oracle blocked in syscall sync_page
# while :; do ps axo stat,pid,cmd,wchan | egrep '^D|^R'; echo --; sleep 5; done
D 3483 hald-addon-storage: polling ide_do_drive_cmd
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
D 12457 [smtpd] sync_page
R+ 12458 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12501 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12535 ps axo stat,pid,cmd,wchan -
--
Ds 4635 ora_dbw0_orcl sync_page
Ds 4637 ora_lgwr_orcl sync_page
Ds 4639 ora_ckpt_orcl sync_page
D 11210 oracleorcl (LOCAL=NO) sync_page
R+ 12570 ps axo stat,pid,cmd,wchan -
--
so i think that box is run out of memory for disk buffers but
total used free shared buffers cached
Mem: 4149084 3994552 154532 0 0 2424328
-/+ buffers/cache: 1570224 2578860
Swap: 3148700 750696 2398004
i think that this is the problem, buffer is zero and we must write directly to disk, but why buffer is zero - i try to google it and find nothing - is anyone can help ?
| 0 |
11,449,205 |
07/12/2012 09:47:50
| 922,140 |
08/31/2011 17:32:40
| 310 | 17 |
How to pass multiple sprites as a Single sprite between two Activities in AndEngine
|
I have a background images, on which there is a table (sprite) is placed. On table sprite there are flowers placed. I want to make all these sprites a Single sprite and pass then to next activity.
Is it possible? If so how/?>
If not how can I solve this issue??
|
android
|
andengine
| null | null | null | null |
open
|
How to pass multiple sprites as a Single sprite between two Activities in AndEngine
===
I have a background images, on which there is a table (sprite) is placed. On table sprite there are flowers placed. I want to make all these sprites a Single sprite and pass then to next activity.
Is it possible? If so how/?>
If not how can I solve this issue??
| 0 |
230,668 |
10/23/2008 17:36:04
| 343 |
08/04/2008 20:13:06
| 275 | 20 |
Stored Procedures vs Parameterized Queries
|
Do you prefer to use stored procedures or parameterized queries? What is your argument supporting your choice? Is one method really any better than the other in terms of performance, security, maintainability... etc?
|
.net
|
sql
|
stored-procedures
| null | null |
10/23/2011 02:04:05
|
not constructive
|
Stored Procedures vs Parameterized Queries
===
Do you prefer to use stored procedures or parameterized queries? What is your argument supporting your choice? Is one method really any better than the other in terms of performance, security, maintainability... etc?
| 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.